<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: CST Functional Area for Interfaces -->
 <LOVS_ROW>
  <GUID>394A747A39CE17F6E0630100007F0ADD</GUID>
  <LOV_NAME>CST Functional Area for Interfaces</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name in (&apos;SQLAP&apos;, &apos;AR&apos;, &apos;CE&apos;,&apos;SQLGL&apos;, &apos;INL&apos;, &apos;INV&apos;, &apos;PA&apos;, &apos;PO&apos;, &apos;WIP&apos;, &apos;WSM&apos;)
and fav.application_id = fpi.application_id
and fpi.status &lt;&gt; &apos;N&apos;
union all
-- Cost Management (707) is never installed
select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name = &apos;CST&apos;
-- And Inventory (401) is installed 
and (fpi.status &lt;&gt; &apos;N&apos; and fpi.application_id = 401)
order by 1</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Functional Area LOV for the CAC Interface Error reports</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: CST Period Year -->
 <LOVS_ROW>
  <GUID>39EAA21EACB45EFCE0630100007F8189</GUID>
  <LOV_NAME>CST Period Year</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select gp.period_year value,
null description
from gl_periods gp
where gp.start_date &lt;=sysdate
and gp.period_year &lt;= extract(year from sysdate)
group by gp.period_year, null
order by gp.period_year desc</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: GL Ledger -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEB879D2E0530100007F1FF2</GUID>
  <LOV_NAME>GL Ledger</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>دفاتر الأستاذ المقيدة بمجموعة الوصول ، المحددة بواسطة قيمة الملف الشخصي &quot;مجموعة الوصول إلى بيانات GL&quot; لمسؤولية تسجيل الدخول الحالية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Ledger, die durch das Zugriffsset eingeschränkt sind, definiert durch den Profilwert &apos;GL Data Access Set&apos; der aktuellen Anmeldeverantwortung</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Libros restringidos por el conjunto de acceso, definido por el valor del perfil &quot;Conjunto de acceso a datos GL&quot; de la responsabilidad de inicio de sesión actual</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Grands livres limités par un ensemble d&apos;accès, défini par la valeur du profil &quot;GL Data Access Set&quot; de la responsabilité de connexion actuelle</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Libri mastri limitati dal set di accesso, definito dal valore del profilo &apos;GL Data Access Set&apos; della responsabilità di login corrente</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>現在のログイン責任者のプロファイル値&apos;GL Data Access Set&apos;によって定義されたアクセスセットによって制限された元帳</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>현재 로그인 권한의 프로파일 값 &apos;GL 데이터 액세스 세트&apos;로 정의 된 액세스 세트로 제한되는 원장</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Ledgers restritos pelo conjunto de acesso, definido pelo valor do perfil &apos;GL Data Access Set&apos; da atual responsabilidade de login</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Леджеры, ограниченные набором доступа, определяемые значением профиля &quot;GL Data Access Set&quot; текущей ответственности за вход в систему</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Ledgers begränsade av åtkomstuppsättning, definierade av profilvärde &apos;GL Data Access Set&apos; för det aktuella inloggningsansvaret</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Mevcut oturum açma sorumluluğunun profil değeri &apos;GL Veri Erişim Kümesi&apos; ile tanımlanan erişim kümesiyle kısıtlanmış defterler</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Ledgers restricted by access set, defined by profile value &apos;GL Data Access Set&apos; of the current login responsibility</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>由访问集限制的分类账，由当前登录责任的配置文件值 &quot;GL数据访问集 &quot;定义。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- 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>
<!-- loader xml for Enginatics Blitz Report lov: INV Organization Code (excluding master) -->
 <LOVS_ROW>
  <GUID>91D3167A33531204E053BB6B63585EE3</GUID>
  <LOV_NAME>INV Organization Code (excluding master)</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.organization_id=mp.master_organization_id) 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
order by
ood.organization_code</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>جميع رموز تنظيم المخزون النشط باستثناء المؤسسات الرئيسية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Alle aktiven Inventar-Organisationscodes mit Ausnahme von Master-Organisationen</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Todos los códigos de organización de inventario activos, excluyendo las organizaciones maestras</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Tous les codes d&apos;organisation de l&apos;inventaire actif, à l&apos;exclusion des organisations maîtresses</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Tutti i codici di organizzazione dell&apos;inventario attivi, escluse le organizzazioni master</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>マスター組織を除くすべてのアクティブなインベントリ組織コード</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>마스터 조직을 제외한 모든 활성 재고 조직 코드</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Todos os códigos ativos de organização de inventário, excluindo organizações mestre</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Все действующие инвентаризационные коды организаций, за исключением основных организаций</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Alla aktiva organisationskoder för inventarier exklusive huvudorganisationer</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Ana organizasyonlar hariç tüm aktif envanter organizasyon kodları</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>All active inventory organization codes excluding master organizations</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>所有现行清单组织代码，不包括主组织</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
<!-- loader xml for Enginatics Blitz Report lov: INV Period -->
 <LOVS_ROW>
  <GUID>8E2FF36EDF2279D2E0530100007F1FF2</GUID>
  <LOV_NAME>INV Period</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select distinct
oap.period_name value,
max(oap.period_year||&apos;-&apos;||oap.period_num||&apos;, &apos;||xxen_util.meaning(nvl2(oap.period_close_date,decode(oap.open_flag,&apos;P&apos;,2,&apos;N&apos;,decode(oap.summarized_flag,&apos;N&apos;,65,66),4),3),&apos;MTL_ACCT_PERIOD_STATUS&apos;,700)||&apos; (&apos;||oap.period_start_date||&apos; - &apos;||oap.schedule_close_date||&apos;)&apos;) over (partition by oap.period_name) description,
max(oap.period_start_date) over (partition by oap.period_name) period_start_date,
max(oap.effective_period_num) over (partition by oap.period_name) effective_period_num
from
gl_ledgers gl,
org_organization_definitions ood,
mtl_parameters mp,
(select oap.period_year*10000+oap.period_num effective_period_num, oap.* from org_acct_periods oap) oap
where
oap.period_start_date&lt;=sysdate and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.organization_code is null or xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos;) and
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and 
gl.period_set_name=oap.period_set_name and
gl.ledger_id=ood.set_of_books_id and
ood.organization_id=oap.organization_id
order by
period_start_date desc,
effective_period_num desc,
oap.period_name</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>AR</LANGUAGE>
    <DESCRIPTION>فترات دفتر الأستاذ العام السابقة للمخزون (تعتمد على دفتر الأستاذ و / أو معلمة رمز المؤسسة) للمؤسسات غير الرئيسية</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>D</LANGUAGE>
    <DESCRIPTION>Vergangene Bestands-GL-Perioden (abhängig von Ledger- und/oder Organisationscode-Parameter) für Nicht-Master-Organisationen</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>E</LANGUAGE>
    <DESCRIPTION>Períodos GL de inventario pasados (dependientes de los parámetros del libro mayor y/o del código de organización) para organizaciones no maestras</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>F</LANGUAGE>
    <DESCRIPTION>Périodes passées de GL d&apos;inventaire (dépendant du grand livre et/ou du code d&apos;organisation) pour les organisations non maîtresses</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>I</LANGUAGE>
    <DESCRIPTION>Periodi GL di inventario passati (dipendente dal parametro del ledger e/o del codice dell&apos;organizzazione) per organizzazioni non master</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>JA</LANGUAGE>
    <DESCRIPTION>非マスター組織の過去のインベントリGL期間（元帳および/または組織コードパラメータに依存する）。</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>KO</LANGUAGE>
    <DESCRIPTION>비 마스터 조직에 대한 과거 재고 GL 기간 (원장 및 / 또는 조직 코드 매개 변수에 따라 다름)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>PTB</LANGUAGE>
    <DESCRIPTION>Períodos GL de inventário anteriores (ledger e/ou código de organização dependente do parâmetro) para organizações não-mestras</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>RU</LANGUAGE>
    <DESCRIPTION>Прошлые инвентаризационные GL-периоды (зависящие от бухгалтерской книги и/или параметра организационного кода) для неосновных организаций</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>S</LANGUAGE>
    <DESCRIPTION>Tidigare lager GL-perioder (storbok och / eller organisationskodparameter beroende) för icke-huvudorganisationer</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>TR</LANGUAGE>
    <DESCRIPTION>Ana olmayan kuruluşlar için geçmiş envanter GL dönemleri (genel muhasebe ve / veya kuruluş kodu parametresine bağlı)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <DESCRIPTION>Past inventory GL periods (ledger and/or organization code parameter dependent) for non master organizations</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>ZHS</LANGUAGE>
    <DESCRIPTION>非主组织的过去库存GL期(分类账和/或组织代码参数而定)</DESCRIPTION>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: CAC Interface Error Summary -->
 <REPORTS_ROW>
  <GUID>38E04C5733C50561E0630100007F7D10</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>with inv_organizations as
-- Get the list of organizations, ledgers and operating units for Discrete and OPM organizations
        (select nvl(gl.short_name, gl.name) ledger,
                gl.ledger_id,
                to_number(hoi.org_information2) legal_entity_id,
                haou2.name operating_unit,
                haou2.organization_id operating_unit_id,
                mp.organization_code,
                mp.organization_id,
                mp.master_organization_id,
                mp.primary_cost_method,
                nvl(mp.process_enabled_flag, &apos;N&apos;) process_enabled_flag,
                nvl(mp.lcm_enabled_flag, &apos;N&apos;) lcm_enabled_flag,
                haou.date_to disable_date,
                gl.period_set_name,
                gl.accounted_period_type,
                gl.currency_code
         from   mtl_parameters mp,
                hr_organization_information hoi,
                hr_all_organization_units_vl haou, -- inv_organization_id
                hr_all_organization_units_vl haou2, -- operating unit
                gl_ledgers gl
         -- Avoid disabled inventory organizations
         where  sysdate                        &lt;  nvl(haou.date_to, sysdate +1)
         and    hoi.org_information_context     = &apos;Accounting Information&apos;
         and    hoi.organization_id             = mp.organization_id
         and    hoi.organization_id             = haou.organization_id   -- this gets the organization name
         and    haou2.organization_id           = to_number(hoi.org_information3) -- this gets the operating unit id
         and    gl.ledger_id                    = to_number(hoi.org_information1) -- get the ledger_id
         and    mp.organization_code in (select oav.organization_code from org_access_view oav where  oav.resp_application_id=fnd_global.resp_appl_id and oav.responsibility_id=fnd_global.resp_id) 
         and    1=1                             -- p_ledger
         and    2=2                             -- p_org_code
         and    3=3                             -- p_operating_unit
         -- Revision for Operating Unit and Ledger Controls and Parameters
         and    (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)))
         and    (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_OPERATING_UNIT_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or haou2.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))
         group by
                nvl(gl.short_name, gl.name),
                gl.ledger_id,
                to_number(hoi.org_information2),
                haou2.name, -- operating_unit
                haou2.organization_id, -- operating_unit_id
                mp.organization_code,
                mp.organization_id,
                mp.master_organization_id,
                mp.primary_cost_method,
                nvl(mp.process_enabled_flag, &apos;N&apos;), -- process_enabled_flag
                nvl(mp.lcm_enabled_flag, &apos;N&apos;), -- lcm_enabled_flag
                haou.date_to,
                gl.period_set_name,
                gl.accounted_period_type,
                gl.currency_code
        ), -- inv_organizations
