Sei sulla pagina 1di 8

R12 Payables Supplier Creation

In R12 we have new concept of TCA(Trading Community Architecture),TCA is a centrali ed place where all the party details including Customer and !upplier details get saved" TCA has some important ta#les li$e %&'(ARTI)! and %&'(ART*'!IT)!" 1" 1" 2" 2" 4" 9" 2" 1" 2" 2" 4" 9" :" ;" 2" 1" 2" 2" 4" 9" 4" !teps to create !upplier in R12 paya#les+ Insert data in the !upplier interface ta#le AP_SUPPLIERS_INT ta#le with mandatory columns li$e vendor'interface'id (A('!,((-I)R!'I.T'!"ne/tval) status as 0.)10 3endor'.ame !egment1+ This columns stores the value of supplier num#er and which you can get from .)5T'A,T6'!,((-I)R'.,7"A('(R68,CT'!)T,( term'id and other columns Insert data in supplier site interface ta#le i"e AP_SUPPLIER_SITES_INT ta#le with mandatory columns li$e + vendor'site'interface'id (A('!,((-I)R'!IT)!'I.T'!"ne/tval) vendor'interface'id (A('!,((-I)R!'I.T'!"currval) 3endor'id+ ,se the vendor'id created in !tep 2 (!upplier Import (rogram)" !tatus as 0.)10 6rg'id 3endor'!ite'Code pay'site'flag as 0*0 else will throw error in the Import (rogram (The site is not a (ay !ite error) Its not a mandatory step+Insert records in the supplier contact ta#le i"e" A('!,('!IT)'C6.TACT'I.T with mandatory columns li$e vendor'interface'id (A('!,((-I)R!'I.T'!"currval) vendor'site'interface'id (A('!,((-I)R'!IT)!'I.T'!"currval) vendor'contact'interface'id (A('!,('!IT)'C6.TACT'I.T'!"ne/tval) -A!T'.A7)+ )lse will throw error in the import program" vendor'id Run the standard Import program "Supplier Open Interface Import" to import data from A('!,((-I)R'I.T ta#le to TCA and supplier standard ta#les",sing segment1 column we can chec$ data in (6'3).86R! which is a view of A('!,((-I)R! and %&'(ARTI)! "This will create a uni<ue vendor'id"In case of error,we can chec$ import failure reason in either import program output file or in the AP_SUPPLIER_INT_REJECTIONS ta#le" Run the !tandard supplier site import program i"e" "Supplier Sites Open Interface Import".This will create supplier site for a#ove vendor'id" Then run supplier contact import program "Supplier Site Contacts Open Interface Import". Note !e can also use re"uest set "Supplier Open Interface Re"uest Set" in place of runnin# eac$ import pro#ram in%i&i%uall'. ==In case any of the import program fails,we can chec$ import failure reason in either import program output file or in the AP_SUPPLIER_INT_REJECTIONS ta#le"In case output file is not giving any error reason that means latest patch for the import program has not #een applied"(lease chec$ with you 8>A and as$ him to apply the latest patch" !ample Code+

9" :"

