72
13. ENTER_DR and ENTER_CR: Columns are used to enter the debit amount ar
Credit amount.
Sample Code Required to Upload the Data from Legacy System
LOADDATA
INFILE *
INTO TABLE GL.GL_INTERFACE
FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘ “ ‘
(STATUS, SET_OF_BOOKS_ID, ACCOUNTING_DATE, CURRENCY_CODE, DATE_CREATED,
ACTUAL_FLAG, USER_JE_CATEGORY_NAME, USER_JE_SOURCE_NAME, SEGMENT1, SEGMENT2,
SEGMENT3, SEGMENT4, SEGMENT5, ENTER_DR, ENTER_CR)
BEGINDATA
‐ ‐ Record‐1
“new”, 1, ”25‐MAY‐2001”, ”USD”, ”25‐MAY‐2001”, 1001239,”A”,”Sales Invoice”, “Receivables”, 03, 110,
1570,
0000, 110, 1947, “”
‐ ‐ Record‐2
“new”, 1, ”25‐MAY‐2001”, ”USD”, ”25‐MAY‐2001”, 1001239,”A”,”Sales Invoice”, “Receivables”, 03, 110, 6160,
1100, 120, “”, 1947
Save the above code with the file name GLINT.CTL in the path
Oracle\visdb\8.1.6in at server end.
Then run the following command at command prompt at Server end to upload the data
into various database tables.
SQLLDR APPS/APPS@VIS control=glint.ctl
Journals are going to be maintained in 3 levels
1. Batches: is a collection of Headers. This information will be stored in
GL_JE_BATCHES table.
2. Headers: is a collection of Lines. Headers are based on Category and Currency.
This information will be stored in GL_JE_HEADERS table.
3. Lines: This
information will be stored in GL_JE_LINES table.