gl_ou as
        (select nvl(gl.short_name, gl.name) ledger,
                gl.ledger_id,
                gl.period_set_name,
                gl.accounted_period_type,
                fspa.operating_unit,
                fspa.operating_unit_id,
                fspa.organization_code,
                fspa.organization_id,
                fspa.master_organization_id
         from   gl_ledgers gl,
                (select haou2.name operating_unit,
                        haou2.organization_id operating_unit_id,
                        fspa2.set_of_books_id,
                        mp.organization_id,
                        mp.organization_code,
                        mp.master_organization_id
                 from   hr_organization_information hoi,
                        hr_organization_information hoi2,
                        hr_all_organization_units_vl haou2,
                        financials_system_params_all fspa2,
                        mtl_parameters mp
                 where  haou2.organization_id           = fspa2.org_id 
                 and    haou2.organization_id           = hoi2.organization_id 
                 and    hoi.organization_id             = haou2.organization_id
                 and    hoi.org_information_context||&apos;&apos; = &apos;CLASS&apos;
                 and    hoi.org_information1            = &apos;OPERATING_UNIT&apos;
                 and    hoi.org_information2            = &apos;Y&apos; 
                 and    hoi2.organization_id            = haou2.organization_id
                 and    hoi2.org_information_context    = &apos;Operating Unit Information&apos;
                 and    haou2.organization_id           = hoi2.organization_id
                 and    fspa2.inventory_organization_id = mp.organization_id (+)
                 and    2=2                             -- p_organization_code
                 and    3=3                             -- p_operating_unit
                 -- Revision for Operating Unit Controls and Parameters
                 and    (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_OPERATING_UNIT_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or haou2.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))
                ) fspa
         where  gl.ledger_id                      = fspa.set_of_books_id
         -- Revision for Ledger Controls
         and    (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)))
         and    1=1                               -- p_ledger
        ) -- gl_ou

-----------------main query starts here--------------

-- +=============================================================================+
-- |               Accounts Payables Interface Error Reports                     |
-- +=============================================================================+

-- =======================================================
--  Payables Summary Interface Error Report
-- =======================================================
-- Get the invoices with an ORG_ID (operating unit)
select  fav.application_name Functional_Area,
        &apos;AP_Invoices_Interface&apos; Report_Interface,
        &apos;Number of A/P Invoices&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Supplier
        pv.vendor_name Column_Info,
        aii.status status_code,
        null Reject_Code_or_Error_Message,
        &apos;Rows in the AP_INVOICES_INTERFACE table&apos; Interface_Description
from    ap_invoices_interface aii,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        po_vendors pv,
        fnd_lookups fl, -- Supplier
        mfg_lookups ml -- Priority
-- Consolidated billing does not have an aii.org_id
where   gl_ou.operating_unit_id          = nvl(aii.org_id, regexp_replace(aii.attribute_category, &apos;[^0-9]+&apos;, &apos;&apos;))
-- Invoice_date and gl_date is not always populated
and     trunc(coalesce(aii.gl_date,aii.invoice_date,sysdate)) between gp.start_date and gp.end_date
and     fav.application_short_name       = &apos;SQLAP&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     gp.adjustment_period_flag        = &apos;N&apos;
and     aii.vendor_id                    = pv.vendor_id (+)
and     fl.lookup_type                   = &apos;BUSINESS_ENTITY&apos;
and     fl.lookup_code                   = &apos;AP_SUPPLIER&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
-- Only want unprocessed and erred out entries
and     nvl(aii.status, &apos;NULL&apos;)         &lt;&gt; (&apos;PROCESSED&apos;)
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;AP_Invoices_Interface&apos;, -- Report_Type
        &apos;Number of A/P Invoices&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        fl.meaning, -- Column_Type, Supplier
        pv.vendor_name, -- Column_Info
        aii.status,
        null, -- Reject_Code_or_Error_Message
        &apos;Rows in the AP_INVOICES_INTERFACE table&apos; -- Interface_Description
union all
-- =======================================================
--  Payables Summary Interface Rejections Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;AP_Interface_Rejections&apos; Interface_Report,
        &apos;Number of A/P Interface Rejections&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Supplier
        pv.vendor_name Column_Info,
        aii.status,
        air.reject_lookup_code Reject_Code_or_Error_Message,
        &apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Issue&apos; Interface_Description
from    ap_interface_rejections air,
        ap_invoices_interface aii,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_periods gp,
        gl_ou,
        po_vendors pv,
        fnd_lookups fl, -- Supplier
        mfg_lookups ml -- Priority
where   air.parent_table                 = &apos;AP_INVOICES_INTERFACE&apos;
and     air.parent_id                    = aii.invoice_id
-- Consolidated billing does not have an aii.org_id
and     gl_ou.operating_unit_id          = nvl(aii.org_id, regexp_replace(aii.attribute_category, &apos;[^0-9]+&apos;, &apos;&apos;))
-- Check for the gl date then the invoice date, else use sysdate
-- Invoice_date and gl_date is not always populated
and     trunc(coalesce(aii.gl_date,aii.invoice_date,sysdate)) between gp.start_date and gp.end_date
and     fav.application_short_name       = &apos;SQLAP&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     gp.adjustment_period_flag        = &apos;N&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     aii.vendor_id (+)                = pv.vendor_id
and     fl.lookup_type                   = &apos;BUSINESS_ENTITY&apos;
and     fl.lookup_code                   = &apos;AP_SUPPLIER&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
-- Only want unprocessed and erred out entries
and     nvl(aii.status, &apos;NULL&apos;)         &lt;&gt; (&apos;PROCESSED&apos;)
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;AP_Interface_Rejections&apos;, -- Interface_Report
        &apos;Number of A/P Interface Rejections&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        fl.meaning, -- Column_Type, Supplier
        pv.vendor_name, -- Column_Info
        aii.status,
        air.reject_lookup_code, -- Reject_Code_or_Error_Message
        &apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Issue&apos; -- Interface_Description
union all
-- =======================================================
--  Payables Summary Interface Rejections Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;AP_Interface_Rejections&apos; Interface_Report,
        &apos;Number of A/P Interface Rejections&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Supplier
        pv.vendor_name Column_Info,
        aii.status,
        air.reject_lookup_code Reject_Code_or_Error_Message,
        &apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Issue&apos; Interface_Description
from    ap_interface_rejections air,
        ap_invoices_interface aii,
        ap_invoice_lines_interface aili,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_periods gp,
        gl_ou,
        po_vendors pv,
        fnd_lookups fl, -- Supplier
        mfg_lookups ml -- Priority
where   air.parent_table                 = &apos;AP_INVOICE_LINES_INTERFACE&apos;
and     air.parent_id                    = aili.invoice_line_id
and     aii.invoice_id                   = aili.invoice_id
-- Consolidated billing does not have an aii.org_id
and     gl_ou.operating_unit_id          = nvl(aii.org_id, regexp_replace(aii.attribute_category, &apos;[^0-9]+&apos;, &apos;&apos;))
and     aii.invoice_id                   = aili.invoice_id (+)
-- Check for the gl date then the invoice date, else use sysdate
-- Invoice date and gl_date is not always populated
and     trunc(coalesce(aii.gl_date,aii.invoice_date,sysdate)) between gp.start_date and gp.end_date
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     gp.adjustment_period_flag        = &apos;N&apos;
and     aii.vendor_id (+)                = pv.vendor_id
and     fav.application_short_name       = &apos;SQLAP&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;BUSINESS_ENTITY&apos;
and     fl.lookup_code                   = &apos;AP_SUPPLIER&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
-- Only want unprocessed and erred out entries
and     nvl(aii.status, &apos;NULL&apos;)         &lt;&gt; (&apos;PROCESSED&apos;)
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;AP_Interface_Rejections&apos;, -- Interface_Report
        &apos;Number of A/P Interface Rejections&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        fl.meaning, -- Column_Type, Supplier
        pv.vendor_name, -- Column_Info
        aii.status,
        air.reject_lookup_code, -- Reject_Code_or_Error_Message
        &apos;Errors in the AP_INTERFACE_REJECTIONS table - Invoice Issue&apos; -- Interface_Description

-- +=============================================================================+
-- |            Accounts Receivables Interface Error Reports                     |
-- +=============================================================================+

union all
-- =======================================================
--  Receivables Summary Interface Errors Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;RA_Interface_Lines_All&apos; Interface_Report,
        &apos;Number of RA Invoice lines&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        fl1.meaning Column_Type, -- Ship Date
        to_char(trunc(ril.ship_date_actual), &apos;YYYY-MM-DD&apos;) Column_Info,
        fl2.meaning Status,
        rie.message_text Reject_Code_or_Error_Message,
        &apos;Rows in the RA_INTERFACE_LINES_ALL table&apos; Interface_Description
from    ra_interface_lines_all ril,
        ra_interface_errors_all rie,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        fnd_lookups fl1, -- Ship Date
        fnd_lookups fl2, -- Status
        mfg_lookups ml -- Priority
where   ril.org_id                       = gl_ou.operating_unit_id
-- Check for the rule date, then the gl date, then the transaction date
-- Invoice_date and gl_date not always populated
and     trunc(coalesce(ril.rule_start_date, ril.gl_date, ril.trx_date, sysdate)) between gp.start_date and gp.end_date
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     gp.adjustment_period_flag        = &apos;N&apos;
and     ril.interface_line_id            = rie.interface_line_id (+)
and     fl1.lookup_type                  = &apos;MSC_PQ_CP_EXCP&apos;
and     fl1.lookup_code                  = &apos;MSCX_CUST_SHIP_DATE&apos;
and     fl2.lookup_type                  = &apos;DEBRIEF_CONCURRENT_STATUS&apos;
and     fl2.lookup_code                  = decode(rie.message_text, null, &apos;UNPROCESSED&apos;, &apos;COMPLETED W/ERRORS&apos;) -- Unprocessed
and     fav.application_short_name       = &apos;AR&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;RA_Interface_Lines_All&apos;, -- Interface_Report
        &apos;Number of RA Invoice lines&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        fl1.meaning, -- Column_Type, Ship Date
        to_char(trunc(ril.ship_date_actual), &apos;YYYY-MM-DD&apos;), -- Column_Info
        fl2.meaning, -- Status
        rie.message_text, --  Reject_Code_or_Error_Message
        &apos;Records in the RA_INTERFACE_LINES_ALL table&apos; -- Interface_Description
union all
-- =======================================================
--  Receivables Summary Interface Errors Only Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;RA_Interface_Errors_All&apos; Interface_Report,
        &apos;Number of RA Invoice Errors&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        fl1.meaning Column_Type, -- Customer Name
        hz.party_name Column_Info,
        fl2.meaning Status,
        rie.message_text Reject_Code_or_Error_Message,
        &apos;Errors in the RA_INTERFACE_ERRORS_ALL table&apos; Interface_Description