I.!)RT into ap'suppliers'int (vendor'interface'id

,last'update'date ,last'updated'#y ,vendor'name ,3).86R'.A7)'A-T ,segment1 ,summary'flag ,ena#led'flag ,last'update'login ,creation'date ,created'#y ,vendor'type'loo$up'code ,one'time'flag ,ship'to'location'id ,#ill'to'location'id ,ship'via'loo$up'code ,fo#'loo$up'code ,freight'terms'loo$up'code ,terms'id ,set'of'#oo$s'id ,always'ta$e'disc'flag ,pay'date'#asis'loo$up'code ,pay'group'loo$up'code ,payment'priority ,invoice'currency'code ,payment'currency'code ,hold'all'payments'flag ,hold'future'payments'flag ,accts'pay'code'com#ination'id ,prepay'code'com#ination'id ,type'1?@@ ,payment'method'loo$up'code ,women'owned'flag ,small'#usiness'flag ,hold'flag ,terms'date'#asis ,inspection're<uired'flag ,receipt're<uired'flag ,<ty'rcv'tolerance ,<ty'rcv'e/ception'code ,enforce'ship'to'location'code ,days'early'receipt'allowed ,days'late'receipt'allowed ,receipt'days'e/ception'code ,auto'ta/'calc'flag ,auto'ta/'calc'override ,amount'includes'ta/'flag ,state'reporta#le'flag ,federal'reporta#le'flag ,auto'calculate'interest'flag ,e/clude'freight'from'discount ,match'option ,attri#ute1? ,attri#ute11 ,attri#ute12 ,attri#ute19 ,status ,e/clusive'payment'flag) AA,vat'code) AA .ew Added #ecause of error 3A-,)! (A('!,((-I)R!'I.T'!"ne/tval ,v'last'update'date ,v'last'updated'#y ,trim(upper(v'vendor'name)) ,trim(upper(v'vendor'name)) ,v'segment1 ,v'summary'flag ,v'ena#led'flag ,v'last'update'login ,v'creation'date ,v'created'#y ,.3-(v'vendor'type'loo$up'code,03).86R0) ,v'one'time'flag ,v'ship'to'location'id ,v'#ill'to'location'id ,v'ship'via'loo$up'code ,v'fo#'loo$up'code ,v'freight'terms'loo$up'code

,v'terms'id ,v'set'of'#oo$s'id ,v'always'ta$e'disc'flag ,v'pay'date'#asis'loo$up'code ,v'pay'group'loo$up'code ,v'payment'priority ,v'invoice'currency'code ,v'payment'currency'code ,v'hold'all'payments'flag ,v'hold'future'payments'flag ,v'accts'pay'ccid ,v'prepay'ccid ,v'type'1?@@ ,v'payment'method'loo$up'code ,v'women'owned'flag ,v'small'#usiness'flag ,v'hold'flag ,v'terms'date'#asis ,v'inspection're<uired'flag ,v'receipt're<uired'flag ,v'<ty'rcv'tolerance ,v'<ty'rcv'e/ception'code ,v'enforce'ship'to'loc'code ,v'days'early'receipt'allowed ,v'days'late'receipt'allowed ,v'receipt'days'e/ception'code ,v'auto'ta/'calc'flag calc'override ,v'amount'includes'ta/'flag ,v'state'reporta#le'flag ,v'federal'reporta#le'flag ,v'auto'calculate'interest'flag ,v'e/clude'fght'from'disc ,v'match'option ,p'vendor'name AA commented san$atha ?41??2 ,v'address'line1 ,v'vendor'site'code ,v'attri#ute12 ,su#str(v'address'line1,1,19) ,0.)10 ,nvl(v'e/clusive'payment'flag,0.0))B AA ,0.6 TA50)B fnd'file"put'line (fnd'file"-6C,0DI3)++0EE!F-GR61C6,.T)B AA=============================== AA Calling !upplier Import (rogram AA=============================== re<uest'id+H D.8'R)F,)!T"!,>7IT'R)F,)!T (Application HI 0!F-A(0 ,(rogram HI 0A(5!,I7(0 ,8escription HI .,-,!tart'time HI !*!8AT) ,!u#'Re<uest HI DA-!) ,Argument1 HI 0A--0 ,Argument2 HI 1??? ,Argument2 HI 0.0 ,Argument4 HI 0.0 ,Argument9 HI 0.0 )B C677ITB fnd'file"put'line (fnd'file"-6C,0re<uest'id++0EEre<uest'idEE0++0EElc'phase'code)B AA============================================ AA 1ait for the concurrent program to complete AA============================================ l#'wait +H D.8'C6.C,RR).T"1AIT'D6R'R)F,)!T ( re<uest'id HI re<uest'id , I.T)R3A- HI 9 , phase HI lc'phase , status HI lc'status , dev'phase HI lc'devpha

, dev'status HI lc'devsta , message HI lc'mesg )B fnd'file"put'line (fnd'file"-6C,0lc'status++0EElc'status)B C677ITB

fnd'file"put'line (fnd'file"-6C,0v'segment1++0EEv'segment1)B >)CI. !)-)CT vendor'id I.T6 v'vendor'id DR67 po'vendors where segment1 H v'segment1B

I.!)RT into ap'supplier'sites'int (vendor'interface'id ,vendor'site'interface'id , last'update'date ,last'updated'#y ,vendor'id ,vendor'site'code ,last'update'login ,creation'date ,created'#y AA ,purchasing'site'flag AA,rf<'only'site'flag ,pay'site'flag AA ,attention'ar'flag ,address'line1 ,address'line2 ,city ,state , ip ,country ,ship'to'location'id ,#ill'to'location'id ,ship'via'loo$up'code ,freight'terms'loo$up'code ,fo#'loo$up'code ,payment'method'loo$up'code ,terms'date'#asis ,accts'pay'code'com#ination'id ,prepay'code'com#ination'id ,pay'group'loo$up'code ,payment'priority ,terms'id ,pay'date'#asis'loo$up'code ,always'ta$e'disc'flag ,invoice'currency'code ,payment'currency'code ,hold'all'payments'flag ,hold'future'payments'flag AA ,hold'unmatched'invoices'flag AA ,ap'ta/'rounding'rule ,auto'ta/'calc'flag ,auto'ta/'calc'override ,amount'includes'ta/'flag AA ,e/clusive'payment'flag AA ,ta/'reporting'site'flag AA ,attri#ute11 AA ,validation'num#er ,org'id AA ,allow'awt'flag ,match'option ,status) 3A-,)! (A('!,((-I)R!'I.T'!"currval ,A('!,((-I)R'!IT)!'I.T'!"ne/tval ,v'last'update'date ,v'last'updated'#y ,v'vendor'idAA(6'3).86R!'!"C,RR3A,v'vendor'site'code ,v'last'update'login ,v'creation'date

