18 August, 2025

Customer Relation Query - Oracle EBS

 SELECT hcr.cust_account_id,
       hcr.related_cust_account_id,
       hcr.relationship_type, 
       hcr.customer_reciprocal_flag,
       hcr.status,
       hcr.org_id, 
       hcr.bill_to_flag,
       hcr.ship_to_flag,
       hca.account_name AS rel_act_desc, 
       hp.party_name AS rel_customer,
       hca.account_number AS rel_act_number, 
       hp.party_id
  FROM apps.hz_cust_acct_relate_all hcr,
       apps.hz_cust_accounts_all hca,
       apps.hz_parties hp
 WHERE 1=1
   AND hca.cust_account_id = hcr.related_cust_account_id
   AND hca.party_id = hp.party_id
 --  and hp.party_number=:PARTY_NUMBER
   and hca.cust_account_id = 213139 ;

LDT Commands Oracle EBS

 

Concurrent program download :
==============================
FNDLOAD apps/password O Y DOWNLOAD $FND_TOP/patch/115/import/afcpprog.lct XX_DAILY_PAYMENT_REPORT_XL.ldt PROGRAM APPLICATION_SHORT_NAME="XXTOP" CONCURRENT_PROGRAM_NAME="XX_DAILY_PAYMENT_REPORT_XL"



Data definition and template download :
======================================
FNDLOAD apps/password O Y DOWNLOAD  $XDO_TOP/patch/115/import/xdotmpl.lct XX_DAILY_PAYMENT_REPORT_XL_DDTEMP.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME='XXTOP' DATA_SOURCE_CODE='XX_DAILY_PAYMENT_REPORT_XL' TMPL_APP_SHORT_NAME='XXTOP' TEMPLATE_CODE='XX_DAILY_PAYMENT_REPORT_XL'

Concurrent program upload:
=============================
FNDLOAD apps/password O Y UPLOAD $FND_TOP/patch/115/import/afcpprog.lct XX_DAILY_PAYMENT_REPORT_XL.ldt

Data definition and template upload:
======================================
FNDLOAD apps/password 0 Y UPLOAD $XDO_TOP/patch/115/import/xdotmpl.lct XX_DAILY_PAYMENT_REPORT_XL_DDTEMP.ldt


Script to run Workflow background process - Oracle EBS

 DECLARE
   l_responsibility_id   NUMBER;
   l_application_id      NUMBER;
   l_user_id             NUMBER;
   l_request_id          NUMBER;
BEGIN
 
   SELECT DISTINCT fr.responsibility_id, frx.application_id
             INTO l_responsibility_id, l_application_id
              FROM fnd_responsibility frx, fnd_responsibility_tl fr
             WHERE fr.responsibility_id = frx.responsibility_id
               AND  fr.responsibility_name LIKE 'System Administrator';
 
   SELECT user_id
     INTO l_user_id
     FROM fnd_user
    WHERE user_name = 'TEST_USER';
 
   --To set environment context.
 
   fnd_global.apps_initialize (l_user_id
                              ,l_responsibility_id
                              ,l_application_id );
 
   --Submitting Concurrent Request
 
   l_request_id :=
      fnd_request.submit_request (application      => 'FND',
                                  program          => 'FNDWFBG',
                                  description      => 'Workflow background process for deferred and timeout activities',
                                  start_time       => SYSDATE,
                                  sub_request      => FALSE,
                                  argument1        => NULL,
                                  argument2        => NULL,
                                  argument3        => NULL,
                                  argument4        =>'YES',
                                  argument5        =>'YES',
                                  argument6        =>'YES'
                                 );
   --
   COMMIT;
 
   IF l_request_id = 0
   THEN
      DBMS_OUTPUT.put_line ('Concurrent request
failed to submit');
   ELSE
      DBMS_OUTPUT.put_line ('Successfully
Submitted the Concurrent Request'|| l_request_id);
   END IF;
--
EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.put_line (   'Error While Submitting
Concurrent Request '
                            || TO_CHAR (SQLCODE)
                            || '-'
                            || SQLERRM
                           );
END;
 
/