Wednesday, 11 September 2024

Oracle Fusion - Advance Collection Diagnostics

--------------------------------------------------------
List of Invoices to be sent for dunning
--------------------------------------------------------
select hp.party_name, hca.account_number, rca.trx_number,hou.name org_name,  ida.*
  from IEX_DELINQUENCIES_ALL  ida, hz_cust_accounts hca, hz_parties hp, ra_customer_trx_all rca, hr_operating_units hou
 where ida.cust_account_id = hca.cust_account_id 
   --and hca.account_number = 'XXXXXXX' 
   and hp.party_id = hca.party_id
   and hp.party_name = 'XXXXXXXX'
   and rca.customer_trx_id = ida.transaction_id
   and hou.organization_id = ida.org_id
   and ida.STATUS = 'DELINQUENT';

--------------------------------------------
Solution 1
--------------------------------------------

--A dunning letter is not generated because there are no valid transactions to be included in the dunning letter. (Doc ID 2875705.1)
--1. Tools > Scheduled Processes > Schedule the following ESS processes in the following sequence:
----a. Refresh Receivables Transactions for Customer Account Summaries
----b. Collections Delinquency Management
----c. Collections Scoring and Strategy Assignment
----d. Update Collections Summary Data
--4. Retest the issue.
--5. Migrate the solution as appropriate to other environments.

--------------------------------------------
Solution 2
--------------------------------------------

--Oracle Fusion Advanced Collections Cloud Service - Version 11.13.19.04.0 and later
--Symptoms
------Collections Scoring & Strategy Assignment / Collections Delinquency Management not processing
------Upon running the Collections Jobs, both Collections Scoring and Strategy Assignment as well as Collections Delinquency Management. 
------When running the job, no data is found nor is any item scored. Ran Refresh Receivables Transactions process to update delinquency status.
--Cause
------The issue is caused by the following setup:
------The Delinquency Status Determination, Pre-Delinquency Status Determination , Quick Delinquency Status Determination , 
------Predelinquency Status Determination by Segment scoring are all disabled within Manage Collections Scoring - this is why nothing has been scored.
------
------The Collections Delinquency Management process identifies the delinquency and pre-delinquency statuses for your customers, customer transactions, accounts, and sites accordingly based on the business level and pre-delinquency options.

--------------------------------------------
Solution 3
--------------------------------------------

------The issue will be resolved once this setup is corrected:
------1. The Delinquency Status Determination, Pre-Delinquency Status Determination , Quick Delinquency Status Determination , 
---------Predelinquency Status Determination by Segment scoring should be enabled within Manage Collections Scoring
------2. Run Collections Scoring and Strategy Assignment
------3. Run Collections Delinquency Management


--------------------------------------------
Solution 4
--------------------------------------------
--To diagnose, run "Validate Customer Dunning Setup Report" Job and if required run 'Dunning Diagnostic' and 'Collections Setup Diagnostic'
--No Dunning Site Found, Looping through delinquent Billto Sites.

Friday, 30 August 2024

Oracle Fusion - SQL - Conversion Rate GL_DAILY_CONVERSION_TYPES

SELECT conversion_type

     , user_conversion_type 

  FROM gl_daily_conversion_types



SELECT * 

  FROM gl_daily_rates

Wednesday, 28 August 2024

Oracle R12 - LE Entity

This summary is not available. Please click here to view the post.

Oracle Fusion - SQL - AP Invoice Interface

Status of Interface by load_request_id ========================================= 
SELECT aii.load_request_id 
     , aii.status 
     , aii.operating_unit 
     , aii.source 
     , aii.invoice_type_lookup_code 
     , count(distinct aii.invoice_id) inv_count 
     , count(distinct aili.invoice_line_id) line_count 
  FROM ap_invoices_interface aii 
     , ap_invoice_lines_interface aili 
 WHERE aii.invoice_id = aili.invoice_id 
   AND aii.source = nvl(:p_source,aii.source) 
   AND aii.operating_unit = nvl(:p_operating_unit,aii.operating_unit)
   AND aii.load_request_id = nvl(:p_load_request_id,aii.load_request_id) 
 GROUP BY aii.status 
        , aii.operating_unit 
        , aii.source 
        , aii.invoice_type_lookup_code 
        , aii.load_request_id 
 order by 1,2,3,4,5 

AP Invoice Interface Errors 
=========================== 
SELECT apr.load_request_id
      ,apr.parent_table
      ,apr.reject_lookup_code
      ,count(1) reject_count 
  FROM ap_interface_rejections apr
     , ap_invoices_interface inv 
 WHERE apr.parent_id = inv.invoice_id 
   AND inv.status='REJECTED' 
   AND inv.source = nvl(:p_source,inv.source) 
   AND inv.load_request_id = nvl(:p_load_request_id,inv.load_request_id) 
 GROUP BY 
        apr.load_request_id
       ,apr.parent_table
       ,apr.reject_lookup_code 