AA

,v'created'#y AA ,v'purchasing'site'flag AA ,v'rf<'only'site'flag ,v'pay'site'flag AA ,v'attention'ar'flag ,trim(upper(v'address'line1)) ,trim(upper(v'address'line2)) ,trim(upper(v'city)) ,trim(upper(v'state)) ,v' ip ,v'country ,decode(upper(p'country),0,!A0,0,!0,0,.IT)8 !TAT)!0,0,!0,00,0,!0,0CA.A8A0,0CA0,07)5IC60,0750,00) ,v'ship'to'location'id ,v'#ill'to'location'id ,v'ship'via'loo$up'code ,v'freight'terms'loo$up'code ,v'fo#'loo$up'code ,v'payment'method'loo$up'code ,v'terms'date'#asis ,v'accts'pay'ccid ,v'prepay'ccid ,v'pay'group'loo$up'code ,v'payment'priority ,v'terms'id ,v'pay'date'#asis'loo$up'code ,v'always'ta$e'disc'flag ,v'invoice'currency'code ,v'payment'currency'code ,v'hold'all'payments'flag ,v'hold'future'payments'flag AA ,v'hold'unmatched'invoices'flag AA ,v'ap'ta/'rounding'rule ,v'auto'ta/'calc'flag ,v'auto'ta/'calc'override ,v'amount'includes'ta/'flag AA ,v'e/clusive'payment'flag AA ,v'ta/'reporting'site'flag AA ,v'attri#ute11 AA ,v'validation'num#er ,v'org'id AA ,v'allow'awt'flag ,v'match'option ,0.)10)B

