Sunday, May 26, 2013

Query to fetch Trading partner Details of Bank Branch for EDI Payments








Below query is shared by our Guest Author jain.anurag1988@gmail.com , This query is used to verify whether the Trading partner setup exists for a BANK BRANCH.


SELECT DISTINCT cba.bank_account_name, 
                cvv.bank_branch_name, 
                bktph.tp_code
           FROM ce_bank_accounts cba,
                ce_bank_branches_v cvv,
                hz_contact_points hcp,
                ece_tp_headers bktph,
                ece_tp_details bktpd
          WHERE hcp.owner_table_id     = cba.bank_branch_id
            AND cvv.branch_party_id    = cba.bank_branch_id
            AND bktph.tp_header_id     = hcp.edi_tp_header_id(+)
            AND bktpd.tp_header_id     = bktph.tp_header_id(+)
            AND bktpd.document_id      = 'PYO'
            AND hcp.owner_table_name   = 'HZ_PARTIES'
            AND hcp.contact_point_type = 'EDI'
            AND bktpd.edi_flag         = 'Y';

Thank you Anurag

Sunday, May 26, 2013 by Team search · 2

Query to find map, connection type and vendor details of a Supplier Trading Partner









Below query is shared by our Guest Author, This query is used to fetch the important details like map, connection type and vendor details of the Trading partner of type SUPPLIER.


SELECT asup.vendor_name,
       eth.party_type,
       etd.connection_type,
       em.map_code
  FROM ecx_tp_headers eth,
       ecx_tp_details etd,
       ecx_mappings em,
       ap_suppliers asup,
       ap_supplier_sites_all assa
 WHERE eth.tp_header_id    = etd.tp_header_id
   AND asup.vendor_id      = eth.party_id
   AND assa.vendor_site_id = eth.party_site_id
   AND assa.vendor_id      = asup.vendor_id
   AND em.map_id(+)        = etd.map_id
   AND eth.party_type      = 'S';




 

by Team search · 0

Disclaimer

The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.