<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>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: QA: Senfor Intl - Quality Collection Plan Details Extract -->
 <REPORTS_ROW>
  <GUID>2D261966BAAD6BD2E06369FB09054699</GUID>
  <SQL_TEXT>-- Senfor Quality Collection Plan Details Extract

-- No actions
select distinct 
mp.organization_code ORG,
qpv.plan_id,
qpv.name,
qpv.description,
qpv.plan_type_meaning,
qpcv.char_id,
qpcv.char_name,
qpcv.char_type_meaning,
qpcv.prompt_sequence,
qpcv.prompt,
qpcv.enabled_meaning,
qpcv.mandatory_meaning,
qpcv.default_value,
qpcv.values_exist_meaning,
qpcv.displayed_meaning,
qpcv.read_only_meaning,
qpcv.ss_poplist_meaning,
qpcv.datatype_meaning,
qpcv.result_column_name,
qpcv.display_length,
nvl(qpcv.decimal_precision,0)decimal_precision,
nvl(qpcv.data_entry_hint,&apos; &apos;) data_entry_hint,
0 trigger_sequence,
0 plan_char_action_trigger_id,
&apos; &apos; operator_meaning,
0 plan_char_action_id,
&apos; &apos; assigned_char_name,
&apos; &apos; action_description,
&apos; &apos; message ,
&apos; &apos; token_name ,
&apos; &apos;char_name 
from 
QA_PLANS_V qpv,
QA_PLAN_CHARS_V qpcv,
MTL_PARAMETERS mp
where 1=1
--and qpcv.organization_id = (select mp.organization_id from mtl_parameters mp where mp.organization_code = &apos;&amp;Org&apos;)  --207  --1071
--and qpv.name like &apos;405 ASSEMBLY COLLECTION PLAN&apos;  --&apos;WIP COMPLETION COLLECTION PLAN&apos;
and qpcv.plan_id = qpv.plan_id
and qpv.organization_id=mp.organization_id
and qpcv.enabled_flag = 1

UNION

--With actions
select 
mp.organization_code ORG,
qpv.plan_id,
qpv.name,
qpv.description,
qpv.plan_type_meaning,
qpcv.char_id,
qpcv.char_name,
qpcv.char_type_meaning,
qpcv.prompt_sequence,
qpcv.prompt,
qpcv.enabled_meaning,
qpcv.mandatory_meaning,
qpcv.default_value,
qpcv.values_exist_meaning,
qpcv.displayed_meaning,
qpcv.read_only_meaning,
qpcv.ss_poplist_meaning,
qpcv.datatype_meaning,
qpcv.result_column_name,
qpcv.display_length,
nvl(qpcv.decimal_precision,0)decimal_precision,
nvl(qpcv.data_entry_hint,&apos; &apos;) data_entry_hint,
t.trigger_sequence,
t.plan_char_action_trigger_id,
t.operator_meaning,
t.plan_char_action_id,
t.assigned_char_name,
t.action_description,
t.message &quot;Action&quot;,
t.token_name,
t.char_name 
from 
QA_PLANS_V qpv,
QA_PLAN_CHARS_V qpcv, 
MTL_PARAMETERS mp,
(select distinct &apos; &apos;,
    qpcatv.plan_id,
    qpcatv.char_id,
    qpcatv.trigger_sequence,
    qpcatv.plan_char_action_trigger_id,
    qpcatv.operator_meaning ,
    a.plan_char_action_id,
    a.assigned_char_name,
    a.action_description,
    a.message,
    a.token_name  ,
    a.char_name 
 from
    QA_PLAN_CHAR_ACTION_TRIGGERS_V qpcatv ,

    (select distinct &apos; &apos;,
         qpcav.plan_id,
         qpcav.char_id,
         qpcav.plan_char_action_trigger_id,
         qpcav.plan_char_action_id,
         qpcav.trigger_sequence,
         qpcav.assigned_char_name,
         qpcav.action_description,
         qpcav.message,
         qpcaov.token_name token_name ,
         qpcaov.char_name char_name
     from
        QA_PLAN_CHAR_ACTIONS_V qpcav,
        QA_PLAN_CHAR_ACTION_OUTPUTS_V qpcaov
     where
        qpcaov.plan_char_action_id = qpcav.plan_char_action_id
        and qpcaov.action_id = qpcav.action_id
        and qpcaov.plan_char_action_trigger_id = qpcav.plan_char_action_trigger_id
        and qpcav.plan_char_action_trigger_id &gt;0
        
        UNION
        
        select distinct
        &apos; &apos;,
         qpcav.plan_id,
         qpcav.char_id,
         qpcav.plan_char_action_trigger_id,
         qpcav.plan_char_action_id,
         qpcav.trigger_sequence,
         qpcav.assigned_char_name,
         qpcav.action_description,
         qpcav.message,
         &apos; &apos; token_name ,
         &apos; &apos; char_name
     from
        QA_PLAN_CHAR_ACTIONS_V qpcav
     where
        qpcav.plan_char_action_trigger_id &gt;0
        )a
 where
    qpcatv.plan_id =a.plan_id
    and qpcatv.char_id = a.char_id
    and a.trigger_sequence = qpcatv.trigger_sequence
    and a.plan_char_action_trigger_id = qpcatv.plan_char_action_trigger_id
    and qpcatv.plan_char_action_trigger_id &gt; 0
    )t

