Sie sind auf Seite 1von 4

1. Navigate to https://docs.oracle.com/en/cloud/saas/index.

html
2. Locate and select – Your Module
3. Select the correct Release from the - Choose your release: - LOV - Eg. Oracle Supply Chain Management Cloud R13 (update
18C)
4. Locate and select – Books
5. Locate and select - File-Based Data Import for Oracle Supply Chain Management Cloud under the heading – Development
6. Select the - HTML – link
7. Expand - File-Based Data Import
8. Locate and select – Your module
select * from fusion.egp_system_items_b where CREATED_BY = '98_emp'

SELECT accounts.party_id ,
accounts.account_name ,
accounts.account_number ,
party_sites.party_site_name ,
sites.cust_acct_site_id ,
sites.cust_account_id ,
site_uses.site_use_code ,
site_uses.primary_flag ,
site_uses.site_use_id ,
site_uses.location ,
locations.ADDRESS1 || ' ' || locations.ADDRESS2 || ' ' || locations.ADDRESS3 || ' ' || locations.ADDRESS4 || ' ' || locations.CITY
|| ' ' || locations.POSTAL_CODE || ' ' || locations.STATE ||
' ' || locations.country ,
territory.territory_short_name
FROM fusion.hz_cust_accounts accounts ,
fusion.hz_cust_acct_sites_all sites ,
fusion.hz_party_sites party_sites ,
fusion.hz_cust_site_uses_all site_uses ,
fusion.hz_locations locations ,
fusion.fnd_territories_vl territory
WHERE sites.cust_account_id = accounts.cust_account_id
AND party_sites.party_site_id = sites.party_site_id
AND site_uses.cust_acct_site_id = sites.cust_acct_site_id
AND locations.location_id = party_sites.location_id
-- AND site_uses.site_use_code = 'BILL_TO'
-- AND site_uses.primary_flag = 'Y'
AND site_uses.STATUS = 'A'
AND accounts.STATUS = 'A'
AND sites.STATUS = 'A'
AND locations.COUNTRY = territory.territory_code
AND EXISTS
(
SELECT 1
FROM fusion.fnd_setid_assignments
WHERE set_id = sites.set_id
AND reference_group_name = 'HZ_CUSTOMER_ACCOUNT_SITE'
AND determinant_type = 'BU'
)
and upper(accounts.account_name ) like upper('&CUSTOMER_NAME%')

OR

SELECT HZ.PARTY_ID ,
CUSTOMERACCOUNTSITEPEO.CUST_ACCOUNT_ID ,
HZ.PARTY_NAME ,
lOCATIONPEO.ADDRESS_STYLE ,
lOCATIONPEO.COUNTRY ||','|| LOCATIONPEO.ADDRESS1 ||','|| LOCATIONPEO.CITY ||','|| LOCATIONPEO.POSTAL_CODE LOCATION ,
CUSTOMERACCOUNTSITEPEO.STATUS "Account Site Status" ,
CUSTOMERACCOUNTSITEPEO.BILL_TO_FLAG ,
CUSTOMERACCOUNTSITEPEO.SHIP_TO_FLAG ,
CUSTOMERACCOUNTSITEUSEPEO.SITE_USE_CODE ,
CUSTOMERACCOUNTSITEUSEPEO.PRIMARY_FLAG ,
CUSTOMERACCOUNTSITEUSEPEO.STATUS "Cust_Site_Use Status" ,
CUSTOMERACCOUNTSITEUSEPEO.ORIG_SYSTEM_REFERENCE ,
CUSTOMERACCOUNTSITEUSEPEO.CUST_ACCT_SITE_ID ,
CUSTOMERACCOUNTSITEPEO.SET_ID
FROM fusion.HZ_PARTIES HZ ,
fusion.HZ_PARTY_SITES PartySitePEO ,
fusion.HZ_LOCATIONS LocationPEO ,
fusion.HZ_CUST_ACCT_SITES_ALL CustomerAccountSitePEO ,
fusion.HZ_CUST_SITE_USES_ALL CustomerAccountSiteUsePEO
WHERE HZ.PARTY_ID = PARTYSITEPEO.PARTY_ID
AND
(PARTYSITEPEO.LOCATION_ID = LOCATIONPEO.LOCATION_ID)
AND
(PARTYSITEPEO.PARTY_SITE_ID = CUSTOMERACCOUNTSITEPEO.PARTY_SITE_ID)
AND
(CUSTOMERACCOUNTSITEPEO.CUST_ACCT_SITE_ID = CUSTOMERACCOUNTSITEUSEPEO.CUST_ACCT_SITE_ID)
and upper(HZ.PARTY_NAME) like '98_cust1')

BuyingPartyName = PARTY_NAME
BuyingPartyId = PARTY_ID
BillToCustomerName = PARTY_NAME
BillToCustomerIdentifier = CUST_ACCOUNT_ID
BillToAccountSiteUseIdentifier= ORIG_SYSTEM_REFERENCE

Example SQL output


PARTY_ID ACCOUNT_ID PARTY_NAME ADDRESS_STYLE LOCATION S B S SITE_USE_CODE P S ORIG_SYS
Computer
US,2164
300000001469001 300000001469002 Service and POSTAL_ADDR_US A Y P SHIP_TO Y A 300000001
Broadway,Tempe,85282
Rentals
Computer
US,2164
300000001469001 300000001469002 Service and POSTAL_ADDR_US A Y P BILL_TO N A 300000001
Broadway,Tempe,85282
Rentals
Computer
300000001469001 300000001469002 Service and POSTAL_ADDR_US US,,, A Y N BILL_TO N A 300000002
Rentals
Computer
300000001469001 300000001469002 Service and POSTAL_ADDR_US US,,, A P Y BILL_TO Y A 300000002
Rentals
Computer
300000001469001 300000001469002 Service and POSTAL_ADDR_US US,,, A P Y SHIP_TO N A 300000002
Rentals

So for this example:

BuyingPartyName = Computer Service and Rentals


BuyingPartyId = 300000001469001
BillToCustomerName = Computer Service and Rentals
BillToCustomerIdentifier = 300000001469002
BillToAccountSiteUseIdentifier= 300000001469016

Das könnte Ihnen auch gefallen