Professional Documents
Culture Documents
What is an interface?
- Interface is a communication channel that
allows the data to move in and out of the
system.
- acts as a medium to transfer the data from one
module to another module or to transfer the
data from legacy system into Oracle
Applications.
TYPES OF INTERFACES
Inbound Interface
Allows data to get into oracle application from
outside systems
Outbound Interface
Allows to get data from oracle applications to
other systems -- like reporting
TYPES OF INBOUND
INTERFACES
1.Open interfaces—wadah komunikasi antara populate
• Interface Components
– SQL* Loader Program Load data
– DB Links Load data
– Exception Handling Validasi
– Interface Summary Report (Processed,
Exceptions) Generate report
SQL* LOADER PROGRAM
- the primary method for quickly populating
Oracle tables with data from external files.
- Uses text files (csv, tab delimited, etc.) with
data and a so called control file (ctl)
- SQL*Loader program has a log file to give an
overview of the process, a bad file of records
that caused errors in the process, and a
discard file for records that were not selected
during the load.
SQL* LOADER PROGRAM
CONTROL FILE
sqlldr
db_user/db_password@host:port/sid
control=control_file_name.ctl
log=log_file_name.log
bad=bad_file_name.bad
data=data_file_name.csv
SQL* LOADER PROGRAM
SKIP = 1
LOAD DATA
INFILE 'data_file_name.csv‘ hanya
ditulis ketika
mau hardcode.
BADFILE 'data_file_name.bad'
REPLACE INTO TABLE
XXCUSTOM.YOUR_CUSTOM_TABLE
FIELDS TERMINATED BY "," OPTIONALLY
ENCLOSED BY '"'
TRAILING NULLCOLS
(
COLUMN1,COLUMN2,COLUMN3,...
EXAMPLE OF CONTROL FILE
SKIP=1
Tells SQL*Loader to exclude row 1 in the data file (to
exclude the headers)
INFILE
Specifies the name of the incoming text file data
BADFILE
Determines the bad file generated for any errors
occured during the load.
EXAMPLE OF CONTROL FILE
REPLACE
This command will first truncate the table and than add
the records. If you change this in an APPEND command
the records will be added only to the table specified
without truncating first
FIELDS TERMINATED BY
Determines the separator used in the text file data
EXAMPLE OF CONTROL FILE
OPTIONALLY ENCLOSED BY
Determines an additional enclosing character like for
example " if you're adding data which contains the
column separator used
TRAILING NULLCOLS
Is used to treat any missing data in the csv file as NULL
for the table to be loaded
29
DAY 2
AMOUNT
Validated against
- 'Parent' must be 'No' for All the segments values
- DIST_CODE_CONCATENATED needs to meet the security rules
- DIST_CODE_COMBINATION_ID must be in
SELECT code_combination_id
FROM gl_code_combinations
WHERE account_type = 'E'
AND enabled_flag = 'Y'
AND summary_flag = 'N'
DIST_CODE_CONCATENATED or AND SYSDATE BETWEEN NVL(start_date_active, SYSDATE - 1)
DIST_CODE_COMBINATION_ID AND NVL(end_date_active, SYSDATE + 1)
PAYABLES OPEN INTERFACE
Base Tables:
• AP_INVOICES_ALL
• AP_INVOICE_LINES_ALL
• AP_INVOICE_DISTRIBUTIONS_ALL
PAYABLES OPEN INTERFACE
Mandatory Parameters
1. Source - It can be any of the below list:
Mandatory Parameters
2. Invoice Batch Name
– Use Batch Control Payables Profile option need to be
enabled to use this parameter
The Output:
PAYABLES OPEN INTERFACE
42
END
Thank You
43