DBA Data[Home] [Help]

APPS.ECX_TP_API dependencies on HR_LOCATIONS

Line 2120: select LOCATION_CODE from hr_locations where LOCATION_ID=v_party_id;

2116: ** This API is called when ecx is synching up the data b/w ecx_tp_headers and the wf directories. **
2117: ** Please refer to the bug 4734256 for details.
2118: */
2119: cursor internal_party_name(v_party_id varchar) is
2120: select LOCATION_CODE from hr_locations where LOCATION_ID=v_party_id;
2121:
2122: cursor internal_site_name(v_party_id varchar) is
2123: select ADDRESS_LINE_1||ADDRESS_LINE_2||ADDRESS_LINE_3 ||town_or_city||country||postal_code from hr_locations
2124: where location_id =v_party_id ;

Line 2123: select ADDRESS_LINE_1||ADDRESS_LINE_2||ADDRESS_LINE_3 ||town_or_city||country||postal_code from hr_locations

2119: cursor internal_party_name(v_party_id varchar) is
2120: select LOCATION_CODE from hr_locations where LOCATION_ID=v_party_id;
2121:
2122: cursor internal_site_name(v_party_id varchar) is
2123: select ADDRESS_LINE_1||ADDRESS_LINE_2||ADDRESS_LINE_3 ||town_or_city||country||postal_code from hr_locations
2124: where location_id =v_party_id ;
2125:
2126: cursor bank_party_name(v_party_id varchar) is
2127: select BANK_NAME from CE_BANK_BRANCHES_V where BRANCH_PARTY_ID=v_party_id;

Line 2145: select decode(party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from ecx_tp_headers where party_id =v_party_id ;

2141:
2142: cursor customer_site_name(v_party_id varchar,v_party_site_id varchar) is
2143: select ADDRESS1 ||ADDRESS2 || ADDRESS3 || ADDRESS4 ||CITY ||POSTAL_CODE ||STATE ||PROVINCE || COUNTY||COUNTRY from hz_locations where location_id =(select location_id from hz_party_sites where party_id=v_party_id and party_site_id=v_party_site_id);
2144: cursor org_table(v_party_id varchar) is
2145: select decode(party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from ecx_tp_headers where party_id =v_party_id ;
2146:
2147: cursor org_site_table(v_party_id varchar) is
2148: select decode(party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES_ALL','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from ecx_tp_headers where party_id =v_party_id ;
2149:

Line 2148: select decode(party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES_ALL','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from ecx_tp_headers where party_id =v_party_id ;

2144: cursor org_table(v_party_id varchar) is
2145: select decode(party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from ecx_tp_headers where party_id =v_party_id ;
2146:
2147: cursor org_site_table(v_party_id varchar) is
2148: select decode(party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES_ALL','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from ecx_tp_headers where party_id =v_party_id ;
2149:
2150:
2151: /* This cursor "orig_site_role" is defined to get the name of the orig_system from wf_local_roles
2152: ** This would be used when we are deleting a Trading Partner**

Line 2156: select decode(p_party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from dual;

2152: ** This would be used when we are deleting a Trading Partner**
2153: ** As the above cursors can not be used, because they are based on the ecx_tp_headers table**
2154: */
2155: cursor orig_site_role is
2156: select decode(p_party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from dual;
2157:
2158: cursor orig_role is
2159: select decode(p_party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from dual;
2160:

Line 2159: select decode(p_party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from dual;

2155: cursor orig_site_role is
2156: select decode(p_party_type,'C','HZ_PARTY_SITES','EXCHANGE','HZ_PARTY_SITES','CARRIER','HZ_PARTY_SITES','S','PO_VENDOR_SITES','I','HR_LOCATIONS_SITES','B','CE_BANK_BRANCHES_SITE') from dual;
2157:
2158: cursor orig_role is
2159: select decode(p_party_type,'C','HZ_PARTIES','EXCHANGE','HZ_PARTIES','CARRIER','HZ_PARTIES','S','PO_VENDORS','I','HR_LOCATIONS','B','CE_BANK_BRANCHES_V') from dual;
2160:
2161: begin
2162: x_return_status := ECX_UTIL_API.G_NO_ERROR;
2163: x_msg := null;