UNION 
SELECT apr.load_request_id
      ,apr.parent_table
      ,apr.reject_lookup_code
      ,count(1) reject_count 
  FROM ap_interface_rejections apr
     , ap_invoices_interface inv
     , ap_invoice_lines_interface ln 
 WHERE apr.parent_id =ln.invoice_line_id 
   AND ln.invoice_id= inv.invoice_id 
   AND inv.status='REJECTED' 
   AND inv.source = nvl(:p_source,inv.source) 
   AND inv.load_request_id = nvl(:p_load_request_id,inv.load_request_id) 
 GROUP BY apr.load_request_id
         ,apr.parent_table
         ,apr.reject_lookup_code



Purge Interface Tables using program "Purge Interface Tables"
=======================================================
=> Import Payables Invoices
=> Load Request ID


"Load Interface File for Import" Program to load FBDI File
=======================================================
=> Import Payables Invoices
=> ZIP file created by FBDI Template



"Import Payables Invoices" program to load AP invoices from interface to Main tables
=======================================================






Oracle Fusion - SQL - Item Category - Product Categories - Catalogs

Item Categories =============== SELECT * FROM egp_item_categories c Item Category Assignment ======================== SELECT i.item_number,i.ORGANIZATION_ID,cat.CATEGORY_NAME FROM EGP_SYSTEM_ITEMS_B i ,egp_item_categories c,egp_categories_tl cat where i.INVENTORY_ITEM_ID=c.INVENTORY_ITEM_ID and i.ORGANIZATION_ID=c.ORGANIZATION_ID and c.CATEGORY_ID=cat.CATEGORY_ID and cat.LANGUAGE = 'US' List of Item Categories ======================= SELECT CATEGORY_ID, DESCRIPTION, CATEGORY_NAME, SOURCE_LANG, OBJECT_VERSION_NUMBER FROM EGP_CATEGORIES_TL ECT WHERE LANGUAGE = 'US' order by 3

Sunday, 12 March 2023

The Create Accounting process ended in an error because you have global permissions for the Subledger Source Transaction data resource (Oracle Fusion)

Identify the role using the following query and then remove the role from user to run the create accounting.


select distinct role_name 

  from fnd_session_role_sets 

 where role_guid in 

          (select grantee_key 

             from fusion.fnd_grants 

            where object_id in 

                      (select object_id

                         from fnd_objects 

                        where obj_name in ('XLA_SUBLEDGERS'

                                         , 'XLA_GL_LEDGERS'

                                         , 'XLA_TRANSACTION_ENTITIES'

                                          )

                      ) 

              and INSTANCE_TYPE = 'GLOBAL'

          )

SQL Query for List of Concurrent Programs with Request Group and Responsibility Name

---List of Concurrent Programs with Request Group and Responsibility Name


 SELECT DISTINCT fnrtl.responsibility_name

              , frg.request_group_name
              , fcpl.user_concurrent_program_name
              , fcp.concurrent_program_name
              , fapp.application_name
              , fl.meaning execution_type
              , fe.executable_name
              , fe.execution_file_name
  FROM apps.fnd_request_groups         frg,
       apps.fnd_application_tl         fapp,
       apps.fnd_request_group_units    frgu,a
       apps.fnd_concurrent_programs    fcp,
       apps.fnd_concurrent_programs_tl fcpl,
       apps.fnd_responsibility         fnr,
       apps.fnd_responsibility_tl      fnrtl,
       apps.fnd_executables fe,
       apps.fnd_lookups fl
 WHERE     frg.application_id = fapp.application_id
       AND frg.application_id = frgu.application_id
       AND frg.request_group_id = frgu.request_group_id
       AND frg.request_group_id = fnr.request_group_id
       AND fnr.responsibility_id = fnrtl.responsibility_id
       AND frgu.request_unit_id = fcp.concurrent_program_id
       AND frgu.unit_application_id = fcp.application_id
       AND fcp.concurrent_program_id = fcpl.concurrent_program_id
       --AND fcpl.user_concurrent_program_name LIKE   '<concurrent program name>'
       AND frg.application_short_code in('XX')
       AND fe.executable_id = fcp.executable_id
       AND fcp.execution_method_code = fe.execution_method_code
       AND fl.lookup_code = fe.execution_method_code
       AND fl.lookup_type = 'CP_EXECUTION_METHOD_CODE'
       AND fnrtl.LANGUAGE = 'US'
       AND fapp.LANGUAGE = 'US'
       ORDER BY 3;