where 1=1
--and qpcv.organization_id = (select mp.organization_id from mtl_parameters mp where mp.organization_code = &apos;&amp;Org&apos;) --207 --1071
--and qpv.name like &apos;405 ASSEMBLY COLLECTION PLAN&apos;  --&apos;WIP COMPLETION COLLECTION PLAN&apos;
and qpcv.plan_id = qpv.plan_id
and qpv.organization_id=mp.organization_id
and t.plan_id = qpcv.plan_id
and t.char_id = qpcv.char_id
and qpcv.enabled_flag = 1

order by 3,8</SQL_TEXT>
  <DISABLED>Y</DISABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>QA: Senfor Intl - Quality Collection Plan Details Extract</REPORT_NAME>
    <DESCRIPTION>This report extracts quality Collection Plan configuration details including associated actions in one Excel file.  

Data fields, parameters and other templates may be added or removed according to requirements. Please contact the author, iyilmaz@senfor-intl.eu, if you require assistance.

Version     Modified on      Modified  by     Description 
=====   ========   == ======  ======== 
  1.0         3 Feb 2025 I     Ion Yılmaz       Initial Release                        



Original Author: İon Yılmaz (iyilmaz@senfor-intl.com.tr) Senfor International, www.senfor-intl.eu                        
All rights reserved. Permission to use this code is granted provided the original author is acknowledged.  

This code is made available on an &quot;As-Is&quot; basis and may require modification depending upon the configuration of the system it is being used on.

The author does not assume or hereby disclaim any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from negligence, accident, or any other cause.


Parameters:
===========
Org:  Select the specific inventory organization(s) to be extracted (optional).
Plan: Select the specific plan(s) required (optional).</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Senfor-QA</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>&amp;org</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>mp.organization_code=:Org</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB279D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name||&apos; (&apos;||ftv.territory_short_name||&apos;, &apos;||hla.town_or_city||decode(mp.organization_id,mp.master_organization_id,null,&apos;, &apos;||mp0.organization_code)||&apos;)&apos; description
from
org_organization_definitions ood,
mtl_parameters mp,
mtl_parameters mp0,
hr_all_organization_units haou,
hr_locations_all hla,
fnd_territories_vl ftv
where
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and
(
ood.organization_id in (select oav.organization_id from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) or
not exists (select null from org_access_view oav where oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) and
ood.operating_unit 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)
) and
(:$flex$.operating_unit is null or ood.operating_unit in (select haouv.organization_id from hr_all_organization_units_vl haouv where xxen_util.contains(:$flex$.operating_unit,haouv.name)=&apos;Y&apos;)) and
(:$flex$.ledger is null or ood.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
nvl(ood.disable_date,sysdate)&gt;=sysdate and
mp.master_organization_id=mp0.organization_id and
ood.organization_id=haou.organization_id(+) and
haou.location_id=hla.location_id(+) and
hla.country=ftv.territory_code(+)
order by
ood.organization_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Org</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>qpv.name = :Plan</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select qpv.name value, qpv.description description
from qa_plans_v qpv
order by qpv.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Plan</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>qpv.plan_type_meaning=:Plan_Type</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;value&apos; value, &apos;description&apos; description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Plan Type</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>
