DBA Data[Home] [Help]

APPS.AR_AI_INTEG_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 52

   select  gl.currency_code into l_currency_code
    from ar_system_parameters_all asp,
           gl_ledgers gl
    where org_id = p_org_id
    and    gl.ledger_id = asp.set_of_books_id;
Line: 70

            select site_use.cust_acct_site_id, site_use.PAYMENT_TERM_ID
                into x_bill_to_address_id,x_payment_term_id
               from hz_cust_site_uses_all site_use,
                    hz_cust_acct_sites_all sites
               where sites.cust_account_id = p_bill_to_customer_account_id
               and sites.status ='A'
               and sites.cust_acct_site_id = site_use.cust_acct_site_id
               and site_use.site_use_code = 'BILL_TO'
    	         and site_use.primary_flag = 'Y'
               and site_use.org_id = p_org_id;
Line: 95

           select site_use.cust_acct_site_id
                  into x_ship_to_address_id
                 from hz_cust_site_uses_all site_use,
                      hz_cust_acct_sites_all sites
                 where sites.cust_account_id = p_ship_to_customer_account_id
                 and sites.status ='A'
                 and sites.cust_acct_site_id = site_use.cust_acct_site_id
                 and site_use.site_use_code = 'SHIP_TO'
      	         and site_use.primary_flag = 'Y'
                 and site_use.org_id = p_org_id;
Line: 122

         select payment_term_id into x_payment_term_id
          from  hz_cust_accounts
          where CUST_ACCOUNT_ID = p_bill_to_customer_account_id;