Payables Open Interface’s Control File
append into table AP_INVOICES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(INVOICE_NUM CHAR “RTRIM(:INVOICE_NUM)”,
INVOICE_TYPE_LOOKUP_CODE CHAR “RTRIM(:INVOICE_TYPE_LOOKUP_CODE)”,
INVOICE_DATE DATE “DD-MON-RRRR”,
VENDOR_NUM CHAR “RTRIM(:VENDOR_NUM)”,
VENDOR_SITE_CODE FILLER,
INVOICE_AMOUNT CHAR “RTRIM(:INVOICE_AMOUNT)”,
TERMS_NAME CHAR “RTRIM(:TERMS_NAME)”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DUMMY1 FILLER,
DUMMY2 FILLER,
DUMMY3 FILLER,
DUMMY4 FILLER,
GL_DATE DATE “TO_DATE((TO_CHAR(:GL_DATE,’DD-‘)||DECODE(TO_CHAR(:GL_DATE,’MON’),’AUG’,’SEP’,’SEP’,’SEP’,’OCT’,’OCT’,TO_CHAR(:GL_DATE,’MON’))||TO_CHAR(:GL_DATE,’-YYYY’)))”,
VOUCHER_NUM CHAR “RTRIM(:VOUCHER_NUM)”,
INVOICE_RECEIVED_DATE DATE,
AMOUNT_APPLICABLE_TO_DISCOUNT,
TERMS_DATE DATE,
SOURCE CONSTANT ‘MAXCIM INVOICE’,
PAYMENT_CURRENCY_CODE CONSTANT ‘USD’,
PAYMENT_METHOD_LOOKUP_CODE CONSTANT ‘CHECK’,
CALC_TAX_DURING_IMPORT_FLAG CONSTANT ‘N’,
ORG_ID CONSTANT ‘166’,
SHIP_TO_LOCATION CONSTANT ‘Materials Warehouse’,
INVOICE_CURRENCY_CODE CONSTANT ‘USD’,
creation_date SYSDATE,
last_updated_by CONSTANT 1093,
last_update_date SYSDATE,
created_by CONSTANT 1093,
INVOICE_ID “AP_INVOICES_INTERFACE_S.NEXTVAL”)
load data infile ‘AP_LINE_TEST.TXT’
append into table AP_INVOICE_LINES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(REFERENCE_2 CHAR “RTRIM(:REFERENCE_2)”,
TYPE FILLER,
ACCOUNTING_DATE DATE “DD-MON-RRRR”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DIST_CODE_COMBINATION_ID CHAR “RTRIM(:DIST_CODE_COMBINATION_ID)”,
LAST_UPDATED_BY CHAR “RTRIM(:LAST_UPDATED_BY)”,
AMOUNT CHAR “RTRIM(:AMOUNT)”,
CREATED_BY CHAR “RTRIM(:CREATED_BY)”,
CREATION_DATE DATE “DD-MON-RRRR”,
ATTRIBUTE1 CHAR “RTRIM(:ATTRIBUTE1)”,
ATTRIBUTE2 CHAR “RTRIM(:ATTRIBUTE2)”,
ATTRIBUTE3 CHAR “RTRIM(:ATTRIBUTE3)”,
TYPE_1099 CHAR “RTRIM(:TYPE_1099)”,
UNIT_OF_MEAS_LOOKUP_CODE CHAR “RTRIM(:UNIT_OF_MEAS_LOOKUP_CODE)”,
TAX_RATE CHAR “RTRIM(:TAX_RATE)”,
QUANTITY_INVOICED CHAR “RTRIM(:QUANTITY_INVOICED)”,
UNIT_PRICE CHAR “RTRIM(:UNIT_PRICE)”,
INVOICE_ID “AP_INVOICE_LINES_INTERFACE_S.NEXTVAL”)
Leave a Reply
Want to join the discussion?Feel free to contribute!