<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: HR Operating Unit -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB979D2E0530100007F1FF2</GUID>
  <LOV_NAME>HR Operating Unit</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY>
  <VERSION_COMMENTS>Fixed where clause duplication</VERSION_COMMENTS>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>وحدة التشغيل مقيدة بالتحكم في الوصول متعدد المنظمات (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Bedieneinheit eingeschränkt durch Multi Org Access Control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Unidad operativa restringida por el control de acceso multiorgánico (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Unité opérationnelle restreinte par un contrôle d&apos;accès multi-organismes (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Unità operativa limitata dal controllo di accesso multiorgano (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>多機関アクセス制御(MOAC)で制限された操作ユニット</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>다중 조직 액세스 제어 (MOAC)에 의해 제한되는 운영 단위</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Unidade operacional restrita por controle de acesso multi org (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Операционное устройство, ограниченное мультиорганизованным контролем доступа (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Styrenhet begränsad av multi-org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Çoklu kuruluş erişim kontrolü (MOAC) tarafından kısıtlanan işletim birimi</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Operating unit restricted by multi org access control (MOAC)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>受多机构访问控制（MOAC）限制的操作单元。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: ECC Procurement, Requisitions -->
 <REPORTS_ROW>
  <GUID>EEE75CEB4AF36AD8E05362FB09051F8B</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.*
from
(
select * from (
SELECT
req_header.requisition_header_id || &apos;-&apos; || req_line.requisition_line_id || &apos;-&apos; || req_dist.distribution_Id  AS ecc_spec_id,  DFV_H.*,  DFV_L.*,  req_header.requisition_header_id requisition_header_id,
req_header.segment1 requisition,
req_header.description description,
CASE
  WHEN req_header.closed_code = &apos;CLOSED&apos;
  THEN fnd_message.Get_string(&apos;PO&apos;, &apos;PO_STATUS_CLOSED&apos;)
  WHEN req_header.closed_code = &apos;FINALLY CLOSED&apos;
  THEN fnd_message.Get_string(&apos;PO&apos;, &apos;PO_STATUS_FINALLY_CLOSED&apos;)
  WHEN NVL(req_header.cancel_flag, &apos;N&apos;) = &apos;Y&apos;
  THEN fnd_message.Get_string(&apos;PO&apos;, &apos;PO_STATUS_CANCELED&apos;)
  ELSE status_lkup.meaning
END  status,
status_lkup.lookup_code requisition_status_code,
status_lkup.LANGUAGE status_language,
nvl((SELECT emp.full_name FROM per_all_people_f emp WHERE emp.person_id = req_line.suggested_buyer_id
AND emp.effective_start_date =
  (SELECT Max(c.effective_start_date)
  FROM   per_all_people_f c
  WHERE  emp.person_id = c.person_id)
and rownum &lt; 2),po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_BUYER_UNASSIGNED&apos;, &apos;201&apos;,status_lkup.language)) buyer_name,
req_header.preparer_id,
( SELECT emp.full_name
  FROM   per_all_people_f emp
  WHERE  emp.person_id = req_header.preparer_id
  AND  emp.effective_start_date =
    (SELECT Max(c.effective_start_date)
    FROM   per_all_people_f c
    WHERE  emp.person_id = c.person_id)
  and rownum &lt;2
  ) 	preparer	,
/*por_view_reqs_pkg.get_req_total(req_header.requisition_header_id) amount	,*/
 ( select nvl(SUM(decode(prl.matching_basis, &apos;AMOUNT&apos;, prl.amount,
prl.unit_price * (prl.quantity - nvl(prl.quantity_cancelled,0)))),0)

    from
      po_requisition_lines_all prl
    where
      prl.requisition_header_id = req_header.requisition_header_id
      and nvl(prl.modified_by_agent_flag, &apos;N&apos;) = &apos;N&apos;
      and nvl(prl.cancel_flag, &apos;N&apos;) = &apos;N&apos;) amount,
(SELECT sob.currency_code
FROM gl_sets_of_books sob,financials_system_params_all fsp
WHERE sob.set_of_books_id = fsp.set_of_books_id
AND fsp.org_id = req_header.org_id)
AS currency , -- functional currency
(SELECT description
  FROM   fnd_lookup_values
  WHERE  lookup_type = &apos;REQUISITION TYPE&apos;
  AND lookup_code = req_header.type_lookup_code
  AND LANGUAGE = status_lkup.LANGUAGE
) 	requisition_type	,
req_header.creation_date 	creation_date	,
req_header.approved_date 	approved_date	,
EXTRACT( YEAR FROM approved_date ) approved_date_year,
To_Char(approved_date,&apos;Month&apos;) approved_date_month,
To_Char(NULL) approved_date_range,
(SELECT houtl.name
  FROM   hr_all_organization_units_tl houtl
  WHERE  houtl.organization_id (+) = req_header.org_id
  AND houtl.LANGUAGE = status_lkup.LANGUAGE
) 	operating_unit	,
  req_header.org_id org_id,
  req_line.requisition_line_id requisition_line_id,
req_line.item_id,
req_line.line_num 	line_number,
  mtl_sys_item.concatenated_segments item,
req_line.item_description item_description,
req_line.category_id,
req_mtl_cat.concatenated_segments category,
req_line.quantity quantity,
req_line.quantity - req_line.quantity_cancelled requested_quantity,
req_line.need_by_date need_by_date,
(req_line.need_by_date -
         nvl(((SELECT nvl(lead_time,0)
          FROM icx_cat_attribute_values
          WHERE po_line_id = (SELECT po_line_id
                              FROM po_lines_all
                              WHERE po_header_id = req_line.BLANKET_PO_HEADER_ID
                              AND line_num = req_line.BLANKET_PO_LINE_NUM
                              AND ROWNUM =1)
		  AND rownum&lt;2)), 0)) order_by_date,
EXTRACT( YEAR FROM need_by_date ) need_by_date_year,
To_Char(need_by_date,&apos;Month&apos;) need_by_date_month,
NVL(req_line.REQS_IN_POOL_FLAG,&apos;N&apos;) reqs_in_pool_flag,

req_line.unit_meas_lookup_code uom_code,
req_line.unit_meas_lookup_code uom,
req_line.unit_price unit_price,
req_line.line_type_id,
(SELECT line_type
FROM po_line_types_tl
WHERE line_type_id = req_line.line_type_id
AND LANGUAGE = status_lkup.language)	line_type	,
req_line.matching_basis,
req_line.item_revision  item_revision	,
  DECODE(req_line.matching_basis,
        &apos;AMOUNT&apos;, req_line.amount,
		(req_line.quantity-NVL(req_line.quantity_cancelled,0)) * req_line.unit_price
  ) 	line_amount	,
    Nvl2(req_line.currency_code,req_line.currency_code,
    (SELECT sob.currency_code
    FROM gl_sets_of_books sob,financials_system_params_all fsp
    WHERE sob.set_of_books_id = fsp.set_of_books_id
    AND fsp.org_id = req_header.org_id)) line_currency,
(SELECT gsb.currency_code
  FROM   financials_system_params_all fsp,
        gl_sets_of_books gsb
  WHERE  fsp.set_of_books_id = gsb.set_of_books_id
  AND fsp.org_id = req_line.org_id
) 	line_functional_currency	,
(CASE WHEN req_line.MODIFIED_BY_AGENT_FLAG = &apos;Y&apos; THEN 0
    WHEN req_line.currency_code IS NOT NULL AND req_line.matching_basis = &apos;AMOUNT&apos;  THEN Nvl(req_line.currency_amount, req_line.amount)
    WHEN req_line.currency_code IS NOT NULL AND req_line.matching_basis &lt;&gt; &apos;AMOUNT&apos;
     THEN (Nvl(req_line.currency_unit_price,req_line.unit_price) * (req_line.quantity - nvl(req_line.quantity_cancelled,0)))
    WHEN req_line.matching_basis = &apos;AMOUNT&apos; THEN req_line.amount
    ELSE
          req_line.unit_price *(req_line.quantity - nvl(req_line.quantity_cancelled,0))
  END) 	line_currency_amount	,
  req_header.cancel_flag,
req_line.cancel_flag line_cancel_flag,
  req_header.closed_code,
req_line.closed_code line_closed_code,
req_line.modified_by_agent_flag,
( CASE
  WHEN req_line.cancel_flag=&apos;Y&apos;
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQ_CANCELLED&apos;, &apos;201&apos;,status_lkup.language)
  WHEN nvl(req_line.urgent_flag, &apos;N&apos;) = &apos;Y&apos; AND req_line.REQS_IN_POOL_FLAG=&apos;Y&apos;
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_URGENT&apos;, &apos;201&apos;,status_lkup.language)
  WHEN  req_line.REQS_IN_POOL_FLAG=&apos;Y&apos; AND Trunc(req_line.need_by_date) &lt;
            Trunc(SYSDATE + (SELECT nvl(lead_time,0)
                            FROM icx_cat_attribute_values
                            WHERE po_line_id = (SELECT po_line_id
                                                FROM po_lines_all
                                                WHERE po_header_id = req_line.BLANKET_PO_HEADER_ID
                                                AND line_num = req_line.BLANKET_PO_LINE_NUM
                                                AND ROWNUM =1)
							AND rownum&lt;2))
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_LATE2&apos;, &apos;201&apos;,status_lkup.language)
  WHEN req_line.REQS_IN_POOL_FLAG=&apos;Y&apos; AND req_line.need_by_date &lt;= SYSDATE
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_LATE&apos;, &apos;201&apos;,status_lkup.language)
  WHEN req_line.reqs_in_pool_flag = &apos;Y&apos;
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_POOL&apos;, &apos;201&apos;,status_lkup.language)
  WHEN req_line.at_sourcing_flag = &apos;Y&apos;
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_NEG&apos;, &apos;201&apos;,status_lkup.language)
    WHEN (SELECT Count(1)
      FROM
      po_distributions_all pod
      WHERE pod.REQ_DISTRIBUTION_ID IN (SELECT distribution_Id FROM po_req_distributions_all WHERE requisition_line_id = req_line.requisition_line_id)
      AND ROWNUM &lt; 2) &gt; 0
    THEN po_pcc_agreements_util_pvt.get_fnd_message (&apos;PO_PCC_REQLINE_ORDER&apos;, &apos;201&apos;,status_lkup.language)

  ELSE
    (SELECT meaning
    FROM   fnd_lookup_values
    WHERE  lookup_type = &apos;AUTHORIZATION STATUS&apos;
    AND lookup_code = req_header.authorization_status
    AND LANGUAGE = status_lkup.language)
  END
)  line_status	,
req_line.to_person_id requester_id,
( SELECT emp.full_name
	FROM   per_all_people_f emp
	WHERE  emp.person_id = req_line.to_person_id
	AND emp.effective_start_date =
		(SELECT Max(c.effective_start_date)
		FROM   per_all_people_f c
		WHERE  emp.person_id = c.person_id)
	and rownum&lt;2
) requester,
(SELECT SUM(Nvl(prd1.recoverable_tax,0))
  FROM   po_requisition_lines_all prl1,
        po_req_distributions_all prd1
  WHERE  prd1.requisition_line_id = req_line.requisition_line_id
        AND prl1.requisition_line_id = prd1.requisition_line_id
        AND Nvl(prl1.cancel_flag, &apos;N&apos;) = &apos;N&apos;
        AND Nvl(prl1.modified_by_agent_flag, &apos;N&apos;) = &apos;N&apos;
)	recoverable_tax	,
(SELECT SUM(Nvl(prd1.nonrecoverable_tax,0))
  FROM   po_requisition_lines_all prl1,
        po_req_distributions_all prd1
  WHERE  prd1.requisition_line_id = req_line.requisition_line_id
        AND prl1.requisition_line_id = prd1.requisition_line_id
        AND Nvl(prl1.cancel_flag, &apos;N&apos;) = &apos;N&apos;
        AND Nvl(prl1.modified_by_agent_flag, &apos;N&apos;) = &apos;N&apos;
) 	non_recoverable_tax	,
req_line.suggested_buyer_id,
( SELECT emp.full_name
  FROM   per_all_people_f emp
  WHERE  emp.person_id =req_line.suggested_buyer_id
  AND  emp.effective_start_date =
                  (SELECT Max(c.effective_start_date)
                  FROM   per_all_people_f c
                  WHERE  emp.person_id = c.person_id  )
	and rownum&lt;2
) 	suggested_buyer	,
req_line.note_to_agent note_to_buyer,
req_line.suggested_vendor_name suggested_supplier	,
(SELECT description
  FROM   hr_locations_all_tl
  WHERE  location_id = req_line.deliver_to_location_id
        AND LANGUAGE = status_lkup.language
) 	deliver_to_location	,
req_line.deliver_to_location_id,
(SELECT LOCATION_CODE FROM HR_LOCATIONS_ALL_TL WHERE location_id = req_line.deliver_to_location_id
and language = status_lkup.language)  ship_to_location,
req_line.destination_type_code,
(SELECT meaning
  FROM   fnd_lookup_values
  WHERE  lookup_type = &apos;DESTINATION TYPE&apos;
  AND lookup_code = req_line.destination_type_code
  AND LANGUAGE = status_lkup.language
)  destination_type	,
nvl(req_line.urgent_flag, &apos;N&apos;) urgent_flag,
req_line.last_update_date req_last_upd_date,
Decode(req_header.type_lookup_code,
                  &apos;INTERNAL&apos;,
                  (SELECT to_char(oe1.order_number)
                    FROM oe_order_headers_all oe1
                    WHERE oe1.order_source_id = 10
                    AND oe1.orig_sys_document_ref = req_header.segment1
                    AND oe1.source_document_id = req_header.requisition_header_id
                    AND rownum=1),
                    po_v.segment1) AS purchase_order,
po_v.po_header_id,
req_line.blanket_po_header_id,
(SELECT segment1 FROM po_headers_all WHERE po_header_id = req_line.blanket_po_header_id) AS agreement,
(SELECT document_number FROM pon_auction_Headers_all WHERE auction_header_id = req_line.auction_header_id) AS negotiation,

To_Char(NULL) next_action_owner,
To_Char(NULL) next_action_type,
  case
	           when prl_reserved_status.unreserved_count=0 and  prl_reserved_status.reserved_count&gt;0 then

             (SELECT meaning
               FROM fnd_lookup_values POLC
               WHERE POLC.lookup_type = &apos;DOCUMENT STATE&apos;
               AND POLC.lookup_code = &apos;RESERVED&apos;
               AND LANGUAGE = status_lkup.language)
			   else
         (SELECT meaning
               FROM fnd_lookup_values POLC
               WHERE POLC.lookup_type = &apos;DOCUMENT STATE&apos;
               AND POLC.lookup_code = &apos;NOT RESERVED&apos;
               AND LANGUAGE = status_lkup.language) end AS reservation_status,

req_dist.distribution_id distribution_id,
req_header.segment1 || &apos;, &apos; || req_line.line_Num requisition_line,
req_dist.distribution_num distribution_number,
req_dist.req_line_quantity distribution_quantity,
req_dist.code_combination_id,
(SELECT  concatenated_segments
  FROM gl_code_combinations_kfv  gl_code_kfv
  WHERE code_combination_id = req_dist.code_combination_id
)   	charge_account	,
req_dist.expenditure_type expenditure_type,
(SELECT name
FROM hr_all_organization_units_tl
WHERE organization_id=req_dist.expenditure_organization_id
AND LANGUAGE = status_lkup.language) expenditure_org,
req_dist.expenditure_item_date expenditure_item_date,

pa_project.name project ,
pa_project.project_id,
pa_project.project_currency_code project_currency_code,
pa_project.segment1 project_number,
pa_task.task_number task_number,
pa_task.task_id,
To_Char(NULL) project_status,
DECODE(req_line.requisition_line_id,NULL,NULL,pa_task.task_name ) task_name,
DECODE(nvl(req_header.contractor_requisition_flag,&apos;N&apos;),&apos;Y&apos;,PO_PON_ECC_UTIL_PVT.get_fnd_message (&apos;PO_YES&apos;, &apos;201&apos;,status_lkup.language),
        PO_PON_ECC_UTIL_PVT.get_fnd_message (&apos;PO_NO&apos;, &apos;201&apos;,status_lkup.language)) contractor_requisition_flag,
(SELECT name
FROM hr_all_organization_units_tl
WHERE organization_id=req_line.destination_organization_id
AND LANGUAGE = status_lkup.language) destination_organization


FROM

po_requisition_headers_all req_header,
po_requisition_lines_all req_line,
po_req_distributions_all req_dist,
pa_projects_all pa_project,
pa_tasks  pa_task,
mtl_system_items_b_kfv mtl_sys_item,
ap_suppliers ap_supplier,
mtl_categories_kfv req_mtl_cat,
fnd_lookup_values status_lkup,
(SELECT poh.segment1,poh.po_header_id, pod.REQ_DISTRIBUTION_ID
FROM
po_distributions_all pod,
po_headers_all poh
WHERE pod.po_header_id = poh.po_header_id
AND poh.type_lookup_code = &apos;STANDARD&apos;
) po_v,
ORG_ORGANIZATION_DEFINITIONS OOD,
PO_SYSTEM_PARAMETERS_ALL PSP1,
(SELECT
     PRL1.requisition_line_id,
     COUNT(   DECODE(  PRD1.prevent_encumbrance_flag
                     ,  &apos;Y&apos;, NULL
                     ,  DECODE(  PRD1.encumbered_flag
                              ,  &apos;Y&apos;, &apos;Y&apos;,  NULL ) ) )  reserved_count,

      COUNT(   DECODE(  PRD1.prevent_encumbrance_flag
                     ,  &apos;Y&apos;, NULL
                     ,  DECODE(  PRD1.encumbered_flag
                              ,  &apos;Y&apos;, NULL,  &apos;N&apos;)))  unreserved_count,

     COUNT(   DECODE(  PRD1.prevent_encumbrance_flag
                     ,  &apos;Y&apos;, &apos;Y&apos;,  NULL)) prevented_count



   FROM
      PO_REQ_DISTRIBUTIONS_ALL PRD1
   ,  PO_REQUISITION_LINES_ALL PRL1


   WHERE PRL1.requisition_line_id = PRD1.requisition_line_id
   AND   NVL(PRL1.cancel_flag,&apos;N&apos;) &lt;&gt; &apos;Y&apos;
   AND   NVL(PRL1.closed_code,&apos;OPEN&apos;) &lt;&gt; &apos;FINALLY CLOSED&apos;
   GROUP BY PRL1.requisition_line_id)prl_reserved_status ,(select &quot;ROW_ID&quot; &quot;&apos;PO_REQ_H_ROW_ID&apos;&quot;,&quot;CONTEXT&quot; &quot;&apos;PO_REQ_H_CONTEXT&apos;&quot;,&quot;CONCATENATED_SEGMENTS&quot; &quot;&apos;PO_REQ_H_CONCATENATED_SEGMENTS&apos;&quot; from ( select ROWID &quot;ROW_ID&quot;,ATTRIBUTE_CATEGORY &quot;CONTEXT&quot;,NULL &quot;CONCATENATED_SEGMENTS&quot; from PO_REQUISITION_HEADERS_ALL )) DFV_H  ,(select &quot;ROW_ID&quot; &quot;&apos;PO_REQ_L_ROW_ID&apos;&quot;,&quot;CONTEXT&quot; &quot;&apos;PO_REQ_L_CONTEXT&apos;&quot;,&quot;CONCATENATED_SEGMENTS&quot; &quot;&apos;PO_REQ_L_CONCATENATED_SEGMENTS&apos;&quot; from ( select ROWID &quot;ROW_ID&quot;,ATTRIBUTE_CATEGORY &quot;CONTEXT&quot;,NULL &quot;CONCATENATED_SEGMENTS&quot; from PO_REQUISITION_LINES_ALL )) DFV_L  WHERE
req_header.creation_date &gt;= nvl(to_date(to_char(to_timestamp(&apos;&apos;),&apos;DD-MON-YY HH24.MI.SS&apos;),&apos;DD-MON-YY HH24.MI.SS&apos;),req_header.creation_date)
and req_header.authorization_status = &apos;APPROVED&apos;
and nvl(req_header.closed_code,&apos;NO&apos;) &lt;&gt; &apos;FINALLY CLOSED&apos;
and NVL(req_header.cancel_flag, &apos;N&apos;) &lt;&gt; &apos;Y&apos;
and nvl(req_header.federal_flag,&apos;N&apos;) = &apos;N&apos;
AND req_header.requisition_header_id = req_line.requisition_header_id
and nvl(req_line.cancel_flag,&apos;N&apos;) &lt;&gt; &apos;Y&apos;
AND Nvl(req_line.modified_by_agent_flag,&apos;N&apos;) &lt;&gt; &apos;Y&apos;
AND Nvl(req_line.closed_code,&apos;NO&apos;) NOT IN (&apos;CLOSED&apos;,&apos;FINALLY CLOSED&apos;)
AND req_line.requisition_line_id = req_dist.requisition_line_id(+)
and req_dist.task_id  = pa_task.task_id (+)
and req_dist.project_id = 	pa_task.project_id (+)
and pa_task.project_id = pa_project.project_id(+)
AND NVL(req_header.authorization_status,&apos;INCOMPLETE&apos;) = status_lkup.lookup_code
AND status_lkup.lookup_type = &apos;AUTHORIZATION STATUS&apos;
AND status_lkup.LANGUAGE IN (&apos;US&apos;)

and req_line.vendor_id = ap_supplier.vendor_id(+)
and req_line.category_id = req_mtl_cat.category_id(+) --req line category to req mtl category
and req_line.item_id = mtl_sys_item.inventory_item_id(+) --req line item to mtl system inv item
and req_line.destination_organization_id = mtl_sys_item.organization_id(+)
AND po_v.REQ_DISTRIBUTION_ID(+) = req_dist.distribution_id
AND      OOD.ORGANIZATION_ID(+) = req_line.SOURCE_ORGANIZATION_ID
AND      PSP1.ORG_ID(+) = OOD.OPERATING_UNIT
/*AND (nvl(req_header.CONTRACTOR_REQUISITION_FLAG,&apos;N&apos;)=&apos;N&apos;
or (req_header.AUTHORIZATION_STATUS=&apos;APPROVED&apos;  and
req_header.CONTRACTOR_STATUS=&apos;ASSIGNED&apos;))*/
AND prl_reserved_status.requisition_line_id(+) =  req_line.requisition_line_id  
AND req_header.rowid = dfv_h.&quot;&apos;PO_REQ_H_ROW_ID&apos;&quot; (+)  
AND req_line.rowid = dfv_l.&quot;&apos;PO_REQ_L_ROW_ID&apos;&quot; (+)  ) pivot(Max(status) AS status,
                                     Max(operating_unit) AS operating_unit,
                                     Max(buyer_name) AS buyer_name,
                                     Max(line_type) AS line_type,
                                     Max(line_status) AS line_status,
                                     Max(requisition_type) AS requisition_type,
                                     Max(deliver_to_location) AS deliver_to_location,
                                     Max(ship_to_location) AS ship_to_location,
                                     Max(destination_type) AS destination_type,
                                     Max(expenditure_org) AS expenditure_org,
                                     Max(reservation_status) AS reservation_status,
                                     Max(contractor_requisition_flag) AS contractor_requisition_flag,
                                     Max(destination_organization) AS destination_organization
                                     FOR status_language IN (&apos;US&apos; &quot;US&quot;)) 
) x
where
2=2</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <REPORT_NAME>ECC الشراء, طلبات الشراء</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <REPORT_NAME>ECC Beschaffung, Anforderungen</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <REPORT_NAME>ECC Procurement, Solicitudes</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <REPORT_NAME>ECC Procurement, Demandes d&apos;appro</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <REPORT_NAME>ECC Procurement, Richieste acquisto</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <REPORT_NAME>ECC 調達, 購買依頼</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <REPORT_NAME>ECC 조달, 구매요청</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <REPORT_NAME>ECC Закупки, Заявки</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <REPORT_NAME>ECC Inköp, Rekvisitioner</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <REPORT_NAME>ECC Tedarik, Talepler</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>ECC Procurement, Requisitions</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <REPORT_NAME>ECC Procurement, 申请</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: po-pcc-requisitions
Query Procedure: PO_PCC_REQUISITIONS_UTIL_PVT.GET_ECC_DATA_LOAD_INFO
Security Procedure: PO_PCC_DATASECURITY_PKG_PUB.GetFilterAttributeValuesReq</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enterprise Command Center</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>x.org_id in (select haouv.organization_id from hr_all_organization_units_vl haouv where haouv.name=:operating_unit)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>HR Operating Unit</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB979D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
hou.name value,
null description
from
hr_operating_units hou
where
sysdate between hou.date_from and nvl(hou.date_to,sysdate) and
(:$flex$.ledger is null or hou.set_of_books_id in (select gl.ledger_id from gl_ledgers gl where xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;)) and
hou.organization_id in (select mgoat.organization_id from mo_glob_org_access_tmp mgoat union select fnd_global.org_id from dual where fnd_release.major_version=11)
order by
hou.name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select haouv.name from hr_all_organization_units_vl haouv where haouv.organization_id=nvl((select mgoat.organization_id from mo_glob_org_access_tmp mgoat where mgoat.organization_id=nvl(fnd_profile.value(&apos;DEFAULT_ORG_ID&apos;),mgoat.organization_id) and rownum=1),fnd_global.org_id)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