from    ra_interface_lines_all ril,
        ra_interface_errors_all rie,
        hz_cust_accounts_all hca,
        hz_parties hz,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        fnd_lookups fl1, -- Customer Name
        fnd_lookups fl2, -- Status
        mfg_lookups ml -- Priority
where   ril.org_id                       = gl_ou.operating_unit_id
-- Check for the rule date, then the gl date, then the transaction date
-- Invoice_date and gl_date not always populated
and     trunc(coalesce(ril.rule_start_date, ril.gl_date, ril.trx_date, sysdate)) between gp.start_date and gp.end_date
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     gp.adjustment_period_flag        = &apos;N&apos;
and     ril.interface_line_id            = rie.interface_line_id (+)
and     hca.cust_account_id              = ril.orig_system_bill_customer_id
and     hca.party_id                     = hz.party_id
and     hca.org_id                       = ril.org_id
and     fav.application_short_name       = &apos;AR&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl1.lookup_type                  = &apos;MSC_PQ_CP_EXCP&apos;
and     fl1.lookup_code                  = &apos;CUSTOMER_NAME&apos;
and     fl2.lookup_type                  = &apos;DEBRIEF_CONCURRENT_STATUS&apos;
and     fl2.lookup_code                  = decode(rie.message_text, null, &apos;UNPROCESSED&apos;, &apos;COMPLETED W/ERRORS&apos;) -- Unprocessed
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;RA_Interface_Errors_All&apos;, -- Interface_Report
        &apos;Number of RA Invoice Errors&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        fl1.meaning, --Column_Type, Customer Name
        hz.party_name, -- Column_Info
        fl2.meaning, -- Status
        rie.message_text, -- Reject_Code_or_Error_Message
        &apos;Errors in the RA_INTERFACE_ERRORS_ALL table&apos; -- Interface_Description

-- +=============================================================================+
-- |                 Cash Management Interface Error Reports                     |
-- +=============================================================================+

union all
-- =======================================================
--  Cash Management Summary Interface Error Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;CE_Header_Interface_Errors&apos; Interface_Report,
        &apos;Number of Cash Mgmt Interface Records by Bank&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        extract(year from chie.creation_date) Period_Year,
        null Period_Number, 
        to_char(chie.creation_date,&apos;MON-YY&apos;), -- Period_Name
        null Ledger,
        null Operating_Unit,
        null Operating_Unit_Id,
        null Org_Code,
        null Inv_Organization_Id,
        fl1.meaning Column_Type, -- Bank Name
        (select max(hp.party_name)
         from   ce_bank_accounts cba,
                hz_parties hp
         where  hp.party_id          = cba.bank_id
         and    cba.bank_account_num = chie.bank_account_num) Column_Info,
        fl2.meaning Status,
        chie.message_name Reject_Code_or_Error_Message,
        &apos;Rows in the CE_HEADER_INTERFACE_ERRORS table&apos; Interface_Description
from    ce_header_interface_errors chie,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl1, -- Bank Name
        fnd_lookups fl2, -- Status
        mfg_lookups ml -- Priority
where   fav.application_short_name       = &apos;CE&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl1.lookup_type                  = &apos;JA_CN_XML_TAGS&apos;
and     fl1.lookup_code                  = &apos;BANK_NAME&apos;
and     fl2.lookup_type                  = &apos;LOG_TYPE_CODE&apos;
and     fl2.lookup_code                  = &apos;E&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     5=5                              -- p_functional_area
and     8=8                              -- p_period_year_for_cash_management
group by
        fav.application_name, -- Functional_Area
        &apos;CE_Header_Interface_Errors&apos;, -- Interface_Report
        &apos;Number of Cash Mgmt Interface Records by Bank&apos;, -- Report_Title
        ml.meaning, -- Priority
        extract(year from chie.creation_date), -- Period_Year
        null, -- Period_Number 
        to_char(chie.creation_date,&apos;MON-YY&apos;), -- Period_Name
        null, -- Ledger
        null, -- Operating_Unit
        null, -- Operating_Unit_Id
        null, -- Org_Code
        null, -- Inv_Organization_Id
        fl1.meaning, -- Column_Type, Bank Name
        chie.bank_account_num, -- Column_Info
        fl2.meaning, -- Status
        chie.message_name, -- Reject_Code_or_Error_Message
        &apos;Rows in the CE_HEADER_INTERFACE_ERRORS table&apos; -- Interface_Description

-- +=============================================================================+
-- |                       General Ledger Interface Reports                      |
-- +=============================================================================+

union all
-- =======================================================
--  General Ledger Summary Interface Report
-- =======================================================
-- With Ledger Ids
select  fav.application_name Functional_Area,
        &apos;GL_Interface&apos; Interface_Report,
        &apos;Number of G/L Lines by Ledger&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        nvl(gl.short_name, gl.name) Ledger,
        null Operating_Unit,
        null Operating_Unit_Id,
        null Org_Code,
        null Inv_Organization_Id,
        fl.meaning Column_Type, -- Journal Source
        gi.user_je_source_name Column_Info,
        gi.status Status,
        null Reject_Code_or_Error_Message,
        &apos;Rows in the GL_INTERFACE table&apos; Interface_Description
from    gl_interface gi,
        gl_periods gp,
        gl_ledgers gl,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl, -- Journal Source
        mfg_lookups ml -- Priority
where   gl.ledger_id                     = case
                                              -- Payroll Journals
                                              when gi.ledger_id = -1 then gi.set_of_books_id
                                              -- Non-Payroll Journals
                                              when gi.ledger_id &gt; -1 then gi.ledger_id
                                              else gi.ledger_id
                                           end
and     nvl(gi.accounting_date, gi.transaction_date) between gp.start_date and gp.end_date
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl.period_set_name
and     gp.period_type                   = gl.accounted_period_type
and     fav.application_short_name       = &apos;SQLGL&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;JGSLAJNLTP_RPT_SORT_PARAMS&apos;
and     fl.lookup_code                   = &apos;JE_SOURCE_NAME&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
-- Revision for Ledger Security Controls
and     (nvl(fnd_profile.value(&apos;XXEN_REPORT_USE_LEDGER_SECURITY&apos;),&apos;N&apos;)=&apos;N&apos; or gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)))
and     1=1                              -- p_ledger
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;GL_Interface&apos;, -- Interface_Report
        &apos;Number of G/L Lines by Ledger&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num,
        gp.period_name,
        nvl(gl.short_name, gl.name),
        null, -- Operating_Unit
        null, -- Operating_Unit_Id
        null, -- Org_Code
        null, -- Inv_Organization_Id
        fl.meaning, -- Column_Type, Journal Source
        gi.user_je_source_name, -- Column_Info
        gi.status, -- Status
        null, -- Reject_Code_or_Error_Message
        &apos;Rows in the GL_INTERFACE table&apos; -- Interface_Description
union all
-- =======================================================
--  General Ledger Summary Interface Report
-- =======================================================
-- Missing Ledger Ids
select  fav.application_name Functional_Area,
        &apos;GL_Interface&apos; Interface_Report,
        &apos;Number of G/L Lines With No Ledger Id&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        extract(year from nvl(gi.accounting_date, gi.transaction_date)) Period_Year,
        null Period_Number, 
        to_char(nvl(gi.accounting_date, gi.transaction_date),&apos;MON-YY&apos;) Period_Name,
        null Ledger,
        null Operating_Unit,
        null Operating_Unit_Id,
        null Org_Code,
        null Inv_Organization_Id,
        fl.meaning Column_Type, -- Journal Source
        gi.user_je_source_name Column_Info,
        gi.status Status,
        &apos;Missing Ledger Id&apos; Reject_Code_or_Error_Message,
        &apos;Rows in the GL_INTERFACE table&apos; Interface_Description
from    gl_interface gi,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl, -- Journal Source
        mfg_lookups ml -- Priority
where   (gi.ledger_id = -1 and gi.set_of_books_id is null)
and     fav.application_short_name       = &apos;SQLGL&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;JGSLAJNLTP_RPT_SORT_PARAMS&apos;
and     fl.lookup_code                   = &apos;JE_SOURCE_NAME&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     5=5                              -- p_functional_area
and     7=7                              -- p_period_year_for_gl
group by
        fav.application_name, -- Functional_Area
        &apos;GL_Interface&apos;, -- Interface_Report
        &apos;Number of G/L Lines With No Ledger Id&apos;, -- Report_Title
        ml.meaning, -- Priority
        extract(year from nvl(gi.accounting_date, gi.transaction_date)), -- Period_Year
        null, -- Period_Number
        to_char(nvl(gi.accounting_date, gi.transaction_date),&apos;MON-YY&apos;), -- Period_Name
        null, -- Ledger
        null, -- Operating_Unit
        null, -- Operating_Unit_Id
        null, -- Org_Code
        null, -- Inv_Organization_Id
        fl.meaning, -- Column_Type, Journal Source
        gi.user_je_source_name, -- Column_Info
        gi.status, -- Status
        &apos;Missing Ledger Id&apos;, -- Reject_Code_or_Error_Message
        &apos;Rows in the GL_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |                         Inventory Interface Reports                         |
-- +=============================================================================+

union all
-- =======================================================
--  Unprocessed Material Errors - MTL_Material_Transactions_Temp
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;MTL_Material_Transactions_Temp&apos; Interface_Report,
        &apos;Unprocessed Material Errors&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        mtt.transaction_type_name Column_Info,
        mmtt.process_flag Status,
        mmtt.error_code Reject_Code_or_Error_Message,
        &apos;Rows have Errored in the Material Transactions Temp table&apos; Interface_Description
from    mtl_material_transactions_temp mmtt,
        mtl_transaction_types mtt,
        org_acct_periods oap,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2  -- Transaction Type
