Update or Close Sales Orders In Oracle Fusion- For Queries refer video description

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • In this video, we will be able to understand and get all answers related to Update or Close Sales Orders In Oracle Fusion.
    To use for Line enter Entity Name as "Line"
    Below question will be answered in this video
    #Update or Close Fulfillment Lines That Remain Open
    #ESS Process - Update And Close Sales Orders - Fails to Complete
    #How to Close Order Lines and Order Headers In Order Management
    #ESS Process - Update or Close Sales Orders - Fails With: obDefinition://oracle/apps/ess/scm/doo/orchestration/processPlanning/CloseOrderServiceJob ERROR:ESS-07034 Job logic indicated a business error occurred while executing an asynchronous j
    To get Entity ID use the below query
    -----------------------------------------------------
    SELECT DISTINCT
    lines.line_id,
    lines.creation_date,
    lines.header_id
    FROM
    fusion.doo_process_instances pi,
    fusion.doo_orchestration_groups og,
    fusion.doo_lines_all lines
    WHERE
    og.doo_process_instance_id = pi.doo_process_instance_id
    AND og.status = 'ACTIVE'
    AND og.line_id = lines.line_id
    AND pi.process_active IN (
    'COMPLETED',
    'INACTIVE'
    )
    AND lines.open_flag = 'Y'
    AND lines.header_id IN (
    SELECT
    nvl(header_id, 0)
    FROM
    doo_headers_all
    WHERE
    creation_date BETWEEN :currstartdate AND :currenddate
    )
    UNION
    SELECT DISTINCT
    lines.line_id,
    lines.creation_date,
    lines.header_id
    FROM
    fusion.doo_lines_all lines,
    fusion.doo_fulfill_lines_all flines
    WHERE
    lines.line_id = flines.line_id
    AND lines.open_flag = 'Y'
    AND flines.canceled_flag = 'Y'
    AND flines.open_flag = 'N'
    AND lines.header_id IN (
    SELECT
    nvl(header_id, 0)
    FROM
    doo_headers_all
    WHERE
    creation_date BETWEEN :currstartdate AND :currenddate
    )
    =========
    HeaderWithCompletedProcessInstancesVO
    ---------------------
    SELECT DISTINCT
    headers.header_id,
    headers.creation_date
    FROM
    doo_process_instances pi,
    doo_orchestration_groups og,
    doo_headers_all headers
    WHERE
    og.doo_process_instance_id = pi.doo_process_instance_id
    AND og.status = 'ACTIVE'
    AND og.header_id = headers.header_id
    AND headers.open_flag = 'Y'
    AND pi.process_active IN (
    'COMPLETED',
    'INACTIVE'
    )
    UNION
    SELECT DISTINCT
    headers.header_id,
    headers.creation_date
    FROM
    doo_lines_all lines,
    doo_headers_all headers
    WHERE
    headers.open_flag = 'Y'
    AND headers.header_id = lines.header_id
    AND lines.canceled_flag = 'Y';

КОМЕНТАРІ •