fnd'file"put'line (fnd'file"-6C,0!I5++0EE!F-GR61C6,.T)B AA=============================== AA Calling !upplier !ite Import (rogram AA=============================== re<uest'id+H D.8'R)F,)!T"!,>7IT'R)F,)!T (Application HI 0!F-A(0 ,(rogram HI 0A(5!!I7(0 ,8escription HI .,-,!tart'time HI !*!8AT) ,!u#'Re<uest HI DA-!) ,Argument1 HI 0A--0 ,Argument2 HI 1??? ,Argument2 HI 0.0 ,Argument4 HI 0.0 ,Argument9 HI 0.0 )B C677ITB fnd'file"put'line (fnd'file"-6C,0re<uest'id++0EEre<uest'idEE0++0EElc'phase'code'one)B AA============================================ AA 1ait for the concurrent program to complete AA============================================ l#'wait +H D.8'C6.C,RR).T"1AIT'D6R'R)F,)!T ( re<uest'id HI re<uest'id , I.T)R3A- HI 9 , phase HI lc'phase , status HI lc'status , dev'phase HI lc'devpha

, dev'status HI lc'devsta , message HI lc'mesg )B C677ITB Additional Information:::::

Vendor conversion program will load the Supplier Master, Sites and Contacts data from data files to the staging tables, validate the data and then load the data into Interface tables, finally Validated data will import into Oracle Supplier Standard Tables by using Oracle Standard Supplier Import Programs.

Pre-requisites setups are: Payment terms, Pay Groups, CCID, Supplier classifications, Bank Accounts , Employees (if employees have to set up as vendors).

The Interface Tables are:

AP_SUPPLIERS_INT AP_SUPPLIER_SITES_INT AP_SUP_SITE_CONTACT_INT AP_SUPPLIERS_INT:

This is the open interface table for AP Suppliers. It holds Supplier information which is loaded by the user for import. The columns in the table map to corresponding columns in the PO_VENDORS table. The Oracle Payables application uses this information to create a new Supplier record when the Supplier Open Interface Import program is submitted. Each row in the table will be identified by a unique identifier, the VENDOR_INTERFACE_ID.

Mandatory Columns:

VENDOR_INTERFACE_ID (ap_suppliers_int_s.NEXTVAL)- Supplier interface record unique identifier VENDOR_NAME Supplier name Other important columns:

SEGMENT1 Supplier Number VENDOR_TYPE_LOOKUP_CODE Supplier type SHIP_TO_LOCATION_CODE Default ship-to-location name BILL_TO_LOCATION_CODE Default bill-to-location name TERMS_NAME Payment terms name TAX_VERIFICATION_DATE Tax verification date(1099) VAT_REGISTRATION_NUM Tax registration number ATTRIBUTE1 -15 Descriptive Flexfield Segments PAY_GROUP_LOOKUP_CODE Payment group type INVOICE_CURRENCY_CODE Default currency unique identifier PAYMENT_CURRENCY_CODE Default payment currency unique identifier NUM_1099 Tax identification number (1099) VAT_CODE Default invoice tax code HOLD_FLAG Indicates whether or not the supplier is on purchasing hold SUMMARY_FLAG Key flexfield summary flag ENABLED_FLAG Key flexfield enable flag

EMPLOYEE_ID Employee unique identifier if supplier is an employee AP_SUPPLIER_SITES_INT:

This is the open interface table for AP Supplier Sites. It holds Supplier Site information which is loaded by the user for import. The columns in the table map to corresponding columns in PO_VENDOR_SITES_ALL table. The Oracle Payables application uses this information to create a new Supplier Site record when the Supplier Sites Open Interface Import program is submitted. Each row in the table will be joined to the appropriate Supplier using the VENDOR_ID column.

Mandatory Columns:

VENDOR_SITE_INTERFACE_ID (ap_supplier_sites_int_s.NEXTVAL) Supplier Site interface record unique identifier VENDOR_SITE_CODE Supplier Site name Other important columns:

ADDRESS_LINE1 First line of supplier address ADDRESS_LINE2 Second line of supplier address ADDRESS_LINE3 Third line of supplier address CITY City name STATE State name or abbreviation ZIP Postal code COUNTRY Country name PHONE Phone number FAX Supplier site facsimile number SHIP_TO_LOCATION_CODE Default ship-to-location name BILL_TO_LOCATION_CODE Default bill-to-location name PAYMENT_METHOD_LOOKUP_CODE Default payment method type VAT_CODE Invoice default tax code PAY_GROUP_LOOKUP_CODE Payment group type TERMS_NAME Payment terms name INVOICE_CURRENCY_CODE Default currency unique identifier PAYMENT_CURRENCY_CODE Default payment currency unique identifier EMAIL_ADDRESS E-mail address of the supplier contact PURCHASING_SITE_FLAG Indicates whether purchasing is allowed from this site AUTO_TAX_CALC_FLAG Level of automatic tax calculation for supplier HOLD_ALL_PAYMENTS_FLAG Indicates if Oracle Payables should place payments for this supplier on hold AP_SUP_SITE_CONTACT_INT:

This is the open interface table for AP Supplier Site Contacts. It holds Supplier contact data. The columns in the table map to corresponding columns in PO_VENDOR_CONTACTS table. The Oracle Payables application uses this information to create a new Supplier Contact record when the Supplier Sites Open Interface Import program is submitted. Each row in the table will be joined to the appropriate Supplier Site using the VENDOR_SITE_CODE and ORG_ID.

Mandatory Columns:

VENDOR_INTERFACE_ID Supplier interface record unique identifier VENDOR_CONTACT_INTERFACE_ID (AP_SUP_SITE_CONTACT_INT_S.NEXTVAL) Vendor Contact Interface Identifier VENDOR_SITE_CODE Supplier Site name Other important columns:

FIRST_NAME Contact First name LAST_NAME Contact last name AREA_CODE Area code of contact phone number PHONE Contact phone number FIRST_NAME_ALT Alternate Supplier contact first name LAST_NAME_ALT Alternate Supplier contact last name EMAIL_ADDRESS Email address for the Supplier Site contact FAX Facsimile number for the Supplier Site contact VENDOR_ID Supplier unique identifier Validations:

Vendor Number (Check for duplicate records in ap_suppliers table) Vendor Name (Check for duplicate records in staging as well as in ap_suppliers table) Terms Name (Check for proper record in ap_terms_tl table) Pay Group (Check for proper record in fnd_lookup_values_vl table where lookup_type = PAY GROUP) Employee Id (Check for proper employee record in per_all_people_f table) Vendor Type (Check for proper record in po_lookup_codes table where lookup_type = VENDOR TYPE) Vendor Site Code (Check for duplicate records in ap_supplier_sites_all table) Country Code ( Check for proper country code in fnd_territories_vl table) Payment Method (Check for proper payment method in iby_payment_methods_vl table) Interface programs:

1. 2. 3.

Supplier Open Interface Import Supplier Sites Open Interface Import Supplier Site Contacts Open Interface Import

The data inserted via these interfaces are automatically populated into TCA tables.

Note: AP_SUPPLIER_INT_REJECTIONS table contains suppliers, sites, contacts rejections information.

Potrebbero piacerti anche