where   mmtt.process_flag                = &apos;E&apos;
and     mmtt.organization_id             = inv_orgs.organization_id
and     oap.acct_period_id               = mmtt.acct_period_id
and     trunc(mmtt.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(oap.period_start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(oap.schedule_close_date,inv_orgs.legal_entity_id)
and     oap.organization_id              = inv_orgs.organization_id
and     oap.period_set_name              = inv_orgs.period_set_name
and     mtt.transaction_type_id          = mmtt.transaction_type_id (+)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = oap.period_set_name
and     gp.period_name                   = oap.period_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;MTL_Material_Transactions_Temp&apos;, -- Interface_Report
        &apos;Unprocessed Material Errors&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        mtt.transaction_type_name, -- Column_Info,
        mmtt.process_flag, -- Status
        mmtt.error_code, -- Reject_Code_or_Error_Message
        &apos;Rows have Errored in the Material Transactions Temp table&apos; -- Interface_Description
union all
-- =======================================================
--  Unprocessed Locked Material - MTL_Material_Transactions_Temp
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;MTL_Material_Transactions_Temp&apos; Interface_Report,
        &apos;Unprocessed Material Transactions With Locked Records&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        mtt.transaction_type_name Column_Info,
        mmtt.process_flag Status,
        mmtt.error_code Reject_Code_or_Error_Message,
        &apos;Rows have their records locked in the MTL_MATERIAL_TRANSACTIONS_TEMP table&apos; Interface_Description
from    mtl_material_transactions_temp mmtt,
        mtl_transaction_types mtt,
        org_acct_periods oap,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2  -- Transaction Type
where   (nvl(mmtt.lock_flag,&apos;N&apos;) = &apos;Y&apos; or nvl(mmtt.lock_flag,&apos;N&apos;) = &apos;1&apos;)
and     mmtt.organization_id             = inv_orgs.organization_id
and     oap.acct_period_id               = mmtt.acct_period_id
and     trunc(mmtt.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(oap.period_start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(oap.schedule_close_date,inv_orgs.legal_entity_id)
and     oap.organization_id              = inv_orgs.organization_id
and     oap.period_set_name              = inv_orgs.period_set_name
and     mtt.transaction_type_id          = mmtt.transaction_type_id (+)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = oap.period_set_name
and     gp.period_name                   = oap.period_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;MTL_Material_Transactions_Temp&apos;, -- Interface_Report
        &apos;Unprocessed Material Transactions With Locked Records&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        mtt.transaction_type_name, -- Column_Info,
        mmtt.process_flag, -- Status
        mmtt.error_code, -- Reject_Code_or_Error_Message
        &apos;Rows have their records locked in the MTL_MATERIAL_TRANSACTIONS_TEMP table&apos; -- Interface_Description
union all
-- =======================================================
--  Pending Material - MTL_Transactions_Interface
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;MTL_Transactions_Interface&apos; Interface_Report,
        &apos;Pending Material Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        mtt.transaction_type_name Column_Info,
        decode(mti.process_flag,
                1, &apos;1 - Ready&apos;,
                2, &apos;2 - Not Ready&apos;,
                3, &apos;3 - Error&apos;
              ) Status,
        mti.error_code Reject_Code_or_Error_Message,
        &apos;Rows in the Material Transaction Interface&apos; Interface_Description
from    mtl_transactions_interface mti,
        mtl_transaction_types mtt,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2  -- Transaction Type
where   mti.transaction_type_id          = mtt.transaction_type_id (+)
and     mti.organization_id              = inv_orgs.organization_id
-- Check for the transaction date as the Period Name is not always populated
and     trunc(nvl(mti.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
-- Revision for version 1.44
and     ml1.lookup_code                  = 3 -- Resolution Recommended
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;MTL_Transactions_Interface Errors&apos;, -- Interface_Report
        &apos;Pending Material Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        mtt.transaction_type_name, -- Column_Info,
        decode(mti.process_flag,
                1, &apos;1 - Ready&apos;,
                2, &apos;2 - Not Ready&apos;,
                3, &apos;3 - Error&apos;
              ), -- Status
        mti.error_code, -- Reject_Code_or_Error_Message
        &apos;Rows in the Material Transaction Interface&apos; -- Interface_Description
union all
-- =======================================================
--  Pending Locked Material - MTL_Transactions_Interface Errors
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;MTL_Transactions_Interface Errors&apos; Interface_Report,
        &apos;Pending Material Transactions With Locked Records&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        mtt.transaction_type_name Column_Info,
        -- mti.transaction_type_id Transaction_Type_Id,
        to_char(mti.process_flag) Status,
        -- mti.transaction_date Transaction_Date,
        mti.error_code Reject_Code_or_Error_Message,
        -- mti.error_explanation Error_Explanation,
        &apos;Rows have their records locked&apos; Interface_Description
from    mtl_transactions_interface mti,
        mtl_transaction_types mtt,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2  -- Transaction Type
where   mti.lock_flag                    = 1
and     mti.organization_id              = inv_orgs.organization_id
and     mti.transaction_type_id          = mtt.transaction_type_id
-- Check for the transaction date as the Period Name is not always populated
and     trunc(nvl(mti.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;MTL_Transactions_Interface Errors&apos;, -- Interface_Report
        &apos;Pending Material Transactions With Locked Records&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        mtt.transaction_type_name, -- Column_Info
        -- mti.transaction_type_id, -- Transaction_Type_Id
        to_char(mti.process_flag), -- Status
        -- mti.transaction_date, -- Transaction_Date
        mti.error_code, -- Reject_Code_or_Error_Message
        -- mti.error_explanation, -- Error_Explanation
        &apos;Rows have their records locked&apos; -- Interface_Description

-- +=============================================================================+
-- |                         Inventory/WSM Cost Reports                          |
-- +=============================================================================+

union all
-- =======================================================
--  Uncosted Material - MTL_Material_Transactions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;MTL_Material_Transactions&apos; Interface_Report,
        &apos;Uncosted Material Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        mtt.transaction_type_name Column_Info,
        mmt.costed_flag Status,
        mmt.error_code Reject_Code_or_Error_Message,
        &apos;Rows have not been costed, check the Cost Processor&apos;  Interface_Description
from    mtl_material_transactions mmt,
        mtl_transaction_types mtt,
        org_acct_periods oap,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2  -- Transaction Type
where   mmt.costed_flag                  = &apos;N&apos;
and     mmt.transaction_type_id          = mtt.transaction_type_id
and     oap.acct_period_id               = mmt.acct_period_id
and     trunc(mmt.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(oap.period_start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(oap.schedule_close_date,inv_orgs.legal_entity_id)
and     oap.organization_id              = inv_orgs.organization_id
and     oap.period_set_name              = inv_orgs.period_set_name
and     inv_orgs.organization_id         = nvl(mmt.transfer_organization_id, mmt.organization_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = oap.period_set_name
and     gp.period_name                   = oap.period_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;CST&apos;
-- Only report installed applications, but CST is not installed, switch to INV
and     fpi.application_id               = 401 -- INV
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Not applicable for Process Manufacturing
and     inv_orgs.process_enabled_flag    = &apos;N&apos;
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;MTL_Material_Transactions&apos;, -- Interface_Report
        &apos;Uncosted Material Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type -- Transaction Type
        mtt.transaction_type_name, -- Column_Info
        mmt.costed_flag, -- Status
        mmt.error_code, -- Reject_Code_or_Error_Message
        &apos;Rows have not been costed, check the Cost Processor&apos; -- Interface_Description
union all
-- =======================================================
--  Uncosted WSM (WIP Split Merge Transactions)
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WSM_Split_Merge_Transactions&apos; Interface_Report,
        &apos;Uncosted WIP Split Merge Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        ml3.meaning Column_Info,
        ml4.meaning Status,
        wsmt.error_message Reject_Code_or_Error_Message,
        &apos;Rows have not been costed, check the Cost Processor&apos;  Interface_Description
from    wsm_split_merge_transactions wsmt,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3, -- WSM WIP Lot Transaction Type
        mfg_lookups ml4  -- Status
where   wsmt.costed                     &lt;&gt; 4
and     wsmt.organization_id             = inv_orgs.organization_id
-- Check for the transaction date
and     trunc(nvl(wsmt.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;WSM&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Not applicable for Process Manufacturing
and     inv_orgs.process_enabled_flag    = &apos;N&apos;
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;WSM_WIP_LOT_TXN_TYPE&apos;
and     ml3.lookup_code                  = to_char(wsmt.transaction_type_id)
and     ml4.lookup_type                  = &apos;WIP_PROCESS_STATUS&apos;
and     ml4.lookup_code                  = wsmt.status
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSM_Split_Merge_Transactions&apos;, -- Interface_Report
        &apos;Uncosted WIP Split Merge Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        ml3.meaning, -- Column_Info
        ml4.meaning, -- Status
        wsmt.error_message, -- Reject_Code_or_Error_Message,
        &apos;Rows have not been costed, check the Cost Processor&apos; -- Interface_Description

-- +=============================================================================+
-- |                   Landed Cost Mgmt (INL) Cost Reports                       |
-- +=============================================================================+

union all
-- =======================================================
--  Pending Landed Cost Management (INL) Interface
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;CST_Lc_Adj_Interface&apos; Interface_Report,
        &apos;Pending LCM Interface&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Receiving Transaction Type
        flvv.meaning Column_Info,
        ml3.meaning Status, -- Process Status
        claie.error_message Reject_Code_or_Error_Message,
        &apos;Rows in the CST_LC_ADJ_INTERFACE table&apos; -- Interface_Description
from    cst_lc_adj_interface clai,
        cst_lc_adj_interface_errors claie,
        rcv_transactions rt,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookup_values_vl flvv, -- Receiving Transaction Type
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3  -- Process Status
where   clai.organization_id             = inv_orgs.organization_id
and     inv_orgs.lcm_enabled_flag        = &apos;Y&apos;
and     clai.transaction_id (+)          = claie.transaction_id
and     rt.transaction_id                = clai.rcv_transaction_id
-- Check for the transaction date
and     trunc(clai.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
-- Revision for version 1.43
-- and     fav.application_short_name       = &apos;CST&apos;
and     fav.application_short_name       = &apos;INL&apos;
and     fpi.application_id               = fav.application_id
-- End revision for version 1.43
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     flvv.lookup_type                 = &apos;RCV TRANSACTION TYPE&apos;
and     flvv.lookup_code                 = rt.transaction_type
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;LANDED_COST_ADJ_PROCESS_STATUS&apos;
and     ml3.lookup_code                  = clai.process_status
and     4=4                              -- p_period_name, period_year
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;CST_Lc_Adj_Interface&apos;, -- Report_Type
        &apos;Pending LCM Interface&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Receiving Transaction Type
        flvv.meaning, -- Column_Info
        ml3.meaning, -- Status, Process Status
        claie.error_message, -- Reject_Code_or_Error_Message
        &apos;Rows in the CST_LC_ADJ_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |                        Manufacturing (WIP) Reports                          |
-- +=============================================================================+

union all
-- =======================================================
--  Pending Shop Floor Move Transactions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WIP_Move_Txn_Interface&apos; Interface_Report,
        &apos;Pending Shop Floor Move Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        ml3.meaning Column_Info,
        ml4.meaning Status,
        wtie.error_message Reject_Code_or_Error_Message,
        &apos;Rows in the WIP_MOVE_TXN_INTERFACE table&apos; -- Interface_Description
from    wip_move_txn_interface wmti,
        wip_txn_interface_errors wtie,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3, -- WIP Move Transaction Type
        mfg_lookups ml4  -- Status
where   wmti.organization_id             = inv_orgs.organization_id
and     wmti.transaction_id              = wtie.transaction_id (+)
-- Check for the transaction date
and     trunc(nvl(wmti.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;WIP&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 3 -- Resolution Recommended
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;WIP_MOVE_TRANSACTION_TYPE&apos;
and     ml3.lookup_code                  = to_char(wmti.transaction_type)
and     ml4.lookup_type                  = &apos;WIP_PROCESS_STATUS&apos;
and     ml4.lookup_code                  = to_char(wmti.process_status)
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WIP_Move_Txn_Interface&apos;, -- Report_Typ
        &apos;Pending Shop Floor Move Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        ml3.meaning, -- Column_Info
        ml4.meaning, -- Status
        wtie.error_message, -- Reject_Code_or_Error_Message,
        &apos;Rows in the WIP_MOVE_TXN_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |          Manufacturing (OSFM) Pending WSM Split Merge Transactions          |
-- +=============================================================================+

union all
-- =======================================================
-- Pending WSM Interface (WIP Split Merge) Transaction Reports
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WSM_Split_Merge_Txn_Interface&apos; Interface_Report,
        &apos;Pending WIP WSM Split Merge Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        ml3.meaning Column_Info,
        ml4.meaning Status,
        wsmti.error_message Reject_Code_or_Error_Message,
        &apos;Rows in the WSM_SPLIT_MERGE_TXN_INTERFACE table&apos; Interface_Description
from    wsm_split_merge_txn_interface wsmti,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3, -- WSM WIP Lot Transaction Type
        mfg_lookups ml4  -- Status
where   wsmti.process_status            &lt;&gt; 4
and     wsmti.organization_id            = inv_orgs.organization_id
-- Check for the transaction date as the Period Name is not always populated
and     trunc(nvl(wsmti.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;WSM&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;WSM_WIP_LOT_TXN_TYPE&apos;
and     ml3.lookup_code                  = to_char(wsmti.transaction_type_id)
and     ml4.lookup_type                  = &apos;WIP_PROCESS_STATUS&apos;
and     ml4.lookup_code                  = wsmti.process_status
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSM_Split_Merge_Txn_Interface&apos;, -- Interface_Report
        &apos;Pending WIP WSM Split Merge Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        ml3.meaning, -- Column_Info
        ml4.meaning, -- Process Status
        wsmti.error_message, -- Reject_Code_or_Error_Message
        &apos;Rows in the WSM_SPLIT_MERGE_TXN_INTERFACE table&apos; -- Interface_Description
union all
select  fav.application_name Functional_Area,
        &apos;WSM_Lot_Split_Merges_Interface&apos; Interface_Report,
        &apos;Pending WIP WSM Lot Split Merge Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        ml3.meaning Column_Info,
        ml4.meaning Status,
        wlsmi.error_message Reject_Code_or_Error_Message,
        &apos;Rows in the WSM_LOT_SPLIT_MERGES_INTERFACE table&apos;  Interface_Description
from    wsm_lot_split_merges_interface wlsmi,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3, -- WSM WIP Lot Transaction Type
        mfg_lookups ml4  -- Status
where   wlsmi.process_status            &lt;&gt; 4
and     wlsmi.organization_id            = inv_orgs.organization_id
-- Check for the transaction date as the Period Name is not always populated
and     trunc(nvl(wlsmi.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;WSM&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;WSM_WIP_LOT_TXN_TYPE&apos;
and     ml3.lookup_code                  = to_char(wlsmi.transaction_type_id)
and     ml4.lookup_type                  = &apos;WIP_PROCESS_STATUS&apos;
and     ml4.lookup_code                  = wlsmi.process_status
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSM_Lot_Split_Merges_Interface&apos;, -- Interface_Report
        &apos;Pending WIP WSM Lot Split Merge Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        ml3.meaning, -- Column_Info
        ml4.meaning, -- Process Status
        wlsmi.error_message, -- Reject_Code_or_Error_Message
        &apos;Rows in the WSM_LOT_SPLIT_MERGES_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |                      Manufacturing Cost Reports                             |
-- +=============================================================================+

union all
-- =======================================================
-- Pending WIP Costing - WIP_COST_TXN_INTERFACE Report
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WIP_Cost_Txn_Interface&apos; Interface_Report,
        &apos;Pending WIP Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        ml3.meaning Column_Info,
        ml4.meaning Status,
        fl.meaning Reject_Code_or_Error_Message,
        &apos;Rows in the WIP_COST_TXN_INTERFACE table&apos; Interface_Description
from    wip_cost_txn_interface wcti,
        org_acct_periods oap,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        mfg_lookups ml3, -- WIP Transaction Type
        mfg_lookups ml4, -- Process Status
        fnd_lookups fl   -- Reject_Code_or_Error_Message, Not Available
where   wcti.organization_id             = inv_orgs.organization_id
and     oap.acct_period_id               = wcti.acct_period_id
and     trunc(nvl(wcti.transaction_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(oap.period_start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(oap.schedule_close_date,inv_orgs.legal_entity_id)
and     oap.organization_id              = inv_orgs.organization_id
and     oap.period_set_name              = inv_orgs.period_set_name
and     gp.adjustment_period_flag        = &apos;N&apos;
and     gp.period_name                   = oap.period_name
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = oap.period_set_name
and     gp.period_name                   = oap.period_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;CST&apos;
-- Only report installed applications, but CST is not installed, switch to WIP
and     fpi.application_id               = 706 -- WIP
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Not applicable for Process Manufacturing
and     inv_orgs.process_enabled_flag    = &apos;N&apos;
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 2 -- Resolution Required
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     ml3.lookup_type                  = &apos;WIP_TRANSACTION_TYPE&apos;
and     ml3.lookup_code                  = to_char(wcti.transaction_type)
and     ml4.lookup_code                  = wcti.process_status
and     ml4.lookup_type                  = &apos;WIP_PROCESS_STATUS&apos;
and     fl.lookup_code                   = &apos;NOT AVAIL&apos;
and     fl.lookup_type                   = &apos;JTF_OUTCOME_CODE&apos;
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WIP_Cost_Txn_Interface&apos;, -- Interface_Report
        &apos;Pending WIP Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        ml3.meaning, -- Column_Info
        ml4.meaning, -- Process Status
        fl.meaning,  -- Reject_Code_or_Error_Message
        &apos;Rows in the WIP_COST_TXN_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |                             Project Reports                                 |
-- +=============================================================================+

union all
-- =======================================================
-- Pending Project Interface Transactions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;PA_Transaction_Interface_All&apos; Interface_Report,
        &apos;Pending Project Transactions&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        flv.meaning Column_Type, -- Transaction Source
        pti.transaction_source Column_Info,
        pti.transaction_status_code Status_Code,
        pl.meaning Reject_Code_or_Error_Message,
        &apos;Rows in the PA_Transaction_Interface_All table&apos; Interface_Description
from    pa_transaction_interface_all pti,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        fnd_lookup_values_vl flv, -- Transaction Source
        mfg_lookups ml, -- Priority
        pa_lookups pl -- PA Reject Error Messages
where   gl_ou.operating_unit_id          = pti.org_id
-- pti.expenditure_item_date is a required column
and     trunc(pti.expenditure_item_date) between gp.start_date and gp.end_date
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     fav.application_short_name       = &apos;PA&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     flv.lookup_type                  = &apos;FC_VIEW_BY&apos;
and     flv.lookup_code                  = &apos;TRX&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     pl.lookup_type (+)               = &apos;TRANSACTION REJECTION REASON&apos;
and     pl.lookup_code (+)               = pti.transaction_rejection_code
-- Only want unprocessed and erred out entries
and     pti.transaction_status_code     &lt;&gt; &apos;P&apos; -- &apos;P&apos; for processed
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;PA_Transaction_Interface_All&apos;, -- Interface_Report
        &apos;Pending Project Transactions&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        flv.meaning, -- Column_Type, Transaction Source
        pti.transaction_source, -- Column_Info
        pti.transaction_status_code, -- Status_Code
        pl.meaning, -- Reject_Code_or_Error_Message
        &apos;Rows in the PA_Transaction_Interface_All table&apos; -- Interface_Description

-- +=============================================================================+
-- |                  Purchasing and Requisition Reports                         |
-- +=============================================================================+

union all
-- =======================================================
-- Pending PO Requisitions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;PO_Requisitions_Interface_All&apos; Interface_Report,
        &apos;Number of PO Requisitions&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        nvl(inv_orgs.organization_code, gl_ou.organization_code) Org_Code,
        nvl(inv_orgs.organization_id, gl_ou.organization_id) Inv_Organization_Id,
        &apos;Interface Source&apos; Column_Type,
        pri.interface_source_code Column_Info,
        pri.process_flag Status_Code,
        pie.error_message Reject_Code_or_Error_Message,
        &apos;Rows in the PO_REQUISITIONS_INTERFACE_ALL table&apos; Interface_Description
from    po_requisitions_interface_all pri,
        (select pie.interface_transaction_id,
                pie.table_name,
                pie.error_message
         from   po_interface_errors pie
         where  pie.table_name           = &apos;PO_REQUISITIONS_INTERFACE&apos;
        ) pie,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        inv_organizations inv_orgs,
        mfg_lookups ml -- Priority
where   gl_ou.operating_unit_id          = pri.org_id
and     pie.interface_transaction_id (+) = pri.transaction_id
and     inv_orgs.organization_id         = pri.destination_organization_id
-- pti.need_by_date is an optional column
and     trunc(nvl(pri.need_by_date, pri.creation_date)) between gp.start_date and gp.end_date
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     fav.application_short_name       = &apos;PO&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 3 -- Resolution Recommended
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;PO_Requisitions_Interface_All&apos;, -- Interface_Report
        &apos;Number of PO Requisitions&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        nvl(inv_orgs.organization_code, gl_ou.organization_code), -- Org_Code
        nvl(inv_orgs.organization_id, gl_ou.organization_id), -- Inv_Organization_Id
        &apos;Interface Source&apos;, -- Column_Type
        pri.interface_source_code, -- Column_Info
        pri.process_flag, -- Status_Code
        pie.error_message, -- Reject_Code_or_Error_Message
        &apos;Rows in the PO_REQUISITIONS_INTERFACE_ALL table&apos; -- Interface_Description

-- +=============================================================================+
-- |                              Receiving Reports                              |
-- +=============================================================================+

union all
-- =======================================================
-- Pending Expense Receiving Report
-- =======================================================
-- Get the Expense Receipts with an inventory organization id
select  flvv.meaning Functional_Area,
        &apos;RCV_Transactions_Interface&apos; Interface_Report,
        &apos;Pending Expense Receiving Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        rti.transaction_type Column_Info,
        rti.processing_status_code Status_Code,
        rti.transaction_status_code Reject_Code_or_Error_Message,
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; Interface_Description
from    rcv_transactions_interface rti,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        inv_organizations inv_orgs,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        fnd_lookup_values_vl flvv -- Receiving
where   rti.to_organization_id is not null
and     rti.to_organization_id           = inv_orgs.organization_id
-- rti.transaction_date is a required column
and     trunc(rti.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;PO&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Check for Expense Destinations
and exists 
        (-- ==============================================
         -- Case I  - EXPENSE destination_type_code exists
         --         - in rcv_transactions  
         -- ==============================================
         select &apos;x&apos; 
         from    rcv_transactions_interface rt2
         where   rt2.interface_transaction_id = rti.interface_transaction_id
         and     rt2.destination_type_code    = &apos;EXPENSE&apos;
         union all
         -- ==============================================
         -- Case II  - PO Distribution ID exists but the
         --          - but destination_type_code is null
         --          - or RECEIVING in rcv_transactions
         -- ==============================================
         select  &apos;x&apos;
         from    po_distributions_all pod
         where   pod.po_distribution_id       = rti.po_distribution_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_distribution_id is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;) 
         union all
         -- ==============================================
         -- Case III - PO Header ID, PO Line ID exist, but
         --          - the Line Location Id may or may not
         --          - exist
         -- ==============================================
         select  &apos;x&apos;
         from    po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   pol.po_line_id               = rti.po_line_id
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_distribution_id is null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         union all
         -- ==============================================
         -- Case IV  - PO Number and PO Line Number exist
         --          - but the PO Header ID does not
         -- ==============================================
         select  &apos;x&apos;
         from    po_headers_all poh,
                 po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   poh.segment1                 = rti.document_num      -- PO Number
         and     pol.line_num                 = rti.document_line_num -- PO Line Number
         and     poh.po_header_id             = pol.po_header_id
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_header_id is null
         and     rti.document_num is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
        )
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 3 -- Resolution Recommended
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     flvv.lookup_type                 = &apos;RCV DESTINATION TYPE&apos;
and     flvv.lookup_code                 = &apos;RECEIVING&apos;
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        flvv.meaning, -- Functional_Area
        &apos;RCV_Transactions_Interface&apos;, -- Interface_Report
        &apos;Pending Expense Receiving Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        rti.transaction_type, -- Column_Info
        rti.processing_status_code,
        rti.transaction_status_code, -- Reject_Code_or_Error_Message
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; -- Interface_Description
union all
-- =======================================================
-- Pending Expense Receiving Report
-- =======================================================
-- Get the Expense Receipts without an inventory organization id
select  flvv.meaning Functional_Area,
        &apos;RCV_Transactions_Interface&apos; Interface_Report,
        &apos;Pending Expense Receiving Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        gl_ou.ledger Ledger,
        gl_ou.operating_unit Operating_Unit,
        gl_ou.operating_unit_id Operating_Unit_Id,
        gl_ou.organization_code Org_Code,
        gl_ou.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        rti.transaction_type Column_Info,
        rti.processing_status_code Status_Code,
        rti.transaction_status_code Reject_Code_or_Error_Message,
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; Interface_Description
from    rcv_transactions_interface rti,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        gl_ou,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        fnd_lookup_values_vl flvv -- Receiving
where   rti.to_organization_id is  null
and     rti.org_id                       = gl_ou.operating_unit_id
-- rti.transaction_date is a required column
and     trunc(rti.transaction_date) between gp.start_date and gp.end_date
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = gl_ou.period_set_name
and     gp.period_type                   = gl_ou.accounted_period_type
and     fav.application_short_name       = &apos;PO&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Check for Expense Destinations
and exists 
        (-- ==============================================
         -- Case I  - EXPENSE destination_type_code exists
         --         - in rcv_transactions  
         -- ==============================================
         select &apos;x&apos; 
         from    rcv_transactions_interface rt2
         where   rt2.interface_transaction_id = rti.interface_transaction_id
         and     rt2.destination_type_code    = &apos;EXPENSE&apos;
         union all
         -- ==============================================
         -- Case II  - PO Distribution ID exists but the
         --          - but destination_type_code is null
         --          - or RECEIVING in rcv_transactions
         -- ==============================================
         select  &apos;x&apos;
         from    po_distributions_all pod
         where   pod.po_distribution_id       = rti.po_distribution_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_distribution_id is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;) 
         union all
         -- ==============================================
         -- Case III - PO Header ID, PO Line ID exist, but
         --          - the Line Location Id may or may not
         --          - exist
         -- ==============================================
         select  &apos;x&apos;
         from    po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   pol.po_line_id               = rti.po_line_id
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_distribution_id is null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         union all
         -- ==============================================
         -- Case IV  - PO Number and PO Line Number exist
         --          - but the PO Header ID does not
         -- ==============================================
         select  &apos;x&apos;
         from    po_headers_all poh,
                 po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   poh.segment1                 = rti.document_num      -- PO Number
         and     pol.line_num                 = rti.document_line_num -- PO Line Number
         and     poh.po_header_id             = pol.po_header_id
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code    = &apos;EXPENSE&apos;
         and     rti.po_header_id is null
         and     rti.document_num is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
        )
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 3 -- Resolution Recommended
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     flvv.lookup_type                 = &apos;RCV DESTINATION TYPE&apos;
and     flvv.lookup_code                 = &apos;RECEIVING&apos;
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        flvv.meaning, -- Functional_Area
        &apos;RCV_Transactions_Interface&apos;, -- Interface_Report
        &apos;Pending Expense Receiving Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        gl_ou.ledger,
        gl_ou.operating_unit,
        gl_ou.operating_unit_id,
        gl_ou.organization_code,
        gl_ou.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        rti.transaction_type, -- Column_Info
        rti.processing_status_code,
        rti.transaction_status_code, -- Reject_Code_or_Error_Message
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; -- Interface_Description
union all
-- =======================================================
-- Pending Inventory and OSP Receiving Reports
-- =======================================================
select  flvv.meaning Functional_Area,
        &apos;RCV_Transactions_Interface&apos; Interface_Report,
        &apos;Pending Inventory and OSP Receiving Transactions&apos; Report_Title,
        ml1.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        ml2.meaning Column_Type, -- Transaction Type
        rti.transaction_type Column_Info,
        rti.processing_status_code Status_Code,
        rti.transaction_status_code Reject_Code_or_Error_Message,
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; Interface_Description
from    rcv_transactions_interface rti,
        gl_periods gp,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        inv_organizations inv_orgs,
        mfg_lookups ml1, -- Priority
        mfg_lookups ml2, -- Transaction Type
        fnd_lookup_values_vl flvv -- Receiving
where   inv_orgs.organization_id         = rti.to_organization_id
-- rti.transaction_date is a required column
and     trunc(rti.transaction_date) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;PO&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
-- Check for Inventory or Shop Floor Destinations
and exists 
        (-- ==============================================
         -- Case I  - INVENTORY or SHOP FLOOR destination_
         --         - type_code existsin rcv_transactions  
         -- ==============================================
         select  &apos;x&apos; 
         from    rcv_transactions_interface rt2
         where   rt2.interface_transaction_id = rti.interface_transaction_id
         and     rt2.destination_type_code in (&apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         union all
         -- ==============================================
         -- Case II  - PO Distribution ID exists but the
         --          - but destination_type_code is null
         --          - or RECEIVING in rcv_transactions
         -- ==============================================
         select  &apos;x&apos;
         from    po_distributions_all pod
         where   pod.po_distribution_id       = rti.po_distribution_id
         and     pod.destination_type_code in (&apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         and     rti.po_distribution_id is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;) 
         union all
         -- ==============================================
         -- Case III - PO Header ID, PO Line ID exist, but
         --          - the Line Location Id may or may not
         --          - exist
         -- ==============================================
         select  &apos;x&apos;
         from    po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   pol.po_line_id               = rti.po_line_id -- PO Line ID
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code in (&apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         and     rti.po_distribution_id is null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         UNION ALL
         -- ==============================================
         -- Case IV  - PO Number and PO Line Number exist
         --          - but the PO Header ID does not
         -- ==============================================
         select  &apos;x&apos;
         from    po_headers_all poh,
                 po_lines_all pol,
                 po_line_locations_all pll,
                 po_distributions_all pod
         where   poh.segment1                 = rti.document_num      -- PO Number
         and     pol.line_num                 = rti.document_line_num -- PO Line Number
         and     poh.po_header_id             = pol.po_header_id
         and     pll.po_line_id               = pol.po_line_id
         and     pod.po_line_id               = pll.po_line_id
         and     pod.destination_type_code in (&apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
         and     rti.po_header_id is null
         and     rti.document_num is not null
         and     nvl(rti.destination_type_code,&apos;NONE&apos;) not in (&apos;EXPENSE&apos;, &apos;INVENTORY&apos;,&apos;SHOP FLOOR&apos;)
        )
and     ml1.lookup_type                  = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml1.lookup_code                  = 3 -- Resolution Recommended
and     ml2.lookup_type                  = &apos;INV_SRS_REG_BREAK&apos;
and     ml2.lookup_code                  = 3 -- Transaction Type
and     flvv.lookup_type                 = &apos;RCV DESTINATION TYPE&apos;
and     flvv.lookup_code                 = &apos;RECEIVING&apos;
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        flvv.meaning, -- Functional_Area
        &apos;RCV_Transactions_Interface&apos;, -- Interface_Report
        &apos;Pending Inventory and OSP Receiving Transactions&apos;, -- Report_Title
        ml1.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        ml2.meaning, -- Column_Type, Transaction Type
        rti.transaction_type, -- Column_Info
        rti.processing_status_code,
        rti.transaction_status_code, -- Reject_Code_or_Error_Message
        &apos;Rows in the RCV_TRANSACTIONS_INTERFACE table&apos; -- Interface_Description

-- +=============================================================================+
-- |                               Shipping Reports                              |
-- +=============================================================================+

union all
-- =======================================================
-- Unprocessed Shipping Report for Sales Orders
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WSH_Delivery_Details&apos; Interface_Report,
        &apos;Unprocessed Sales Order Shipping Transactions&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Ship Date
        to_char(trunc(wts.actual_departure_date)) Column_Info,
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ) Status_code,
        wev.message Reject_Code_or_Error_Message,
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; Interface_Description
from    wsh_delivery_details wdd,
        wsh_delivery_assignments wda,
        wsh_new_deliveries wnd,
        wsh_delivery_legs wdl,
        wsh_trip_stops wts,
        wsh_exceptions_v wev,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl, -- Ship Date
        mfg_lookups ml  -- Priority
where   wdd.source_code                  = &apos;OE&apos;
and     wdd.released_status              = &apos;C&apos;
and     wdd.inv_interfaced_flag in (&apos;N&apos; ,&apos;P&apos;)
and     wda.delivery_detail_id           = wdd.delivery_detail_id
and     wnd.delivery_id                  = wda.delivery_id
and     wnd.status_code in (&apos;CL&apos;,&apos;IT&apos;)
and     wdl.delivery_id                  = wnd.delivery_id
and     wts.pending_interface_flag in (&apos;Y&apos;, &apos;P&apos;)
and     wdl.pick_up_stop_id              = wts.stop_id
and     wev.trip_stop_id (+)             = wts.stop_id 
and     inv_orgs.organization_id         = wnd.organization_id
and     trunc(nvl(wts.actual_departure_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;MSC_PQ_CP_EXCP&apos;
and     fl.lookup_code                   = &apos;MSCX_CUST_SHIP_DATE&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 2 -- Resolution Required
and     4=4                              -- p_period_name, period_year
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSH_Delivery_Details&apos;, -- Interface_Report
        &apos;Unprocessed Sales Order Shipping Transactions&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        fl.meaning, -- Column_Type, Ship Date
        to_char(trunc(wts.actual_departure_date)), -- Column_Info
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ), -- Status_code
        wev.message, -- Reject_Code_or_Error_Message
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; -- Interface_Description
union all
-- =======================================================
-- Unprocessed Shipping Report for Expense Requisitions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WSH_Delivery_Details&apos; Interface_Report,
        &apos;Unprocessed Expense Requisition Shipping Transactions&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Ship Date
        to_char(trunc(wts.actual_departure_date)) Column_Info,
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ) Status_code,
        wev.message Reject_Code_or_Error_Message,
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; Interface_Description
from    wsh_delivery_details wdd,
        wsh_delivery_assignments wda,
        wsh_new_deliveries wnd,
        wsh_delivery_legs wdl,
        wsh_trip_stops wts,
        wsh_exceptions_v wev,
        oe_order_lines_all ool,
        po_requisition_lines_all prl,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl, -- Ship Date
        mfg_lookups ml  -- Priority
where   wdd.source_code                  = &apos;OE&apos;
and     wdd.released_status              = &apos;C&apos;
and     wdd.inv_interfaced_flag in (&apos;N&apos; ,&apos;P&apos;)
and     wda.delivery_detail_id           = wdd.delivery_detail_id
and     wnd.delivery_id                  = wda.delivery_id
and     wnd.status_code in (&apos;CL&apos;,&apos;IT&apos;)
and     wdl.delivery_id                  = wnd.delivery_id
and     wts.pending_interface_flag in (&apos;Y&apos;, &apos;P&apos;)
and     wdl.pick_up_stop_id              = wts.stop_id
-- For purchase requisitions
and     inv_orgs.organization_id         = prl.destination_organization_id
and     wdd.source_line_id               = ool.line_id
and     wdd.source_document_type_id      = 10
and     ool.source_document_line_id      = prl.requisition_line_id
and     prl.destination_organization_id &lt;&gt; prl.source_organization_id
and     prl.destination_type_code        = &apos;EXPENSE&apos;
and     wts.stop_location_id             = wnd.initial_pickup_location_id
-- End changes for purchase requisitions
and     wev.trip_stop_id (+)             = wts.stop_id 
and     inv_orgs.organization_id         = wnd.organization_id
and     trunc(nvl(wts.actual_departure_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;MSC_PQ_CP_EXCP&apos;
and     fl.lookup_code                   = &apos;MSCX_CUST_SHIP_DATE&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 2 -- Resolution Required
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSH_Delivery_Details&apos;, -- Interface_Report
        &apos;Unprocessed Expense Requisition Shipping Transactions&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        fl.meaning, -- Column_Type, Ship Date
        to_char(trunc(wts.actual_departure_date)), -- Column_Info
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ), -- Status_code
        wev.message, -- Reject_Code_or_Error_Message
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; -- Interface_Description
union all
-- =======================================================
-- Unprocessed Shipping Report for Inventory Requisitions
-- =======================================================
select  fav.application_name Functional_Area,
        &apos;WSH_Delivery_Details&apos; Interface_Report,
        &apos;Unprocessed Inventory Requisition Shipping Transactions&apos; Report_Title,
        ml.meaning Priority,
        count(*) Count,
        gp.period_year Period_Year,
        gp.period_num Period_Number, 
        gp.period_name Period_Name,
        inv_orgs.ledger Ledger,
        inv_orgs.operating_unit Operating_Unit,
        inv_orgs.operating_unit_id Operating_Unit_Id,
        inv_orgs.organization_code Org_Code,
        inv_orgs.organization_id Inv_Organization_Id,
        fl.meaning Column_Type, -- Ship Date
        to_char(trunc(wts.actual_departure_date)) Column_Info,
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ) Status_code,
        wev.message Reject_Code_or_Error_Message,
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; Interface_Description
from    wsh_delivery_details wdd,
        wsh_delivery_assignments wda,
        wsh_new_deliveries wnd,
        wsh_delivery_legs wdl,
        wsh_trip_stops wts,
        wsh_exceptions_v wev,
        oe_order_lines_all ool,
        po_requisition_lines_all prl,
        mtl_interorg_parameters mip,
        gl_periods gp,
        inv_organizations inv_orgs,
        fnd_application_vl fav,
        fnd_product_installations fpi,
        fnd_lookups fl, -- Ship Date
        mfg_lookups ml -- Priority
where   wdd.source_code                  = &apos;OE&apos;
and     wdd.released_status              = &apos;C&apos;
and     wdd.inv_interfaced_flag in (&apos;N&apos; ,&apos;P&apos;)
and     wda.delivery_detail_id           = wdd.delivery_detail_id
and     wnd.delivery_id                  = wda.delivery_id
and     wnd.status_code in (&apos;CL&apos;,&apos;IT&apos;)
and     wdl.delivery_id                  = wnd.delivery_id
and     wts.pending_interface_flag in (&apos;Y&apos;, &apos;P&apos;)
and     wdl.pick_up_stop_id              = wts.stop_id
-- For purchase requisitions
and     inv_orgs.organization_id         = prl.destination_organization_id
and     wdd.source_line_id               = ool.line_id
and     wdd.source_document_type_id      = 10
and     ool.source_document_line_id      = prl.requisition_line_id
and     prl.destination_organization_id &lt;&gt; prl.source_organization_id
and     prl.destination_organization_id  = mip.to_organization_id
and     prl.source_organization_id       = mip.from_organization_id
and     mip.intransit_type               = 1
and     prl.destination_type_code       &lt;&gt; &apos;EXPENSE&apos;
and     wts.stop_location_id             = wnd.initial_pickup_location_id
-- End changes for purchase requisitions
and     wev.trip_stop_id (+)             = wts.stop_id 
and     inv_orgs.organization_id         = wnd.organization_id
and     trunc(nvl(wts.actual_departure_date,sysdate)) between inv_le_timezone_pub.get_server_day_time_for_le(gp.start_date,inv_orgs.legal_entity_id) and inv_le_timezone_pub.get_server_day_time_for_le(gp.end_date,inv_orgs.legal_entity_id)
and     gp.adjustment_period_flag        = &apos;N&apos;
-- To avoid cross joining with secondary period information
and     gp.period_set_name               = inv_orgs.period_set_name
and     gp.period_type                   = inv_orgs.accounted_period_type
and     fav.application_short_name       = &apos;INV&apos;
-- Only report installed applications
and     fav.application_id               = fpi.application_id
and     fpi.status                      &lt;&gt; &apos;N&apos; -- Inactive
and     fl.lookup_type                   = &apos;MSC_PQ_CP_EXCP&apos;
and     fl.lookup_code                   = &apos;MSCX_CUST_SHIP_DATE&apos;
and     ml.lookup_type                   = &apos;CST_SRS_RESOLUTION_TYPES&apos;
and     ml.lookup_code                   = 2 -- Resolution Required
and     4=4                              -- p_period_name
and     5=5                              -- p_functional_area
and     6=6                              -- p_period_year
group by
        fav.application_name, -- Functional_Area
        &apos;WSH_Delivery_Details&apos;, -- Interface_Report
        &apos;Unprocessed Inventory Requisition Shipping Transactions&apos;, -- Report_Title
        ml.meaning, -- Priority
        gp.period_year,
        gp.period_num, 
        gp.period_name,
        inv_orgs.ledger,
        inv_orgs.operating_unit,
        inv_orgs.operating_unit_id,
        inv_orgs.organization_code,
        inv_orgs.organization_id,
        fl.meaning, -- Column_Type, Ship Date
        to_char(trunc(wts.actual_departure_date)), -- Column_Info
        decode(wdd.inv_interfaced_flag,
                &apos;Y&apos;, &apos;Y - Delivery has been interfaced to Inventory&apos;,
                &apos;P&apos;, &apos;P - Delivery is pending interface to Inventory&apos;,
                &apos;N&apos;, &apos;N - Delivery not interfaced to Inventory&apos;,
                &apos;X&apos;, &apos;X - Delivery excluded from inventory interface&apos;
               ), -- Status_code
        wev.message, -- Reject_Code_or_Error_Message
        &apos;Rows in the WSH_DELIVERY_DETAILS table&apos; -- Interface_Description
order by 1,2,3,4,6,7,8,9,10,11</SQL_TEXT>
  <VERSION_COMMENTS>1.44 24-Aug-25 Douglas Volz Changed Pending Material from Resolution Required to Recommended.</VERSION_COMMENTS>
  <REQUIRED_PARAMETERS>(:Functional_Area is not null or :Period_Year is not null or :Period_Name is not null or :Organization_Code is not null or :Operating_Unit is not null
or :Ledger is not null)</REQUIRED_PARAMETERS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>CAC Interface Error Summary</REPORT_NAME>
    <DESCRIPTION>Use this report to view your transactions that are pending or have errors in the Oracle interface tables.  Across both Financial and Supply Chain Applications.  This includes interfaces that would prevent closing the inventory accounting period, as suggested by the report titles, Resolution Required and Resolution Recommended.  Similar to the Inventory Account Periods Close form (checking open receipts, pending shipments, failed inventory, WIP, etc.).

Notes:
1)  Supply Chain queries check for the period close timezone of the legal entity, just like the Inventory Account Periods Close form and the Blitz INV Period Close Pending Transactions report.  Period count queries sourced from procedure CST_AccountingPeriod_PUB.Get_PendingTcount (CSTPAPEB.pls 120.18.12020000.8)
2)  The Financial interfaces all show a priority of &quot;Resolution Recommended&quot;, as having entries in these interface tables do not prevent you from closing your books.  However, just like Supply Chain, best practice would be to process all unprocessed and/or erred out entries in these interfaces, before closing the accounting period.

Specific Functional Areas and Interface Reports include:

Accounts Payables
   AP_Invoices_Interface
   AP_Invoice_Lines_Interface

Accounts Receivables
   RA_Interface_Lines_All
   RA_Interface_Errors_All

Cash Management
   CE_Header_Interface_Errors

Cost Management
   Uncosted Material - MTL_Material_Transactions
   Uncosted - WSM_Split_Merge_Transactions
   Pending WIP Costing - WIP_Cost_Txn_Interface Report

General Ledger
   GL_Interface

Inventory
   Unprocessed Material - MTL_Material_Transactions_Temp
   Unprocessed Locked Material - MTL_Material_Transactions_Temp
   Pending Material - MTL_Transactions_Interface

Oracle Landed Cost Management
   Pending Landed Cost Management (INL) Interface - CST_Lc_Adj_Interface Interface

Project
   PA_Transaction_Interface_All

Purchasing
   PO_Requisitions_Interface_All

Purchasing (showing Receiving as the reported Functional Area)
   Pending Expense Receiving - RCV_Transactions_Interface
   Pending Inventory and OSP Receiving - RCV_Transactions_Interface
   Pending Intransit Receiving - RCV_Transactions_Interface
   Pending RMA Receiving - RCV_Transactions_Interface

Shipping
   Shipping - WSH_Delivery_Details

Warehouse Management System (WSM)
   Pending WSM Interface Transactions - WSM_Split_Merge_Txn_Interface
   Pending WSM Lot Interface Transactions - WSM_Lot_Split_Merges_Interface

Work in Process (Manufacturing)
   Pending Shop Floor Move Transactions - WIP_Move_Txn_Interface

Parameters
==========
Functional Area:  Cash Management, Cost Management, General Ledger, Inventory, Payables, Work in Process (Manufacturing), Oracle Landed Cost Management, Projects, Purchasing, Receivables, Shipping, Warehouse Management System (WSM) (optional).
Period Name:  Enter the desired period(s) to report (optional)
Organization Code:  specific inventory organization to report (optional)
Operating Unit:  specific operating unit (optional)
Ledger:  specific ledger (optional)

Note:  To avoid excessive run times., one of the above parameters must be entered in order to run this report.

-- |  Version Modified  Modified  by   Description
-- | ======== ========= =============== ================================================
-- |     1.0  1995      Initial Design  Originally based on sql from a project in 1995.
-- |     1.1  31-Jan-08 Douglas Volz    Added Operating Unit column to summary queries.
-- |     1.42 15-Jul-25 Douglas Volz    For Uncosted Transactions, checked for Process MFG
-- |                                    and added Ledger Security Controls for GL_Interface.
-- |     1.43 19-Jul-25 Douglas Volz    Changed LCM query to use the LCM short name &apos;INL&apos; instead of &apos;CST&apos;.
-- |     1.44 24-Aug-25 Douglas Volz    Changed Pending Material from Resolution Required to Recommended.
-- +=============================================================================+*/</DESCRIPTION>
    <REQUIRED_PARAMETERS_MESSAGE>Please specify at least one or more of the following: Functional Area, Period Year, Period Name, Organization Code, Operating Unit, or Ledger.

Hint:  to show all interface entries for a given year or accounting period, across all Organizations, Operating Units or Ledgers, enter the desired Period Year or Period Name to report.</REQUIRED_PARAMETERS_MESSAGE>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>3=3</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>4=4</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>5=5</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>6=6</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>7=7</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>8=8</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>5=5</ANCHOR>
    <SQL_TEXT>fav.application_name = :p_application_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>CST Functional Area for Interfaces</LOV_NAME>
    <LOV_GUID>394A747A39CE17F6E0630100007F0ADD</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name in (&apos;SQLAP&apos;, &apos;AR&apos;, &apos;CE&apos;,&apos;SQLGL&apos;, &apos;INL&apos;, &apos;INV&apos;, &apos;PA&apos;, &apos;PO&apos;, &apos;WIP&apos;, &apos;WSM&apos;)
and fav.application_id = fpi.application_id
and fpi.status &lt;&gt; &apos;N&apos;
union all
-- Cost Management (707) is never installed
select
fav.application_name value, 
fav.application_short_name description
from
fnd_application_vl fav,
fnd_product_installations fpi
where
fav.application_short_name = &apos;CST&apos;
-- And Inventory (401) is installed 
and (fpi.status &lt;&gt; &apos;N&apos; and fpi.application_id = 401)
order by 1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Functional Area</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
    <ANCHOR>6=6</ANCHOR>
    <SQL_TEXT>gp.period_year = :p_period_year</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>CST Period Year</LOV_NAME>
    <LOV_GUID>39EAA21EACB45EFCE0630100007F8189</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select gp.period_year value,
null description
from gl_periods gp
where gp.start_date &lt;=sysdate
and gp.period_year &lt;= extract(year from sysdate)
group by gp.period_year, null
order by gp.period_year desc</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select 
max(gp.period_year)
from
gl_periods gp
</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Year</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <ANCHOR>7=7</ANCHOR>
    <SQL_TEXT>extract(year from nvl(gi.accounting_date, gi.transaction_date)) = :p_period_year</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Year</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <ANCHOR>8=8</ANCHOR>
    <SQL_TEXT>extract(year from chie.creation_date) = :p_period_year</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Year</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>4=4</ANCHOR>
    <SQL_TEXT>gp.period_name = :p_period_name</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Period</LOV_NAME>
    <LOV_GUID>8E2FF36EDF2279D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
oap.period_name value,
max(oap.period_year||&apos;-&apos;||oap.period_num||&apos;, &apos;||xxen_util.meaning(nvl2(oap.period_close_date,decode(oap.open_flag,&apos;P&apos;,2,&apos;N&apos;,decode(oap.summarized_flag,&apos;N&apos;,65,66),4),3),&apos;MTL_ACCT_PERIOD_STATUS&apos;,700)||&apos; (&apos;||oap.period_start_date||&apos; - &apos;||oap.schedule_close_date||&apos;)&apos;) over (partition by oap.period_name) description,
max(oap.period_start_date) over (partition by oap.period_name) period_start_date,
max(oap.effective_period_num) over (partition by oap.period_name) effective_period_num
from
gl_ledgers gl,
org_organization_definitions ood,
mtl_parameters mp,
(select oap.period_year*10000+oap.period_num effective_period_num, oap.* from org_acct_periods oap) oap
where
oap.period_start_date&lt;=sysdate and
(:$flex$.ledger is null or xxen_util.contains(:$flex$.ledger,gl.name)=&apos;Y&apos;) and
(:$flex$.organization_code is null or xxen_util.contains(:$flex$.organization_code,ood.organization_code)=&apos;Y&apos;) and
ood.organization_id=mp.organization_id and
mp.organization_id&lt;&gt;mp.master_organization_id and 
gl.period_set_name=oap.period_set_name and
gl.ledger_id=ood.set_of_books_id and
ood.organization_id=oap.organization_id
order by
period_start_date desc,
effective_period_num desc,
oap.period_name</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select distinct oap.period_name value
from org_acct_periods oap,
 (select max(oap.schedule_close_date) default_date
  from org_acct_periods oap,
  org_organization_definitions ood
  where ood.organization_id = oap.organization_id
  and nvl(ood.disable_date, sysdate + 1) &gt; sysdate) max
where oap.schedule_close_date = max.default_date
and rownum = 1
</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Period Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>mp.organization_code = :p_org_code</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>INV Organization Code (excluding master)</LOV_NAME>
    <LOV_GUID>91D3167A33531204E053BB6B63585EE3</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ood.organization_code value,
ood.organization_name description
from
org_organization_definitions ood
where
ood.organization_id not in (select mp.organization_id from mtl_parameters mp where mp.organization_id=mp.master_organization_id) 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
order by
ood.organization_code</LOV_QUERY_DSP>
    <DEFAULT_VALUE>select mp.organization_code from mtl_parameters mp where mp.organization_id=fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>3=3</ANCHOR>
    <SQL_TEXT>haou2.name = :p_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>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>gl.name = :p_ledger</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>GL Ledger</LOV_NAME>
    <LOV_GUID>8E2FF36EDEB879D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
gl.name value,
fifsv.id_flex_structure_name||&apos;: &apos;||decode(gl.ledger_category_code,&apos;NONE&apos;,xxen_util.meaning(gl.object_type_code,&apos;LEDGERS&apos;,101),xxen_util.meaning(gl.ledger_category_code,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101))||&apos;: &apos;||gl.description description
from
gl_ledgers gl,
fnd_id_flex_structures_vl fifsv
where
(:$flex$.ledger_category is null or gl.ledger_category_code=xxen_util.lookup_code(:$flex$.ledger_category,&apos;GL_ASF_LEDGER_CATEGORY&apos;,101,&apos;Y&apos;)) and
(:$flex$.chart_of_accounts is null or xxen_util.contains(:$flex$.chart_of_accounts,fifsv.id_flex_structure_name)=&apos;Y&apos;) and
gl.ledger_id in (select nvl(glsnav.ledger_id,gasna.ledger_id) from gl_access_set_norm_assign gasna, gl_ledger_set_norm_assign_v glsnav where gasna.access_set_id=fnd_profile.value(&apos;GL_ACCESS_SET_ID&apos;) and gasna.ledger_id=glsnav.ledger_set_id(+)) and
gl.chart_of_accounts_id=fifsv.id_flex_num and
fifsv.id_flex_code=&apos;GL#&apos; and
fifsv.application_id=101
order by
fifsv.id_flex_structure_name,
decode(gl.ledger_category_code,&apos;PRIMARY&apos;,1,&apos;SECONDARY&apos;,2,&apos;ALC&apos;,3,&apos;NONE&apos;,4),
gl.name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Ledger</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Operating Unit</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.ledger</FLEX_BIND>
    <PARAMETER_NAME>Ledger</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period Name</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.operating_unit</FLEX_BIND>
    <PARAMETER_NAME>Operating Unit</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Organization Code</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.organization_code</FLEX_BIND>
    <PARAMETER_NAME>Organization Code</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Period Name</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
   <TEMPLATES_ROW>
    <GUID>95A0504ED4432984F5B14F4F4928DB2B</GUID>
    <TEMPLATE_NAME>Pivot by Functional Area</TEMPLATE_NAME>
    <OWNER>MFG</OWNER>
    <TEMPLATE_COLUMNS>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>15</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COLUMN_INFO</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>14</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COLUMN_TYPE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>5</DISPLAY_SEQUENCE>
      <COLUMN_NAME>COUNT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <COLUMN_NAME>FUNCTIONAL_AREA</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>18</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INTERFACE_DESCRIPTION</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>13</DISPLAY_SEQUENCE>
      <COLUMN_NAME>INV_ORGANIZATION_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>9</DISPLAY_SEQUENCE>
      <COLUMN_NAME>LEDGER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>11</DISPLAY_SEQUENCE>
      <COLUMN_NAME>OPERATING_UNIT_ID</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>12</DISPLAY_SEQUENCE>
      <COLUMN_NAME>ORG_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>8</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_NAME</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>7</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_NUMBER</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>6</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PERIOD_YEAR</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>4</DISPLAY_SEQUENCE>
      <COLUMN_NAME>PRIORITY</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>17</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REJECT_CODE_OR_ERROR_MESSAGE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_INTERFACE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>-3.0004</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_MODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>3</DISPLAY_SEQUENCE>
      <COLUMN_NAME>REPORT_TITLE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
     <TEMPLATE_COLUMNS_ROW>
      <DISPLAY_SEQUENCE>16</DISPLAY_SEQUENCE>
      <COLUMN_NAME>STATUS_CODE</COLUMN_NAME>
     </TEMPLATE_COLUMNS_ROW>
    </TEMPLATE_COLUMNS>
    <TEMPLATE_PIVOT>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>COUNT</COLUMN_NAME>
      <FIELD_TYPE>VALUE</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
      <AGGREGATION>SUM</AGGREGATION>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>FUNCTIONAL_AREA</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>2</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
     <TEMPLATE_PIVOT_ROW>
      <COLUMN_NAME>PRIORITY</COLUMN_NAME>
      <FIELD_TYPE>ROW</FIELD_TYPE>
      <DISPLAY_SEQUENCE>1</DISPLAY_SEQUENCE>
     </TEMPLATE_PIVOT_ROW>
    </TEMPLATE_PIVOT>
    <TEMPLATE_SHARED_STRINGS>
    </TEMPLATE_SHARED_STRINGS>
    <TEMPLATE_PARAMETER_DEFAULTS>
    </TEMPLATE_PARAMETER_DEFAULTS>
    <TEMPLATE_STYLES>
    </TEMPLATE_STYLES>
    <TEMPLATE_SHARING>
     <TEMPLATE_SHARING_ROW>
      <SHARING_LEVEL>S</SHARING_LEVEL>
      <LEVEL_VALUE>Site</LEVEL_VALUE>
     </TEMPLATE_SHARING_ROW>
    </TEMPLATE_SHARING>
    <PARAMETER_EXCLUSION>
    </PARAMETER_EXCLUSION>
   </TEMPLATES_ROW>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
   <DEFAULT_TEMPLATES_ROW>
    <USER_NAME>DVOLZ</USER_NAME>
    <TEMPLATE_GUID>95A0504ED4432984F5B14F4F4928DB2B</TEMPLATE_GUID>
   </DEFAULT_TEMPLATES_ROW>
   <DEFAULT_TEMPLATES_ROW>
    <TEMPLATE_GUID>95A0504ED4432984F5B14F4F4928DB2B</TEMPLATE_GUID>
   </DEFAULT_TEMPLATES_ROW>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
