Vous êtes sur la page 1sur 354

LAD Add-on Localizations

Oracle® Brazil

ISV Integration Solution

Technical Reference Manual


Release 12
Mar 2018
Version 62

DISCLAIMER:

CURRENTLY, ORACLE OFFERS CERTAIN RESALABLE ASSETS OR OTHER DEFINED SERVICE


DELIVERABLES (COLLECTIVELY REFERRED TO AS “SERVICE DELIVERABLES”) UNDER A
LIMITED USE LICENSE. THE SERVICE DELIVERABLES CURRENTLY INCLUDE, BUT ARE NOT
LIMITED TO, ORACLE INTEGRATION HUB. YOU AGREE THAT :
(05) SERVICE DELIVERABLES ARE NOT ORACLE STANDARD SOFTWARE PROGRAMS,
(ii) TECHNICAL SUPPORT FOR SERVICE DELIVERABLES IS NOT AVAILABLE FROM OR
UNDER, OR PROVIDED BY OR THROUGH, ORACLE’S SUPPORT SERVICES
ORGANIZATION OR YOUR ORACLE PROGRAM LICENSE AGREEMENT,
(iii) YOUR RIGHT TO USE AND RECEIVE SUPPORT SERVICES FOR SERVICE
DELIVERABLES IS SOLELY AS DESCRIBED IN YOUR CONTRACT FOR SUCH SERVICE
DELIVERABLES, AND
(iv) A SERVICE REQUEST REGARDING SERVICE DELIVERABLES, REGARDLESS OF HOW
INITIATED OR LOGGED, WILL BE ADDRESSED IN ACCORDANCE WITH THE TERMS OF
YOUR CONTRACT FOR SUCH SERVICE DELIVERABLES.
Change Control

Date Author Version Change Reference


9-dec-09 Marcos Allonso 1 Initial Build
9-dec-09 Luana Calazans 1 Add Tables Definitions
Add Lookup Codes Definitions
Add Packages Definitions
Add Triggers Definitions
Add Views Definitions
23-dec-09 Marcos Allonso 2 Review document
10-feb-10 Marcos Allonso 3 Change title
7-jul-10 Luana Calazans 4 Update the contents of the objects

Views
cll_f255_ap_invoices_ri_v
cll_f255_ap_taxes_withheld_v
cll_f255_gl_daily_book_v
cll_f255_gl_major_book_v
cll_f255_ri_invoice_items_v
cll_f255_ri_invoices_v
cll_f255_ar_total_inv_taxes_v
cll_f255_ri_freights_v
cll_f255_ap_invoices_v
cll_f255_ap_terms_v
cll_f255_ar_invoice_items_v
cll_f255_ar_invoices_v
cll_f255_ar_receivables_v
cll_f255_establishment_v
cll_f255_ar_customers_v
cll_f255_gl_acct_hierarchy_v
cll_f255_om_stock_v
cll_f255_pac_inventory_v

Packages
CLLTBEUS.pls
CLLUBEUB.pls
CLLUBEBB.pls
CLLUBEBS.pls

New views:

cll_f255_gl_seg_val_hierarch_v
cll_f255_opm_inventory_v
cll_f255_opm_stock_v
cll_f255_org_definitions_v
cll_f255_gl_segments_v

Oracle Proprietary, Confidential Information - Use Restricted by Contract ii


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
27-oct-10 Luana Calazans 4 Packages:

CLLUBEUB.pls
cll_f255_notifications,
cll_f255_per_all_people_f_t1,
cll_f255_establishment_v,
cll_f255_opm_inventory_v,
cll_f255_pac_inventory_v,
cll_f255_ar_invoices_v,
cll_f255_ar_invoice_items_v,
cll_f255_ar_nffs_request_v
2-dec-10 Luana Calazans 5 Update the contents of the objects

Views:
cll_f255_po_suppliers_v,
cll_f255_ri_invoice_items_v,
cll_f255_establishment_v,
cll_f255_ar_total_inv_taxes_v
9-dec-10 Luana Calazans 6 Update the contents of the objects

View:
cll_f255_ri_invoice_items_v.xdf
5-jan-11 Luana Calazans 7 Patch 10628504

Update the contents of the object ->


View:
cll_f255_pac_inventory_v
16-mar-11 Marcos Allonso 8 Patch 11779377

cll_f255_ap_taxes_withheld_v
cll_f255_ri_freights_v
cll_f255_ri_invoice_items_v
cll_f255_ri_invoices_v
cll_f255_ri_ra_cust_trx_v
21-mar-11 Luana Calazans 9 Patch 11657360

cll_f255_ri_freights_v
cll_f255_ri_invoice_items_v
cll_f255_ri_invoices_v

Patch 11835255

cll_f255_ar_customers_v
cll_f255_ar_invoices_v
cll_f255_ar_nffs_request_v
cll_f255_ar_total_inv_taxes_v
cll_f255_cst_inventory_v
cll_f255_gl_acct_hierarchy_v
cll_f255_ri_ra_cust_trx_v
29-mar-11 Luana Calazans 10 Patch 11933884

cll_f255_ap_invoices_v
cll_f255_establishment_v

Oracle Proprietary, Confidential Information - Use Restricted by Contract iii


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
30-may-11 Luana Calazans 11 Patch: 12340845

New Trigger
CLLBETST.sql

New Events
CLLMTLITEM_e.wfx
CLLMTLITEM_s.wfx

Update the contents of the objects


CLLUBEUB.pls

New Views:
cll_f255_fa_asset_fiscaldoc_v
cll_f255_fa_asset_invoices_v
20-jun-11 Luana Calazans 12 Patch: 12632835

Update the contents of the objects


CLLBETCD.sql
CLLBETEO.sql
CLLBETHO.sql
CLLBETPD.sql
CLLBETPI.sql
CLLBETPJ.sql
CLLBETRC.sql
CLLUBEUB.pls
cll_f255_fa_asset_fiscaldoc_v
cll_f255_fa_asset_invoices_v
cll_f255_pac_inventory_v
cll_f255_pac_stock_v
cll_f255_ri_invoice_items_v
5-jul-11 Luana Calazans 13 Patch: 12715590

New Triggers:
CLLBETJG.sql
CLLBETEP.sql
CLLBETEG.sql
CLLBETAG.sql
CLLBETEL.sql
CLLBETES.sql
28-jul-11 Luana Calazans 14 Patch: 12770363
Update the contents of the objects

cll_f255_gl_daily_book_v
cll_f255_gl_major_book_v
cll_f255_ar_total_inv_taxes_v
CLLBETPS.sql
27-set-11 Marcos Allonso 15 Patch: 12977903

Update views:
cll_f255_establishment_v
cll_f255_org_definitions_v
26-oct-11 Marcos Allonso 16 Patch 13096825

New trigger :
CLL_F255_JL_BR_CUSTOMER_TRX_T1
New concurrent:
CLL_F255_SYNC_BATCH_EVENTS_PKG

Oracle Proprietary, Confidential Information - Use Restricted by Contract iv


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
30-jan-12 Marcos Allonso 17 Patch 13414023

Update view:
cll_f255_ar_invoice_items_v
New view:
cll_f255_le_setup_v
15-mar-12 Marcos Allonso 18 Patch 13770277

New columns of views:


cll_f255_le_setup_v
cll_f255_establishment_v
7-mai-12 Marcos Allonso 19 Patch 13960735

Add new columns on view: cll_f255_ri_invoices_v


6-nov-12 Marcos Allonso 20 Patch 14769101

Add new columns on view: cll_f255_ri_freights_v


10-apr-13 Marcos Allonso 21 Patches 15940867, 16562566

Add new columns on views:


cll_f255_ar_invoice_items_v
cll_f255_ar_invoices_v
cll_f255_ri_freights_v
28-may-13 Marcos Allonso 22 Patch 16834900

Review columns on views:


cll_f255_ar_invoice_items_v
cll_f255_ar_total_inv_taxes_v
26-jun-13 Carlos Santos 23 Patch 16934982

Add new columns on view:


cll_f255_ri_invoice_items_v
28-aug-2013 Eduardo Leite 24 New views:

cll_f255_bom_bill_of_mtls_v
cll_f255_bom_inv_components_v
14-oct-2013 Eduardo Leite 25 Patch 17567981
New views:

cll_f255_ar_invoice_ato_line_v
cll_f255_ar_invoice_ato_tax_v
cll_f255_ar_invoice_items_v
cll_f255_inv_category_items_v
cll_f255_opm_formula_items_v
cll_f255_wip_mat_components_v
cll_f255_wip_materials_v
cll_f255_wip_operations_v
13-mar-2014 Carlos Santos 26 Patch 18147253

Review of the following objects:


cll_f255_ar_invoice_ato_line_v
cll_f255_ar_invoice_ato_tax_v
cll_f255_ar_invoice_items_v
cll_f255_ar_total_inv_taxes_v
CLLUBEUB.pls
25-apr-14 Marcos Allonso 27 Patch 18529779

Review of the following objects:


cll_f255_pac_inventory_v
cll_f255_opm_inventory_v

Oracle Proprietary, Confidential Information - Use Restricted by Contract v


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
13-may-14 Ricardo Cheachire 28 Patch 18746542

Trigger modified on raise statement:


CLL_F255_MTL_UNITS_MEASURE_T1
(CLLBETMU.sql)
27-may-14 Ricardo Cheachire 29 Patch 18839995
Update the contents of the objects

Views
cll_f255_ri_freights_v
cll_f255_opm_inventory_v
14-Jul-14 Ricardo Cheachire 30 Patch 19211239
Update the contents of the objects

Views
cll_f255_ar_invoice_items_v
15-ago-14 Ricardo Cheachire 31 Patch 19357166
Updated content of the object

View:
cll_f255_ar_total_inv_taxes_v
15-ago-14 Ricardo Cheachire 32 Patch 19440612
Update the contents of the objects

Views
cll_f255_ar_customers_v
cll_f255_ar_invoices_v
18-ago-14 Ricardo Cheachire 33 Patch 19451056
New object created

View
cll_f255_ind_third_parties_v
28-ago-14 Ricardo Cheachire 34 Patch 19517845
Updated content of the object

View:
cll_f255_ar_invoice_items_v
cll_f255_establishment_v
cll_f255_le_setup_v
18-Sep-14 Ricardo Cheachire 35 Patch 19638840
Updated content of the object

View:
cll_f255_ar_invoice_items_v
cll_f255_ap_taxes_withheld_v
cll_f255_ri_invoice_items_v
09-Oct-14 Ricardo Cheachire 36 Patch 19790185
Updated content of the object

Trigger:
cll_f255_ap_terms_t1
30-Oct-14 Ricardo Cheachire 37 Patch 19881454
Updated content of objects

View:
cll_f255_ar_invoices_v
cll_f255_ar_invoice_items_v

Oracle Proprietary, Confidential Information - Use Restricted by Contract vi


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
24-Nov-14 Ricardo Cheachire 38 Patch 20086950
Create object
Sequence:
cll_f255_iface_operation_id_s.xdf

Updated content of objects


Packages:
CLLUBEUB.pls
CLLTBEUS.pls
29-Jan-15 Ricardo Cheachire 39 Patch 20432343
Updated content of objects

Sequence:
cll_f255_iface_operation_id_s.xdf
12-Feb-15 Eduardo Leite 40 Patch 17627489 - R12.CLL ISV Integration Solution Pack 15
Updated content of the object

View:
cll_f255_cst_inventory_temp_v.xdf

Package:
cll_f255_cst_inventory_pub (CLLCSTIB.pls)
27-Feb-2015 Ricardo Cheachire 41 Patch 20616580 - R12.CLL ISV Integration Solution Pack 16
Updated content of the object

Package:
CLLUBEUB.pls
09-Mar-2015 Carlos Santos 42 Patch 20666670 - R12.CLL ISV Integration Solution Pack 17
Updated content of the objects

View:
cll_f255_ar_invoice_ato_line_v
cll_f255_ar_invoice_items_v
12-Mar-2015 Ricardo Cheachire 43 Patch 20679785 - R12.CLL ISV Integration Solution Pack 18
Updated content of the objects

View:
cll_f255_ar_invoice_items_v
31-Mar-2015 Carlos Santos 44 Patch 20666793 - R12.CLL ISV Integration Solution Pack 19
New objects

Packages:
CLLOFSSB.pls
CLLOFSS.pls
17-Apr-2015 Ricardo Cheachire 45 Patch 20895884 - R12.CLL ISV Integration Solution Pack 20
Updated content of the objects

Trigger:
CLLBETHC.sql

Oracle Proprietary, Confidential Information - Use Restricted by Contract vii


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
06-Aug-2015 Ricardo Cheachire 46 Patch 20867039 - R12.CLL ISV Integration Solution Pack 21
Updated content of the objects

Triggers:
CLLBETHA.sql
CLLBETHN.sql
CLLBETHS.sql
CLLBETMM.sql
CLLBETMS.sql
CLLBETPI.sql
CLLBETRT.sql
CLLBETWC.sql
CLLBETWN.sql

Packages:
CLLTBEUS.pls
CLLUBEBB.pls
CLLUBEUB.pls

13-Aug-2015 Ricardo Cheachire 47 Patch 22179841- R12.CLL ISV Integration Solution Pack 22
Updated content of the objects

View:
cll_f255_ar_total_inv_taxes_v

01-Dec-2015 Ricardo Cheachire 48 Patch 22288009 - R12.CLL ISV Integration Solution Pack 23
New objects

View:
cll_f255_gme_matl_v

02-Dec-2015 Ricardo Cheachire 49 Patch 22300759 - R12.CLL ISV Integration Solution Pack 24
Updated content of the objects

View:
cll_f255_establishment_v

Profile:
CLLBEPRO.ldt

23-Fev-2016 Ricardo Cheachire 50 Patch 22813717 - R12.CLL ISV Integration Solution Pack 25
Updated content of the objects

View:
cll_f255_ar_invoice_items_v

17-Mar-2016 Ricardo Cheachire 51 Patch 22959707 - R12.CLL ISV Integration Solution Pack 26
Updated content of the objects

Views:
cll_f255_ri_invoice_items_v
cll_f255_ri_invoices_v

Triggers:
CLLBETIL
CLLBETIT

Oracle Proprietary, Confidential Information - Use Restricted by Contract viii


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
06-Jan-2016 Ricardo Cheachire 52 Patch 22934150 - R12.CLL ISV Integration - Branch Pack 1
Updated content of the objects

Views:
cll_f255_ar_invoice_items_v
cll_f255_ri_invoice_items_v

27-May-2016 Ricardo Cheachire 53 Patch 23338317 - R12.CLL ISV Integration - Branch Pack 2
Updated content of the objects

Views:
cll_f255_ar_invoice_items_v
cll_f255_ri_invoice_items_v

14-Apr-2016 Ricardo Cheachire 54 Patch 23106589 - R12.CLL ISV Integration Solution Pack 28
Updated content of the objects

Views:
cll_f255_establishment_v
cll_f255_ri_invoice_items_v

27-Mai-2016 Ricardo Cheachire 55 Patch 23329410 - R12.CLL ISV Integration Solution Pack 29
Updated content of the objects

Views:
cll_f255_ar_invoice_items_v
cll_f255_ri_invoice_items_v

23-Jun-2016 Ricardo Cheachire 56 Patch 23627050 - R12.CLL ISV Integration - Branch Pack 3
Updated version of the objects

Views:
cll_f255_ar_invoice_items_v
cll_f255_ri_invoice_items_v

26-Jul-2016 Ricardo Cheachire 57 Patch 23329410 - R12.CLL ISV Integration Solution Pack 30
Updated content of the objects

Trigger:
CLL_F255_PO_RELEASES_T1
26-Oct-2016 Ricardo Cheachire 58 Patch 24948904 - R12.CLL ISV Integration Solution Pack 31
Updated content of the objects

Views:
cll_f255_wip_materials_v
cll_f255_gme_matl_v

Lookup:
CLLBELKP
11-Jan-2017 Ricardo Cheachire 59 Patch 25380269 - R12.CLL ISV Integration Solution Pack 32
New objects

View:
cll_f255_opm_third_parties_v
11-May-2017 Ricardo Cheachire 60 Patch 26043628 - R12.CLL ISV Integration Solution Pack 33
Updated content of the objects

Views:
cll_f255_ar_customers_v
cll_f255_opm_inventory_v2
cll_f255_ri_invoices_v

Oracle Proprietary, Confidential Information - Use Restricted by Contract ix


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Date Author Version Change Reference
23-Oct-2017 Ricardo Cheachire 61 Patch 27011850 - R12.CLL ISV Integration Solution Pack 36
New objects

Views:
cll_f255_fm_ar_processes_v
cll_f255_fm_cno_profiles_v
cll_f255_fm_contacts_v
cll_f255_fm_entity_profiles_v
cll_f255_fm_processes_v
cll_f255_fm_ri_processes_v
cll_f255_fm_software_house_v

Updated content of the objects

Views:
cll_f255_ar_customers_v
cll_f255_ar_invoice_items_v
cll_f255_ar_invoices_v
cll_f255_ar_total_inv_taxes_v
cll_f255_ri_invoice_items_v
cll_f255_ri_invoices_v

05-mar-2018 Elton Gini 62 Patch 27500969: R12.CLL ISV Integration Solution Pack 37

Views:
cll_f255_tpa_renewal_remit_v

Reviewers

Name Function

Silvia Tonissi LAD Localizations Director


Ricardo Cheachire Principal Program Manager

Distribution

Copy No. Name Local

1 Library Master Library Project


2
3

Oracle Proprietary, Confidential Information - Use Restricted by Contract x


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Content

CHAPTER 1 High Level Design ................................................................................................................. 1


General View of the High Level Design .............................................................................. 2
Summarized View of the ISV Integration Solution ..................................................... 2
Table Diagram .................................................................................................................. 2
List of Tables..................................................................................................................... 2
List of Views ..................................................................................................................... 2
List of Modules .............................................................................................................. 2
Summarized View of the ISV Integration Solution ............................................................ 3
Rules Used in the Entity Relationship Diagram .......................................................... 3
Table Diagrams ....................................................................................................................... 4
Convention Used in the Table Diagram ....................................................................... 4
Diagram ............................................................................................................................ 5
List of Tables ............................................................................................................................ 6
External Tables ................................................................................................................. 6
ISV Integration Solution Tables ..................................................................................... 6
List of Views ............................................................................................................................ 7
External Views ................................................................................................................. 7
Views ................................................................................................................................. 9
List of Modules...................................................................................................................... 14
Triggers ........................................................................................................................... 14
Packages .......................................................................................................................... 18

CHAPTER 2 Detailed Design ................................................................................................................... 21


General View of the Detailed Design ................................................................................. 22
Table Definition ............................................................................................................. 22
Module Definition ......................................................................................................... 22
Quick Codes ................................................................................................................... 22
Table Definition..................................................................................................................... 24
Objective ......................................................................................................................... 24
Column Description ...................................................................................................... 24
Primary Key.................................................................................................................... 25
Other Unique Keys ........................................................................................................ 25
Check Constraints .......................................................................................................... 26
Foreign Key .................................................................................................................... 26
Quick Codes ................................................................................................................... 26
Sequence ......................................................................................................................... 26

Oracle Proprietary, Confidential Information - Use Restricted by Contract xi


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
Table Definition..................................................................................................................... 27
CLL_F255_NOTIFICATIONS ...................................................................................... 27
View Definition ..................................................................................................................... 31
CLL_F255_AP_BANKS_V ............................................................................................ 31
CLL_F255_AP_INVOICES_RI_V ................................................................................. 34
CLL_F255_AP_INVOICES_V....................................................................................... 45
CLL_F255_AP_IRRF_V ................................................................................................. 58
CLL_F255_AP_PAYABLES_V ..................................................................................... 63
CLL_F255_AP_PAYMENTS_V .................................................................................... 73
CLL_F255_AP_TAXES_V ............................................................................................. 84
CLL_F255_AP_TAXES_WITHHELD_V ..................................................................... 88
CLL_F255_AP_TERMS_V ............................................................................................ 94
CLL_F255_AR_INVOICE_ATO_LINE_V .................................................................. 97
CLL_F255_AR_INVOICE_ATO_TAX_V .................................................................... 99
CLL_F255_AR_CASH_RECEIPTS_V ........................................................................ 104
CLL_F255_AR_CUSTOMERS_V ............................................................................... 109
CLL_F255_AR_INVOICE_ITEMS_GL_V ................................................................. 121
CLL_F255_AR_INVOICE_ITEMS_V ........................................................................ 123
CLL_F255_AR_INVOICE_PARENTS_V .................................................................. 140
CLL_F255_AR_INVOICES_V .................................................................................... 143
CLL_F255_AR_NFFS_REQUEST_V .......................................................................... 155
CLL_F255_AR_RECEIVABLES_V ............................................................................. 162
CLL_F255_AR_TOTAL_INV_TAXES_V .................................................................. 168
CLL_F255_BOM_BILL_OF_MTLS_V ....................................................................... 178
CLL_F255_BOM_INV_COMPONENTS_V .............................................................. 182
CLL_F255_CST_INVENTORY_V .............................................................................. 190
CLL_F255_CST_STOCK_V ......................................................................................... 197
CLL_F255_ESTABLISHMENT_V .............................................................................. 199
CLL_F255_GL_DAILY_BOOK_V .............................................................................. 205
CLL_F255_INV_CATEGORY_ITEMS_V .................................................................. 209
CLL_F255_GL_MAJOR_BOOK_V ............................................................................ 210
CLL_F255_LE_SETUP_V ............................................................................................ 212
CLL_F255_MTL_UNITS_MEASURE_V ................................................................... 219
CLL_F255_OM_STOCK_V ......................................................................................... 221
CLL_F255_OPM_FORMULA_ITEMS_V .................................................................. 226
CLL_F255_ORG_COMPANIES_V ............................................................................ 230
CLL_F255_PAC_INVENTORY_V ............................................................................. 231
CLL_F255_PAC_STOCK_V ........................................................................................ 241
CLL_F255_PO_SUPPLIERS_V ................................................................................... 246
CLL_F255_RA_TERMS_V .......................................................................................... 252
CLL_F255_RI_FISCAL_CLASS_V ............................................................................. 254
CLL_F255_RI_FISC_EXCEPTIONS_V ...................................................................... 256
CLL_F255_RI_FREIGHTS_V ...................................................................................... 259
CLL_F255_RI_INTERSTATE_ICMS_V ..................................................................... 264
CLL_F255_RI_INVOICE_ITEMS_V .......................................................................... 265
CLL_F255_RI_INVOICES_V ...................................................................................... 273
CLL_F255_GL_SEG_VAL_HIERARCH_V .............................................................. 285
CLL_F255_OPM_INVENTORY_V ............................................................................ 287
CLL_F255_ORG_DEFINITIONS_V ........................................................................... 291

Oracle Proprietary, Confidential Information - Use Restricted by Contract xii


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
CLL_F255_OPM_STOCK_V ....................................................................................... 293
CLL_F255_GL_ACCT_HIERARCHY_V................................................................... 297
CLL_F255_GL_SEGMENTS_V .................................................................................. 299
CLL_F255_CST_INVENTORY_TEMP_V ................................................................. 299
CLL_F255_RI_RA_CUST_TRX_V ............................................................................. 302
CLL_F255_FA_ASSET_FISCALDOC_V ................................................................... 303
CLL_F255_FA_ASSET_INVOICES_V ....................................................................... 307
CLL_F255_WIP_MAT_COMPONENTS_V .............................................................. 311
CLL_F255_WIP_MATERIALS_V .............................................................................. 314
CLL_F255_WIP_OPERATIONS_V ............................................................................ 317
CLL_F255_IND_THIRD_PARTIES_V ...................................................................... 319
CLL_F255_GME_MATL_V ........................................................................................ 320
Module Definition .............................................................................................................. 325
General View of the Module ...................................................................................... 327
CLLBETAC ................................................................................................................... 327
CLLBETAE ................................................................................................................... 327
CLLBETAI..................................................................................................................... 327
CLLBETAP.................................................................................................................... 327
CLLBETAR ................................................................................................................... 327
CLLBETAS .................................................................................................................... 328
CLLBETAT ................................................................................................................... 328
CLLBETBD.................................................................................................................... 328
CLLBETBV .................................................................................................................... 328
CLLBETCD ................................................................................................................... 328
CLLBETEO ................................................................................................................... 328
CLLBETER .................................................................................................................... 328
CLLBETFC .................................................................................................................... 329
CLLBETFD .................................................................................................................... 329
CLLBETFI ..................................................................................................................... 329
CLLBETFO .................................................................................................................... 329
CLLBETFT .................................................................................................................... 329
CLLBETHA ................................................................................................................... 329
CLLBETHC ................................................................................................................... 330
CLLBETHI .................................................................................................................... 330
CLLBETHL ................................................................................................................... 330
CLLBETHO ................................................................................................................... 330
CLLBETHP ................................................................................................................... 330
CLLBETIL ..................................................................................................................... 330
CLLBETIT ..................................................................................................................... 330
CLLBETIU..................................................................................................................... 331
CLLBETMS ................................................................................................................... 331
CLLBETMT ................................................................................................................... 331
CLLBETMU .................................................................................................................. 331
CLLBETOE ................................................................................................................... 331
CLLBETOL ................................................................................................................... 331
CLLBETPA.................................................................................................................... 332
CLLBETPB .................................................................................................................... 332
CLLBETPC .................................................................................................................... 332
CLLBETPD.................................................................................................................... 332
CLLBETPE .................................................................................................................... 332
Oracle Proprietary, Confidential Information - Use Restricted by Contract xiii
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
CLLBETPF .................................................................................................................... 332
CLLBETPG.................................................................................................................... 332
CLLBETPH ................................................................................................................... 333
CLLBETPI ..................................................................................................................... 333
CLLBETPJ ..................................................................................................................... 333
CLLBETPL .................................................................................................................... 333
CLLBETPM ................................................................................................................... 333
CLLBETPN ................................................................................................................... 333
CLLBETPO ................................................................................................................... 333
CLLBETPP .................................................................................................................... 334
CLLBETPQ ................................................................................................................... 334
CLLBETPR .................................................................................................................... 334
CLLBETPS..................................................................................................................... 334
CLLBETPT .................................................................................................................... 334
CLLBETPU.................................................................................................................... 334
CLLBETPX .................................................................................................................... 335
CLLBETPY .................................................................................................................... 335
CLLBETRC.................................................................................................................... 335
CLLBETRT .................................................................................................................... 335
CLLBETSS ..................................................................................................................... 335
CLLBETTA ................................................................................................................... 335
CLLBETTS .................................................................................................................... 335
CLLBETWC .................................................................................................................. 336
CLLBETWN .................................................................................................................. 336
CLLBETST .................................................................................................................... 336
CLLBETJG ..................................................................................................................... 336
CLLBETEP .................................................................................................................... 336
CLLBETEG.................................................................................................................... 336
CLLBETAG ................................................................................................................... 336
CLLBETEL .................................................................................................................... 337
CLLBETES..................................................................................................................... 337
CLLBETJC ..................................................................................................................... 337
CLLBELKP .................................................................................................................... 337
CLLBELKP .................................................................................................................... 337
CLLGBENS/CLLGBENB ............................................................................................ 337
CLLTBEUS/CLLUBEUB ............................................................................................. 338
CLLUBEBS/CLLUBEBB .............................................................................................. 338
CLLBESBS/ CLLBESBB ............................................................................................... 338
CLLCSTIS/CLLCSTIB.................................................................................................. 338
Lookup Codes ..................................................................................................................... 339
CLL_F255_ISV_EVENTS ............................................................................................ 339
CLL_F255_ISV_SPED .................................................................................................. 339

Oracle Proprietary, Confidential Information - Use Restricted by Contract xiv


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
CHAPTER

1 High Level Design

T his chapter will show the High Level Design of the ISV Integration Solution, according

to the requirements of the Strategy and Analysis development phase. A general view of
the application and diagrams of the tables and the main functions of the ISV Integration
Solution, list of tables, views and modules will be presented

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
1
General View of the High Level Design

The components of the application (tables, views and modules) were defined during the
High Level Design phase created to satisfy the Brazilian requirements.

This chapter is a quick reference of the tables, views and modules, which form part of the
Brazilian localization ISV Integration Solution.

Summarized View of the ISV Integration Solution


Through the Entity Relationship Diagram it is possible to have a graphical view of the
entities that compose the application and its relationships.

Table Diagram
Graphically represents all the tables and foreign keys (relationship), grouped with the ISV
Integration Solution primary business functions. Examine the Table Definition section for
more information.

List of Tables
List of Tables briefly describes each table contained in the ISV Integration Solution.

List of Views
List of Views briefly describes each view in ISV Integration Solution. The View Definition
in the Detailed Design section, chapter 2 provides more information.

List of Modules
List of Modules briefly describes each module in ISV Integration Solution. Examine the
Module Definition in the Detailed Design section in chapter 2 for more information

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
2
Summarized View of the ISV Integration Solution

Through the Entity Relationship Diagram it is possible to have a graphical view of the
entities that are part of the application and the relationship between them. This diagram
was prepared to describe, at a conceptual level, the key information that the ISV
Integration Solution depends on.

See the Oracle Financials Release 12 for Brazil - Technical Reference Manual for more
information

Rules Used in the Entity Relationship Diagram

To better understand the diagram, some rules where standardized for the better
understanding of the design:

Figure 1-1
Option
_______
s Obligatory Relationship
------- Opcional Relationship

Type of Relationship

A B

# Each line of the A entity is obliged to have a relationship with


only one line of the B entity
# Each line of the B entity is obliged to have a relationship with
only one line of theA entity

A B

# Each line of the A entity is obliged to have a relationship with


only one line of the B entity
# Each line of the B entity is obliged to have a relationship with
at least one line of theA
entity

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
3
Table Diagrams

This section graphically represents all the tables and the foreign keys (relationship at a
conceptual level) grouped by the main business functionalities in ISV Integration Solution.
This section should be used to rapidly learn what tables are part of the main business
functions in do ISV Integration Solution e how they communicate. Read the Definitions of
Views and Definition of Tables sections in chapter 2 for further information of each of these
tables.

This section contains the following table diagrams:

 Diagram 1: Getting Acquisition costs from RI


 Diagram 2: Sub inventory Balances control
 Complementary Information for legal reports

Convention Used in the Table Diagram


To better understand the diagram, some rules where standardized for the better
understanding of the design:

Figure 1-2:

Option
_______
s Obligatory Relationship
------- Opcional Relationship

Type of Relationship

A B

# Each line of the A entity is obliged to have a relationship with


only one line of the B entity
# Each line of the B entity is obliged to have a relationship with
only one line of theA entity

A B

# Each line of the A entity is obliged to have a relationship with


only one line of the B entity
# Each line of the B entity is obliged to have a relationship with
only one line of theA entity

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
4
Diagram

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
5
List of Tables

This section lists the tables of ISV Integration Solution with a brief description of each
one.

External Tables

Table Name Field Name

ISV Integration Solution Tables

Table Name Description


CLL_F255_NOTIFICATIONS Stores transactions by ISV Integration Architecture
flows

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
6
List of Views
This section lists and briefly describes each view in the ISV Integration Solution, created
to attend the Brazilian necessities.

The ISV Integration Solution uses the following views:

External Views
View Name Description
GL_SETS_OF_BOOKS stores information about the ledgers
GL_SETS_OF_BOOKS
in the Oracle General Ledger
GL_LEDGERS stores information about the ledgers defined
GL_LEDGER_LE_V in the Accounting Setup Manager and the ledger sets defined
in the Ledge
MTL_CATEGORIES_B is the code combinations table for
item categories.
MTL_CATEGORIES_B_KFV Items are grouped into categories within the context of a
category set
to provide flexible grouping schemes.
MTL_SYSTEM_ITEMS_B is the definition table for items.
This table holds
the definitions for inventory items, engineering items, and
purchasing
items. You can specify item-related information in fields
MTL_SYSTEM_ITEMS_B_KFV
such as:
Bill of Material, Costing, Purchasing, Receiving, Inventory,
Physical attributes, General Planning, MPS/MRP Planning,
Lead times, Work in Process, Order Management, and
Invoicing.
XLE_ESTABLISHMENT_V view provides the user with
information related to Establishments related to Legal
Entities. The view encompasses both First Party and Third
XLE_ESTABLISHMENT_V
Party LEs. End Dates are not discriminated and hence, user
has the access to Inactive Legal Entities and Establishments
as well.
XLE_JURISDICTIONS_VL XLE_JURISDICTIONS_TL, XLE_JURISDICTIONS_B view
retrieves the translated jurisdictions.
MTL_CATEGORIES_VL Multilingual view (a language
MTL_CATEGORIES
resolved view of the data.)
Categories multilingual view.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
7
View Name Description
HZ_PARTIES: The HZ_PARTIES table stores basic
information about parties that can be shared with any
relationship that the party might establish with another
party. Although a record in the HZ_PARTIES table
represents a unique party, multiple parties can have the
same name. The parties can be one of four types:
{{"bul:1"}}Organization-for example, Oracle Corporation
{{"bul:1"}}Person-for example, Jane Doe
{{"bul:1"}}Group-for example, World Wide Web Consortium
{{"bul:1"}}Relationship-for example, Jane Doe at Oracle
Corporation.
WSH_CARRIERS_V {{"bodytext"}}Party records can be created and updated
using third party data sources such as Dun & Bradstreet's
Global Data Products. The HZ_PARTIES table contains
denormalized information from the HZ_LOCATIONS,
HZ_PERSON_PROFILES, HZ_CONTACT_POINTS,
HZ_ORGANIZATION_PROFILES, and
HZ_PERSON_LANGUAGE tables. The identifying address
contained in the HZ_PARTIES table is denormalized from
the HZ_LOCATIONS table.
The primary key for this table is PARTY_ID.
WSH_CARRIERS:
HZ_PARTY_USG_ASSIGNMENTS: Stores information
about party usage assignments.
RA_TERMS_VL:
RA_TERMS_TL: The RA_TERMS_TL table provides
multilingual support (MLS) for each payment term that you
define in Oracle Receivables. MLS lets you store and print
data that you define in multiple languages. The primary keys
for this table are TERM_ID and LANGUAGE.
RA_TERMS_B: The RA_TERMS_B table stores standard
payment term information. Oracle Receivables creates one
row for each payment term that you define. Receivables
RA_TERMS uses this information to calculate when a payment is due
and any discounts that are given for early payment.
Receivables stores payment schedules in the
AR_PAYMENT_SCHEDULES_ALL table.
AR_CONS_BILL_CYCLES_TL: The
AR_CONS_BILL_CYCLES_TL table provides multilingual
support (MLS) for each billing cycle that you define in
Receivables. MLS lets you store and print data that you
define in multiple languages.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
8
Views
View Name Description
This view contains Legal Entity Level bank account
CLL_F255_AP_BANKS_V information. Each bank account must be affiliated with one
bank branch.
This view holds invoices records entered manually,
generated automatically or imported from the open
interface tables. This table corresponds to the Invoices
CLL_F255_AP_INVOICES_RI_V
header block of Invoice workbench. Invoices with source
'CLL F189 INTEGRATED RCV%'

This view holds invoices records entered manually,


generated automatically or imported from the open
CLL_F255_AP_INVOICES_V
interface tables. This table corresponds to the Invoices
header block of Invoice workbench.
This view holds taxes by invoices. Taxes with tax name by
CLL_F255_AP_IRRF_V
'%IR%
This view holds invoices records entered manually,
generated automatically or imported from the open
CLL_F255_AP_PAYABLES_V
interface tables. This table corresponds to the Invoices
header block of Invoice workbench.
This view holds all invoice payments made to the
CLL_F255_AP_PAYMENTS_V suppliers. This table corresponds to the Payments tab of the
Invoice Workbench.
This view contains the
denormalized amount of tax withheld to date for a
particular supplier site and a specific withholding tax code
CLL_F255_AP_TAXES_V within each period. The periods are determined by the
period type assigned to the withholding tax code. There
will not be a row in this table if there is no withholding tax
for this supplier site.
This view contains the
denormalized amount of tax withheld to date for a
particular supplier site and a specific
withholding tax code within each period. The
CLL_F255_AP_TAXES_WITHHELD_V periods are determined by the period type
assigned to the withholding tax code. There
will not be a row in this table if there is no withholding tax
for this supplier site. Setup 'At Invoice Validation Time' or
'At Payment Time'.
This view stores detail information about payment
terms you define. You need one row for each scheduled
payment that you want your Oracle Payables application
CLL_F255_AP_TERMS_V
to create for an invoice. Split terms have more than one
row in this table. DAY_OF_MONTH columns pertain
toproxima terms.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
9
View Name Description
This view stores two types of records. The first type
represents the payment installments for receivable
transactions and the second type represents receipt
CLL_F255_AR_CASH_RECEIPTS_V
application to transaction installments. The CLASS column
determines whether the record relates to either transaction
installment or receipt application.
This view stores all customer account sites across all
operating units. Customer account sites are addresses, for
customer accounts, where the deploying company does
CLL_F255_AR_CUSTOMERS_V business with its customers. One customer account can
have multiple customer account sites, and customer
account sites for one customer account can belong to
multiple operating units.
CLL_F255_AR_INVOICE_ATO_LINE_V This view stores information about ATO invoiced items.
CLL_F255_AR_INVOICE_ATO_TAX_V This view stores information about taxes of ATO items.
This view stores information about each transaction type
that is used for invoices, commitments, bills receivable, and
CLL_F255_AR_INVOICE_ITEMS_GL_V credit memos. Each row includes Auto Accounting
information as well as standard defaults for the invoices
that result.
This view stores information about each transaction type
that is used for invoices, commitments, bills receivable, and
CLL_F255_AR_INVOICE_ITEMS_V credit memos. Each row includes Auto Accounting
information as well as standard defaults for the invoices
that result.
A multi-org view which will retrieve data for your current
CLL_F255_AR_INVOICE_PARENTS_V
operating unit and ignore data in other operating units.
Selects the information in the CLL_F255_AR_INVOICES_V
CLL_F255_AR_INVOICES_V
table with a few added columns from the referred tables
Selects the information in the
CLL_F255_AR_NFFS_REQUEST_V CLL_F255_AR_NFFS_REQUEST_V table with a few added
columns from the referred tables
The AR_RECEIVABLE_APPLICATIONS_ALL table stores
records for cash and credit memo applications. The
APPLICATION_TYPE column stores CASH for receipt
CLL_F255_AR_RECEIVABLES_V
applications and CM for credit memo applications. Each
row in this table includes the amount applied, status, and
account code combination information.
CLL_F255_AR_TOTAL_INV_TAXES_V This view lists the lines of type TAX
CLL_F255_BOM_BILL_OF_MTLS_V This views stores information about each parent items.
This view stores information about all components for set
the BOM. This table only stores single–level components.
COMPONENT_SEQUENCE_ID uniquely identifies each
CLL_F255_BOM_INV_COMPONENTS_V
row. There is
one row per component on an operation within a given
date range.
This view stores a record of every material
CLL_F255_CST_INVENTORY_V
transaction or cost update performed in Inventory.
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
10
View Name Description
This temporary view stores a record of every material
transaction or cost update performed in Inventory. For you
use that information, you must execute the package
CLL_F255_CST_INVENTORY_TEMP_V
CLL_F255_CST_INVENTORY_PUB, for more details,
please read about it on description of the package
CLL_F255_CST_INVENTORY_PUB.
This view stores a record of every material
CLL_F255_CST_STOCK_V transaction or cost update performed in Inventory. With
cost_type_id equal to 2(Average)
CLL_F255_ESTABLISHMENT_V This view stores information about each Establishments
This view stores a record of Accounting Accounts for
CLL_F255_GL_ACCT_HIERARCHY_V
hierarchy
CLL_F255_GL_DAILY_BOOK_V This view stores information about daily book
CLL_F255_GL_MAJOR_BOOK_V This view stores information about major book
FND_ID_FLEX_SEGMENTS stores setup information
about key flexfield
segments, as well as the correspondences between
application table
columns and the key flexfield segments the columns are
used
for. Each row includes a flexfield application identifier, the
CLL_F255_GL_SEGMENTS_V
flexfield
code, which identifies the key flexfield, the structure
number
(ID_FLEX_NUM), the value set application identifier, the
segment
number (the segment's sequence in the flexfield window),
the name
of the column the segment corresponds to (usually
Selects the information in the
CLL_F255_GL_SEG_VAL_HIERARCH_V
CLL_F255_GL_SEG_VAL_HIERARCH_V table with a few
added columns from the referred tables
CLL_F255_INV_CATEGORY_ITEMS_V This view stores information about category of items.
MTL_UNITS_OF_MEASURE_TL is the definition table for
both the 25-character
and the 3-character units of measure.
The base_uom_flag indicates if the unit of measure is the
primary unit of measure for the uom_class. Oracle
CLL_F255_MTL_UNITS_MEASURE_V
Inventory uses this table to keep track of the units of
measure
used to transact an item. This table is also used by Oracle
Purchasing, Oracle Order Management and Oracle
Shipping Execution.
This view stores information about the order and line
CLL_F255_OM_STOCK_V
transaction types. This is a multi-org table.
This view stores information about formula material in the
CLL_F255_OPM_FORMULA_ITEMS_V minor details, product, ingredient, byproduct data for a
formula.
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
11
View Name Description
Selects the information in the
CLL_F255_OPM_INVENTORY_V CLL_F255_OPM_INVENTORY_V table with a few added
columns from the referred tables
Item Cost Method Table. This table is the existing cost
CLL_F255_OPM_STOCK_V method definition master. Cost methods are defined by
the user. The cost
calculation method is added
This view stores information about Work location
CLL_F255_ORG_COMPANIES_V
definitions.
Selects the information in the
CLL_F255_ORG_DEFINITIONS_V
CLL_F255_ORG_DEFINITIONS_V
table with a few added columns from the referred tables
Selects the information in the
CLL_F255_PAC_INVENTORY_V CLL_F255_PAC_INVENTORY_V table with a few added
columns from the referred tables.
Selects the information in the CLL_F255_PAC_STOCK_V
CLL_F255_PAC_STOCK_V
table with a few added columns from the referred tables.
This view stores information about supplier level
attributes. This table contain supplier records entered
manually, generated automatically (for ex, during expense
reports export) and imported using open interface tables.
Each row includes the purchasing, receiving, invoice, tax,
classification, and general information. Suppliers created
in any module in EBS for example Payables, Purchasing,
CLL_F255_PO_SUPPLIERS_V iSP etc., will get stored in this table along with TCA table -
HZ_PARTIES.
This table replaces the old PO_VENDORS table. A new
view PO_VENDORS is created on this table.
The supplier name, legal identifiers of the supplier will be
stored in TCA and a reference to the party created in TCA
will be stored in AP_SUPPLIERS.PARTY_ID, to link the
party record in TCA table HZ_PARTIES
Selects the information in the CLL_F255_RA_TERMS_V
CLL_F255_RA_TERMS_V
table with a few added columns from the referred tables
This view stores gathers information about the Tax
CLL_F255_RI_FISCAL_CLASS_V
Classifications
This view Stores tax classifications of legal acts that alter
CLL_F255_RI_FISC_EXCEPTIONS_V
the tax collection
CLL_F255_RI_FREIGHTS_V This view stores the knowledge of freight
This view stores the fiscal relations between the states and
CLL_F255_RI_INTERSTATE_ICMS_V
their rates of ICMS
CLL_F255_RI_INVOICE_ITEMS_V This view stores the information in the invoice
CLL_F255_RI_INVOICES_V This view stores the information in the invoice
This view stores information about bills of material
CLL_F255_WIP_MAT_COMPONENTS_
components and stores single-level components.This lists
V
the first level components of an assembly item.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
12
View Name Description
This view stores information about the material
requirements of jobs and schedules and contains
CLL_F255_WIP_MATERIALS_V information about the component item, its usage
quantities, the using department, requirement date and the
material control method.
This view stores information about job and repetitive
schedule
operations. Each row represents a specific operation and
CLL_F255_WIP_OPERATIONS_V includes
an operation sequence number, which orders the
operations for the job or
repetitive schedule.
This view stores information about remittance invoices
that require renewal of the legal return period.

CLL_F255_TPA_RENEWAL_REMIT_V All executions will return outbound invoices who are past
due or are about expire according the setup performed in
the CLL F513 Third Party Material Governance.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
13
List of Modules
This section lists each form, report, concurrent program, and stored procedure used in
ISV Integration Solution.

Triggers
Trigger Description Name
Transactions Insert, Update or Delete the
CLLBETAC table AR_CASH_RECEIPTS_ALL is used to CLL_F255_AR_CASH_RECEIPTS_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETAE table AP_TERMS_TL is used to insert CLL CLL_F255_AP_TERMS_T1
table notification.
Transactions Insert or Update the table
CLLBETAI AP_INVOICES_ALL is used to insert CLL CLL_F255_AP_INVOICES_T1
table notification.
Transactions Insert or Update the table
CLLBETAP AP_INVOICE_PAYMENTS_ALL is used to CLL_F255_AP_INV_PAYMENTS_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETAR AR_RECEIVABLE_APPLICATIONS_ALL CLL_F255_AR_RECEIVEBLE_APPL_T1
is used to insert CLL table notification.
Transactions Insert or Update the table
CLLBETAS AP_SUPPLIERS is used to insert CLL table CLL_F255_AP_SUPPLIERS_T1
notification.
Transactions Insert, Update or Delete the
CLLBETAT table AP_TERMS_LINES is used to insert CLL_F255_AP_TERMS_LINES_T1
CLL table notification.
Transactions Insert or Update the table
CLLBETBD CLL_F038_BEN_DEPEN is used to insert CLL_F255_BEN_DEPEN_T1
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETBV table CLL_F189_BUSINESS_VENDORS is CLL_F255_BUSINESS_VENDORS_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETCD table CLL_F038_CONTRACT_DATA is CLL_F255_CONTRACT_DATA_T1
used to insert CLL table notification.
Transactions Insert or Update the table
CLLBETEO CLL_F189_ENTRY_OPERATIONS is used CLL_F255_ENTRY_OPERATIONS_T1
to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETER table CLL_F031_ELECTRONIC_RET_ALL CLL_F255_ELECTRONIC_RET_T1
is used to insert CLL table notification.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
14
Trigger Description Name
Transactions Insert or Update the table
CLLBETFC CLL_F189_FISCAL_CLASS is used to insert CLL_F255_FISCAL_CLASS_T1
CLL table notification.
Transactions Insert or Update the table
CLLBETFD CLL_F189_FISCAL_CLASS_DETAILS CLL_F255_FISC_CLASS_DETAILS_T1
is used to insert CLL table notification.
Transactions Insert or Update the table
CLLBETFI CLL_F189_FISCAL_ITEMS is used to insert CLL_F255_FISCAL_ITEMS_T1
CLL table notification.
Transactions Insert or Update the table
CLLBETFO CLL_F189_FISCAL_OPERATIONS is used CLL_F255_FISCAL_OPERATIONS_T1
to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETFT table FND_TERRITORIES_TL is used to CLL_F255_FND_TERRITORIES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETHA table HZ_CUST_ACCT_SITES_ALL is used CLL_F255_HZ_CUST_ACCT_SITES_T1
to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETHC table HZ_CUST_ACCOUNTS is used to CLL_F255_HZ_CUST_ACCOUNTS_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
table CLL_F255_HR_ORG_INFORMATION_
CLLBETHI
HR_ORGANIZATION_INFORMATION is T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETHL table HR_LOCATIONS_ALL is used to CLL_F255_HR_LOCATIONS_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETHO HR_ALL_ORGANIZATION_UNITS is CLL_F255_HR_ALL_ORG_UNITS_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETHP table HR_ALL_POSITIONS_F is used to CLL_F255_HR_ALL_POSITIONS_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETIL CLL_F189_INVOICE_LINES is used to CLL_F255_INVOICE_LINES_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETIT CLL_F189_INVOICE_TYPES is used to CLL_F255_INVOICE_TYPES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETIU table CLL_F189_ITEM_UTILIZATIONS is CLL_F255_ITEM_UTILIZATIONS_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETMS table MTL_SYSTEM_ITEMS_B is used to CLL_F255_MTL_SYSTEM_ITEMS_B_T1
insert CLL table notification.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
15
Trigger Description Name
Transactions Insert, Update or Delete the
CLLBETMT table MTL_MATERIAL_TRANSACTIONS CLL_F255_MTL_MAT_TRANS_T1
is used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETMU table MTL_UNITS_OF_MEASURE_TL is CLL_F255_MTL_UNITS_MEASURE_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETOE table OE_ORDER_HEADERS_ALL is used CLL_F255_OE_ORDER_HEADERS_T1
to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETOL table OE_ORDER_LINES_ALL is used to CLL_F255_OE_ORDER_LINES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPA table PER_ADDRESSES is used to insert CLL_F255_PER_ADDRESSES_T1
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPB table PER_ABSENCE_ATTENDANCES is CLL_F255_PER_ABSENCE_ATT_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPC table PER_CONTACT_RELATIONSHIPS CLL_F255_PER_RELATIONSHIPS_T1
is used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPD table CLL_F038_PERSON_DATA is used to CLL_F255_PERSON_DATA_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETPE PO_DISTRIBUTIONS_ALL is used to insert CLL_F255_PO_DISTRIBUTIONS_T1
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPF table PER_ALL_PEOPLE_F is used to insert CLL_F255_PER_ALL_PEOPLE_F_T1
CLL table notification.
Transactions Insert, Update or Delete the
table
CLLBETPG CLL_F255_PER_ORG_STRUCTURES_T1
PER_ORGANIZATION_STRUCTURES is
used to insert CLL table notification.
Transactions Insert or Update the table
CLLBETPH PO_HEADERS_ALL is used to insert CLL CLL_F255_PO_HEADERS_T1
table notification.
Transactions Insert or Update the table
CLLBETPI PER_ALL_ASSIGNMENTS_F is used to CLL_F255_PER_ASSIGNMENTS_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPJ table PER_JOBS is used to insert CLL table CLL_F255_PER_JOBS_T1
notification.
Transactions Insert or Update the table
CLLBETPL PO_LINE_LOCATIONS_ALL is used to CLL_F255_PO_LINE_LOCATIONS_T1
insert CLL table notification.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
16
Trigger Description Name
Transactions Insert or Update the table
CLLBETPM PO_LINES_ALL is used to insert CLL table CLL_F255_PO_LINES_T1
notification.
Transactions Insert, Update or Delete the
CLLBETPN table PER_PERSON_TYPES is used to CLL_F255_PER_PERSON_TYPES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
table
CLLBETPO CLL_F255_PER_STR_ELEMENTS_T1
PER_ORG_STRUCTURE_ELEMENTS is
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPP table PER_PHONES is used to insert CLL CLL_F255_PER_PHONES_T1
table notification.
Transactions Insert, Update or Delete the
CLLBETPQ table PER_QUALIFICATIONS is used to CLL_F255_PER_QUALIFICATIONS_T1
insert CLL table notification.
Transactions Insert or Update the table
CLLBETPR PO_RELEASES_ALL is used to insert CLL CLL_F255_PO_RELEASES_T1
table notification.
Transactions Insert or Update the table
CLLBETPS AR_PAYMENT_SCHEDULES_ALL is CLL_F255_AR_PAYMENT_SCHED_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPT table PER_PERSON_TYPE_USAGES_F is CLL_F255_PER_PERSON_USAGES_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPU table PAY_ALL_PAYROLLS_F is used to CLL_F255_PAY_ALL_PAYROLLS_F_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPX table PER_PERIODS_OF_SERVICE is used CLL_F255_PER_PERIODS_SERV_T1
to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETPY table PER_PAY_PROPOSALS is used to CLL_F255_PER_PAY_PROPOSALS_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETRC table RA_CUSTOMER_TRX_ALL is used to CLL_F255_RA_CUSTOMER_TRX_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETRT table RA_TERMS_TL is used to insert CLL CLL_F255_RA_TERMS_T1
table notification.
Transactions Insert, Update or Delete the
CLLBETSS table AP_SUPPLIER_SITES_ALL is used to CLL_F255_AP_SUPPLIER_SITES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETTA table CLL_F189_TAX_SITES is used to CLL_F255_TAX_TYPE_T1
insert CLL table notification.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
17
Trigger Description Name
Transactions Insert or Update the table
CLLBETTS CLL_F189_TRIBUTARY_SITUATION is CLL_F255_TRIBUTARY_SIT_T1
used to insert CLL table notification.
Transactions Insert, Update or Delete the
CLLBETWC table WSH_CARRIERS is used to insert CLL_F255_WSH_CARRIERS_T1
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETWN table WSH_NEW_DELIVERIES is used to CLL_F255_WSH_NEW_DELIVERIES_T1
insert CLL table notification.
Transactions Insert, Update or Delete the
CLL_F255_SYSTEM_ITEMS_TL_T1
CLLBETST table MTL_SYSTEM_ITEMS_TL is used to
insert CLL table notification.
Transactions Insert, Update or Delete the
CLL_F255_PER_JOB_GROUPS_T1
CLLBETJG table PER_JOB_GROUPS is used to insert
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETEP CLL_F255_PER_PAY_BASES_T1
table PER_PAY_BASES is used to insert
CLL table notification.
Transactions Insert, Update or Delete the
CLLBETEG CLL_F255_PER_GRADES_T1
table PER_GRADES is used to insert CLL
table notification.
Transactions Insert, Update or Delete the
CLLBETAG CLL_F255_PAY_GRADE_RULES_F_T1
table PAY_GRADE_RULES_F is used to
insert CLL table notification.
Transactions Insert, Update or Delete the
CLL_F255_PER_ROLES_T1
CLLBETEL table PER_ROLES is used to insert CLL
table notification.
Transactions Insert, Update or Delete the
CLLBETES table PER_PERSON_ANALYSES is used to CLL_F255_PER_PERSON_ANAL_T1
insert CLL table notification.

Packages
Package Package Name Procedure Description
CLL_F255_NOTIFICATIONS_GRP
CLL_F255_NOTIFICATIONS_GRP
CLLGBENS
API to ISV mark or delete transactions in the
UPDATE_ROW table cll_f255_notifications
CLLGBENB
DELETE_ROW

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
18
Package Package Name Procedure Description
CLL_F255_NOTIFICATIONS_GRP
CLL_F255_UTILS_PKG

AR_RECEIPT_ACTIVITY_APPL
AR_RECEIPT_APPLY
AR_RECEIPT_CREATE_CASH
AR_RECEIPT_CREATE_MISC
BALANCING_SEGMENT_VALUE
CHECK_DUPLICITY
GET_BALANCING_SEGMENT
CLLTBEUS
GET_CONCAT_SEGMENTS
Package util for ISV Integration Solution
GET_JURISDICTION
CLLUBEUB
GET_QUANTITY_MTL
GET_SEGMENT_COMPANY_VALUE
GET_SEGMENT_VALUE
INSERT_EVENT
NOTIFICATION_PURGE
SUM_PISCOFINS_RI_LINES
GET_INTERF_OPERATION_ID_PUB
GET_ATO_ITEM_DESCRIPTION
GET_MAX_CST_TRANSACTION
CLL_F255_BUSINESS_EVENTS_PKG
CLLUBEBS
BES_RAISE Raise a business events
CLLUBEBB EXIST_SUBSCRIPTION
RAISE
Use that package for populate the
view with records of every material
transaction or cost update performed in
Inventory.

set_period_id – Set period id


CLL_F255_CST_INVENTORY_PUB column of the view
CLL_F255_INVENTORY_TEMP_V.
get_period_id
CLLCSTIS get_period_name set_period_name - Set period
get_inventory_date name column of the view
set_period_id CLL_F255_INVENTORY_TEMP_V.
CLLCSTIB set_period_name
set_inventory_date set_inventory_date - Set
calculate_inventoryvalue inventory date column of the
view CLL_F255_INVENTORY_TEMP_V.

calculate_inventoryvalue –
Calculate the inventory cost
values.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
19
Package Package Name Procedure Description
CLL_F255_NOTIFICATIONS_GRP
CLL_F409_SPREADSHEET_PKG

create_file
create_file_apps
CLLOFSSB add_style_definition
close_file
CLLOFSSB
add_worksheet
write_cell_value
set_row_height
set_column_width
get_file_f

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
20
CHAPTER

2 Detailed Design

T his chapter presents a detailed design used during the ISV Integration Solution

implementation. Here you will find detailed table definitions, views and modules,
together with object description used in ISV Integration Solution, like quick codes.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
21
General View of the Detailed Design

During the Detailed Design phase, each of the application’s components has its
functionality detailed.

This chapter permits the understanding of the detailed structure and information flow of
ISV Integration Solution.

Table Definition

The section Table Definition contains the detailed definition of the ISV Integration Solution
tables. The following information is available for each table: objective, column description,
primary key, unique key, check constraints, foreign key, quick codes, sequences, module
access and database triggers.

Module Definition
This section provides detailed information about each module in the ISV Integration
Solution application. Use this section to better understand the details of what each module
ISV Integration Solution contains, and how these functionalities are implemented.

For each module we present the following information


 A brief description of its functionality
 The type of module
 The language;
 The title related to this program

Stored Procedure Each module of the type stored procedure corresponds to a


simple
PL*SQL program stored in the database. We
crawl a module type stored procedure using the
name of the establishment of PL*SQL without its extension.

Package Each module of the package type corresponds to a


set of procedures and variable declarations.

Quick Codes

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
22
This section provides detailed information of each Quick Code type used in ISV Integration
Solution application. It provides a code list with the respective definition of each code. Use
this section to learn what Quick Codes
ISV Integration Solution possess and to rapidly learn the list of values.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
23
Table Definition

The Table Definition section contains a detailed definition of each table in the ISV
Integration Solution. For each table, the following information is available:

 Objective;
 Column Description;
 Primary Key;
 Other Unique Keys;
 Check Constraints;
 Foreign Key;
 Indexes;
 Quick Codes;
 Sequences;

This section only documents the tables created for the ISV Integration Solution. To obtain
further information about the details of the tables and external views used, see the
application manual to which it is component of.

Objective

In this topic we will describe why this table will be used.

Column Description

This topic states the primary characteristics of the column or view. These characteristics
are included if the ISV Integration Solution needs a value for this column and what type
of data this is, together with a brief description on how ISV Integration Solution uses this
column .

Standard Who Column


Lots of tables in the ISV Integration Solution application contain standard columns to
support who rows. When a program or a SQL command selects lines in a table, these
columns are used to determine who did the last update in this line. If your program or
your SQL command inserts or updates a line in an interface table, you should update the
5 Standard Who Columns:

Date in which the last user performed the last


LAST_UPDATE_DATE
update in this line

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
24
User that did the last update in this line (
LAST_UPDATED_BY
Foreign Key relative to FND_USER.USER_ID )
CREATION_DATE Creation date of this line
CREATED_BY User that created this line
Operating Systime Login of the user that last
updated this line (Foreign Key relative to a
LAST_UPDATE_LOGIN
FND_LOGINS.LOGIN_ID). You should assign
NULL or 0 if NULL isn’t permitted

Once every line in this table contains the additional Standard Who Columns with various
Foreign Keys corresponding to the FND_USERS e FND_LOGINS tables, you then should
not include LAST_UPDATED_BY, CREATED_BY, or LAST_UPDATE_LOGIN columns
in the Foreign Keys list of the table.

Standard Columns about the Who (additionally needed for concurrent programs)
Various tables in the ISV Integration Solution application possess standard columns about
the user , to distinguish changes made by each user in the forms or in concurrent programs.
When a concurrent program inserts or updates lines in a table, the same updates the
following additional columns about the user responsible:

The concurrent requisition ID that performed the


last update in this line ( Foreign Key relative to
REQUEST_ID
FND_CONCURRENT_REQUESTS.REQUEST_ID
)
The application ID that last updated this line (
PROGRAM_APPLICATION_I
Foreign Key relative to
D
FND_APPLICATION.APLLICATION_ID )
The program ID that last performed an update in
this line ( Foreign Key relative to
PROGRAM_ID
FND_CONCURRENT_PROGRAM.CONCURRE
NT_PROGRAM_ID )
Date in which the last update of this line was
PROGRAM_UPDATE_DATE
performed.

Once every table contains these additional Standard Who Columns with the various
Foreign Keys corresponding to the FND_CONCURRENT_REQUESTS,
FND_APPLICATION, FND_CONCURRENT_PROGRAM tables, you then should not
include the REQUEST_ID, PROGRAM_APPLICATION_ID, or PROGRAM_ID columns
in the Foreign Keys list of the table.

Primary Key
In this topic you can identify the columns that compose the primary key of this table.

Other Unique Keys

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
25
In this topic you can identify the columns that compose each of keys the uniquely
identify this table.

Check Constraints
In this topic you can identify validation rules that have to be respected during the
corresponding update or creation of the column..

Foreign Key
This topic explains the relationship between the tables and list all the Foreign Keys
associated to each table. For each Foreign Key a list of the Table Name of the Primary
Key (Table in which the Foreign Key refers to), the corresponding Primary Key Table
Column, and the Foreign Key Column that is available that refers to the Primary Key
Column.
When the Primary Key Table possesses a composite Primary Key, each column in the
composite key is sequenced.

If the table contains two or more distinct Foreign Keys that refer to the same Primary Key
table, then the Table Name of the Primary Key is repeated and then a separate is shown
of the Foreign Keys

Quick Codes
In this topic, we identify every type of Quick Code that will eventually be associated with
a column in the table. Read the Quick Code Section to obtain a complete list of the Quick
code values and there meaning.

Sequence
In this topic you will be able to identify the sequences related to the corresponding table.
If any column of the table obtains its value from a sequence, the sequence names are then
listed and the name of the columns is stores the whole number generated.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
26
Table Definition

The Table Definition section contains a detailed definition of each table in ISV Integration
Solution. For each table, the following information are available: objective, column
description, primary key, unique key, check constraints, foreign key, indexes, quick
codes, sequences and database triggers.

CLL_F255_NOTIFICATIONS

Stores transactions by ISV Integration Architecture flows.

Null /
Column Type of Data Description
Not Null
NOTIFICATION_ID NOT NULL NUMBER Notification Id
ISV_NAME NOT NULL VARCHAR2(30) ISV Name
EVENT_KEY NOT NULL VARCHAR2(240) Event Key
EVENT_NAME NOT NULL VARCHAR2(240) Event Name
TRANSACTION_TYPE NOT NULL VARCHAR2(10) Transaction Type
CREATION_DATE NOT NULL DATE Standard Who Column
CREATED_BY NOT NULL NUMBER Standard Who Column
LAST_UPDATE_DATE NOT NULL DATE Standard Who Column
LAST_UPDATED_BY NULL NUMBER Standard Who Column
LAST_UPDATE_LOGI
NULL NUMBER Standard Who Column
N
The concurrent
requisition ID that
REQUEST_ID NULL NUMBER
performed the last
update in this line
PROGRAM_APPLICA The application ID that
NULL NUMBER
TION_ID last updated this line
The program ID that last
PROGRAM_ID NULL NUMBER performed an update in
this line
Date in which the last
PROGRAM_UPDATE_
NULL DATE update of this line was
DATE
performed
indicates record status:
1 - Ready (Default)
2 - Processed
EXPORT_STATUS NULL NUMBER
3 - In-Process
4 – Error
5 - Hook

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
27
Parameter sent with the
PARAMETER_NAME1 NULL VARCHAR2(500) name of the referenced
table
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
1
transaction
Parameter sent with the
PARAMETER_NAME2 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
2
transaction
Parameter sent with the
PARAMETER_NAME3 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
3
transaction
Parameter sent with the
PARAMETER_NAME4 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
4
transaction
Parameter sent with the
PARAMETER_NAME5 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
5
transaction
Parameter sent with the
PARAMETER_NAME6 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
6
transaction
Parameter sent with the
PARAMETER_NAME7 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
7
transaction
Parameter sent with the
PARAMETER_NAME8 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
8
transaction

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
28
Parameter sent with the
PARAMETER_NAME9 NULL VARCHAR2(500) name of the referenced
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
9
transaction
Parameter sent with the
PARAMETER_NAME1
NULL VARCHAR2(500) name of the referenced
0
transaction
Parameter sent with the
PARAMETER_VALUE
NULL VARCHAR2(500) name of the referenced
10
transaction
indicates record status:
NULL - Default
RETURN_CODE NULL NUMBER(1,0)
0 - Invalid
1 - Valid
Partner put your
VARCHAR2(400
RETURN_MESSAGE NULL message validation by
0)
package hook
Partner populated that
VARCHAR2(400 field by API
LOG_MESSAGE NULL
0) cll_f255_notifications_gr
p.update_row

Primary Key
Name Column
CLL_F255_NOTIFICATIONS_PK NOTIFICATION_ID

Other Unique Keys


Name Type Sequence Name of the Column
CLL_F255_NOTIFICATIONS_N1 UNIQUE 1 ISV_NAME
2 EVENT_NAME
3 EVENT_KEY

Check Constraints
Name Validation clause
CLL_F255_NOTIFICATIONS_C1 export_status IN (1,2,3,4,5)

Foreign Keys
Name Validation clause

Indexes
Name Type Sequence Name of the Column
NOT
CLL_F255_NOTIFICATIONS_N1 1 ISV_NAME
UNIQUE
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
29
2 EVENT_NAME
3 EVENT_KEY
4 TRANSACTION_TYPE
5 EXPORT_STATUS
REGEXP_SUBSTR
NOT ("EVENT_KEY",'.*[0-
CLL_F255_NOTIFICATIONS_N2 1
UNIQUE 9][0-9]-[0-9][0-9]-[0-9][0-
9][0-9][0-9]')

Quick Codes
Column Type do Quick Code Table do Quick Code

Sequences
Sequence Column Derived
CLL_F255_NOTIFICATIONS_S NOTIFICATION_ID

Database Triggers
Not required

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
30
View Definition

The section View Definition contains the detailed definition of each view in ISV
Integration Solution. For each view the following information are available: objective,
definition and column description.

CLL_F255_AP_BANKS_V

Selects the information in the CLL_F255_AP_BANKS_V view together with some


columns of some tables that are referred to.

SELECT acct.bank_id
, acct.bank_account_id
, acct.bank_account_name
, acct.bank_account_num
, acct.check_digits
, branch.party_id branch_id
, branch.party_name branch_name
, branchinfo.bank_or_branch_number branch_number
, bank.party_name bank_name
, bankinfo.bank_or_branch_number bank_number
, acct.attribute1
, acct.attribute2
, acct.attribute3
, acct.attribute4
, acct.attribute5
, acct.attribute6
, acct.attribute7
, acct.attribute8
, acct.attribute9
, acct.attribute10
, acct.attribute11
, acct.attribute12
, acct.attribute13
, acct.attribute14
, acct.attribute15
FROM hz_organization_profiles bankinfo
, hz_parties bank
, hz_organization_profiles branchinfo
, hz_parties branch
, ce_bank_accounts acct
WHERE bankinfo.party_id = bank.party_id
AND bank.party_id = acct.bank_id
AND branchinfo.party_id = branch.party_id
AND branch.party_id = acct.bank_branch_id
UNION
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
31
SELECT acct.bank_id
, acct.ext_bank_account_id
, acct.bank_account_name
, acct.bank_account_num
, acct.check_digits
, branch.party_id branch_id
, branch.party_name branch_name
, branchinfo.bank_or_branch_number branch_number
, bank.party_name bank_name
, bankinfo.bank_or_branch_number bank_number
, acct.attribute1
, acct.attribute2
, acct.attribute3
, acct.attribute4
, acct.attribute5
, acct.attribute6
, acct.attribute7
, acct.attribute8
, acct.attribute9
, acct.attribute10
, acct.attribute11
, acct.attribute12
, acct.attribute13
, acct.attribute14
, acct.attribute15
FROM hz_organization_profiles bankinfo
, hz_parties bank
, hz_organization_profiles branchinfo
, hz_parties branch
, iby_ext_bank_accounts acct
WHERE bankinfo.party_id = bank.party_id
AND bank.party_id = acct.bank_id
AND branchinfo.party_id = branch.party_id
AND branch.party_id = acct.branch_id;

Null /
Column Type of Data Description
Not Null
BANK_ID NUMBER(15,0) Party identifier
Unique internal
Identifier for this record.
BANK_ACCOUNT_ID NUMBER(15,0)
Generated using a
database sequence
BANK_ACCOUNT_NA The name of the bank
VARCHAR2(100)
ME account
BANK_ACCOUNT_NU
VARCHAR2(100) Account number
M
Bank account check digit
CHECK_DIGITS VARCHAR2(30)
value as entered

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
32
Identifier of the bank
BRANCH_ID NUMBER(15,0) branch that this bank
account belongs to
BRANCH_NAME VARCHAR2(360) Name of this party
Stores bank number for
banks and branch
number for bank
BRANCH_NUMBER VARCHAR2(30)
branches, primarily ABA
number for US bank
branches
BANK_NAME VARCHAR2(360) Name of this pa
Stores bank number for
banks and branch
number for bank
BANK_NUMBER VARCHAR2(30)
branches, primarily ABA
number for US bank
branches
Descriptive Flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE15 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
33
CLL_F255_AP_INVOICES_RI_V

Selects the information in the CLL_F255_AP_INVOICES_RI_V view together with some


columns of some tables that are referred to.

SELECT
ai.org_id,
hou.name,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'FEDERAL_TAX')
ou_cnpj,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'INCOME_TAX')
ou_ie,
ai.invoice_id ap_invoice_id,
ai.invoice_num,
/* cll_f255_utils_pkg.get_jurisdiction(cfi.location_id,
(SELECT legal_entity FROM org_organization_definitions WHERE
organization_id = cfi.organization_id),
'FEDERAL_TAX') document_number,*/ --BUG 9702059
cll_f255_utils_pkg.get_jurisdiction(cfi.location_id, --BUG 9702059
ood.legal_entity,
'FEDERAL_TAX') document_number,
cfi.organization_id,
cfi.location_id,
cfi.invoice_id,
cfi.operation_id,
cfi.series,
ai.set_of_books_id,
ai.invoice_currency_code,
ai.payment_currency_code,
ai.last_update_date,
cfi.invoice_date,
ai.source,
cfi.fiscal_document_model,
'PURCHASES' operation_type,
ai.description,
ai.vendor_id,
ai.vendor_site_id,
NVL(cfi.gross_total_amount,cfi.invoice_amount) value,
ai.amount_paid,
ai.discount_amount_taken,
ai.terms_date,
ai.payment_method_lookup_code,
ai.pay_group_lookup_code,
ai.accts_pay_code_combination_id,
ai.payment_status_flag,
ai.creation_date,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
34
ai.base_amount,
ai.po_header_id,
ai.freight_amount,
ai.goods_received_date,
ai.invoice_received_date,
ai.voucher_num,
ai.approved_amount,
ai.original_prepayment_amount,
ai.approval_status,
ai.approval_description,
ai.invoice_distribution_total,
ai.posting_status,
ai.prepay_flag,
ai.authorized_by,
ai.cancelled_date,
ai.cancelled_by,
ai.cancelled_amount,
ai.payment_amount_total,
ai.batch_id,
ai.terms_id,
ai.doc_sequence_id,
ai.doc_sequence_value,
ai.doc_category_code,
ai.attribute1,
ai.attribute2,
ai.attribute3,
ai.attribute4,
ai.attribute5,
ai.attribute6,
ai.attribute7,
ai.attribute8,
ai.attribute9,
ai.attribute10,
ai.attribute11,
ai.attribute12,
ai.attribute13,
ai.attribute14,
ai.attribute15,
ai.attribute_category,
ai.project_id,
ai.task_id,
ai.expenditure_type,
ai.expenditure_item_date,
ai.pa_quantity,
ai.expenditure_organization_id,
ai.pa_default_dist_ccid,
ai.vendor_prepay_amount,
ai.awt_flag,
ai.awt_group_id,
ai.reference_1,
ai.reference_2,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
35
ai.pre_withholding_amount,
ai.global_attribute_category,
ai.global_attribute1,
ai.global_attribute2,
ai.global_attribute3,
ai.global_attribute4,
ai.global_attribute5,
ai.global_attribute6,
ai.global_attribute7,
ai.global_attribute8,
ai.global_attribute9,
ai.global_attribute10,
ai.global_attribute11,
ai.global_attribute12,
ai.global_attribute13,
ai.global_attribute14,
ai.global_attribute15,
ai.global_attribute16,
ai.global_attribute17,
ai.global_attribute18,
ai.global_attribute19,
ai.global_attribute20,
ai.auto_tax_calc_flag,
ai.payment_cross_rate_type,
ai.payment_cross_rate_date,
ai.pay_curr_invoice_amount,
cfid.code_combination_id ri_expense_ccid
FROM ap_invoices_all ai,
cll_f189_invoices cfi,
cll_f189_fiscal_entities_all cffe,
(SELECT hl.inventory_organization_id organization_id,
cffe.document_number,
cffe.location_id
FROM mtl_parameters mp,
hr_locations_all hl,
cll_f189_fiscal_entities_all cffe
WHERE mp.organization_id (+) = hl.inventory_organization_id
AND cffe.location_id = hl.location_id
AND cffe.document_type IN ('CNPJ','CPF')
AND cffe.entity_type_lookup_code = 'LOCATION' ) emp,
cll_f189_invoice_dist cfid,
-- org_organization_definitions ood, --BUG 9702059
cll_f255_org_definitions_v ood, --BUG 9702059
hr_all_organization_units hou
WHERE emp.organization_id = cfi.organization_id
AND emp.location_id = cfi.location_id
AND cfi.invoice_num_ap = ai.invoice_num
AND UPPER(ai.source) LIKE 'CLL F189 INTEGRATED RCV%'
AND cffe.entity_id = cfi.entity_id
AND ai.vendor_site_id = cffe.vendor_site_id
AND ai.org_id = hou.organization_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
36
AND cfi.organization_id = ood.organization_id
AND hou.organization_id = ood.operating_unit
AND cfid.organization_id = cfi.organization_id
AND cfid.operation_id = cfi.operation_id
AND cfid.location_id = cfi.location_id
AND cfid.reference = 'ITEM';

Null /
Column Type of Data Description
Not Null
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
Name of the
NAME NOT NULL VARCHAR2(240)
organization
VARCHAR2(4000 CNPJ of the
OU_CNPJ
) organization
VARCHAR2(4000
OU_IE IE of the organization
)
Unique internal
Identifier for this
AP_INVOICE_ID NOT NULL NUMBER(15,0) record. Generated
using a database
sequence
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
DOCUMENT_NUMBE Ledger unique
VARCHAR2(30)
R identifier
Inventory
ORGANIZATION_ID NUMBER(15,0) organization foreign
key
System-generated
LOCATION_ID NOT NULL NUMBER(15,0)
primary key column
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER record. Generated
using a database
sequence
OPERATION_ID NOT NULL NUMBER Receiving identifier
SERIES NOT NULL VARCHAR2(30) Invoice series
Ledger unique
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0)
identifier
Currency code of the
INVOICE_CURRENCY
NOT NULL VARCHAR2(15) invoice. Foreign key to
_CODE
the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
37
FND_CURRENCIES
table
Currency code of
payment. If the Invoice
Currency is not a fixed-
rate currency, then the
Payment Currency
will be the same as the
PAYMENT_CURRENC INVOICE_CURRENC
NOT NULL VARCHAR2(15)
Y_CODE Y_CODE. For fixed-
rate currency such as
euro or another EMU
currency it can be
different to
INVOICE_CURRENC
Y_CODE
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
INVOICE_DATE NOT NULL DATE Invoice date
SOURCE VARCHAR2(25) Source
FISCAL_DOCUMENT_ Fiscal document model
NOT NULL VARCHAR2(30)
MODEL identifier
Operation Type
OPERATION_TYPE CHAR(9)
Default 'PURCHASES'
Description of the
invoice. This column is
DESCRIPTION VARCHAR2(240)
a free form text field in
Invoice workbench.
The unique internal
identifier of the
supplier to which the
VENDOR_ID NUMBER(15,0)
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
The unique internal
identifier for the
payment site of the
VENDOR_SITE_ID NUMBER(15,0) supplier. Foreign key
to the
AP_SUPPLIER_SITES
_ALL table
VALUE NUMBER Gross amount
AMOUNT_PAID NUMBER Invoice amount paid
This is the amount of
discount taken for the
DISCOUNT_AMOUNT
NUMBER invoice. This column
_TAKEN
gets updated during
payment processing of

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
38
this invoice and when
discount is calculated
Date used with
payment terms to
calculate scheduled
payment of an invoice.
This date will be
defaulted from one of
TERMS_DATE DATE the following Payables
System Setup option
defined for Term Date
Basis:· System Date·
Goods Received Date·
Invoice Date· Invoice
Received Date
Name of the payment
method used to pay
the supplier site.
Foreign key from the
table
PAYMENT_METHOD_
VARCHAR2(25) IBY_PAYMENT_MET
LOOKUP_CODE
HODS_B. This column
is populated only for
the invoices that are
migrated from prior
release
Name of the Paygroup
defined to pay a
category of suppliers
or invoices in the same
payment batch.
PAY_GROUP_LOOKU
VARCHAR2(25) Possible values for this
P_CODE
column are derived
from
FND_LOOKUP_VAL
UES for lookup_type
'PAY GROUP'
Accounting Flexfield
ACCTS_PAY_CODE_C identifier for accounts
NUMBER(15,0)
OMBINATION_ID payable liability
account
Flag that indicates if
invoice has been paid
PAYMENT_STATUS_F or not. Possible
VARCHAR2(1)
LAG Values:· 'N': Not paid·
'Y': Paid· 'P': Partially
Paid
Standard who column
CREATION_DATE DATE - date when this row
was created

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
39
Invoice amount in
functional currency.
This column gets
populated for the
invoice entered in non-
BASE_AMOUNT NUMBER functional currency
and this column
corresponds to the
'Functional Curr
Amount' field in
Invoice workbench.
Purchase order
identifier for invoices
with QUICKMATCH
and PO DEFAULT
PO_HEADER_ID NUMBER(15,0)
types, and
prepayments
associated with
purchase order
Freight amount used
exclude when
Payables calculates the
default discountable
FREIGHT_AMOUNT NUMBER amount for an invoice,
if your Exclude Freight
from Discount option
is enabled for the
supplier site
GOODS_RECEIVED_D Date invoice items
DATE
ATE received
INVOICE_RECEIVED_
DATE Date invoice received
DATE
Voucher number
assigned to an invoice
for internal tracking
purposes. Payables
assigns a unique
number if Sequential
numbering is enabled
VOUCHER_NUM VARCHAR2(50)
and will be free form
text field if sequential
number is not enabled.
It will be a non-
editable field if
payables assigns the
number
Invoice amount
APPROVED_AMOUN approved through
NUMBER
T manual authorization
for payment (used for

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
40
reference purposes
only).
ORIGINAL_PREPAYM
NUMBER No longer used
ENT_AMOUNT
APPROVAL_STATUS VARCHAR2(25) No Longer used
Description of manual
authorization invoice
APPROVAL_DESCRIP
VARCHAR2(240) approval (used for
TION
reference purposes
only).
INVOICE_DISTRIBUTI
NUMBER No longer used
ON_TOTAL
Status that indicates if
invoice can be posted
POSTING_STATUS VARCHAR2(15) (either Available or N -
column is populated,
but not used)
PREPAY_FLAG VARCHAR2(1) No longer used
AUTHORIZED_BY VARCHAR2(25) No longer used
CANCELLED_DATE DATE Date invoice cancelled
Unique internal
identifier of user who
cancelled an invoice.
CANCELLED_BY NUMBER(15,0)
Foreign key to the
USER_ID column of
the FND_USER table
CANCELLED_AMOU Original amount of
NUMBER
NT cancelled invoice
PAYMENT_AMOUNT Amount of invoice that
NUMBER
_TOTAL has been paid
Invoice Batch
Identifier. This column
will be populated if
Invoices are entered in
BATCH_ID NUMBER(15,0)
batches. Foreign key to
the
AP_BATCHES_ALL
table
Payment terms
identifier, this column
corresponds to the
'Terms' field in Invoice
TERMS_ID NUMBER(15,0)
workbench. Foreign
key to the TERMS_ID
of the AP_TERMS_TL
table
Unique Sequence
identifier assigned to
DOC_SEQUENCE_ID NUMBER
an invoice, based on
the document category

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
41
of the invoice. Foreign
key to the
DOC_SEQUENCE_ID
of the
AP_DOC_SEQUENCE
_AUDIT table.
Sequence name
assigned to an invoice,
based on the document
category of the invoice.
DOC_SEQUENCE_VA
NUMBER Foreign key to the
LUE
DOC_SEQUENCE_V
ALUE of the
AP_DOC_SEQUENCE
_AUDIT table
Document category for
an invoice. Payables
predefines a document
category for each
invoice type. If
DOC_CATEGORY_CO
VARCHAR2(30) Sequential Numbering
DE
profile option is
enabled, this
document category
defaults to an invoice
during entry.
Descriptive Flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE12 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
42
Descriptive Flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(150) structure definition
RY
column
Identifier for project
used to build default
Accounting Flexfield.
PROJECT_ID NUMBER(15,0) Foreign key to the
PROJECT_ID column
of the
PA_PROJECTS_ALL
Identifier for project
task used to build
default Accounting
TASK_ID NUMBER(15,0) Flexfield. Foreign key
to the TASK_ID
column of the
TASK_ID
Project expenditure
type used to build
default Accounting
Flexfield. Foreign key
EXPENDITURE_TYPE VARCHAR2(30) to the
EXPENDITURE_TYPE
column of the
PA_EXPENDITURE_T
YPES
Project expenditure
EXPENDITURE_ITEM_ item date used to build
DATE
DATE default Accounting
Flexfield
Project item quantity
PA_QUANTITY NUMBER(22,5) used to build default
Accounting Flexfield
Identifier for project
organization used to
build default
Accounting Flexfield.
EXPENDITURE_ORGA Foreign key to the
NUMBER(15,0)
NIZATION_ID EXPENDITURE_ORG
ANIZATION_ID of
the
PA_EXPENDITURE_T
YPES

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
43
Identifier for project-
related invoice default
PA_DEFAULT_DIST_C
NUMBER(15,0) Accounting Flexfield
CID
(defaults to invoice
distribution lines)
VENDOR_PREPAY_A
NUMBER No longer used
MOUNT
Flag to indicate if
Automatic
Withholding Tax has
AWT_FLAG VARCHAR2(1)
been calculated
automatically (A), or
manually (M)
Withholding Tax
group identifier at
AWT_GROUP_ID NUMBER(15,0)
Invoice Validation
time
Reference information
REFERENCE_1 VARCHAR2(30) from Oracle Projects
expense reports
Reference information
REFERENCE_2 VARCHAR2(30) from Oracle Projects
expense reports
PRE_WITHHOLDING_ Reserved for future
NUMBER
AMOUNT use
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
_CATEGORY
defining column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
1 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
2 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
3 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
4 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
5 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
6 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
7 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
8 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
9 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
10 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
11 column
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
44
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
12 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
13 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
14 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
15 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
16 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
17 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
18 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
19 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
20 column
AUTO_TAX_CALC_FL
VARCHAR2(1) No Longer Used
AG
Cross currency
payment rate type
PAYMENT_CROSS_R
VARCHAR2(30) (only valid value in
ATE_TYPE
this release is EMU
Fixed)
PAYMENT_CROSS_R Cross currency
DATE
ATE_DATE payment rate date
PAY_CURR_INVOICE Invoice amount in the
NUMBER
_AMOUNT payment currency
General Ledger
account code
combination that will
RI_EXPENSE_CCID NOT NULL NUMBER
be debited or credited
for this application
row

CLL_F255_AP_INVOICES_V

Selects the information in the CLL_F255_AP_INVOICES_V view together with other


columns that are referred to

View definition

CREATE OR REPLACE VIEW cll_f255_ap_invoices_v (


org_id,
name,
ou_cnpj,
ou_ie,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
45
invoice_id,
invoice_num,
set_of_books_id,
invoice_currency_code,
payment_currency_code,
last_update_date,
invoice_date,
source,
invoice_type_lookup_code,
description,
vendor_id,
invoice_amount,
vendor_site_id,
amount_paid,
discount_amount_taken,
payment_method_lookup_code,
pay_group_lookup_code,
accts_pay_code_combination_id,
payment_status_flag,
creation_date,
base_amount,
po_header_id,
freight_amount,
goods_received_date,
invoice_received_date,
voucher_num,
approved_amount,
original_prepayment_amount,
approval_status,
approval_description,
invoice_distribution_total,
posting_status,
prepay_flag,
authorized_by,
cancelled_date,
cancelled_by,
cancelled_amount,
payment_amount_total,
batch_id,
terms_id,
doc_sequence_id,
doc_sequence_value,
doc_category_code,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
46
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
attribute_category,
project_id,
task_id,
expenditure_type,
expenditure_item_date,
pa_quantity,
expenditure_organization_id,
pa_default_dist_ccid,
vendor_prepay_amount,
awt_flag,
awt_group_id,
reference_1,
reference_2,
pre_withholding_amount,
global_attribute_category,
global_attribute1,
global_attribute2,
global_attribute3,
global_attribute4,
global_attribute5,
global_attribute6,
global_attribute7,
global_attribute8,
global_attribute9,
global_attribute10,
global_attribute11,
global_attribute12,
global_attribute13,
global_attribute14,
global_attribute15,
global_attribute16,
global_attribute17,
global_attribute18,
global_attribute19,
global_attribute20,
auto_tax_calc_flag,
payment_cross_rate_type,
payment_cross_rate_date,
pay_curr_invoice_amount,
exchange_rate,
payment_num,
due_date,
amount_remaining,
gross_amount,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
47
base_currency_code,
payment_method_code )
AS
SELECT
ai.org_id,
hou.name,
-- cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity,
'FEDERAL_TAX') ou_cnpj, --BUG 9706326
-- cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'INCOME_TAX')
ou_ie, --BUG 9706326
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ai.legal_entity_id,
'FEDERAL_TAX') ou_cnpj,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ai.legal_entity_id, 'INCOME_TAX')
ou_ie,
ai.invoice_id ,
ai.invoice_num ,
ai.set_of_books_id ,
ai.invoice_currency_code , --cod_moeda
ai.payment_currency_code , --moeda_pagto
ai.last_update_date , --dt_atualizacao
ai.invoice_date , --dt_invoice
ai.source , --origem
ai.invoice_type_lookup_code , --cod_docto
ai.description , --descricao
ai.vendor_id ,
ai.invoice_amount , --valor
ai.vendor_site_id ,
ai.amount_paid , --valor_pago
ai.discount_amount_taken , --valor_desconto
ai.payment_method_lookup_code , --tp_pagto
ai.pay_group_lookup_code , --grupo_pagto
ai.accts_pay_code_combination_id , --id_cta
ai.payment_status_flag , --pago
ai.creation_date , --dt_criacao
ai.base_amount , --valor_base
ai.po_header_id , --po_header_id
ai.freight_amount , --valor_frete
ai.goods_received_date , --dt_rec_merc
ai.invoice_received_date , --dt_rec_nff
ai.voucher_num , --voucher_num
ai.approved_amount , --valor_aprovado
ai.original_prepayment_amount , --valor_original
ai.approval_status , --status_aprov
ai.approval_description , --descricao_aprov
ai.invoice_distribution_total , --valor_tot_invoice
ai.posting_status , --status
ai.prepay_flag , --prepagamento
ai.authorized_by , --autorizado
ai.cancelled_date , --dt_cancelada
ai.cancelled_by , --cancelada_por
ai.cancelled_amount , --valor_cancelado
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
48
ai.payment_amount_total , --valor_total_pago
ai.batch_id ,
ai.terms_id ,
ai.doc_sequence_id ,
ai.doc_sequence_value ,
ai.doc_category_code ,
ai.attribute1 ,
ai.attribute2 ,
ai.attribute3 ,
ai.attribute4 ,
ai.attribute5 ,
ai.attribute6 ,
ai.attribute7 ,
ai.attribute8 ,
ai.attribute9 ,
ai.attribute10 ,
ai.attribute11 ,
ai.attribute12 ,
ai.attribute13 ,
ai.attribute14 ,
ai.attribute15 ,
ai.attribute_category ,
ai.project_id ,
ai.task_id ,
ai.expenditure_type ,
ai.expenditure_item_date ,
ai.pa_quantity ,
ai.expenditure_organization_id ,
ai.pa_default_dist_ccid ,
ai.vendor_prepay_amount ,
ai.awt_flag ,
ai.awt_group_id ,
ai.reference_1 ,
ai.reference_2 ,
ai.pre_withholding_amount ,
ai.global_attribute_category ,
ai.global_attribute1 ,
ai.global_attribute2 ,
ai.global_attribute3 ,
ai.global_attribute4 ,
ai.global_attribute5 ,
ai.global_attribute6 ,
ai.global_attribute7 ,
ai.global_attribute8 ,
ai.global_attribute9 ,
ai.global_attribute10 ,
ai.global_attribute11 ,
ai.global_attribute12 ,
ai.global_attribute13 ,
ai.global_attribute14 ,
ai.global_attribute15 ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
49
ai.global_attribute16 ,
ai.global_attribute17 ,
ai.global_attribute18 ,
ai.global_attribute19 ,
ai.global_attribute20 ,
ai.auto_tax_calc_flag ,
ai.payment_cross_rate_type ,
ai.payment_cross_rate_date ,
ai.pay_curr_invoice_amount ,
ai.exchange_rate ,
aps.payment_num , --nr_linha
aps.due_date , --dt_vencto
aps.amount_remaining , --vl_em_aberto
aps.gross_amount , --vl_docto
asp.base_currency_code ,
aps.payment_method_code --BUG 11930978
FROM ap_invoices_all ai,
ap_payment_schedules_all aps,
ap_system_parameters_all asp,
hr_all_organization_units hou
-- org_organization_definitions ood*/ --BUG 9706326
WHERE asp.org_id = ai.org_id
AND aps.invoice_id = ai.invoice_id
AND ai.org_id = hou.organization_id
-- AND hou.organization_id = ood.operating_unit
WITH READ ONLY
/

Null /
Column Type of Data Description
Not Null
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
Name of the
NAME NOT NULL VARCHAR2(240)
organization
VARCHAR2(400 CNPJ of the
OU_CNPJ
0) organization
VARCHAR2(400
OU_IE IE of the organization
0)
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER(15,0) record. Generated
using a database
sequence
Invoice number for an
INVOICE_NUM NOT NULL VARCHAR2(50) invoice. This number
entered will be unique

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
50
per supplier and
operating unit
Ledger unique
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0)
identifier
Currency code of the
invoice. Foreign key to
INVOICE_CURRENCY
NOT NULL VARCHAR2(15) the
_CODE
FND_CURRENCIES
table
Currency code of
payment. If the Invoice
Currency is not a fixed-
rate currency, then the
Payment Currency
will be the same as the
PAYMENT_CURRENC INVOICE_CURRENC
NOT NULL VARCHAR2(15)
Y_CODE Y_CODE. For fixed-
rate currency such as
euro or another EMU
currency it can be
different to
INVOICE_CURRENC
Y_CODE
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
INVOICE_DATE DATE Invoice date
SOURCE VARCHAR2(25) Source
INVOICE_TYPE_LOO Invoice Type Look Up
VARCHAR2(25)
KUP_CODE Code
Description of the
invoice. This column is
DESCRIPTION VARCHAR2(240)
a free form text field in
Invoice workbench.
The unique internal
identifier of the
supplier to which the
VENDOR_ID NUMBER(15,0)
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
INVOICE_AMOUNT NUMBER Invoice Amount
The unique internal
identifier for the
payment site of the
VENDOR_SITE_ID NUMBER(15,0) supplier. Foreign key
to the
AP_SUPPLIER_SITES
_ALL table
AMOUNT_PAID NUMBER Invoice amount paid

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
51
This is the amount of
discount taken for the
invoice. This column
DISCOUNT_AMOUNT
NUMBER gets updated during
_TAKEN
payment processing of
this invoice and when
discount is calculated
Name of the payment
method used to pay
the supplier site.
Foreign key from the
table
PAYMENT_METHOD_
VARCHAR2(25) IBY_PAYMENT_MET
LOOKUP_CODE
HODS_B. This column
is populated only for
the invoices that are
migrated from prior
release
Name of the Paygroup
defined to pay a
category of suppliers
or invoices in the same
payment batch.
PAY_GROUP_LOOKU
VARCHAR2(25) Possible values for this
P_CODE
column are derived
from
FND_LOOKUP_VAL
UES for lookup_type
'PAY GROUP'
ACCTS_PAY_CODE_C NUMBER(15,0) Accounting Flexfield
OMBINATION_ID identifier for accounts
payable liability
account
PAYMENT_STATUS_F VARCHAR2(1) Flag that indicates if
LAG invoice has been paid
or not. Possible
Values:· 'N': Not paid·
'Y': Paid· 'P': Partially
Paid

CREATION_DATE DATE Standard who column


- date when this row
was created
BASE_AMOUNT NUMBER Invoice amount in
functional currency.
This column gets
populated for the
invoice entered in non-
functional currency
and this column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
52
corresponds to the
'Functional Curr
Amount' field in
Invoice workbench.
PO_HEADER_ID NUMBER(15,0) Purchase order
identifier for invoices
with QUICKMATCH
and PO DEFAULT
types, and
prepayments
associated with
purchase order
FREIGHT_AMOUNT NUMBER Freight amount used
exclude when
Payables calculates the
default discountable
amount for an invoice,
if your Exclude Freight
from Discount option
is enabled for the
supplier site
GOODS_RECEIVED_D DATE Date invoice items
ATE received
INVOICE_RECEIVED_ DATE Date invoice received
DATE
VOUCHER_NUM VARCHAR2(50) Voucher number
assigned to an invoice
for internal tracking
purposes. Payables
assigns a unique
number if Sequential
numbering is enabled
and will be free form
text field if sequential
number is not enabled.
It will be a non-
editable field if
payables assigns the
number
APPROVED_AMOUN NUMBER Invoice amount
T approved through
manual authorization
for payment (used for
reference purposes
only).
ORIGINAL_PREPAYM NUMBER No longer used
ENT_AMOUNT
APPROVAL_STATUS VARCHAR2(25) No Longer used
APPROVAL_DESCRIP VARCHAR2(240) Description of manual
TION authorization invoice

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
53
approval (used for
reference purposes
only).
INVOICE_DISTRIBUTI NUMBER No longer used
ON_TOTAL
POSTING_STATUS VARCHAR2(15) Status that indicates if
invoice can be posted
(either Available or N -
column is populated,
but not used)
PREPAY_FLAG VARCHAR2(1) No longer used
AUTHORIZED_BY VARCHAR2(25) No longer used
CANCELLED_DATE DATE Date invoice cancelled
CANCELLED_BY NUMBER(15,0) Unique internal
identifier of user who
cancelled an invoice.
Foreign key to the
USER_ID column of
the FND_USER table
CANCELLED_AMOU NUMBER Original amount of
NT cancelled invoice
PAYMENT_AMOUNT NUMBER Amount of invoice that
_TOTAL has been paid
BATCH_ID NUMBER(15,0) Invoice Batch
Identifier. This column
will be populated if
Invoices are entered in
batches. Foreign key to
the
AP_BATCHES_ALL
table
TERMS_ID NUMBER(15,0) Payment terms
identifier, this column
corresponds to the
'Terms' field in Invoice
workbench. Foreign
key to the TERMS_ID
of the AP_TERMS_TL
table
DOC_SEQUENCE_ID NUMBER Unique Sequence
identifier assigned to
an invoice, based on
the document category
of the invoice. Foreign
key to the
DOC_SEQUENCE_ID
of the
AP_DOC_SEQUENCE
_AUDIT table.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
54
DOC_SEQUENCE_VA NUMBER Sequence name
LUE assigned to an invoice,
based on the document
category of the invoice.
Foreign key to the
DOC_SEQUENCE_V
ALUE of the
AP_DOC_SEQUENCE
_AUDIT table
DOC_CATEGORY_CO VARCHAR2(30) Document category for
DE an invoice. Payables
predefines a document
category for each
invoice type. If
Sequential Numbering
profile option is
enabled, this
document category
defaults to an invoice
during entry.
ATTRIBUTE1 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE2 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE3 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE4 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE5 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE6 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE7 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE8 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE9 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE10 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE11 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE12 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE13 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE14 VARCHAR2(150) Descriptive Flexfield
segment
ATTRIBUTE15 VARCHAR2(150) Descriptive Flexfield
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
55
ATTRIBUTE_CATEGO VARCHAR2(150) Descriptive flexfield
RY structure definition
column
PROJECT_ID NUMBER(15,0) Identifier for project
used to build default
Accounting Flexfield.
Foreign key to the
PROJECT_ID column
of the
PA_PROJECTS_ALL
TASK_ID NUMBER(15,0) Identifier for project
task used to build
default Accounting
Flexfield. Foreign key
to the TASK_ID
column of the
TASK_ID
Project expenditure
type used to build
default Accounting
Flexfield. Foreign key
EXPENDITURE_TYPE VARCHAR2(30) to the
EXPENDITURE_TYPE
column of the
PA_EXPENDITURE_T
YPES
Project expenditure
EXPENDITURE_ITEM_ item date used to build
DATE
DATE default Accounting
Flexfield
Project item quantity
PA_QUANTITY NUMBER(22,5) used to build default
Accounting Flexfield
Identifier for project
organization used to
build default
Accounting Flexfield.
EXPENDITURE_ORGA Foreign key to the
NUMBER(15,0)
NIZATION_ID EXPENDITURE_ORG
ANIZATION_ID of
the
PA_EXPENDITURE_T
YPES
Identifier for project-
related invoice default
PA_DEFAULT_DIST_C
NUMBER(15,0) Accounting Flexfield
CID
(defaults to invoice
distribution lines)
VENDOR_PREPAY_A
NUMBER No longer used
MOUNT

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
56
Flag to indicate if
Automatic
Withholding Tax has
AWT_FLAG VARCHAR2(1)
been calculated
automatically (A), or
manually (M)
Withholding Tax
group identifier at
AWT_GROUP_ID NUMBER(15,0)
Invoice Validation
time
Reference information
REFERENCE_1 VARCHAR2(30) from Oracle Projects
expense reports
Reference information
REFERENCE_2 VARCHAR2(30) from Oracle Projects
expense reports
PRE_WITHHOLDING_ Reserved for future
NUMBER
AMOUNT use
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
_CATEGORY
defining column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
1 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
2 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
3 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
4 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
5 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
6 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
7 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
8 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
9 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
10 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
11 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
12 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
13 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
14 column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
57
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
15 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
16 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
17 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
18 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
19 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
20 column
AUTO_TAX_CALC_FL
VARCHAR2(1) No Longer Used
AG
Cross currency
payment rate type
PAYMENT_CROSS_R
VARCHAR2(30) (only valid value in
ATE_TYPE
this release is EMU
Fixed)
PAYMENT_CROSS_R Cross currency
DATE
ATE_DATE payment rate date
PAY_CURR_INVOICE Invoice amount in the
NUMBER
_AMOUNT payment currency
EXCHANGE_RATE NUMBER Exchange Rate
PAYMENT_NUM NOT NULL NUMBER(15,0) Payment Num
DUE_DATE DATE Due Date
AMOUNT_REMAININ
NUMBER Amount Remaining
G
GROSS_AMOUNT NUMBER Gross Amount
BASE_CURRENCY_C
NOT NULL VARCHAR2(15) Base Currency Code
ODE
Name of the payment
method used to pay
the supplier site.
PAYMENT_METHOD_
VARCHAR2(30) Foreign key from the
CODE
table
IBY_PAYMENT_MET
HODS_B.

CLL_F255_AP_IRRF_V

Selects the information in the CLL_F255_AP_IRRF_V view together with other columns
that are referred to

SELECT api.invoice_id,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
58
api.vendor_id,
'NFF' docment_type,
api.invoice_num,
api.invoice_date,
api.terms_date,
api.invoice_amount,
aatr.tax_rate,
aip.amount ,
aip.dist_code_combination_id,
aip.org_id ,
cfat.attribute1 enabled_brazilian_wt,
cfat.attribute2 dependant_reduction,
cfat.attribute3 minimum_wt_amount_use,
cfat.attribute4 minimum_wt_amount,
aip.attribute1,
aip.attribute2,
aip.attribute3,
aip.attribute4,
aip.attribute5,
aip.attribute6,
aip.attribute7,
aip.attribute8,
aip.attribute9,
aip.attribute10,
aip.attribute11,
aip.attribute12,
aip.attribute13,
aip.attribute14,
aip.attribute15,
aip.attribute_category ,
aip.global_attribute_category,
aip.global_attribute1,
aip.global_attribute2,
aip.global_attribute3,
aip.global_attribute4,
aip.global_attribute5,
aip.global_attribute6,
aip.global_attribute7,
aip.global_attribute8,
aip.global_attribute9,
aip.global_attribute10,
aip.global_attribute11,
aip.global_attribute12,
aip.global_attribute13,
aip.global_attribute14,
aip.global_attribute15,
aip.global_attribute16,
aip.global_attribute17,
aip.global_attribute18,
aip.global_attribute19,
aip.global_attribute20
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
59
FROM ap_invoice_distributions_all aip,
ap_invoices_all api,
ap_awt_tax_rates_all aatr,
cll_f036_ap_tax_codes_ext cfat
WHERE cfat.tax_id (+) = aip.tax_code_id
and aatr.tax_rate_id = aip.awt_tax_rate_id
and aip.amount <> 0
and aatr.tax_name like '%IR%'
and aip.invoice_id = api.invoice_id;

Null /
Column Type of Data Description
Not Null
Unique internal
identifier for the
invoice line of the
INVOICE_ID NOT NJLL NUMBER(15,0) associated Invoice.
Foreign key to the
AP_INVOICES_ALL
table
The unique internal
identifier of the
supplier to which the
VENDOR_ID NUMBER(15,0)
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
Document Type –
DOCMENT_TYPE CHAR(3)
Default ‘NFF’
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
INVOICE_DATE DATE Invoice Date
Date used with
payment terms to
calculate scheduled
payment of an invoice.
This date will be
defaulted from one of
TERMS_DATE DATE the following Payables
System Setup option
defined for Term Date
Basis:· System Date·
Goods Received Date·
Invoice Date· Invoice
Received Date
Invoice amount in the
INVOICE_AMOUNT NUMBER
payment currency

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
60
TAX_RATE NOT NULL NUMBER Withholding tax ra
Invoice distribution
AMOUNT NUMBER
amount
Accounting Flexfield
identifier for account
associated with a
DIST_CODE_COMBIN
NOT NULL NUMBER(15,0) distribution. Foreign
ATION_ID
key from the
GL_CODE_COMBIN
ATIONS table
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
ENABLED_BRAZILIA Descriptive flexfield
VARCHAR2(150)
N_WT column
DEPENDANT_REDUC Descriptive flexfield
VARCHAR2(150)
TION column
MINIMUM_WT_AMO Descriptive flexfield
VARCHAR2(150)
UNT_USE column
MINIMUM_WT_AMO Descriptive flexfield
VARCHAR2(150)
UNT column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
61
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
column
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(150) structure defining
RY
column
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
_CATEGORY
defining column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
1 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
2 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
3 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
4 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
5 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
6 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
7 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
8 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
9 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
10 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
11 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
12 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
13 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
14 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
15 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
16 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
17 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
18 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
19 column
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
20 column
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
62
CLL_F255_AP_PAYABLES_V

Selects the information in the CLL_F255_AP_PAYABLES_V view together with other


columns that are referred to

SELECT
api.invoice_id ,
api.invoice_num ,
api.set_of_books_id ,
api.invoice_currency_code currency_code, --cod_moeda
api.payment_currency_code payment_currency_code, --moeda_pagto
api.last_update_date last_update_date, --dt_invoice
api.source source, --origem
api.invoice_type_lookup_code document_code, --cod_docto
api.description description_distribution, --descr_invoice
api.vendor_id ,
api.vendor_site_id ,
aid.org_id ,
aid.accounting_date , --dt_movto
aid.distribution_line_number , --nr_linha
aid.dist_code_combination_id , --id_cta
aid.line_type_lookup_code , --tp_linha
aid.period_name , --period_name
aid.po_distribution_id ,
--aid.accts_pay_code_combination_id pay_code_combination_id, --no longer user
aid.description description_invoice, --description
aid.amount , --valor
decode(sign(aid.amount),-1,'d','c') ind_dc,
aid.base_amount , --vlr_base
aid.base_invoice_price_variance , --vlr_base_variacao
aid.creation_date , --dt_criacao
aid.description , --descricao
aid.invoice_price_variance , --vlr_variacao
aid.posted_flag , --postado
aid.quantity_invoiced , --quantidade
aid.rate_var_code_combination_id , --id_cta_variacao
aid.reversal_flag , --reversao
aid.unit_price , --preco_unitario
aid.amount_encumbered , --vlr_empenho
aid.base_amount_encumbered , --vlr_base_empenho
aid.encumbered_flag , --empenho
aid.price_adjustment_flag , --ajuste_preco
aid.price_var_code_combination_id , --id_cta_var_preco

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
63
aid.quantity_unencumbered , --qtde_empenho
aid.amount_to_post , --vlr_a_postar
aid.base_amount_to_post , --vlr_base_a_postar
aid.parent_invoice_id , --invoice_pai
aid.posted_amount , --valor_contabil
aid.posted_base_amount , --valor_base_contabil
aid.prepay_amount_remaining , --valor_adiantamento
aid.start_expense_date , --dt_inicio_despesa
aid.end_expense_date , --dt_fim_despesa
aid.attribute1 ,
aid.attribute10 ,
aid.attribute11 ,
aid.attribute12 ,
aid.attribute13 ,
aid.attribute14 ,
aid.attribute15 ,
aid.attribute2 ,
aid.attribute3 ,
aid.attribute4 ,
aid.attribute5 ,
aid.attribute6 ,
aid.attribute7 ,
aid.attribute8 ,
aid.attribute9 ,
aid.attribute_category ,
aid.expenditure_item_date ,
aid.expenditure_organization_id ,
aid.expenditure_type ,
aid.je_batch_id ,
aid.pa_addition_flag ,
aid.pa_quantity ,
aid.project_accounting_context ,
aid.project_id ,
aid.task_id ,
aid.reference_1 ,
aid.reference_2 ,
aid.other_invoice_id ,
aid.awt_invoice_payment_id ,
aid.global_attribute_category dist_global_attribute_category,
aid.global_attribute1 dist_global_attribute1,
aid.global_attribute2 dist_global_attribute2,
aid.global_attribute3 dist_global_attribute3,
aid.global_attribute4 dist_global_attribute4,
aid.global_attribute5 dist_global_attribute5,
aid.global_attribute6 dist_global_attribute6,
aid.global_attribute7 dist_global_attribute7,
aid.global_attribute8 dist_global_attribute8,
aid.global_attribute9 dist_global_attribute9,
aid.global_attribute10 dist_global_attribute10,
aid.global_attribute11 dist_global_attribute11,
aid.global_attribute12 dist_global_attribute12,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
64
aid.global_attribute13 dist_global_attribute13,
aid.global_attribute14 dist_global_attribute14,
aid.global_attribute15 dist_global_attribute15,
aid.global_attribute16 dist_global_attribute16,
aid.global_attribute17 dist_global_attribute17,
aid.global_attribute18 dist_global_attribute18,
aid.global_attribute19 dist_global_attribute19,
aid.global_attribute20 dist_global_attribute20,
aid.line_group_number ,
aid.justification ,
aid.expense_group ,
aid.adjustment_reason ,
api.payment_status_flag payment_flag, --pago
api.terms_date , --dt_vencto
api.global_attribute_category inv_global_attribute_category,
api.global_attribute1 inv_global_attribute1,
api.global_attribute2 inv_global_attribute2,
api.global_attribute3 inv_global_attribute3,
api.global_attribute4 inv_global_attribute4,
api.global_attribute5 inv_global_attribute5,
api.global_attribute6 inv_global_attribute6,
api.global_attribute7 inv_global_attribute7,
api.global_attribute8 inv_global_attribute8,
api.global_attribute9 inv_global_attribute9,
api.global_attribute10 inv_global_attribute10,
api.global_attribute11 inv_global_attribute11,
api.global_attribute12 inv_global_attribute12,
api.global_attribute13 inv_global_attribute13,
api.global_attribute14 inv_global_attribute14,
api.global_attribute15 inv_global_attribute15,
api.global_attribute16 inv_global_attribute16,
api.global_attribute17 inv_global_attribute17,
api.global_attribute18 inv_global_attribute18,
api.global_attribute19 inv_global_attribute19,
api.global_attribute20 inv_global_attribute20,
api.cancelled_amount
FROM ap_invoices_all api ,
ap_invoice_distributions_all aid
WHERE api.invoice_id = aid.invoice_id
AND api.org_id = aid.org_id;

Null /
Column Type of Data Description
Not Null
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER(15,0) record. Generated
using a database
sequence
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
65
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
Ledger unique
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0)
identifier
Currency code of the
invoice. Foreign key to
CURRENCY_CODE NOT NULL VARCHAR2(15) the
FND_CURRENCIES
table
Currency code of
payment. If the Invoice
Currency is not a fixed-
rate currency, then the
Payment Currency
will be the same as the
PAYMENT_CURRENC INVOICE_CURRENC
NOT NULL VARCHAR2(15)
Y_CODE Y_CODE. For fixed-
rate currency such as
euro or another EMU
currency it can be
different to
INVOICE_CURRENC
Y_CODE
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
SOURCE VARCHAR2(25) Source
Defines the source of
the invoice. Possible
values for this column
DOCUMENT_CODE VARCHAR2(25) are derived from
FND_LOOKUP_VAL
UES for lookup_type
'INVOICE TYPE'
Description of the
DESCRIPTION_DISTRI invoice. This column is
VARCHAR2(240)
BUTION a free form text field in
Invoice workbench.
The unique internal
identifier of the
supplier to which the
VENDOR_ID NUMBER(15,0)
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
The unique internal
VENDOR_SITE_ID NUMBER(15,0) identifier for the
payment site of the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
66
supplier. Foreign key
to the
AP_SUPPLIER_SITES
_ALL table
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
ACCOUNTING_DATE NOT NULL DATE Accounting date
Distribution number
DISTRIBUTION_LINE_ for an invoice line. This
NOT NULL NUMBER(15,0)
NUMBER is unique sequence per
invoice line
Accounting Flexfield
identifier for account
associated with a
DIST_CODE_COMBIN
NOT NULL NUMBER(15,0) distribution. Foreign
ATION_ID
key from the
GL_CODE_COMBIN
ATIONS table
Distribution type.
Validated against
LINE_TYPE_LOOKUP AP_LOOKUP_CODES
NOT NULL VARCHAR2(25)
_CODE . Lookup type is
INVOICE
DISTRIBUTION TYPE
Accounting period
name, foreign key
PERIOD_NAME NOT NULL VARCHAR2(15)
from the GL_PERIODS
table
Purchase order
distribution identifier
for purchase order or
PO_DISTRIBUTION_I receipt matched
NUMBER(15,0)
D invoice distributions.
Foreign key to the
PO_DISTRIBUTIONS_
ALL table
PAY_CODE_COMBIN
NUMBER(15,0) No longer used
ATION_ID
DESCRIPTION_INVOI Distribution line
VARCHAR2(240)
CE description
Invoice distribution
AMOUNT NUMBER
amount
IND_DC VARCHAR2(1) Default ‘D’,’C’
Distribution amount in
functional currency.
BASE_AMOUNT NUMBER
This column gets
populated for the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
67
invoice entered in non-
functional currency
and this column
corresponds to the
'Functional Amount'
field of Invoice
Distribution window
BASE_INVOICE_PRIC
NUMBER No longer used
E_VARIANCE
Standard who column
CREATION_DATE DATE - date when this row
was created
Distribution line
DESCRIPTION VARCHAR2(240)
description
INVOICE_PRICE_VAR
NUMBER No longer used
IANCE
Flag that indicates if
invoice distribution
POSTED_FLAG VARCHAR2(1) line has been
accounted. Valid
values are 'Y' or 'N'.
Quantity billed for
QUANTITY_INVOICE purchase order or
NUMBER
D receipt matched
invoice distributions
RATE_VAR_CODE_C
NUMBER(15,0) No longer used
OMBINATION_ID
Flag that indicates if
REVERSAL_FLAG VARCHAR2(1) distribution is part of a
reversal pair
Unit price for purchase
order, receipt matched
UNIT_PRICE NUMBER invoice distributions,
and price or quantity
corrections
AMOUNT_ENCUMBE
NUMBER No longer used
RED
BASE_AMOUNT_ENC
NUMBER No longer used
UMBERED
Flag indicating
ENCUMBERED_FLAG VARCHAR2(1) encumbrance status of
distribution
PRICE_ADJUSTMENT
VARCHAR2(1) No longer used
_FLAG
PRICE_VAR_CODE_C
NUMBER(15,0) No longer used
OMBINATION_ID
QUANTITY_UNENCU
NUMBER No longer used
MBERED
AMOUNT_TO_POST NUMBER No longer used

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
68
BASE_AMOUNT_TO_
NUMBER No longer used
POST
Identifier for invoice
PARENT_INVOICE_ID NUMBER(15,0) matched to a credit or
debit memo
POSTED_AMOUNT NUMBER No longer used
POSTED_BASE_AMO
NUMBER No longer used
UNT
Amount of
PREPAY_AMOUNT_R prepayment that can
NUMBER
EMAINING still be applied to an
invoice
Date when incurred
START_EXPENSE_DA
DATE expense started. Used
TE
for Expense Reports
Date when incurred
END_EXPENSE_DATE DATE expense ended. Used
for Expense Reports
Descriptive Flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE9 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
69
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(150) structure definition
RY
column
Date for project
expenditure item used
EXPENDITURE_ITEM_
DATE to build Accounting
DATE
Flexfield for project-
related distribution
Identifier for project
organization used to
EXPENDITURE_ORGA
NUMBER(15,0) build Accounting
NIZATION_ID
Flexfield for project-
related distribution
Project expenditure
type used to build
EXPENDITURE_TYPE VARCHAR2(30) Accounting Flexfield
for project-related
distribution
JE_BATCH_ID NUMBER(15,0) No longer used
Flag that indicates if
project related invoice
PA_ADDITION_FLAG VARCHAR2(1) distributions have
been transferred into
Oracle Projects
Project item quantity
used to build
PA_QUANTITY NUMBER(22,5) Accounting Flexfield
for project-related
distribution
PROJECT_ACCOUNTI
VARCHAR2(30) No longer used
NG_CONTEXT
Identifier for project
used to build
PROJECT_ID NUMBER(15,0) Accounting Flexfield
for project-related
distribution
Identifier for project
task used to build
TASK_ID NUMBER(15,0) Accounting Flexfield
for project-related
distribution
Reference information
from Oracle Projects
expense reports or
REFERENCE_1 VARCHAR2(30)
other external source
invoice loading
program
Reference information
REFERENCE_2 VARCHAR2(30) from Oracle Projects
expense reports or

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
70
other external source
invoice loading
program
OTHER_INVOICE_ID NUMBER(15,0) No longer used
Refers to the parent
invoice payment. This
column is populated
AWT_INVOICE_PAY
NUMBER(15,0) only for automatically
MENT_ID
created withholding
tax distributions at
payment time
DIST_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE_CATEGORY specific functionality
DIST_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE1 specific functionality
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE2
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE3
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE4
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE5
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE6
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE7
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE8
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE9
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE10
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE11
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE12
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE13
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE14
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE15
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE16
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE17
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE18

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
71
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE19
DIST_GLOBAL_ATTRI
VARCHAR2(150) Reserved for country
BUTE20
LINE_GROUP_NUMB
NUMBER(15,0) No longer used
ER
Expense justification
JUSTIFICATION VARCHAR2(240) given while submitting
expense report
Expense group: User-
defined label used to
identify a group of
EXPENSE_GROUP VARCHAR2(80) expense lines
contained on a single
receipt, for example, a
hotel bill
ADJUSTMENT_REAS Reason for expense
VARCHAR2(240)
ON adjustment
Flag that indicates if
invoice has been paid
or not. Possible
PAYMENT_FLAG VARCHAR2(1)
Values:· 'N': Not paid·
'Y': Paid· 'P': Partially
Paid
Date used with
payment terms to
calculate scheduled
payment of an invoice.
This date will be
defaulted from one of
TERMS_DATE DATE the following Payables
System Setup option
defined for Term Date
Basis:· System Date·
Goods Received Date·
Invoice Date· Invoice
Received Date
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE_CATEGORY specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE1 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE2 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE3 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE4 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE5 specific functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
72
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE6 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE7 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE8 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE9 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE10 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE11 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE12 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE13 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE14 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE15 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE16 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE17 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE18 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE19 specific functionality
INV_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE20 specific functionality

CLL_F255_AP_PAYMENTS_V
Selects the information in the CLL_F255_AP_PAYMENTS_V view together with other
columns that are referred to

SELECT
aip.org_id,
api.invoice_num,
api.invoice_currency_code,
api.payment_currency_code,
api.invoice_date,
api.source,
api.description,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
73
aip.accounting_date,
aip.amount,
aip.invoice_id,
aip.invoice_payment_id,
aip.last_update_date,
aip.payment_num,
aip.period_name,
aip.posted_flag,
aip.set_of_books_id,
nvl(nvl(aip.accts_pay_code_combination_id,
aip.asset_code_combination_id),pvs.accts_pay_code_combination_id) bill_payment_id,
aip.asset_code_combination_id,
aip.creation_date,
aip.bank_account_num,
aip.bank_account_type,
aip.bank_num,
aip.discount_lost,
aip.discount_taken,
aip.gain_code_combination_id,
aip.invoice_base_amount,
aip.loss_code_combination_id,
aip.payment_base_amount,
aip.attribute1,
aip.attribute10,
aip.attribute11,
aip.attribute12,
aip.attribute13,
aip.attribute14,
aip.attribute15,
aip.attribute2,
aip.attribute3,
aip.attribute4,
aip.attribute5,
aip.attribute6,
aip.attribute7,
aip.attribute8,
aip.attribute9,
aip.attribute_category,
aip.future_pay_code_combination_id,
aip.future_pay_posted_flag,
aip.je_batch_id,
aip.electronic_transfer_id,
aip.assets_addition_flag,
aip.other_invoice_id,
aip.org_id company,
aip.global_attribute_category,
aip.global_attribute1 aip_global_attribute1,
aip.global_attribute2 aip_global_attribute2,
aip.global_attribute3 aip_global_attribute3,
aip.global_attribute4 aip_global_attribute4,
aip.global_attribute5 aip_global_attribute5,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
74
aip.global_attribute6 aip_global_attribute6,
aip.global_attribute7 aip_global_attribute7,
aip.global_attribute8 aip_global_attribute8,
aip.global_attribute9 aip_global_attribute9,
aip.global_attribute10 aip_global_attribute10,
aip.global_attribute11 aip_global_attribute11,
aip.global_attribute12 aip_global_attribute12,
aip.global_attribute13 aip_global_attribute13,
aip.global_attribute14 aip_global_attribute14,
aip.global_attribute15 aip_global_attribute15,
aip.global_attribute16 aip_global_attribute16,
aip.global_attribute17 aip_global_attribute17,
aip.global_attribute18 aip_global_attribute18,
aip.global_attribute19 aip_global_attribute19,
aip.global_attribute20 aip_global_attribute20,
aip.external_bank_account_id,
apc.amount vl_check,
apc.bank_account_id,
apc.bank_account_name,
apc.check_date,
apc.check_id,
apc.checkrun_name,
apc.check_number,
apc.currency_code,
apc.payment_method_lookup_code,
'pagamentos' operation_code,
apc.payment_type_flag,
apc.check_format_id,
acf.name,
acf.type,
apc.check_stock_id ,
apc.status_lookup_code,
apc.check_voucher_num,
apc.cleared_amount,
apc.cleared_date,
apc.doc_category_code,
apc.doc_sequence_id,
apc.doc_sequence_value,
apc.future_pay_due_date,
apc.treasury_pay_date,
apc.treasury_pay_number,
apc.withholding_status_lookup_code,
apc.reconciliation_batch_id,
apc.cleared_base_amount,
apc.vendor_id,
apc.vendor_site_id,
apc.base_amount,
apc.checkrun_id,
apc.cleared_error_amount,
apc.cleared_charges_amount,
apc.cleared_error_base_amount,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
75
apc.cleared_charges_base_amount,
apc.positive_pay_status_code,
apc.transfer_priority,
apc.stamp_duty_amt,
apc.stamp_duty_base_amt,
aip.invoice_payment_type,
asi.original_invoice_id,
aip.exchange_rate,
aip.reversal_flag,
aip.reversal_inv_pmt_id,
acs.name check_stock_name
FROM ap_invoice_payments_all aip,
ap_supplier_sites_all pvs,
ap_checks_all apc,
ap_check_stocks_all acs,
ap_invoices_all api,
ap_selected_invoices_all asi,
ap_check_formats acf
WHERE asi.invoice_id (+) = aip.invoice_id
and asi.payment_num (+) = aip.payment_num
and acf.check_format_id (+) = apc.check_format_id
and apc.check_id = aip.check_id
and apc.org_id = aip.org_id
and api.invoice_id = aip.invoice_id
and api.org_id = aip.org_id
and api.vendor_site_id = pvs.vendor_site_id
and api.org_id = pvs.org_id
and apc.check_stock_id = acs.check_stock_id(+);

Null /
Column Type of Data Description
Not Null
Unique internal
identifier of the
ORG_ID NOT NULL NUMBER(15,0) Operating Unit to
which the invoice
belongs
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
Currency code of the
invoice. Foreign key to
INVOICE_CURRENCY
NOT NULL VARCHAR2(15) the
_CODE
FND_CURRENCIES
table
Currency code of
PAYMENT_CURRENC
VARCHAR2(15) payment. If the Invoice
Y_CODE
Currency is not a fixed-

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
76
rate currency, then the
Payment Currency
will be the same as the
INVOICE_CURRENC
Y_CODE. For fixed-
rate currency such as
euro or another EMU
currency it can be
different to
INVOICE_CURRENC
Y_CODE
INVOICE_DATE DATE Invoice date
SOURCE VARCHAR2(25) Source
Description of the
invoice. This column is
DESCRIPTION NOT NULL VARCHAR2(240)
a free form text field in
Invoice workbench.
This is the Accounting
ACCOUNTING_DATE NOT NULL DATE
Date of Payment
This is the payment
AMOUNT NOT NULL NUMBER
amount of the invoice
The invoice identifier
is a unique sequential
number to identify a
INVOICE_ID NOT NULL NUMBER(15,0)
invoice. Foreign key to
the
AP_INVOICES_ALL
This is the unique
identifier to identify
INVOICE_PAYMENT_ the payment on the
NOT NULL NUMBER(15,0)
ID invoice. Generated
using database
sequence.
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
This is the payment
PAYMENT_NUM NOT NULL NUMBER(15,0) number for the
payment
This is the Period name
PERIOD_NAME NOT NULL VARCHAR2(15) in which the invoice
payment is processed
Flag that indicates if
POSTED_FLAG NOT NULL VARCHAR2(1) the payment has been
accounted (Y or N)
Ledger unique
SET_OF_BOOKS_ID NUMBER(15,0)
identifier
Accounting Flexfield
BILL_PAYMENT_ID NUMBER
identifier for accounts

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
77
payable liability
account
This is the identifier for
ASSET_CODE_COMBI
NUMBER(15,0) cash account
NATION_ID
Accounting Flexfield
Standard who column
CREATION_DATE DATE - date when this row
was created
This is the Bank
BANK_ACCOUNT_N
VARCHAR2(30) account number used
UM
for payment
This is the Bank
BANK_ACCOUNT_TY Account Type code.
VARCHAR2(25)
PE This is maintained in
cash management
This is the bank
number of the bank
BANK_NUM VARCHAR2(25)
account used for
payment
This is the amount of
DISCOUNT_LOST NUMBER discount lost on
payment of invoice
This is the amount of
discount taken on
DISCOUNT_TAKEN NUMBER
payments of the
invoice
Accounting Flexfield
identifier for account
GAIN_CODE_COMBI to which realized
NUMBER(15,0)
NATION_ID exchange rate gains are
posted. Foreign key to
the
Payment amount in
functional currency at
INVOICE_BASE_AMO invoice's exchange
NUMBER
UNT rate, only used for
foreign currency
invoice payments
Accounting Flexfield
identifier for account
to which realized
LOSS_CODE_COMBIN exchange rate losses
NUMBER(15,0)
ATION_ID are posted. Foreign key
to the
GL_CODE_COMBIN
ATIONS table
Payment amount at
PAYMENT_BASE_AM
NUMBER payment's exchange
OUNT
rate, only used for

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
78
foreign currency
invoice payments
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(150) structure definition
RY
column
FUTURE_PAY_CODE_
NUMBER(15,0) No longer used
COMBINATION_ID
FUTURE_PAY_POSTE
VARCHAR2(1) No longer used
D_FLAG
JE_BATCH_ID NUMBER(15,0) No longer used
ELECTRONIC_TRANS
NUMBER(15,0) No longer used
FER_ID
Flag that indicates if
discounts on invoice
ASSETS_ADDITION_F
VARCHAR2(1) payment have been
LAG
transferred into Oracle
Assets (U, Y or N)
OTHER_INVOICE_ID NUMBER(15,0) No longer used
This is the unique
COMPANY NUMBER(15,0)
internal identifier of
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
79
the operating unit in
which the payment is
created
GLOBAL_ATTRIBUTE Reserved for country-
VARCHAR2(150)
_CATEGORY specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE1 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE2 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE3 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE4 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE5 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE6 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE7 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE8 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE9 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE10 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE11 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE12 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE13 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE14 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE15 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE16 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE17 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE18 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE19 specific functionality
AIP_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE20 specific functionality
This is the External
EXTERNAL_BANK_A Bank Account
NOT NULL NUMBER(15,0)
CCOUNT_ID identifier. Foreign key
to the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
80
IBY_EXT_BANK_ACC
OUNTS table
This is the payment
VL_CHECK NUMBER
amount of the invoice
This is the External
Bank Account
identifier. Foreign key
BANK_ACCOUNT_ID NOT NULL NUMBER(15,0)
to the
IBY_EXT_BANK_ACC
OUNTS table
The bank account
BANK_ACCOUNT_N
NOT NULL VARCHAR2(80) name from which
AME
payment is made
CHECK_DATE NOT NULL DATE Payment date
Unique internal
Identifier for this
CHECK_ID NUMBER(15,0) record. Generated
using a database
sequence
This is the Payment
Process Request Name
CHECKRUN_NAME NOT NULL VARCHAR2(255)
in the payment
manager
CHECK_NUMBER NOT NULL NUMBER(15,0) Payment number
Indicates payment
CURRENCY_CODE VARCHAR2(15) currency code in which
payment is made
PAYMENT_METHOD_ Indicates the payment
VARCHAR2(25)
LOOKUP_CODE method
Operation Code,
OPERATION_CODE NOT NULL CHAR(10) Default
‘PAGAMENTOS’
This flag indicates the
payment type. The
PAYMENT_TYPE_FLA possible values are
VARCHAR2(25)
G quick payments,
manual payments,
refunds etc.
This corresponds to
the Payment Format
attached to the
CHECK_FORMAT_ID NUMBER(15,0) payment. The payment
format is attached to
the payment
documents
NAME VARCHAR2(30) Payment format name
TYPE VARCHAR2(15) No longer used
Unique identifier
CHECK_STOCK_ID NUMBER(15,0) attached to the
payment document
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
81
Indicates the current
status of payment. The
STATUS_LOOKUP_CO possible payment
VARCHAR2(25)
DE status can be
Negotiable, Set up,
Spoiled, Cleared etc
CHECK_VOUCHER_N
NUMBER(16,0) No Longer Used
UM
Amount disbursed by
the bank as on the
cleared date. This
CLEARED_AMOUNT NUMBER
information is also
stored in Cash
management
Date when the bank
disbursed the
payment. This
CLEARED_DATE DATE
information is also
stored in Cash
management
Sequential Numbering
DOC_CATEGORY_CO (voucher number)
VARCHAR2(30)
DE document category for
payment
Sequential Numbering
DOC_SEQUENCE_ID NUMBER document sequence
identifier
Voucher number
DOC_SEQUENCE_VA (sequential
NUMBER
LUE numbering) for
payment
FUTURE_PAY_DUE_D Negotiable date for
DATE
ATE future dated payment
TREASURY_PAY_DAT
DATE No Longer Used
E
TREASURY_PAY_NU
NUMBER(15,0) No Longer Used
MBER
WITHHOLDING_STA
VARCHAR2(25) No longer used
TUS_LOOKUP_CODE
RECONCILIATION_B
NUMBER(15,0) No longer used
ATCH_ID
Payment cleared
CLEARED_BASE_AM
NUMBER amount in functional
OUNT
currency
This is the unique
identifier of supplier.
In Cash management,
VENDOR_ID NUMBER(15,0)
these fields are used to
Find Transactions by
Supplier so that these

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
82
transactions can be
cleared
This is the unique
identifier of supplier
site. In Cash
management, these
VENDOR_SITE_ID NUMBER(15,0) fields are used to Find
Transactions by
Supplier so that these
transactions can be
cleared
Payment cleared
BASE_AMOUNT NUMBER amount in functional
currency
This is the unique
identifier assigned to
CHECKRUN_ID NUMBER(15,0)
the payment process
request.
This is the payment
error amount
CLEARED_ERROR_A calculated on clearing
NUMBER
MOUNT the payments. This is
calculated in cash
management
This is the bank
charges amount
CLEARED_CHARGES calculated on clearing
NUMBER
_AMOUNT the payments. This is
calculated in cash
management.
This is the payment
CLEARED_ERROR_BA error amount
NUMBER
SE_AMOUNT expressed in functional
currency
This is the payment
CLEARED_CHARGES charges amount
NUMBER
_BASE_AMOUNT expressed in functional
currency
This is the status set by
POSITIVE_PAY_STAT and used by Positive
VARCHAR2(25)
US_CODE Pay Report to select
records
This indicates the
priority for transfer of
electronic payments.
TRANSFER_PRIORITY VARCHAR2(25) Applicable for bank
charge users only.
Values are Any,
Express or Normal.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
83
Stamp duty tax
STAMP_DUTY_AMT NUMBER amount for
globalization
Stamp duty tax
STAMP_DUTY_BASE_ amount in functional
NUMBER
AMT currency for
globalization
This is the Creation
method of a payment,
INVOICE_PAYMENT_ used by Positive Pay
VARCHAR2(25)
TYPE feature. Possible
values are Single or
Batch
Original invoice
identifier, used for
mapping an interest
ORIGINAL_INVOICE_ invoice back to invoice
VARCHAR2(30)
ID that it is based on in
accordance with the
terms of the Prompt
Payment Act
Foreign currency
EXCHANGE_RATE NUMBER exchange rate used for
an invoice
This Flag indicates
whether current
REVERSAL_FLAG VARCHAR2(1) invoice payment is a
reversal of another
invoice payment
Identifier for invoice
REVERSAL_INV_PMT payment reversed
NUMBER(15,0)
_ID through current
invoice payment
CHECK_STOCK_NAM Name of payment
VARCHAR2(20)
E document

CLL_F255_AP_TAXES_V
Selects the information in the CLL_F255_AP_TAXES_V view together with other
columns that are referred to

SELECT api.org_id,
api.invoice_id,
api.invoice_num,
api.invoice_amount,
api.invoice_date,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
84
api.vendor_id,
ass.vendor_name,
ass.global_attribute1 ass_global_attribute1,
ass.global_attribute2 ass_global_attribute2,
ass.global_attribute3 ass_global_attribute3,
ass.global_attribute4 ass_global_attribute4,
ass.global_attribute5 ass_global_attribute5,
ass.global_attribute6 ass_global_attribute6,
ass.global_attribute7 ass_global_attribute7,
ass.global_attribute8 ass_global_attribute8,
ass.global_attribute9 ass_global_attribute9,
ass.global_attribute10 ass_global_attribute10,
ass.global_attribute11 ass_global_attribute11,
ass.global_attribute12 ass_global_attribute12,
ass.global_attribute13 ass_global_attribute13,
ass.global_attribute14 ass_global_attribute14,
ass.global_attribute15 ass_global_attribute15,
ass.global_attribute16 ass_global_attribute16,
ass.global_attribute17 ass_global_attribute17,
ass.global_attribute18 ass_global_attribute18,
ass.global_attribute19 ass_global_attribute19,
ass.global_attribute20 ass_global_attribute20,
ass.global_attribute_category ass_global_attribute_category,
aip.invoice_payment_id,
aip.payment_num,
aps.due_date ,
apc.check_date ,
aid.reversal_flag ,
aip.reversal_inv_pmt_id,
aip.amount,
aab.tax_name,
atr.tax_rate ,
aid.awt_gross_amount ,
aid.amount vl_withheld_taxe,
aab.gross_amount_to_date ,
aab.withheld_amount_to_date ,
aip.period_name,
api.source
FROM ap_awt_buckets_all aab
, ap_other_periods aop
, ap_suppliers ass
, ap_awt_tax_rates_all atr
, ap_checks_all apc
, ap_invoice_payments_all aip
, ap_tax_codes_all atc
, ap_payment_schedules_all aps
, ap_invoices_all api
, ap_invoice_distributions_all aid
WHERE aid.invoice_id = api.invoice_id
and aid.awt_flag = 'A'
and aip.invoice_id = api.invoice_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
85
and aip.period_name = aid.period_name
and aip.invoice_payment_id = aid.awt_invoice_payment_id
and aps.invoice_id = api.invoice_id
and aps.payment_num = aip.payment_num
and apc.check_id = aip.check_id
and atc.name = atr.tax_name
and atr.org_id = atc.org_id
and aab.vendor_id = api.vendor_id
and aop.application_id = 200
and aop.module = 'AWT'
and aop.period_type = atc.awt_period_type
and aab.period_name = aop.period_name
and aab.tax_name = atc.name
and aab.org_id = api.org_id
and aid.accounting_date between aop.start_date and aop.end_date
and aid.awt_tax_rate_id = atr.tax_rate_id
and ass.vendor_id = api.vendor_id;

Null /
Column Type of Data Description
Not Null
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER(15,0) record. Generated
using a database
sequence
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
Total amount of the
invoice. This amount
can be negative for
following types of
INVOICE_AMOUNT NUMBER invoices:· Credit
Memo· Debit Memo·
Mixed· Automatic
Withholding· Expense
Reports
INVOICE_DATE DATE Invoice date
The unique internal
VENDOR_ID NUMBER(15,0) identifier of the
supplier to which the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
86
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
VENDOR_NAME VARCHAR2(240) Supplier name
ASS_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(150)
UTE1 specific functionality
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE2
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE3
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE4
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE5
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE6
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE7
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE8
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE9
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE10
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE11
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE12
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE13
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE14
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE15
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE16
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE17
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE18
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE19
ASS_GLOBAL_ATTRIB
VARCHAR2(150) Reserved for country
UTE20
ASS_GLOBAL_ATTRIB Reserved for country-
VARCHAR2(30)
UTE_CATEGORY specific functionality
This is the unique
INVOICE_PAYMENT_ identifier to identify
NOT NULL NUMBER(15,0)
ID the payment on the
invoice. Generated
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
87
using database
sequence
This is the payment
PAYMENT_NUM NOT NULL NUMBER(15,0) number for the
payment
DUE_DATE DATE Due Date
CHECK_DATE NOT NULL DATE Payment date
Flag that indicates if
REVERSAL_FLAG VARCHAR2(1) distribution is part of a
reversal pair
Identifier for invoice
REVERSAL_INV_PMT payment reversed
NUMBER(15,0)
_ID through current
invoice payment
This is the payment
AMOUNT NOT NULL NUMBER
amount of the invoice
TAX_NAME NOT NULL VARCHAR2(15) Withholding tax name
TAX_RATE NOT NULL NUMBER Withholding tax rate
Total amount subject
AWT_GROSS_AMOU
NUMBER to withholding tax
NT
within this bucket
Invoice distribution
VL_WITHHELD_TAXE NUMBER
amount
Total amount subject
GROSS_AMOUNT_TO
NOT NULL NUMBER to withholding tax
_DATE
within this bucket
WITHHELD_AMOUN Withholding tax
NOT NULL NUMBER
T_TO_DATE amount to date
This is the Period name
PERIOD_NAME NOT NULL VARCHAR2(15) in which the invoice
payment is processed
SOURCE VARCHAR2(25) Source

CLL_F255_AP_TAXES_WITHHELD_V

Selects the information in the CLL_F255_AP_TAXES_WITHHELD_V view together with


other columns that are referred to

SELECT
aia.org_id ,
aia.invoice_id ,
aip.invoice_payment_id ,
aia.invoice_date ,
aia.terms_date ,
aia.invoice_num ,
aia.invoice_amount ,
atc.global_attribute1 ,
atc.global_attribute2 ,
aatra.tax_name ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
88
baptce.attribute1 tax_income_code ,
--aatra.tax_rate , --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',0),
aatra.tax_rate) tax_rate , --BUG 9724704
aip.amount ,
aia.vendor_id ,
asu.vendor_name , --BUG 9724704
aida.dist_code_combination_id ,
aida.invoice_line_number , --BUG 19387147
aida.distribution_line_number , --BUG
19387147
aida.reversal_flag ,
aip.payment_num payment_number , --BUG
9724704
aps.due_date , --BUG 9724704
apc.check_date , --BUG 9724704
aip.reversal_inv_pmt_id , --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',N
ULL),aab.tax_name) bucket_tax_name, --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',0),
aida.awt_gross_amount) awt_gross_amount, --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',0),
aida.amount) distribution_amount, --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',0),
aab.gross_amount_to_date) gross_amount_to_date, --BUG 9724704

DECODE(aida.awt_invoice_payment_id,NULL,DECODE(aps.payment_status_flag,'Y',0),
aab.withheld_amount_to_date) withheld_amount_to_date, --BUG 9724704
aip.period_name , --BUG 9724704
aia.source , --BUG 9724704
aps.payment_num , --BUG 9724704
aip.discount_taken , --BUG 9724704
DECODE(aip.reversal_flag, 'Y', 'Reverse', 'Confirmed') payment_status,
--BUG 9724704
DECODE(aida.awt_invoice_payment_id,NULL,'At Invoice Validation Time', 'At
Payment Time') withholding_tax --BUG 9724704
FROM ap_awt_buckets_all aab,
ap_other_periods aop,
ap_suppliers asu,
ap_awt_tax_rates_all aatra,
ap_checks_all apc,
ap_invoice_payments_all aip,
ap_tax_codes_all atc,
ap_payment_schedules_all aps,
ap_invoice_distributions_all aida,
ap_invoices_all aia,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
89
cll_f037_ap_tax_codes_ext baptce
WHERE baptce.tax_id (+) = aida.withholding_tax_code_id -- aida.tax_code_id
AND aida.invoice_id = aia.invoice_id
AND aida.awt_flag = 'A'
AND aip.invoice_id = aia.invoice_id
AND (aida.awt_invoice_payment_id IS NULL OR aip.invoice_payment_id =
aida.awt_invoice_payment_id)
AND aps.invoice_id = aia.invoice_id
AND aps.payment_num = aip.payment_num
AND apc.check_id = aip.check_id
AND atc.tax_id = aida.withholding_tax_code_id --aida.tax_code_id
AND aab.vendor_id = aia.vendor_id
AND aop.application_id = 200
AND aop.module = 'AWT'
AND aop.period_type = atc.awt_period_type
AND aab.period_name = aop.period_name
AND aab.tax_name = atc.name
AND aab.org_id = aia.org_id
AND aida.accounting_date BETWEEN aop.start_date
AND aop.end_date
AND aatra.tax_rate_id (+) = aida.awt_tax_rate_id
AND aab.period_name = aop.period_name
AND asu.vendor_id = aia.vendor_id
UNION ALL --BUG 11718558
--BUG 9724704
SELECT
aia.org_id ,
aia.invoice_id ,
NULL invoice_payment_id ,
aia.invoice_date ,
aia.terms_date ,
aia.invoice_num ,
aia.invoice_amount ,
atc.global_attribute1 ,
atc.global_attribute2 ,
aatra.tax_name ,
baptce.attribute1 tax_income_code ,
aatra.tax_rate ,
NULL amount ,
aia.vendor_id ,
asu.vendor_name ,
aida.dist_code_combination_id ,
aida.invoice_line_number , --BUG 19387147
aida.distribution_line_number , --BUG 19387147
aida.reversal_flag ,
NULL payment_number ,
NULL due_date ,
NULL check_date ,
NULL reversal_inv_pmt_id ,
aab.tax_name bucket_tax_name ,
aida.awt_gross_amount ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
90
aida.amount distribution_amount ,
aab.gross_amount_to_date ,
aab.withheld_amount_to_date ,
aida.period_name ,
aia.source ,
NULL payment_num ,
NULL discount_taken ,
'Open/Validation' payment_status ,
'At Invoice Validation Time' withholding_tax
FROM ap_awt_buckets_all aab,
ap_other_periods aop,
ap_suppliers asu,
ap_awt_tax_rates_all aatra,
ap_tax_codes_all atc,
ap_invoice_distributions_all aida,
ap_invoices_all aia,
cll_f037_ap_tax_codes_ext baptce
WHERE baptce.tax_id (+) = aida.withholding_tax_code_id -- aida.tax_code_id
AND aida.invoice_id = aia.invoice_id
AND aida.awt_flag = 'A'
AND aida.awt_invoice_payment_id IS NULL
AND atc.tax_id = aida.withholding_tax_code_id --aida.tax_code_id
AND aab.vendor_id = aia.vendor_id
AND aop.application_id = 200
AND aop.module = 'AWT'
AND aop.period_type = atc.awt_period_type
AND aab.period_name = aop.period_name
AND aab.tax_name = atc.name
AND aab.org_id = aia.org_id
AND aida.accounting_date BETWEEN aop.start_date
AND aop.end_date
AND aatra.tax_rate_id (+) = aida.awt_tax_rate_id
AND asu.vendor_id = aia.vendor_id;

Null /
Column Type of Data Description
Not Null
Unique internal
identifier of the
ORG_ID NUMBER(15,0) Operating Unit to
which the invoice
belongs
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER(15,0) record. Generated
using a database
sequence
This is the unique
INVOICE_PAYMENT_
NOT NULL NUMBER(15,0) identifier to identify
ID
the payment on the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
91
invoice. Generated
using database
sequence
INVOICE_DATE DATE Invoice Date
Date used with
payment terms to
calculate scheduled
payment of an invoice.
This date will be
defaulted from one of
TERMS_DATE DATE the following Payables
System Setup option
defined for Term Date
Basis:· System Date·
Goods Received Date·
Invoice Date· Invoice
Received Date
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL VARCHAR2(50) entered will be unique
per supplier and
operating unit
Invoice amount in the
INVOICE_AMOUNT NUMBER
payment currency
GLOBAL_ATTRIBUTE Reserved for country-
VARCHAR2(150)
1 specific functionality
GLOBAL_ATTRIBUTE Reserved for country-
VARCHAR2(150)
2 specific functionality
TAX_NAME VARCHAR2(15) Withholding tax code
Descriptive flexfield
TAX_INCOME_CODE VARCHAR2(150)
segment
TAX_RATE NUMBER Withholding tax rate
Invoice distribution
AMOUNT NUMBER
amount
The unique internal
identifier of the
supplier to which the
VENDOR_ID NUMBER(15,0)
invoice belongs.
Foreign key to the
AP_SUPPLIERS table
VENDOR_NAME VARCHAR2(240) Name of the supplier
Accounting Flexfield
identifier for account
associated with a
DIST_CODE_COMBIN
NOT NULL NUMBER(15,0) distribution. Foreign
ATION_ID
key from the
GL_CODE_COMBIN
ATIONS table
INVOICE_LINE_NUM Invoice line number for
NUMBER
BER parent line

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
92
Distribution number for
DISTRIBUTION_LINE_ an invoice line. This is
NUMBER(15,0)
NUMBER unique sequence per
invoice line.
Flag that indicates if
REVERSAL_FLAG VARCHAR2(1) distribution is part of a
reversal pair
This is the payment
PAYMENT_NUMBER NUMBER number for the
payment
DUE_DATE DATE Date of maturity
CHECK_DATE DATE Date of payment
Identifier for invoice
REVERSAL_INV_PMT payment reversed
NUMBER
_ID through current
invoice payment
BUCKET_TAX_NAME VARCHAR2(15) Withholding tax name
AWT_GROSS_AMOU Amount subject to
NUMBER
NT withholding tax
DISTRIBUTION_AMO Invoice distribution
NUMBER
UNT amount
Total amount subject
GROSS_AMOUNT_TO
NUMBER to withholding tax
_DATE
within this bucket
WITHHELD_AMOUN Withholding tax
NUMBER
T_TO_DATE amount to date
This is the Period name
PERIOD_NAME VARCHAR2(15) in which the invoice
payment is processed
Defines the source of
the invoice. Possible
values for this column
SOURCE VARCHAR2(25) are derived from
FND_LOOKUP_VAL
UES for lookup_type
'SOURCE'
PAYMENT_NUM NUMBER Payment num
This is the amount of
discount taken on
DISCOUNT_TAKEN NUMBER
payments of the
invoice
This Flag indicates
whether current
PAYMENT_STATUS VARCHAR2(15) invoice payment is a
reversal of another
invoice payment.
WITHHOLDING_TAX VARCHAR2(26) Setup AWT

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
93
CLL_F255_AP_TERMS_V

Selects the information in the CLL_F255_AP_TERMS_V view together with other


columns that are referred to

SELECT
apt.term_id ,
apt.last_update_date , --dt_atualizacao
apt.creation_date , --dt_criacao
apt.name , --nome
apt.enabled_flag , --habilitado
apt.description , --descricao
apt.type , --tp_termo
apt.start_date_active , --dt_ativacao
apt.end_date_active , --dt_inativacao
apt.rank ,
apt.attribute_category ,
apt.attribute1 ,
apt.attribute2 ,
apt.attribute3 ,
apt.attribute4 ,
apt.attribute5 ,
apt.attribute6 ,
apt.attribute7 ,
apt.attribute8 ,
apt.attribute9 ,
apt.attribute10 ,
apt.attribute11 ,
apt.attribute12 ,
apt.attribute13 ,
apt.attribute14 ,
apt.attribute15 ,
atl.sequence_num ,
atl.due_percent , --percentual
atl.due_amount , --valor
atl.due_days , --dias
atl.due_day_of_month , --dias_mes
atl.due_months_forward , --meses
atl.discount_percent , --perc_desc
atl.discount_days , --dias_desc
atl.discount_day_of_month , --dias_mes_desc
atl.discount_months_forward, --meses_desc
atl.fixed_date,
apt.language --bug 9702059
FROM ap_terms_lines atl,
ap_terms_tl apt
WHERE atl.term_id = apt.term_id;

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
94
Null /
Column Type of Data Description
Not Null
TERM_ID NOT NULL NUMBER(15,0) Term identifier
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
Standard who column
CREATION_DATE NOT NULL DATE - date when this row
was created
NAME NOT NULL VARCHAR2(50) Name of payment term
ENABLED_FLAG NOT NULL VARCHAR2(1) No longer used
DESCRIPTION VARCHAR2(240) Description
TYPE VARCHAR2(15) No longer used
START_DATE_ACTIV Date from which
DATE
E payment term is valid
Date after which a
END_DATE_ACTIVE DATE payment term is
invalid
Unique rank to rate
invoice payment terms
against purchase order
RANK NUMBER(15,0)
payment terms in
accordance with
Prompt Payment Act
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(150) structure definition
RY
column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
95
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Number of payment
SEQUENCE_NUM NOT NULL NUMBER
term line
Percentage of payment
DUE_PERCENT NUMBER
due by a certain date
Maximum of payment
DUE_AMOUNT NUMBER amount due by a
certain date
Number of days after
terms date, used to
DUE_DAYS NUMBER
calculate due date of
invoice payment line
Day of month used to
DUE_DAY_OF_MONT
NUMBER calculate due date of
H
invoice payment line
Number of months
DUE_MONTHS_FOR ahead, used to
NUMBER
WARD calculate due date of
invoice payment line
Percentage used to
calculate discount
DISCOUNT_PERCENT NUMBER
available for invoice
payment line
Number of days after
terms date, used to
DISCOUNT_DAYS NUMBER calculate discount date
for invoice payment
line
Day of month used to
DISCOUNT_DAY_OF_ calculate discount date
NUMBER
MONTH for invoice payment
line
Number of months
DISCOUNT_MONTHS ahead used to calculate
NUMBER
_FORWARD discount date for
invoice payment line
FIXED_DATE DATE Fixed due date
LANGUAGE NOT NULL Language

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
96
CLL_F255_AR_INVOICE_ATO_LINE_V
Selects the information in the CLL_F255_AR_INVOICE_ATO_LINE_V view together
with other columns that are referred to

SELECT rct.org_id,
rctl.customer_trx_id,
rctl.memo_line_id,
rctl.customer_trx_line_id,
rctl.inventory_item_id rctl_inventory_item_id, --BUG 18147253
rctl.description rctl_description, --BUG 18147253
rctl.line_number,
rct.trx_number, --num_docfis
rct.trx_date, --dt_emissao
rctl.set_of_books_id,
oolaconf.inventory_item_id, --BUG 18147253 It
will be shown the Start Item Id
oolaconf.ordered_item description, --BUG 18147253 It
will be shown the Start Item Description
rctl.quantity_invoiced, --quantidade
NVL(rctl.gross_unit_selling_price,rctl.unit_selling_price ) unit_price, --
preco_unitario
NVL(rctl.gross_unit_selling_price,rctl.unit_selling_price) *
NVL(rctl.quantity_invoiced,0) total_price, --preco_total
(SELECT SUM(acctd_amount)
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = rct.customer_trx_id
AND account_class = 'REC'
) total_invoice_funct_curr_amt, --BUG 18289198
rctl.sales_order,
rctl.sales_order_revision,
rctl.sales_order_line,
rctl.sales_order_date,
rctl.line_type,
rctl.extended_amount item_total_value, --valor_total_item
rctl.revenue_amount,
rctl.link_to_cust_trx_line_id, --id_item_origem
rctl.uom_code, --cod_medida
rctl.vat_tax_id,
rctl.reason_code,
NVL(rctl.gross_extended_amount,rctl.extended_amount) vl_item, --
valor_item
rctl.taxable_amount, --valor_base
rctl.amount_includes_tax_flag includes_tax_value, --vlr_inclui_imposto
oola.ato_line_id,
rctlato.customer_trx_line_id ato_customer_trx_line_id
FROM ra_customer_trx_lines_all rctl,
ra_customer_trx_all rct,
oe_order_lines_all oola,
--
oe_order_lines_all oolato,
ra_customer_trx_lines_all rctlato,
oe_order_lines_all oolaconf --BUG 18147253
--
WHERE rct.customer_trx_id = rctl.customer_trx_id
AND rct.org_id = rctl.org_id
AND rct.complete_flag = 'Y'
AND rctl.line_type = 'LINE'
AND rctl.interface_line_context = 'ORDER ENTRY'
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
97
AND rctlato.interface_line_context = 'ORDER ENTRY'
--
AND TO_NUMBER(rctl.interface_line_attribute6) = oola.line_id
AND oola.header_id = oolato.header_id
AND rctlato.inventory_item_id = oolato.inventory_item_id
AND oola.ato_line_id = oolato.line_id
AND rctl.customer_trx_id = rctlato.customer_trx_id
AND TO_NUMBER(rctlato.interface_line_attribute6) = oolato.ato_line_id --BUG
18147253
AND oolaconf.header_id = oola.header_id --BUG 18147253
AND oolaconf.item_type_code = 'CONFIG' --BUG 18147253
AND oolaconf.ato_line_id = oola.ato_line_id --BUG 18147253
AND oolato.open_flag = 'N'

Null /
Column Type of Data Description
Not Null
ORG_ID NOT NULL NUMBER Organization identifier
CUSTOMER_TRX_ID NUMBER This is the unique
NOT NULL
identifier for the invoice.
MEMO_LINE_ID NUMBER Reference with credit
memo line.
CUSTOMER_TRX_LIN This is the unique
E_ID NOT NULL NUMBER identifier for the line
invoice.
RCTL_INVENTORY_IT
EM_ID NOT NULL NUMBER Inventory item identifier.

RCTL_DESCRIPTION
Line description
LINE_NUMBER This is the line number
NOT NULL NUMBER
for the invoice.
TRX_NUMBER This is the transaction
NOT NULL VARCHAR2(20)
number for the invoice.
TRX_DATE This is the transaction
NOT NULL DATE
date for the invoice.
SET_OF_BOOKS_ID This is the ledger ID for
this transaction. If no
value exists, then
NOT NULL NUMBER
Receivables defaults
the ledger from the
System Options.
INVENTORY_ITEM_ID Inventory item identifier
NOT NULL NUMBER to ATO Main(Config)
item.
DESCRIPTION Line description to ATO
VARCHAR2(240)
Main(Config) item.
QUANTITY_INVOICED Quantity of invoice line.
NOT NULL NUMBER
Required for Invoices.
UNIT_PRICE NOT NULL NUMBER List price per unit.
TOTAL_PRICE NOT NULL NUMBER Transaction line amount.
TOTAL_INVOICE_FUN Total Invoice Amount in
CT_CURR_AMT NOT NULL NUMBER the Funcional Currency
Code
SALES_ORDER VARCHAR2(50) Sales order number for
this transaction.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
98
SALES_ORDER_REVIS NUMBER Sales order revision for
ION this transaction.
SALES_ORDER_LINE VARCHAR2(20) Sales order line number
for this transaction.
SALES_ORDER_DATE DATE Sales order date for this
transaction.
LINE_TYPE VARCHAR2(20) Receivables lookup code
for STD_LINE_TYPE.
ITEM_TOTAL_VALUE NUMBER Transaction line amount
REVENUE_AMOUNT NUMBER Transaction line revenue
amount.
LINK_TO_CUST_TRX_ NUMBER The customer_trx_id of
LINE_ID the Bill for which
the activity (e.g. Short
Term Debt)
application is being done.
UOM_CODE VARCHAR2(3) Unit of measure code
for this transaction.
VAT_TAX_ID NUMBER Unique identifier for
AR_VAT_TAX. Required
for 'TAX' Lines.
REASON_CODE VARCHAR2(30) Lookup code for revenue
adjustment reason.

Default: None

Validation: Must be
defined under AR
lookup
type
'REV_ADJ_REASON'
VL_ITEM NUMBER Transaction line amount.
TAXABLE_AMOUNT NUMBER Total tax line.
INCLUDES_TAX_VAL VARCHAR2(1) If this lines includes
UE tax values.

Values: Yes/No
ATO_LINE_ID NUMBER This column pointing
to its ATO Model line.
ATO_CUSTOMER_TRX NUMBER This column pointing
_LINE_ID to main line of the
invoice ATO line.

CLL_F255_AR_INVOICE_ATO_TAX_V
Selects the information in the CLL_F255_AR_INVOICE_ATO_TAX_V view together with
other columns that are referred to

SELECT cfaialv.org_id,
rctlatotax.customer_trx_id,
rctlatotax.memo_line_id,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
99
rctlatotax.customer_trx_line_id,
rctlatotax.line_number,
cfaialv.trx_number,
cfaialv.trx_date,
rctlatotax.set_of_books_id,
rctlatotax.inventory_item_id,
rctlatotax.description,
rctlatotax.quantity_invoiced,
NVL(rctlatotax.gross_unit_selling_price,rctlatotax.unit_selling_price ) unit_price,
NVL(rctlatotax.gross_unit_selling_price,rctlatotax.unit_selling_price) *
NVL(rctlatotax.quantity_invoiced,0) total_price,
(SELECT SUM(acctd_amount)
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = cfaialv.customer_trx_id
AND account_class = 'TAX'
AND customer_trx_line_id = rctlatotax.customer_trx_line_id
) total_invoice_funct_curr_amt,
rctlatotax.sales_order,
rctlatotax.sales_order_revision,
rctlatotax.sales_order_line,
rctlatotax.sales_order_date,
rctlatotax.line_type,
rctlatotax.extended_amount item_total_value,
rctlatotax.revenue_amount,
rctlatotax.link_to_cust_trx_line_id,
rctlatotax.uom_code,
rctlatotax.vat_tax_id,
rctlatotax.reason_code,
NVL(rctlatotax.gross_extended_amount,rctlatotax.extended_amount) vl_item,
rctlatotax.taxable_amount,
rctlatotax.amount_includes_tax_flag includes_tax_value,
cfaialv.ato_customer_trx_line_id,
rctlatotaxc.customer_trx_line_id ato_tax_customer_trx_line_id,
rctlatotaxc.attribute1,
rctlatotaxc.attribute2,
rctlatotaxc.attribute3,
rctlatotaxc.attribute4,
rctlatotaxc.attribute5,
rctlatotaxc.attribute6,
rctlatotaxc.attribute7,
rctlatotaxc.attribute8,
rctlatotaxc.attribute9,
rctlatotaxc.attribute10,
rctlatotaxc.attribute11,
rctlatotaxc.attribute12,
rctlatotaxc.attribute13,
rctlatotaxc.attribute14,
rctlatotaxc.attribute15,
rctlatotaxc.global_attribute1,
rctlatotaxc.global_attribute2,
rctlatotaxc.global_attribute3,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
100
rctlatotaxc.global_attribute4,
rctlatotaxc.global_attribute5,
rctlatotaxc.global_attribute6,
rctlatotaxc.global_attribute7,
rctlatotaxc.global_attribute8,
rctlatotaxc.global_attribute9,
rctlatotaxc.global_attribute10,
rctlatotaxc.global_attribute11,
rctlatotaxc.global_attribute12,
rctlatotaxc.global_attribute13,
rctlatotaxc.global_attribute14,
rctlatotaxc.global_attribute15,
rctlatotaxc.global_attribute16,
rctlatotaxc.global_attribute17,
rctlatotaxc.global_attribute18,
rctlatotaxc.global_attribute19,
rctlatotaxc.global_attribute20
FROM cll_f255_ar_invoice_ato_line_v cfaialv
, ra_customer_trx_lines_all rctlatotax
, ra_customer_trx_lines_all rctlatotaxc
WHERE rctlatotax.line_type = 'TAX'
AND rctlatotax.link_to_cust_trx_line_id = cfaialv.customer_trx_line_id
AND rctlatotax.vat_tax_id = rctlatotaxc.vat_tax_id
AND rctlatotax.customer_trx_id = rctlatotaxc.customer_trx_id
AND rctlatotaxc.link_to_cust_trx_line_id = cfaialv.ato_customer_trx_line_id
AND rctlatotaxc.customer_trx_id = cfaialv.customer_trx_id

Null /
Column Type of Data Description
Not Null
ORG_ID NOT NULL NUMBER Organization identifier
CUSTOMER_TRX_ID NUMBER This is the unique
NOT NULL
identifier for the invoice.
MEMO_LINE_ID NUMBER Reference with credit
memo line.
CUSTOMER_TRX_LIN NUMBER This is the unique
E_ID NOT NULL identifier for the line
invoice.
LINE_NUMBER NUMBER This is the line number
NOT NULL
for the invoice.
TRX_NUMBER VARCHAR2(20) This is the transaction
NOT NULL
number for the invoice.
TRX_DATE DATE This is the transaction
NOT NULL
date for the invoice.
SET_OF_BOOKS_ID NUMBER This is the ledger ID for
this transaction. If no
value exists, then
Receivables defaults the
ledger from the System
Options.
INVENTORY_ITEM_ID NUMBER Inventory item identifier.
DESCRIPTION VARCHAR2(240) Line description.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
101
QUANTITY_INVOICED NUMBER Quantity of invoice line.
Required for Invoices.
UNIT_PRICE NUMBER List price per unit.
TOTAL_PRICE NUMBER Transaction line amount.
TOTAL_INVOICE_FUN Total Invoice Amount in
CT_CURR_AMT NOT NULL NUMBER the Funcional Currency
Code
SALES_ORDER VARCHAR2(50) Sales order number for
this transaction.
SALES_ORDER_REVIS NUMBER Sales order revision for
ION this transaction.
SALES_ORDER_LINE VARCHAR2(20) Sales order line number
for this transaction.
SALES_ORDER_DATE DATE Sales order date for this
transaction.
LINE_TYPE VARCHAR2(20) Receivables lookup code
for STD_LINE_TYPE.
ITEM_TOTAL_VALUE NUMBER Transaction line amount
REVENUE_AMOUNT NUMBER Transaction line revenue
amount.
LINK_TO_CUST_TRX_ NUMBER The customer_trx_id of
LINE_ID the Bill for which
the activity (e.g. Short
Term Debt)
application is being done.
UOM_CODE VARCHAR2(3) Unit of measure code for
this transaction.
VAT_TAX_ID NUMBER Unique identifier for
AR_VAT_TAX. Required
for 'TAX' Lines.
REASON_CODE VARCHAR2(30) Lookup code for revenue
adjustment reason.

Default: None

Validation: Must be
defined under AR
lookup
type
'REV_ADJ_REASON'
VL_ITEM NUMBER Transaction line amount.
TAXABLE_AMOUNT NUMBER Total tax line.
INCLUDES_TAX_VAL VARCHAR2(1) If this lines includes tax
UE values.

Values: Yes/No
ATO_LINE_ID NUMBER This column pointing to
its ATO Model line.
ATO_CUSTOMER_TRX NUMBER This column pointing to
_LINE_ID main line of the invoice
ATO line.
ATTRIBUTE1 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE2 VARCHAR2(150) Descriptive flexfield
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
102
ATTRIBUTE3 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE4 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE5 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE6 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE7 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE8 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE9 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE10 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE11 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE12 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE13 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE14 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE15 VARCHAR2(150) Descriptive flexfield
segment
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE2 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE3 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE4 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE5 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE6 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE7 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE8 VARCHAR2(150) Reserved For
Globalization
Functionality
GLOBAL_ATTRIBUTE9 VARCHAR2(150) Reserved For
Globalization
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
103
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
0 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
1 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
2 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
3 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
4 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
5 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
6 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
7 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
8 Globalization
Functionality
GLOBAL_ATTRIBUTE1 VARCHAR2(150) Reserved For
9 Globalization
Functionality
GLOBAL_ATTRIBUTE2 VARCHAR2(150) Reserved For
0 Globalization
Functionality

CLL_F255_AR_CASH_RECEIPTS_V
Selects the information in the CLL_F255_AR_CASH_RECEIPTS_V view together with
other columns that are referred to

SELECT
ara.org_id,
ara.receivable_application_id,
acr.receipt_number,
acr.type,
acr.status,
acr.currency_code,
acr.pay_from_customer,
acr.customer_site_use_id,
acr.customer_bank_account_id,
acr.customer_bank_branch_id,
acr.remittance_bank_account_id,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
104
ara.code_combination_id,
ara.amount_applied,
acr.amount,
ara.gl_date,
ara.gl_posted_date,
acr.receipt_date,
ara.apply_date,
ara.application_type,
ara.earned_discount_taken,
ara.set_of_books_id,
ara.display,
acr.exchange_rate,
NVL(apc.terms_sequence_number,ara.payment_schedule_id) installment_number,
ara.cash_receipt_id,
ara.applied_customer_trx_id,
ara.applied_customer_trx_line_id,
ara.applied_payment_schedule_id,
ara.payment_schedule_id,
ara.customer_trx_id,
ara.cash_receipt_history_id,
ara.receivables_trx_id,
acr.attribute1,
acr.attribute2,
acr.attribute3,
acr.attribute4,
acr.attribute5,
acr.attribute6,
acr.attribute7,
acr.attribute8,
acr.attribute9,
acr.attribute10,
acr.attribute11,
acr.attribute12,
acr.attribute13,
acr.attribute14,
acr.attribute15,
apc.amount_due_original,
apc.amount_due_remaining,
apc.gl_date_closed,
apc.due_date,
ara.reversal_gl_date,
ara.request_id,
ara.trans_to_receipt_rate,
acr.deposit_date,
acr.receipt_method_id
FROM ar_payment_schedules_all apc,
ar_receivable_applications_all ara,
ar_cash_receipts_all acr
WHERE apc.payment_schedule_id = ara.payment_schedule_id
AND ara.cash_receipt_id = acr.cash_receipt_id (+)
AND acr.type(+) = 'CASH';
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
105
Null /
Column Type of Data Description
Not Null
Operating unit
ORG_ID NUMBER(15,0)
identifier
Internal identifier of
the receivable
RECEIVABLE_APPLIC
NOT NULL NUMBER(15,0) application record and
ATION_ID
primary key for this
table.
RECEIPT_NUMBER VARCHAR2(30) Receipt Number
TYPE VARCHAR2(20) Type
STATUS VARCHAR2(30) Status
CURRENCY_CODE VARCHAR2(15) Currency Code
PAY_FROM_CUSTOM
NUMBER(15,0) Pay From Customer
ER
CUSTOMER_SITE_US
NUMBER(15,0) Customer Site Use Id
E_ID
CUSTOMER_BANK_A Customer Bank a
NUMBER(15,0)
CCOUNT_ID Ccount Id
CUSTOMER_BANK_B Customer Bank Branch
NUMBER(15,0)
RANCH_ID id
REMITTANCE_BANK Remittance Bank
NUMBER(15,0)
_ACCOUNT_ID Account Id
General Ledger
account code
CODE_COMBINATIO combination that will
NOT NULL NUMBER(15,0)
N_ID be debited or credited
for this application
row
AMOUNT_APPLIED NOT NULL NUMBER Amount Applied
AMOUNT NUMBER Amount
The General Ledger
accounting date for the
GL_DATE NOT NULL DATE
accounting entry for
this application
Date the application
GL_POSTED_DATE DATE was posted to General
Ledger
RECEIPT_DATE DATE Receipt Date
Date the application
APPLY_DATE NOT NULL DATE
was applied
Indicates whether the
application is a receipt
application or credit
APPLICATION_TYPE NOT NULL VARCHAR2(20) memo application.
Value ¿CASH¿
indicates receipt
application and ¿CM¿
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
106
indicates credit memo
application
Amount of earned
EARNED_DISCOUNT discount taken
NUMBER
_TAKEN towards the
application
Internal identifier of
the ledger to which
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0) accounting entry for
this application will be
posted
Y or N flag to indicate
DISPLAY NOT NULL VARCHAR2(1) whether this is the
latest application
EXCHANGE_RATE NUMBER Exchange Rate
INSTALLMENT_NUM
NUMBER Installment Number
BER
Internal identifier of
CASH_RECEIPT_ID NUMBER(15,0) the cash receipt being
applied
Internal identifier the
debit item or credit
APPLIED_CUSTOMER
NUMBER(15,0) memo to which the
_TRX_ID
receipt or credit memo
is applied
The line number of the
debit item or credit
APPLIED_CUSTOMER
NUMBER(15,0) memo to which the
_TRX_LINE_ID
receipt or credit memo
is applied
Identifies the payment
schedule of the debit
APPLIED_PAYMENT_ item or credit memo to
NUMBER(15,0)
SCHEDULE_ID which the receipt or
credit memo is
applied.
Internal identifier of
PAYMENT_SCHEDUL the payment schedule
NOT NULL NUMBER(15,0)
E_ID of the credit memo that
is being applied
Internal identifier the
debit item or credit
CUSTOMER_TRX_ID NUMBER(15,0) memo to which the
receipt or credit memo
is applied
Foreign key to the
AR_CASH_RECEIPT_
CASH_RECEIPT_HIST
NUMBER(15,0) HISTORY table
ORY_ID
identifying the row
that was current when

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
107
the receivable
application was
created
RECEIVABLES_TRX_I Internal identifier of
NUMBER(15,0)
D receivable transaction
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
AMOUNT_DUE_ORIG The original amount
NOT NULL NUMBER
INAL due of the installment
The current
outstanding amount of
the installment. This
column is updated
when: A receipt is
AMOUNT_DUE_REM applied to the
NOT NULL NUMBER
AINING installment A credit
memo is applied to the
installment An
adjustment is
performed for the
receivables transaction

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
108
The accounting date
when the schedule was
closed. If the schedule
is not closed, this
column is populated
GL_DATE_CLOSED NOT NULL DATE
with largest date
(V7db supports 31-
DEC-4712), to improve
the aging report
performance.
Due date of the
DUE_DATE NOT NULL DATE
installment
General Ledger
account date for the
records that have been
REVERSAL_GL_DATE DATE
reversed and for the
reversing record as
well
Concurrent program
who column. Identifier
REQUEST_ID NUMBER(15,0) of the concurrent
request that last
updated this row.
The exchange rate
used to convert the
amount applied in the
transaction currency to
TRANS_TO_RECEIPT_
NUMBER the amount applied in
RATE
the receipt currency.
This field is used only
for cross currency
receipt applications.
DEPOSIT_DATE DATE Deposit Date
RECEIPT_METHOD_I
NUMBER(15,0) Receipt Method Id
D

CLL_F255_AR_CUSTOMERS_V
Selects the information in the CLL_F255_AR_CUSTOMERS_V view together with other
columns that are referred to

SELECT
hcas.org_id,
hcas.cust_account_id customer_id,
hcas.cust_acct_site_id address_id ,
hcas.party_site_id ,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
109
hps.party_id,
hps.party_site_name,
ac.customer_name,
ac.customer_number,
ac.customer_type,
loc.address1,
loc.address2,
loc.address3,
loc.address4,
loc.country,
loc.city,
loc.state,
loc.postal_code,
hcas.creation_date,
hcas.last_update_date,

DECODE(hcas.global_attribute2,'2',DECODE(LENGTH(LTRIM(RTRIM(hcas.global_attri
bute3))),9,
SUBSTR(hcas.global_attribute3,2,8),
SUBSTR(hcas.global_attribute3,1,8)) ||
SUBSTR(hcas.global_attribute4,1,4) ||
SUBSTR(hcas.global_attribute5,1,2),'1',SUBSTR(hcas.global_attribute3,1,9) ||
SUBSTR(LTRIM(hcas.global_attribute5),1,2),
SUBSTR(hcas.global_attribute3,1,14)) document_number,
DECODE(hcas.global_attribute2,'2','CNPJ','1','CPF','OUTROS') document_type,
hcas.global_attribute6 ie,
hcas.global_attribute7 municipal_inscription,
hcas.global_attribute8 establishment,
hcas.bill_to_flag,
hcas.market_flag,
hcas.ship_to_flag,
hcas.territory,
loc.location_id,
hcas.attribute1,
hcas.attribute2,
hcas.attribute3,
hcas.attribute4,
hcas.attribute5,
hcas.attribute6 ,
hcas.attribute7 ,
hcas.attribute8 ,
hcas.attribute9 ,
hcas.attribute10 ,
hcas.attribute11 ,
hcas.attribute12 ,
hcas.attribute13 ,
hcas.attribute14 ,
hcas.attribute15 ,
hcas.global_attribute1 ,
hcas.global_attribute2 ,
hcas.global_attribute3 ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
110
hcas.global_attribute4 ,
hcas.global_attribute5 ,
hcas.global_attribute6 ,
hcas.global_attribute7 ,
hcas.global_attribute8 ,
hcas.global_attribute9 ,
hcas.global_attribute10 ,
hcas.global_attribute11 , -----ENH 11795659 - Withholding Nature Indicator
hcas.global_attribute12 ,
hcas.global_attribute13 ,
hcas.global_attribute14 ,
hcas.global_attribute15 ,
hcas.global_attribute16 ,
hcas.global_attribute17 ,
hcas.global_attribute18 ,
hcas.global_attribute19 ,
hcas.global_attribute20 ,
ac.sales_channel_code,
ac.customer_category_code,
ac.customer_key,
ac.freight_term,
ac.ship_partial,
ac.ship_via,
ac.global_attribute1 cust_global_attribute1,
ac.global_attribute2 cust_global_attribute2,
ac.global_attribute3 cust_global_attribute3,
ac.global_attribute4 cust_global_attribute4,
ac.global_attribute5 cust_global_attribute5,
ac.global_attribute6 cust_global_attribute6,
ac.global_attribute7 cust_global_attribute7,
ac.global_attribute8 cust_global_attribute8,
ac.global_attribute9 cust_global_attribute9,
ac.global_attribute10 cust_global_attribute10,
ac.global_attribute11 cust_global_attribute11,
ac.global_attribute12 cust_global_attribute12,
ac.global_attribute13 cust_global_attribute13,
ac.global_attribute14 cust_global_attribute14,
ac.global_attribute15 cust_global_attribute15,
ac.global_attribute16 cust_global_attribute16,
ac.global_attribute17 cust_global_attribute17,
ac.global_attribute18 cust_global_attribute18,
ac.global_attribute19 cust_global_attribute19,
ac.global_attribute20 cust_global_attribute20,
hcsu.site_use_id ,
hcsu.site_use_code ,
hcsu.primary_flag ,
hcsu.status ,
hcsu.location ,
hcsu.bill_to_site_use_id ,
hcsu.fob_point ,
hcsu.warehouse_id ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
111
hcsu.territory_id ,
hcsu.sic_code ,
hcsu.gl_id_rec ,
hcsu.gl_id_rev ,
hcsu.gl_id_tax ,
hcsu.gl_id_freight ,
hcsu.gl_id_clearing ,
hcsu.gl_id_unbilled ,
hcsu.gl_id_unearned ,
hcsu.attribute1 site_attribute1,
hcsu.attribute2 site_attribute2,
hcsu.attribute3 site_attribute3,
hcsu.attribute4 site_attribute4,
hcsu.attribute5 site_attribute5,
hcsu.attribute6 site_attribute6,
hcsu.attribute7 site_attribute7,
hcsu.attribute8 site_attribute8,
hcsu.attribute9 site_attribute9,
hcsu.attribute10 site_attribute10,
hcsu.attribute11 site_attribute11,
hcsu.attribute12 site_attribute12,
hcsu.attribute13 site_attribute13,
hcsu.attribute14 site_attribute14,
hcsu.attribute15 site_attribute15,
hcsu.attribute16 site_attribute16,
hcsu.attribute17 site_attribute17,
hcsu.attribute18 site_attribute18,
hcsu.attribute19 site_attribute19,
hcsu.attribute20 site_attribute20,
hcsu.attribute21 site_attribute21,
hcsu.attribute22 site_attribute22,
hcsu.attribute23 site_attribute23,
hcsu.attribute24 site_attribute24,
hcsu.attribute25 site_attribute25,
hcsu.global_attribute1 site_global_attribute1,
hcsu.global_attribute2 site_global_attribute2,
hcsu.global_attribute3 site_global_attribute3,
hcsu.global_attribute4 site_global_attribute4,
hcsu.global_attribute5 site_global_attribute5,
hcsu.global_attribute6 site_global_attribute6,
hcsu.global_attribute7 site_global_attribute7,
hcsu.global_attribute8 site_global_attribute8,
hcsu.global_attribute9 site_global_attribute9,
hcsu.global_attribute10 site_global_attribute10,
hcsu.global_attribute11 site_global_attribute11,
hcsu.global_attribute12 site_global_attribute12,
hcsu.global_attribute13 site_global_attribute13,
hcsu.global_attribute14 site_global_attribute14,
hcsu.global_attribute15 site_global_attribute15,
hcsu.global_attribute16 site_global_attribute16,
hcsu.global_attribute17 site_global_attribute17,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
112
hcsu.global_attribute18 site_global_attribute18,
hcsu.global_attribute19 site_global_attribute19,
hcsu.global_attribute20 site_global_attribute20,
hcp.email_address email_party_site,
hcp.contact_point_type,
loc.province, --BUG 17177951
loc.county, --BUG 17177951
hca.global_attribute1 hca_global_attribute1, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute2 hca_global_attribute2, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute3 hca_global_attribute3, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute4 hca_global_attribute4, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute5 hca_global_attribute5, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute6 hca_global_attribute6, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute7 hca_global_attribute7, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute8 hca_global_attribute8, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute9 hca_global_attribute9, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute10 hca_global_attribute10, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute11 hca_global_attribute11, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute12 hca_global_attribute12, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute13 hca_global_attribute13, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute14 hca_global_attribute14, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute15 hca_global_attribute15, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute16 hca_global_attribute16, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute17 hca_global_attribute17, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute18 hca_global_attribute18, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute19 hca_global_attribute19, -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
hca.global_attribute20 hca_global_attribute20 -- BUG 19440714 - R12.CLL -
BRAZILIAN ELECTRONIC INVOICE - NFE 3.01
FROM hz_cust_acct_sites_all hcas,
hz_cust_accounts hca,
hz_cust_site_uses_all hcsu,
hz_contact_points hcp,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
113
hz_party_sites hps,
hz_locations loc,
ar_customers ac
WHERE ac.customer_id = hcas.cust_account_id
AND hcas.cust_acct_site_id = hcsu.cust_acct_site_id
AND hca.cust_account_id = hcas.cust_account_id
AND hcas.party_site_id = hps.party_site_id
AND hps.location_id = loc.location_id
AND hcp.owner_table_id (+) = hps.party_site_id
AND hcp.primary_flag (+) = 'Y'
AND hcp.owner_table_name (+) = 'HZ_PARTY_SITES';

Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
Identifier for a
customer account.
CUSTOMER_ID NOT NULL NUMBER(15,0) Foreign key to the
HZ_CUST_ACCOUN
TS table
Customer site
ADDRESS_ID NOT NULL NUMBER(15,0)
identifier
Identifier for a party
site. Foreign key to the
PARTY_SITE_ID NOT NULL NUMBER(15,0)
HZ_PARTY_SITES
table
Identifier for the party.
PARTY_ID NOT NULL NUMBER(15,0) Foreign key to the
HZ_PARTIES table
User-defined name for
PARTY_SITE_NAME VARCHAR2(240)
the site
CUSTOMER_NAME VARCHAR2(50) Customer Name
CUSTOMER_NUMBER NOT NULL VARCHAR2(30) Customer Number
CUSTOMER_TYPE VARCHAR2(30) Customer Type
ADDRESS1 NOT NULL VARCHAR2(240) First line for address
ADDRESS2 VARCHAR2(240) Second line for address
ADDRESS3 VARCHAR2(240) Third line for address
ADDRESS4 VARCHAR2(240) Fourth line for address
Country code from the
TERRITORY_CODE
COUNTRY NOT NULL VARCHAR2(60) column in the
FND_TERRITORY
table
CITY VARCHAR2(60) City
STATE VARCHAR2(60) State
POSTAL_CODE VARCHAR2(60) Postal Code

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
114
Standard who column
CREATION_DATE NOT NULL DATE - date when this row
was created
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row
DOCUMENT_NUMBE
VARCHAR2(42) Document Number
R
Document Type –
DOCUMENT_TYPE VARCHAR2(6) Values: CNPJ, CPF,
OUTROS
Reserved for country-
IE VARCHAR2(150)
specific functionality
MUNICIPAL_INSCRIP Reserved for country-
VARCHAR2(150)
TION specific functionality
Reserved for country-
ESTABLISHMENT VARCHAR2(150)
specific functionality
Indicates if this is a
Bill-To site. Y for a Bill-
To site, P for the
BILL_TO_FLAG VARCHAR2(1)
primary Bill-To site,
and N for a site that is
not a Bill-To site.
Indicates if this is a
Marketing site. Y for a
Marketing site, P for
MARKET_FLAG VARCHAR2(1) the primary Marketing
site, and N for a site
that is not a Marketing
site
Indicates if this is a
Ship-To site. Y for a
Ship-To site, P for the
SHIP_TO_FLAG VARCHAR2(1)
primary Ship-To site,
and N for a site that is
not a Ship-To site
TERRITORY VARCHAR2(30) No longer used
LOCATION_ID NOT NULL NUMBER(15,0) Location Id
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
115
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
1 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
2 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
3 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
4 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
5 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
6 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
7 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
8 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
9 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
10 segment
Descriptive flexfield
GLOBAL_ATTRIBUTE segment.
VARCHAR2(150)
11 Withholding Nature
Indicator
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
12 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
13 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
14 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
15 segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
116
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
16 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
17 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
18 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
19 segment
GLOBAL_ATTRIBUTE Descriptive flexfield
VARCHAR2(150)
20 segment
SALES_CHANNEL_C
VARCHAR2(30) Sales Channel Code
ODE
CUSTOMER_CATEGO Customer Category
VARCHAR2(30)
RY_CODE Code
CUSTOMER_KEY VARCHAR2(500) Customer Key
FREIGHT_TERM VARCHAR2(30) Freight Term
SHIP_PARTIAL VARCHAR2(1) Ship Partial
SHIP_VIA VARCHAR2(30) Ship via
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE1
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE2
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE3
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE4
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE5
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE6
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE7
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE8
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE9
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE10
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE11
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE12
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE13
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE14
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE15
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE16
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
117
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE17
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE18
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE19
CUST_GLOBAL_ATTR
VARCHAR2(150) Reserved for country
IBUTE20
SITE_USE_ID NOT NULL NUMBER(15,0) Site use identifier
Business purpose
assigned to customer
SITE_USE_CODE NOT NULL VARCHAR2(30) site account, such as
Bill-To, Market, and
Statements
Indicates if this site is
the primary site for
this customer account.
PRIMARY_FLAG NOT NULL VARCHAR2(1) Y for the primary
customer account site.
N for other customer
account sites
Site use status flag,
Lookup code for the
STATUS NOT NULL VARCHAR2(1)
CODE_STATUS
column
LOCATION NOT NULL VARCHAR2(40) Site use identifier
BILL_TO_SITE_USE_I Bill-To site use
NUMBER(15,0)
D identifier
Free on board point.
The FOB point
FOB_POINT VARCHAR2(30) indicates the point at
which title of goods is
transfered to the buyer
WAREHOUSE_ID NUMBER(15,0) Warehouse identifier
TERRITORY_ID NUMBER(15,0) Territory identifier
Standard Industry
SIC_CODE VARCHAR2(30) Classification (SIC)
code
Code combination ID
GL_ID_REC NUMBER(15,0) for the Receivable
Account
Code combination ID
GL_ID_REV NUMBER(15,0) for the Revenue
Account
Code combination ID
GL_ID_TAX NUMBER(15,0)
for the Tax Account
Code combination ID
GL_ID_FREIGHT NUMBER(15,0)
for the Freight Account

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
118
Code combination ID
GL_ID_CLEARING NUMBER(15,0) for the Clearing
Account
Code combination ID
GL_ID_UNBILLED NUMBER(15,0) for the Unbilled
Account
Code combination ID
GL_ID_UNEARNED NUMBER(15,0) for the Unearned
Account
Descriptive flexfield
SITE_ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE20 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
119
Descriptive flexfield
SITE_ATTRIBUTE21 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE22 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE23 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE24 VARCHAR2(150)
segment
Descriptive flexfield
SITE_ATTRIBUTE25 VARCHAR2(150)
segment
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE1 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE2 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE3 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE4 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE5 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE6 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE7 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE8 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE9 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE10 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE11 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE12 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE13 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE14 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE15 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE16 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE17 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE18 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE19 specific functionality
SITE_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE20 specific functionality
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
120
VARCHAR2(200 E-mail address of the
EMAIL_PARTY_SITE
0) contact point
Contact point type,
such as phone or e-
CONTACT_POINT_TY
VARCHAR2(30) mail. Valid value from
PE
COMMUNICATION_
TYPE lookup type.
PROVINCE VARCHAR2(60) Province
Country code from the
TERRITORY_CODE
COUNTY VARCHAR2(60) column in the
FND_TERRITORY
table

CLL_F255_AR_INVOICE_ITEMS_GL_V
Selects the information in the CLL_F255_AR_INVOICE_ITEMS_GL_V view together
with other columns that are referred to

SELECT
rctl.org_id,
rct.trx_number,
nvl(rct.printing_last_printed,rct.trx_date) trx_date,
rct.invoice_currency_code,
rct.term_due_date ,
nvl(rctt.global_attribute1,'NFF') document_code,
rctt.name nature_operation_code,
rctt.set_of_books_id,
rctt.global_attribute2 movement_in_out,
rctt.global_attribute3 code_cfop,
rctl.account_set_flag,
decode(rctl.account_class, 'REC' ,'NF',
'REV' , 'ITEM',
'TAX' , 'TAX' ,
'CHARGES','CHARGES' ) line_type,
rctl.customer_trx_id ,
rctl.customer_trx_line_id ,
rctl.code_combination_id,
rctl.gl_date ,
rctl.gl_posted_date,
rctl.amount,
rct.receipt_method_id,
rctl.attribute_category ,
rctl.attribute1,
rctl.attribute2,
rctl.attribute3,
rctl.attribute4,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
121
rctl.attribute5,
rctl.attribute6,
rctl.attribute7,
rctl.attribute8,
rctl.attribute9,
rctl.attribute10 ,
rctl.attribute11 ,
rctl.attribute12 ,
rctl.attribute13 ,
rctl.attribute14 ,
rctl.attribute15
FROM ra_cust_trx_types_all rctt,
ra_customer_trx_all rct,
ra_cust_trx_line_gl_dist_all rctl
WHERE rctt.org_id = rct.org_id
and rctt.cust_trx_type_id = rct.cust_trx_type_id
and rct.complete_flag = 'Y'
and rct.customer_trx_id = rctl.customer_trx_id
and rct.org_id = rctl.org_id;

Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
TRX_DATE DATE Trx Date
INVOICE_CURRENCY
VARCHAR2(15) Invoice Currency Code
_CODE
TERM_DUE_DATE DATE Term Due Date
Reserved for country-
DOCUMENT_CODE VARCHAR2(150) specific functionality –
Default: NFF
NATURE_OPERATIO
VARCHAR2(20) Transaction type name
N_CODE
SET_OF_BOOKS_ID NUMBER(15,0) Set Of Books
Reserved for country-
MOVEMENT_IN_OUT VARCHAR2(150)
specific functionality
Reserved for country-
CODE_CFOP VARCHAR2(150)
specific functionality
ACCOUNT_SET_FLA
NOT NULL VARCHAR2(1) Account Set flag
G
LINE_TYPE VARCHAR2(7) Line Type
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Customer TRX Id
CUSTOMER_TRX_LIN
NUMBER(15,0) Customer TRX Line Id
E_ID
CODE_COMBINATIO
NOT NULL NUMBER(15,0) Code Combination Id
N_ID
GL_DATE DATE GL Date
GL_POSTED_DATE DATE GL Posted Date
AMOUNT NUMBER Amount
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
122
RECEIPT_METHOD_I
NUMBER(15,0) Receipt Method Id
D
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(30) structure definition
RY
column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment

CLL_F255_AR_INVOICE_ITEMS_V

Selects the information in the CLL_F255_AR_INVOICE_ITEMS_V view together with


other columns that are referred to

SELECT rct.org_id,
rctl.customer_trx_id,
rctl.memo_line_id,
rctl.customer_trx_line_id ,
rctl.line_number ,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
123
rct.trx_number , --
num_docfis
rct.trx_date , --
dt_emissao
rctl.set_of_books_id ,
rctl.inventory_item_id ,
rctl.description ,
rctl.quantity_invoiced , --
quantidade
NVL(rctl.gross_unit_selling_price,rctl.unit_selling_price ) unit_price, --
preco_unitario
NVL(rctl.gross_unit_selling_price,rctl.unit_selling_price) *
NVL(rctl.quantity_invoiced,0) total_price, --preco_total
(SELECT SUM(acctd_amount)
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = rct.customer_trx_id
AND account_class = 'REC'
) total_invoice_funct_curr_amt, ---
-BUG 18289198 Functional Currency Total Amount
rctl.sales_order,
rctl.sales_order_revision,
rctl.sales_order_line,
rctl.sales_order_date,
rctl.line_type,
rctl.extended_amount item_total_value , --
valor_total_item
rctl.revenue_amount,
rctl.link_to_cust_trx_line_id , --
id_item_origem
rctl.uom_code, --cod_medida
rctl.vat_tax_id,
rctl.reason_code,
NVL(rctl.gross_extended_amount,rctl.extended_amount) vl_item, --
valor_item
rctl.taxable_amount , --
valor_base
rctl.amount_includes_tax_flag includes_tax_value, --
vlr_inclui_imposto
-- rctl.global_attribute1 code_cfo,
--cod_cfo
-- rctl.global_attribute2 code_nbm,
--cod_nbm
-- rctl.global_attribute3 taxe_code,
NVL(rctl.global_attribute1, zldf.user_defined_fisc_class) code_cfo, --BUG
14799016
NVL(rctl.global_attribute2, zldf.product_fisc_classification) code_nbm, --BUG
14799016
NVL(rctl.global_attribute3,
substr(zldf.trx_business_category,length(zldf.tax_event_class_code)+2))
taxe_code,--BUG 14799016
rctl.global_attribute4 type_item_origin, --
tp_origem_item
rctl.global_attribute5 tax_type_item, --
tp_fiscal_item
rctl.global_attribute6 state_federal_tax_code, --
cod_sit_trib_fed
rctl.global_attribute7 state_state_tax_code, --
cod_sit_trib_est
rctl.global_attribute8 message_1, --
mensagem_1

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
124
rctl.global_attribute9 message_2, --
mensagem_2
rctl.global_attribute10 message_3, --
mensagem_3
rctl.global_attribute11 vl_base, --
vlr_base
rctl.global_attribute12 rate_reduction, --
aliq_reducao
rctl.global_attribute3 nature_operation_code, --
cod_natureza_op
rctl.global_attribute13,
rctl.global_attribute14,
rctl.global_attribute15,
rctl.global_attribute16,
rctl.global_attribute17,
rctl.global_attribute18,
rctl.global_attribute19,
rctl.global_attribute20,
rctl.interface_line_context,
rctl.interface_line_attribute1, --codigo do pedido
rctl.interface_line_attribute2, --tipo de transacao
rctl.interface_line_attribute3,
rctl.interface_line_attribute4,
rctl.interface_line_attribute5,
rctl.interface_line_attribute6, --id da linha do pedido
rctl.interface_line_attribute7,
rctl.interface_line_attribute8,
rctl.interface_line_attribute9,
rctl.interface_line_attribute10,
rctl.interface_line_attribute11,
rctl.interface_line_attribute12,
rctl.interface_line_attribute13,
rctl.interface_line_attribute14,
rctl.interface_line_attribute15,
DECODE(rctl.interface_line_context,'ORDER ENTRY',
rctl.interface_line_attribute10 ,rctl.warehouse_id) warehouse, --EMPRESA
rctl.warehouse_id organization_id,
cll_f255_utils_pkg.get_jurisdiction( (SELECT location_id FROM hr_locations_all
WHERE inventory_organization_id = rctl.warehouse_id AND ROWNUM = 1),
(SELECT legal_entity FROM
org_organization_definitions WHERE organization_id = rctl.warehouse_id AND ROWNUM =
1),
'FEDERAL_TAX') warehouse_cnpj,
cll_f255_utils_pkg.get_jurisdiction( (SELECT location_id FROM hr_locations_all
WHERE inventory_organization_id = rctl.warehouse_id AND ROWNUM = 1),
(SELECT legal_entity FROM
org_organization_definitions WHERE organization_id = rctl.warehouse_id AND ROWNUM =
1),
'INCOME_TAX') warehouse_ie,
rctl.attribute1,
rctl.attribute2,
rctl.attribute3,
rctl.attribute4,
rctl.attribute5,
rctl.attribute6,
rctl.attribute7,
rctl.attribute8,
rctl.attribute9,
rctl.attribute10,
rctl.attribute11,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
125
rctl.attribute12,
rctl.attribute13,
rctl.attribute14,
rctl.attribute15,
rctt.global_attribute1 rctt_global_attribute1,
rctt.global_attribute2 rctt_global_attribute2,
rctt.global_attribute3 rctt_global_attribute3,
rctt.global_attribute4 rctt_global_attribute4,
rctt.global_attribute5 rctt_global_attribute5,
rctt.global_attribute6 rctt_global_attribute6,
rctt.global_attribute7 rctt_global_attribute7,
rctt.global_attribute8 rctt_global_attribute8,
rctt.global_attribute9 rctt_global_attribute9,
rctt.global_attribute10 rctt_global_attribute10,
rctt.global_attribute11 rctt_global_attribute11,
rctt.global_attribute12 rctt_global_attribute12,
rctt.global_attribute13 rctt_global_attribute13,
rctt.global_attribute14 rctt_global_attribute14,
rctt.global_attribute15 rctt_global_attribute15,
rctt.global_attribute16 rctt_global_attribute16,
rctt.global_attribute17 rctt_global_attribute17,
rctt.global_attribute18 rctt_global_attribute18,
rctt.global_attribute19 rctt_global_attribute19,
rctt.global_attribute20 rctt_global_attribute20,
rctl.unit_standard_price, --BUG 16338636
'N' ato_item,
'' ato_item_description
, null int_ship_method -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null addit_freight_amt -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_mode -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_cnpj -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_state_code -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_registr_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_nfe_access_key -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null perc_returned_goods -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_rate -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_amount -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null cest_code -- BUG 22344128 - CEST (TAX SUBSTITUTION
IDENTIFIER CODE) - NT 2015-003 V 1.20
, null icms_dest_taxable_basis -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_internal_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_interstate_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
126
, null icms_share_percentage -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_origin -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_tax -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_destnation -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
FROM ra_cust_trx_types_all rctt,
ra_customer_trx_lines_all rctl,
zx_lines_det_factors zldf, --BUG 14799016
ra_customer_trx_all rct
WHERE rctt.cust_trx_type_id = rct.cust_trx_type_id
AND rctt.org_id = rct.org_id
AND rct.customer_trx_id = rctl.customer_trx_id
AND rct.org_id = rctl.org_id
AND rct.complete_flag = 'Y'
-- AND rctl.line_type = 'LINE'
AND trx_line_id(+) = rctl.customer_trx_line_id
AND zldf.trx_id(+) = rctl.customer_trx_id
AND zldf.ledger_id(+) = rctl.set_of_books_id
--
AND NOT EXISTS (SELECT 1
FROM cll_f255_ar_invoice_ato_line_v
WHERE customer_trx_line_id = NVL(rctl.link_to_cust_trx_line_id ,
rctl.customer_trx_line_id)
AND customer_trx_id = rctl.customer_trx_id
AND org_id = rctl.org_id
)
--
UNION ALL
--
SELECT rct.org_id,
rctl.customer_trx_id,
rctl.memo_line_id,
rctl.customer_trx_line_id ,
rctl.line_number ,
rct.trx_number , --
num_docfis
rct.trx_date , --
dt_emissao
rctl.set_of_books_id ,
atoitems.inventory_item_id , --
BUG 18147253
atoitems.description , --
BUG 18147253
rctl.quantity_invoiced , --
quantidade
(atoitems.total_price / rctl.quantity_invoiced )unit_price, --
--BUG 18289198 preco_unitario
atoitems.total_price, --
preco_total
atoitems.total_invoice_funct_curr_amt, --
--BUG 18289198 Functional Currency Total Amount
rctl.sales_order,
rctl.sales_order_revision,
rctl.sales_order_line,
rctl.sales_order_date,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
127
rctl.line_type,
atoitems.item_total_value, --valor_total_item
atoitems.revenue_amount,
rctl.link_to_cust_trx_line_id , --
id_item_origem
rctl.uom_code, --cod_medida
rctl.vat_tax_id,
rctl.reason_code,
atoitems.vl_item, --valor_item
atoitems.taxable_amount ,
--valor_base
rctl.amount_includes_tax_flag includes_tax_value, --
vlr_inclui_imposto
-- rctl.global_attribute1 code_cfo,
--cod_cfo
-- rctl.global_attribute2 code_nbm,
--cod_nbm
-- rctl.global_attribute3 taxe_code,
NVL(rctl.global_attribute1, zldf.user_defined_fisc_class) code_cfo, --BUG
14799016
NVL(rctl.global_attribute2, zldf.product_fisc_classification) code_nbm, --BUG
14799016
NVL(rctl.global_attribute3,
substr(zldf.trx_business_category,length(zldf.tax_event_class_code)+2))
taxe_code,--BUG 14799016
rctl.global_attribute4 type_item_origin, --
tp_origem_item
rctl.global_attribute5 tax_type_item, --
tp_fiscal_item
rctl.global_attribute6 state_federal_tax_code, --
cod_sit_trib_fed
rctl.global_attribute7 state_state_tax_code, --
cod_sit_trib_est
rctl.global_attribute8 message_1, --
mensagem_1
rctl.global_attribute9 message_2, --
mensagem_2
rctl.global_attribute10 message_3, --
mensagem_3
rctl.global_attribute11 vl_base, --
vlr_base
rctl.global_attribute12 rate_reduction, --
aliq_reducao
rctl.global_attribute3 nature_operation_code, --
cod_natureza_op
rctl.global_attribute13,
rctl.global_attribute14,
rctl.global_attribute15,
rctl.global_attribute16,
rctl.global_attribute17,
rctl.global_attribute18,
rctl.global_attribute19,
rctl.global_attribute20,
rctl.interface_line_context,
rctl.interface_line_attribute1, --codigo do pedido
rctl.interface_line_attribute2, --tipo de transacao
rctl.interface_line_attribute3,
rctl.interface_line_attribute4,
rctl.interface_line_attribute5,
rctl.interface_line_attribute6, --id da linha do pedido

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
128
rctl.interface_line_attribute7,
rctl.interface_line_attribute8,
rctl.interface_line_attribute9,
rctl.interface_line_attribute10,
rctl.interface_line_attribute11,
rctl.interface_line_attribute12,
rctl.interface_line_attribute13,
rctl.interface_line_attribute14,
rctl.interface_line_attribute15,
DECODE(rctl.interface_line_context,'ORDER ENTRY',
rctl.interface_line_attribute10 ,rctl.warehouse_id) warehouse, --EMPRESA
rctl.warehouse_id organization_id,
cll_f255_utils_pkg.get_jurisdiction( (SELECT location_id FROM hr_locations_all
WHERE inventory_organization_id = rctl.warehouse_id AND ROWNUM = 1),
(SELECT legal_entity FROM
org_organization_definitions WHERE organization_id = rctl.warehouse_id AND ROWNUM =
1),
'FEDERAL_TAX') warehouse_cnpj,
cll_f255_utils_pkg.get_jurisdiction( (SELECT location_id FROM hr_locations_all
WHERE inventory_organization_id = rctl.warehouse_id AND ROWNUM = 1),
(SELECT legal_entity FROM
org_organization_definitions WHERE organization_id = rctl.warehouse_id AND ROWNUM =
1),
'INCOME_TAX') warehouse_ie,
rctl.attribute1,
rctl.attribute2,
rctl.attribute3,
rctl.attribute4,
rctl.attribute5,
rctl.attribute6,
rctl.attribute7,
rctl.attribute8,
rctl.attribute9,
rctl.attribute10,
rctl.attribute11,
rctl.attribute12,
rctl.attribute13,
rctl.attribute14,
rctl.attribute15,
rctt.global_attribute1 rctt_global_attribute1,
rctt.global_attribute2 rctt_global_attribute2,
rctt.global_attribute3 rctt_global_attribute3,
rctt.global_attribute4 rctt_global_attribute4,
rctt.global_attribute5 rctt_global_attribute5,
rctt.global_attribute6 rctt_global_attribute6,
rctt.global_attribute7 rctt_global_attribute7,
rctt.global_attribute8 rctt_global_attribute8,
rctt.global_attribute9 rctt_global_attribute9,
rctt.global_attribute10 rctt_global_attribute10,
rctt.global_attribute11 rctt_global_attribute11,
rctt.global_attribute12 rctt_global_attribute12,
rctt.global_attribute13 rctt_global_attribute13,
rctt.global_attribute14 rctt_global_attribute14,
rctt.global_attribute15 rctt_global_attribute15,
rctt.global_attribute16 rctt_global_attribute16,
rctt.global_attribute17 rctt_global_attribute17,
rctt.global_attribute18 rctt_global_attribute18,
rctt.global_attribute19 rctt_global_attribute19,
rctt.global_attribute20 rctt_global_attribute20,
rctl.unit_standard_price, --BUG 16338636

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
129
'Y' ato_item,
DECODE(rctl.line_type, 'TAX', '', 'LINE',
cll_f255_utils_pkg.get_ato_item_description ( atoitems.customer_trx_id
, atoitems.customer_trx_line_id
)
) ato_item_description
, null int_ship_method -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null addit_freight_amt -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_mode -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_cnpj -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_state_code -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_registr_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_nfe_access_key -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null perc_returned_goods -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_rate -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_amount -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null cest_code -- BUG 22344128 - CEST (TAX SUBSTITUTION
IDENTIFIER CODE) - NT 2015-003 V 1.20
, null icms_dest_taxable_basis -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_internal_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_interstate_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_share_percentage -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_origin -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_tax -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_destnation -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
FROM ra_cust_trx_types_all rctt,
ra_customer_trx_lines_all rctl,
zx_lines_det_factors zldf, --BUG 14799016
ra_customer_trx_all rct
, (SELECT atoline.ato_customer_trx_line_id customer_trx_line_id
, atoline.customer_trx_id
, atoline.inventory_item_id --BUG 18147253
, atoline.description --BUG 18147253
, atoline.org_id
, SUM(atoline.unit_price) unit_price
, SUM(atoline.total_price) total_price
, atoline.total_invoice_funct_curr_amt --BUG 18289198

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
130
, SUM(atoline.item_total_value) item_total_value
, SUM(atoline.vl_item) vl_item
, SUM(atoline.revenue_amount) revenue_amount
, SUM(atoline.taxable_amount) taxable_amount
FROM cll_f255_ar_invoice_ato_line_v atoline
GROUP BY atoline.ato_customer_trx_line_id
, atoline.customer_trx_id
, atoline.inventory_item_id --BUG 18147253
, atoline.description --BUG 18147253
, atoline.total_invoice_funct_curr_amt --BUG 18289198
, atoline.org_id
) atoitems
WHERE rctt.cust_trx_type_id = rct.cust_trx_type_id
AND rctt.org_id = rct.org_id
AND rct.customer_trx_id = rctl.customer_trx_id
AND rct.org_id = rctl.org_id
AND rct.complete_flag = 'Y'
AND rctl.line_type = 'LINE'
AND trx_line_id(+) = rctl.customer_trx_line_id
AND zldf.trx_id(+) = rctl.customer_trx_id
AND zldf.ledger_id(+) = rctl.set_of_books_id
--
AND rctl.customer_trx_id = atoitems.customer_trx_id
AND rctl.customer_trx_line_id = atoitems.customer_trx_line_id
AND rctl.org_id = atoitems.org_id
--
UNION ALL
--
SELECT rct.org_id,
rctl.customer_trx_id,
rctl.memo_line_id,
rctl.customer_trx_line_id ,
rctl.line_number ,
rct.trx_number , --
num_docfis
rct.trx_date , --
dt_emissao
rctl.set_of_books_id ,
atoitems.inventory_item_id , --
BUG 18147253
atoitems.description , --
BUG 18147253
rctl.quantity_invoiced , --
quantidade
(atoitems.total_price / rctl.quantity_invoiced )unit_price, --
--BUG 18289198 preco_unitario
atoitems.total_price, --
preco_total
atoitems.total_invoice_funct_curr_amt, --
--BUG 18289198 Functional Currency Total Amount
rctl.sales_order,
rctl.sales_order_revision,
rctl.sales_order_line,
rctl.sales_order_date,
rctl.line_type,
atoitems.item_total_value, --valor_total_item
atoitems.revenue_amount,
rctl.link_to_cust_trx_line_id , --
id_item_origem
rctl.uom_code, --cod_medida

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
131
rctl.vat_tax_id,
rctl.reason_code,
atoitems.vl_item, --valor_item
atoitems.taxable_amount ,
--valor_base
rctl.amount_includes_tax_flag includes_tax_value, --
vlr_inclui_imposto
-- rctl.global_attribute1 code_cfo,
--cod_cfo
-- rctl.global_attribute2 code_nbm,
--cod_nbm
-- rctl.global_attribute3 taxe_code,
'' code_cfo, --BUG 14799016
'' code_nbm, --BUG 14799016
'' taxe_code,--BUG 14799016
rctl.global_attribute4 type_item_origin, --
tp_origem_item
rctl.global_attribute5 tax_type_item, --
tp_fiscal_item
rctl.global_attribute6 state_federal_tax_code, --
cod_sit_trib_fed
rctl.global_attribute7 state_state_tax_code, --
cod_sit_trib_est
rctl.global_attribute8 message_1, --
mensagem_1
rctl.global_attribute9 message_2, --
mensagem_2
rctl.global_attribute10 message_3, --
mensagem_3
rctl.global_attribute11 vl_base, --
vlr_base
rctl.global_attribute12 rate_reduction, --
aliq_reducao
rctl.global_attribute3 nature_operation_code, --
cod_natureza_op
rctl.global_attribute13,
rctl.global_attribute14,
rctl.global_attribute15,
rctl.global_attribute16,
rctl.global_attribute17,
rctl.global_attribute18,
rctl.global_attribute19,
rctl.global_attribute20,
rctl.interface_line_context,
rctl.interface_line_attribute1, --codigo do pedido
rctl.interface_line_attribute2, --tipo de transacao
rctl.interface_line_attribute3,
rctl.interface_line_attribute4,
rctl.interface_line_attribute5,
rctl.interface_line_attribute6, --id da linha do pedido
rctl.interface_line_attribute7,
rctl.interface_line_attribute8,
rctl.interface_line_attribute9,
rctl.interface_line_attribute10,
rctl.interface_line_attribute11,
rctl.interface_line_attribute12,
rctl.interface_line_attribute13,
rctl.interface_line_attribute14,
rctl.interface_line_attribute15,
'' warehouse, --EMPRESA

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
132
rctl.warehouse_id organization_id,
'' warehouse_cnpj,
'' warehouse_ie,
rctl.attribute1,
rctl.attribute2,
rctl.attribute3,
rctl.attribute4,
rctl.attribute5,
rctl.attribute6,
rctl.attribute7,
rctl.attribute8,
rctl.attribute9,
rctl.attribute10,
rctl.attribute11,
rctl.attribute12,
rctl.attribute13,
rctl.attribute14,
rctl.attribute15,
rctt.global_attribute1 rctt_global_attribute1,
rctt.global_attribute2 rctt_global_attribute2,
rctt.global_attribute3 rctt_global_attribute3,
rctt.global_attribute4 rctt_global_attribute4,
rctt.global_attribute5 rctt_global_attribute5,
rctt.global_attribute6 rctt_global_attribute6,
rctt.global_attribute7 rctt_global_attribute7,
rctt.global_attribute8 rctt_global_attribute8,
rctt.global_attribute9 rctt_global_attribute9,
rctt.global_attribute10 rctt_global_attribute10,
rctt.global_attribute11 rctt_global_attribute11,
rctt.global_attribute12 rctt_global_attribute12,
rctt.global_attribute13 rctt_global_attribute13,
rctt.global_attribute14 rctt_global_attribute14,
rctt.global_attribute15 rctt_global_attribute15,
rctt.global_attribute16 rctt_global_attribute16,
rctt.global_attribute17 rctt_global_attribute17,
rctt.global_attribute18 rctt_global_attribute18,
rctt.global_attribute19 rctt_global_attribute19,
rctt.global_attribute20 rctt_global_attribute20,
rctl.unit_standard_price, --BUG 16338636
'Y' ato_item,
'' ato_item_description
, null int_ship_method -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null addit_freight_amt -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_mode -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_cnpj -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null end_cons_state_code -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null import_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_drawback_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_registr_number -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null export_nfe_access_key -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
133
, null perc_returned_goods -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_rate -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null deferred_icms_amount -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
, null cest_code -- BUG 22344128 - CEST (TAX SUBSTITUTION
IDENTIFIER CODE) - NT 2015-003 V 1.20
, null icms_dest_taxable_basis -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_internal_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_interstate_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_share_percentage -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_origin -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_rate -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_poverty_tax -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
, null icms_tax_destnation -- BUG 22504829 - ICMS TAX CHANGES FOR
INTERSTATE TRANSACTIONS
FROM ra_cust_trx_types_all rctt,
ra_customer_trx_lines_all rctl,
zx_lines_det_factors zldf, --BUG 14799016
ra_customer_trx_all rct
, (SELECT atotax.ato_tax_customer_trx_line_id customer_trx_line_id
, atotax.customer_trx_id
, atotax.inventory_item_id --BUG 18147253
, atotax.description --BUG 18147253
, atotax.org_id
, SUM(atotax.unit_price) unit_price
, SUM(atotax.total_price) total_price
, SUM(atotax.total_invoice_funct_curr_amt) total_invoice_funct_curr_amt
--BUG 18289198
, SUM(atotax.item_total_value) item_total_value
, SUM(atotax.vl_item) vl_item
, SUM(atotax.revenue_amount) revenue_amount
, SUM(atotax.taxable_amount) taxable_amount
FROM cll_f255_ar_invoice_ato_tax_v atotax
GROUP BY atotax.ato_tax_customer_trx_line_id
, atotax.customer_trx_id
, atotax.inventory_item_id --BUG 18147253
, atotax.description --BUG 18147253
, atotax.org_id
) atoitems
WHERE rctt.cust_trx_type_id = rct.cust_trx_type_id
AND rctt.org_id = rct.org_id
AND rct.customer_trx_id = rctl.customer_trx_id
AND rct.org_id = rctl.org_id
AND rct.complete_flag = 'Y'
AND rctl.line_type = 'TAX'
AND trx_line_id(+) = rctl.customer_trx_line_id
AND zldf.trx_id(+) = rctl.customer_trx_id
AND zldf.ledger_id(+) = rctl.set_of_books_id
--
AND rctl.customer_trx_id = atoitems.customer_trx_id
AND rctl.customer_trx_line_id = atoitems.customer_trx_line_id

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
134
AND rctl.org_id = atoitems.org_id

Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Trx Number
MEMO_LINE_ID NUMBER(15,0) Memo Line Id
CUSTOMER_TRX_LIN
NOT NULL NUMBER(15,0) Customer Trx Line Id
E_ID
LINE_NUMBER NOT NULL NUMBER Line Number
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
TRX_DATE NOT NULL DATE Trx Date
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0) Set of Books Id
INVENTORY_ITEM_I
NUMBER(15,0) Inventory Item Id
D
DESCRIPTION VARCHAR2(240) Description
QUANTITY_INVOICE
NUMBER Quantity Invoiced
D
UNIT_PRICE NUMBER Unit Price
TOTAL_PRICE NUMBER Total Price
TOTAL_INVOICE_FUN Total Invoice Amount in
CT_CURR_AMT NOT NULL NUMBER the Funcional Currency
Code
SALES_ORDER VARCHAR2(50) Sales Order
SALES_ORDER_REVIS
NUMBER Sales Order Revision
ION
SALES_ORDER_LINE VARCHAR2(30) Sales Order Line
SALES_ORDER_DATE DATE Sales Order Date
LINE_TYPE NOT NULL VARCHAR2(20) Line Type
ITEM_TOTAL_VALUE NOT NULL NUMBER Item Total Value
REVENUE_AMOUNT NUMBER Revenue Amount
LINK_TO_CUST_TRX_ Link To Cust Trx Line
NUMBER(15,0)
LINE_ID Id
UOM_CODE VARCHAR2(3) Uom Code
VAT_TAX_ID NUMBER(15,0) Val Tax Id
REASON_CODE VARCHAR2(30) Reason Code
VL_ITEM NUMBER Value Item
TAXABLE_AMOUNT NUMBER Taxable Amount
INCLUDES_TAX_VAL
VARCHAR2(1) Includes tax value
UE
CODE_CFO VARCHAR2(150) Code CFO
CODE_NBM VARCHAR2(150) Code NBM
TAXE_CODE VARCHAR2(150) Taxe Code
TYPE_ITEM_ORIGIN VARCHAR2(150) Type Item Origin
TAX_TYPE_ITEM VARCHAR2(150) Tax Type Item
STATE_FEDERAL_TA State Federal Tax
VARCHAR2(150)
X_CODE Code
STATE_STATE_TAX_C
VARCHAR2(150) State State Tax Code
ODE
MESSAGE_1 VARCHAR2(150) Message 1
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
135
MESSAGE_2 VARCHAR2(150) Message 2
MESSAGE_3 VARCHAR2(150) Message 3
VL_BASE VARCHAR2(150) Rate Deduction
RATE_REDUCTION VARCHAR2(150) Value Base
NATURE_OPERATIO Nature Operation
VARCHAR2(150)
N_CODE Code
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
13
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
14
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
15
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
16
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
17
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
18
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
19
Functionality
Reserved For
GLOBAL_ATTRIBUTE
VARCHAR2(150) Globalization
20
Functionality
INTERFACE_LINE_CO
VARCHAR2(30) Interface Line Context
NTEXT
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE1
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE2
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE3
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE4
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE5
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE6
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE7
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE8
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE9
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
136
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE10
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE11
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE12
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE13
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE14
INTERFACE_LINE_AT
VARCHAR2(30) Interface Line Context
TRIBUTE15
WAREHOUSE VARCHAR2(40) Warehouse
Organization
ORGANIZATION_ID NUMBER(15,0)
identifier
VARCHAR2(400
WAREHOUSE_CNPJ Warehouse CNPJ
0)
VARCHAR2(400
WAREHOUSE_IE Warehouse IE
0)
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
137
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE1
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE2
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE3
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE4
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE5
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE6
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE7
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE8
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE9
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE10
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE11
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE12
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE13
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE14
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE15
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE16
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
138
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE17
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE18
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE19
Functionality
Reserved For
RCTT_GLOBAL_ATTR
VARCHAR2(150) Globalization
IBUTE20
Functionality
UNIT_STANDARD_PR
NUMBER
ICE
Indicate is Ato Item (Y
ATO_ITEM CHAR(1)
or N)
ATO_ITEM_DESCRIPT VARCHAR2(400
Ato item description
ION 0)
ADDIT_FREIGHT_AMT VARCHAR2 Additional Freight
Amount
IMPORT_MODE VARCHAR2 Import Mode
END_CONS_CNPJ VARCHAR2
END_CONS_STATE_C VARCHAR2
ODE
IMPORT_DRAWBACK_ VARCHAR2 Import Drawback
NUMBER Number
EXPORT_DRAWBACK VARCHAR2 Export Drawback
_NUMBER Number
EXPORT_REGISTR_NU VARCHAR2 Export Registration
MBER Number
EXPORT_NFE_ACCESS VARCHAR2 Export NFe Access
_KEY Key
PERC_RETURNED_GO VARCHAR2 Percentage Returned
ODS Gods
DEFERRED_ICMS_RAT VARCHAR2
Deferred ICMS Rate
E
DEFERRED_ICMS_AM VARCHAR2 Deferred ICMS
OUNT Amount
CEST_CODE VARCHAR2 Cest Code
ICMS_DEST_TAXABLE VARCHAR2 ICMS Destination
_BASIS Taxable Basis
ICMS_INTERNAL_RAT VARCHAR2
ICMS Internal Rate
E
ICMS_INTERSTATE_R VARCHAR2
ICMS Interstate Rate
ATE
ICMS_SHARE_PERCEN VARCHAR2 ICMS Share
TAGE Percentage
ICMS_TAX_ORIGIN VARCHAR2 ICMS Tax Origin
ICMS_POVERTY_RAT VARCHAR2
ICMS Poverty Rate
E
ICMS_POVERTY_TAX VARCHAR2 ICMS Poverty Tax

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
139
ICMS_TAX_DESTNATI VARCHAR2
ICMS Tax Destination
ON

CLL_F255_AR_INVOICE_PARENTS_V
Selects the information in the CLL_F255_AR_INVOICE_PARENTS_V view together with
other columns that are referred to

SELECT
rac.org_id ,
rct.customer_trx_id parent_customer_trx_id ,
rct.trx_number,
rct.trx_date,
substr(rbs.global_attribute1,1,1) series,
substr(rbs.global_attribute1,2,5) sub_series,
rac.customer_trx_id ,
rac.trx_number parent_trx_number,
rac.trx_date parent_trx_date,
rct.global_attribute1 rct_global_attribute1,
rct.global_attribute2 rct_global_attribute2,
rct.global_attribute3 rct_global_attribute3,
rct.global_attribute4 rct_global_attribute4,
rct.global_attribute5 rct_global_attribute5,
rct.global_attribute6 rct_global_attribute6,
rct.global_attribute7 rct_global_attribute7,
rct.global_attribute8 rct_global_attribute8,
rct.global_attribute9 rct_global_attribute9,
rct.global_attribute10 rct_global_attribute10,
rct.global_attribute11 rct_global_attribute11,
rct.global_attribute12 rct_global_attribute12,
rct.global_attribute13 rct_global_attribute13,
rct.global_attribute14 rct_global_attribute14,
rct.global_attribute15 rct_global_attribute15,
rct.global_attribute16 rct_global_attribute16,
rct.global_attribute17 rct_global_attribute17,
rct.global_attribute18 rct_global_attribute18,
rct.global_attribute19 rct_global_attribute19,
rct.global_attribute20 rct_global_attribute20,
rct.global_attribute_category rct_global_attribute_category,
rct.global_attribute21 rct_global_attribute21,
rct.global_attribute22 rct_global_attribute22,
rct.global_attribute23 rct_global_attribute23,
rct.global_attribute24 rct_global_attribute24,
rct.global_attribute25 rct_global_attribute25,
rct.global_attribute26 rct_global_attribute26,
rct.global_attribute27 rct_global_attribute27,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
140
rct.global_attribute28 rct_global_attribute28,
rct.global_attribute29 rct_global_attribute29,
rct.global_attribute30 rct_global_attribute30
FROM ra_customer_trx_all rct,
ra_batch_sources_all rbs,
ra_customer_trx_all rac
WHERE rbs.batch_source_id = rct.batch_source_id
and rac.previous_customer_trx_id = rct.customer_trx_id
and rac.org_id = rct.org_id
and rct.complete_flag = 'Y';

Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
ID_INVOICE_PARENT NOT NULL NUMBER(15,0) Invoice Parent
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
TRX_DATE NOT NULL DATE Trx Date
SERIES VARCHAR2(3) Series
SUB_SERIES VARCHAR2(15) Sub Series
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Customer Trx Id
NUM_DOCFIS NOT NULL VARCHAR2(20) Num Docfis
DT_NF NOT NULL DATE Dt Nf
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE1
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE2
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE3
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE4
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE5
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE6
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE7
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE8
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
141
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE9
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE10
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE11
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE12
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE13
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE14
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE15
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE16
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE17
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE18
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE19
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE20
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(30) Globalization
BUTE_CATEGORY
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE21
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE22
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE23
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
142
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE24
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE25
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE26
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE27
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE28
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE29
Functionality
Reserved For
RCT_GLOBAL_ATTRI
VARCHAR2(150) Globalization
BUTE30
Functionality

CLL_F255_AR_INVOICES_V
Selects the information in the CLL_F255_AR_INVOICES_V view together with other
columns that are referred to

SELECT DISTINCT
rct.org_id,
hou.name,
-- cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'FEDERAL_TAX') ou_cnpj, --BUG 9710872
-- cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'INCOME_TAX') ou_ie, --BUG 9710872
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, rct.legal_entity_id, 'FEDERAL_TAX') ou_cnpj,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, rct.legal_entity_id, 'INCOME_TAX') ou_ie,
rct.customer_trx_id ,
rct.trx_number , --num_docfis
rbs.global_attribute3 series, --serie
rbs.global_attribute4 sub_series,
nvl(rbs.global_attribute2,rct.org_id) company, --empresa
rct.trx_date , --data_emissao
rct.ship_to_site_use_id ,
rct.bill_to_site_use_id ,
rct.sold_to_site_use_id ,
rct.remit_to_address_id ,
rct.global_attribute1 interest_type, --tp_interesse
rct.global_attribute2 vl_interest, --vlr_interesse
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
143
rct.global_attribute3 period_days, --periodo_dias
rct.global_attribute4 interest_form, --form_interesse
rct.global_attribute5 free_days, --dias_graca
rct.global_attribute6 penalty, --penalidade
rct.global_attribute7 vl_penalty, --vlr_penalidade
rct.global_attribute8 departure_date, --data_saida_rec
rct.global_attribute9 vl_freight, --vlr_frete
rct.global_attribute10 insurance_value, --vlr_seguro
rct.global_attribute11 vl_others, --vlr_outras
rct.global_attribute12 license_plate, --placa_veiculo
rct.global_attribute13 bulk, --volume
rct.global_attribute14 species_turnover, --especie_volume
rct.global_attribute15 bulk_number, --nr_volume
rct.global_attribute16 weight, --peso_bruto
rct.global_attribute17 net_weight, --peso_liquido
rct.global_attribute18 ,
rct.global_attribute19 ,
rct.global_attribute20 ,
rct.global_attribute21 ,
rct.global_attribute22 ,
rct.global_attribute23 ,
rct.global_attribute24 ,
rct.global_attribute25 ,
rct.global_attribute26 ,
rct.global_attribute27 ,
rct.global_attribute28 ,
rct.global_attribute29 ,
rct.global_attribute30 ,
rct.attribute1 ,
rct.attribute2 ,
rct.attribute3 ,
rct.attribute4 ,
rct.attribute5 ,
rct.attribute6 ,
rct.attribute7 ,
rct.attribute8 ,
rct.attribute9 ,
rct.attribute10 ,
rct.attribute11 ,
rct.attribute12 ,
rct.attribute13 ,
rct.attribute14 ,
rct.attribute15 ,
rct.interface_header_attribute1 , --codigo do pedido
rct.interface_header_attribute2 , --tipo de transacao
rct.interface_header_attribute3 ,
rct.interface_header_attribute4 ,
rct.interface_header_attribute5 ,
rct.interface_header_attribute6 ,
rct.interface_header_attribute7 ,
rct.interface_header_attribute8 ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
144
rct.interface_header_attribute9 ,
rct.interface_header_attribute10 , --id da organizacao de inventario
rct.interface_header_attribute11 ,
rct.interface_header_attribute12 ,
rct.interface_header_attribute13 ,
rct.interface_header_attribute14 ,
rct.interface_header_attribute15 ,
rct.interface_header_context ,
rct.complete_flag ,
rct.bill_to_address_id ,
rct.ship_to_customer_id ,
rct.ship_to_contact_id ,
rct.term_id ,
rct.term_due_date , --dt_vencto
rct.ship_via , --via_transporte
rct.batch_source_id ,
rct.cust_trx_type_id , --conforme view caibr_tipo_transacao_ar_v
rct.printing_original_date , --dt_impressao
rct.printing_last_printed , --dt_ult_impr
rct.purchase_order ,
rct.purchase_order_revision ,
rct.purchase_order_date ,
rct.comments , --comentarios
rct.invoice_currency_code , --moeda_nf
rct.ship_date_actual , --data_expedicao
rbs.name origin, --origem
rctt.gl_id_rec , --id_cta_rec
rctt.name nature_operation_code,-- cod_natureza_op
rctt.description , --descricao
rctt.set_of_books_id ,
rctt.global_attribute2 movement_in_out, --movto_e_s
NVL(rctt.global_attribute1,'NFF') code_document, --cod_docto
rctt.global_attribute3 , --cod_cfo
rctt.type , --tipo
rct.doc_sequence_value ,
rct.status_trx , --status_nf
rct.customer_bank_account_id ,
rct.fob_point ,
rct.waybill_number ,
rct.receipt_method_id ,
rbs.attribute_category ,
rbs.attribute1 batch_source_attribute1,
rbs.attribute2 batch_source_attribute2,
rbs.attribute3 batch_source_attribute3,
rbs.attribute4 batch_source_attribute4,
rbs.attribute5 batch_source_attribute5,
rbs.attribute6 batch_source_attribute6,
rbs.attribute7 batch_source_attribute7,
rbs.attribute8 batch_source_attribute8,
rbs.attribute9 batch_source_attribute9,
rbs.attribute10 batch_source_attribute10,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
145
rbs.attribute11 batch_source_attribute11,
rbs.attribute12 batch_source_attribute12,
rbs.attribute13 batch_source_attribute13,
rbs.attribute14 batch_source_attribute14,
rbs.attribute15 batch_source_attribute15,
rct.exchange_rate_type ,
rct.exchange_date ,
rct.exchange_rate ,
rct.previous_customer_trx_id,
rct.internal_notes,
rbs.global_attribute3 rbs_global_attribute3,
rbs.global_attribute4 rbs_global_attribute4,
rbs.global_attribute5 rbs_global_attribute5,
rbs.global_attribute6 rbs_global_attribute6,
rbs.global_attribute7 rbs_global_attribute7,
rctt.global_attribute5 type_global_attribute5,
jbct.legal_process_code,
jbct.legal_process_source_ind,
jbct.vehicle_plate_state_code,
jbct.vehicle_antt_inscription,
jbct.towing_veh_plate_number,
jbct.towing_veh_plate_state_code,
jbct.towing_veh_antt_inscription,
jbct.seal_number,
jbct.electronic_inv_web_address,
jbct.electronic_inv_status,
jbct.electronic_inv_access_key,
jbct.electronic_inv_protocol,
rct.sold_to_customer_id,
hcsu.cust_acct_site_id address_id,
wc.supplier_id carrier_id,
wc.supplier_site_id carrier_site_id,
rctt.post_to_gl,
rctt.accounting_affect_flag,
jbct.electronic_inv_access_key_id, --Bug 9973235 NFe
jbct.wagon_code, --Bug 9973235 NFe
jbct.ferry_code, --Bug 9973235 NFe
jbct.srv_exec_date, --ENH 11795659
rct.last_update_date, --ER 16501918
hca.global_attribute1 hca_global_attribute1, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute2 hca_global_attribute2, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute3 hca_global_attribute3, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute4 hca_global_attribute4, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute5 hca_global_attribute5, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute6 hca_global_attribute6, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
146
hca.global_attribute7 hca_global_attribute7, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute8 hca_global_attribute8, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute9 hca_global_attribute9, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute10 hca_global_attribute10, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute11 hca_global_attribute11, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute12 hca_global_attribute12, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute13 hca_global_attribute13, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute14 hca_global_attribute14, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute15 hca_global_attribute15, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute16 hca_global_attribute16, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute17 hca_global_attribute17, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute18 hca_global_attribute18, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute19 hca_global_attribute19, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
hca.global_attribute20 hca_global_attribute20, -- BUG 19440714 - R12.CLL - BRAZILIAN ELECTRONIC
INVOICE - NFE 3.01
TO_CHAR(NULL) FISCAL_DOC_MODEL, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.0
TO_CHAR(NULL) BUYER_PRESENCE_IND, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3
TO_CHAR(NULL) PAYMENT_METHOD1, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
TO_NUMBER(NULL) PAYMENT_AMOUNT1, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
TO_CHAR(NULL) PAYMENT_METHOD2, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
TO_NUMBER(NULL) PAYMENT_AMOUNT2, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
TO_CHAR(NULL) PAYMENT_METHOD3, -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
TO_NUMBER(NULL) PAYMENT_AMOUNT3 -- BUG 19440714 - R12.CLL - BRAZILIAN
ELECTRONIC INVOICE - NFE 3.01
FROM jl_br_customer_trx_exts jbct ,
ra_cust_trx_types_all rctt ,
ra_batch_sources_all rbs ,
-- org_organization_definitions ood, --BUG 9710872
hr_all_organization_units hou,
hz_cust_accounts hca,
hz_cust_site_uses_all hcsu,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
147
wsh_carriers_v wc,
ra_customer_trx_all rct
WHERE rct.org_id = rctt.org_id
AND rct.cust_trx_type_id = rctt.cust_trx_type_id
AND rct.complete_flag = 'Y'
AND rbs.batch_source_id = rct.batch_source_id
AND rbs.org_id = rct.org_id
AND rctt.type IN ('INV','CM','DM')
AND jbct.customer_trx_id (+) = rct.customer_trx_id
-- AND ood.operating_unit = rct.org_id --BUG 9710872
AND hou.organization_id = rct.org_id
-- AND rct.sold_to_customer_id = hca.cust_account_id --- Bug 9955598
AND hca.cust_account_id = NVL(rct.sold_to_customer_id,rct.bill_to_customer_id) --- Bug 9955598
AND rct.org_id = hcsu.org_id
-- AND rct.bill_to_site_use_id = hcsu.bill_to_site_use_id -- Bug 10058629
AND rct.bill_to_site_use_id = hcsu.site_use_id -- Bug 10058629
AND rct.ship_via = wc.freight_code (+)
Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
NAME NOT NULL VARCHAR2(240) Name of the organization
OU_CNPJ VARCHAR2(4000) CNPJ of the organization
OU_IE VARCHAR2(4000) IE of the organization
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Customer Trx Id
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
SERIES VARCHAR2(3) Series
SUB_SERIES VARCHAR2(15) Sub Series
COMPANY VARCHAR2(150) Company
TRX_DATE NOT NULL DATE Trx Date
SHIP_TO_SITE_USE_ID NUMBER(15,0) Ship To Site Use Id
BILL_TO_SITE_USE_ID NUMBER(15,0) Bill To Siste Use Id
SOLD_TO_SITE_USE_ID NUMBER(15,0) Sold To Site Use Id
REMIT_TO_ADDRESS_ID NUMBER(15,0) Remit To Address Id
Reserved For
INTEREST_TYPE VARCHAR2(150) Globalization
Functionality
Reserved For
VL_INTEREST VARCHAR2(150) Globalization
Functionality
Reserved For
PERIOD_DAYS VARCHAR2(150) Globalization
Functionality
Reserved For
INTEREST_FORM VARCHAR2(150) Globalization
Functionality
Reserved For
FREE_DAYS VARCHAR2(150) Globalization
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
148
Reserved For
PENALTY VARCHAR2(150) Globalization
Functionality
Reserved For
VL_PENALTY VARCHAR2(150) Globalization
Functionality
Reserved For
DEPARTURE_DATE VARCHAR2(150) Globalization
Functionality
Reserved For
VL_FREIGHT VARCHAR2(150) Globalization
Functionality
Reserved For
INSURANCE_VALUE VARCHAR2(150) Globalization
Functionality
Reserved For
VL_OTHERS VARCHAR2(150) Globalization
Functionality
Reserved For
LICENSE_PLATE VARCHAR2(150) Globalization
Functionality
Reserved For
BULK VARCHAR2(150) Globalization
Functionality
Reserved For
SPECIES_TURNOVER VARCHAR2(150) Globalization
Functionality
Reserved For
BULK_NUMBER VARCHAR2(150) Globalization
Functionality
Reserved For
WEIGHT VARCHAR2(150) Globalization
Functionality
Reserved For
NET_WEIGHT VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE18 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE19 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE20 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE21 VARCHAR2(150) Globalization
Functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
149
Reserved For
GLOBAL_ATTRIBUTE22 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE23 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE24 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE25 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE26 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE27 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE28 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE29 VARCHAR2(150) Globalization
Functionality
Reserved For
GLOBAL_ATTRIBUTE30 VARCHAR2(150) Globalization
Functionality
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
150
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Interface Header
INTERFACE_HEADER_ATTRIBUTE1 VARCHAR2(30)
Attribute1
Interface Header
INTERFACE_HEADER_ATTRIBUTE2 VARCHAR2(30)
Attribute2
Interface Header
INTERFACE_HEADER_ATTRIBUTE3 VARCHAR2(30)
Attribute3
Interface Header
INTERFACE_HEADER_ATTRIBUTE4 VARCHAR2(30)
Attribute4
Interface Header
INTERFACE_HEADER_ATTRIBUTE5 VARCHAR2(30)
Attribute5
Interface Header
INTERFACE_HEADER_ATTRIBUTE6 VARCHAR2(30)
Attribute6
Interface Header
INTERFACE_HEADER_ATTRIBUTE7 VARCHAR2(30)
Attribute7
Interface Header
INTERFACE_HEADER_ATTRIBUTE8 VARCHAR2(30)
Attribute8
Interface Header
INTERFACE_HEADER_ATTRIBUTE9 VARCHAR2(30)
Attribute9
Interface Header
INTERFACE_HEADER_ATTRIBUTE10 VARCHAR2(30)
Attribute10
Interface Header
INTERFACE_HEADER_ATTRIBUTE11 VARCHAR2(30)
Attribute11
Interface Header
INTERFACE_HEADER_ATTRIBUTE12 VARCHAR2(30)
Attribute12
Interface Header
INTERFACE_HEADER_ATTRIBUTE13 VARCHAR2(30)
Attribute13
Interface Header
INTERFACE_HEADER_ATTRIBUTE14 VARCHAR2(30)
Attribute14
Interface Header
INTERFACE_HEADER_ATTRIBUTE15 VARCHAR2(30)
Attribute15
INTERFACE_HEADER_CONTEXT VARCHAR2(30) Interface Header Context
COMPLETE_FLAG NOT NULL VARCHAR2(1) Complete Flag
BILL_TO_ADDRESS_ID NUMBER(15,0) Bill To Address Id
SHIP_TO_CUSTOMER_ID NUMBER(15,0) Ship To Customer Id
SHIP_TO_CONTACT_ID NUMBER(15,0) Ship To Contact Id
TERM_ID NUMBER(15,0) Term Id
TERM_DUE_DATE DATE Term Due Date
SHIP_VIA VARCHAR2(30) Ship Via
BATCH_SOURCE_ID NUMBER(15,0) Batch Source Id
CUST_TRX_TYPE_ID NOT NULL NUMBER(15,0) Cust Trx Type Id
PRINTING_ORIGINAL_DATE DATE Printing Original Date

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
151
PRINTING_LAST_PRINTED DATE Printing Last Printed
PURCHASE_ORDER VARCHAR2(50) Putchase Order
PURCHASE_ORDER_REVISION VARCHAR2(50) Purchase Order Revision
PURCHASE_ORDER_DATE DATE Purchase Order Date
COMMENTS VARCHAR2(1760) Comments
INVOICE_CURRENCY_CODE VARCHAR2(15) Invoice Currency Code
SHIP_DATE_ACTUAL DATE Ship Date Actual
ORIGIN NOT NULL VARCHAR2(50) Batch source name
Receivables account
GL_ID_REC NUMBER(15,0)
identifier
NATURE_OPERATION_CODE VARCHAR2(20) Transaction type name
Transaction type
DESCRIPTION VARCHAR2(80)
description
SET_OF_BOOKS_ID NUMBER(15,0) Set of Books identifier
Reserved for country-
MOVEMENT_IN_OUT VARCHAR2(150)
specific functionality
Reserved for country-
CODE_DOCUMENT VARCHAR2(150)
specific functionality
Reserved for country-
GLOBAL_ATTRIBUTE3 VARCHAR2(150)
specific functionality
Transaction class, such as
TYPE VARCHAR2(20) INV, CM, DM, GUAR,
DEP, or CB
DOC_SEQUENCE_VALUE NUMBER(15,0) Doc Sequence Value
STATUS_TRX VARCHAR2(30) Status Trx
Customer Bank Account
CUSTOMER_BANK_ACCOUNT_ID NUMBER(15,0)
Id
FOB_POINT VARCHAR2(30) Fob Point
WAYBILL_NUMBER VARCHAR2(50) Waybill Number
RECEIPT_METHOD_ID NUMBER(15,0) Receipt Method Id
Descriptive flexfield
ATTRIBUTE_CATEGORY VARCHAR2(30) structure definition
column
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE8 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
152
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
BATCH_SOURCE_ATTRIBUTE15 VARCHAR2(150)
segment
EXCHANGE_RATE_TYPE VARCHAR2(30) Exchange Rate Type
EXCHANGE_DATE DATE Exchange Date
EXCHANGE_RATE NUMBER Exchange Rate
PREVIOUS_CUSTOMER_TRX_ID NUMBER(15,0) Previous Customer Trx Id
INTERNAL_NOTES VARCHAR2(240) Internal Notes
Descriptive flexfield
RBS_GLOBAL_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
RBS_GLOBAL_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
RBS_GLOBAL_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
RBS_GLOBAL_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
RBS_GLOBAL_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
TYPE_GLOBAL_ATTRIBUTE5 VARCHAR2(150)
segment
LEGAL_PROCESS_CODE VARCHAR2(150) Legal Process or Act Id
Legal Process Source
LEGAL_PROCESS_SOURCE_IND VARCHAR2(1)
Indicator
VEHICLE_PLATE_STATE_CODE VARCHAR2(2) Vehicle Plate State Code
VEHICLE_ANTT_INSCRIPTION VARCHAR2(30) Vehicle ANTT Inscription
Towing Vehicle Plate
TOWING_VEH_PLATE_NUMBER VARCHAR2(30)
Number
Towing Vehicle Plate
TOWING_VEH_PLATE_STATE_CODE VARCHAR2(2)
State Code
Towing Vehicle ANTT
TOWING_VEH_ANTT_INSCRIPTION VARCHAR2(30)
Inscription
SEAL_NUMBER VARCHAR2(150) Seal Number
Electronic Invoice Web
ELECTRONIC_INV_WEB_ADDRESS VARCHAR2(2000)
Address
ELECTRONIC_INV_STATUS VARCHAR2(1) Electronic Invoice Status
Electronic Invoice Access
ELECTRONIC_INV_ACCESS_KEY VARCHAR2(150)
Key

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
153
Electronic Invoice
ELECTRONIC_INV_PROTOCOL VARCHAR2(30)
Protocol
SOLD_TO_CUSTOMER_ID NUMBER(15,0) Sold To Customer Id
Identifier for the customer
account site. Foreign key
ADDRESS_ID NOT NULL NUMBER(15,0) to the
HZ_CUST_ACCT_SITES_
ALL table
Foreign key to
CARRIER_ID NUMBER
PO_VENDORS
Foreign key to
CARRIER_SITE_ID NUMBER
PO_VENDOR_SITES
Indicates if transactions
should be posted to the
POST_TO_GL NOT NULL VARCHAR2(1)
General Ledger. Y for yes,
N otherwise
Indicates if transactions
affect open receivable
ACCOUNTING_AFFECT_FLAG NOT NULL VARCHAR2(1)
balances. Y for yes, N
otherwise
Electronic Invoice Access
ELECTRONIC_INV_ACCESS_KEY_ID NUMBER(15,0)
Key
WAGON_CODE VARCHAR2(30)
FERRY_CODE VARCHAR2(30)
SRV_EXEC_DATE DATE
LAST_UPDATE_DATE NOT NULL DATE Standard Who Column
Reserved for country-
HCA_GLOBAL_ATTRIBUTE1 VARCHAR2(150)
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE2
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE3
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE4
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE5
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE6
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE7
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE8
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE9
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE10
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE11
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE12
specific functionality
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
154
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE13
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE14
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE15
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE16
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE17
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE18
specific functionality
VARCHAR2(150) Reserved for country-
HCA_GLOBAL_ATTRIBUTE19
specific functionality
HCA_GLOBAL_ATTRIBUTE20 VARCHAR2(150) Reserved for country
FISCAL_DOC_MODEL VARCHAR2(30) Fiscal Document Code
VARCHAR2(30) Buyer Presence
BUYER_PRESENCE_IND
Indicator
VARCHAR2(30) Reporting Payment
PAYMENT_METHOD1
Method 1
NUMBER Reporting Payment
PAYMENT_AMOUNT1
Amount 1
VARCHAR2(30) Reporting Payment
PAYMENT_METHOD2
Method 2
NUMBER Reporting Payment
PAYMENT_AMOUNT2
Amount 2
VARCHAR2(30) Reporting Payment
PAYMENT_METHOD3
Method 3
NUMBER Reporting Payment
PAYMENT_AMOUNT3
Amount 3

CLL_F255_AR_NFFS_REQUEST_V
Selects the information in the CLL_F255_AR_NFFS_REQUEST_V view together with
other columns that are referred to

SELECT
OOH.ORG_ID ,
RCT.CUSTOMER_TRX_ID ,
RCT.TRX_NUMBER ,--NUM_DOCFIS,
RCT.TRX_DATE ,--DT_EMISSAO,
OOH.HEADER_ID ,
OOH.ORDER_TYPE_ID ,--TIPO_PEDIDO,
OOH.ORDER_NUMBER ,--COD_PEDIDO,
OOH.VERSION_NUMBER ,--VERSAO,
OOH.ORDER_SOURCE_ID ,
OOH.ORIG_SYS_DOCUMENT_REF ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
155
OOH.ORDERED_DATE ,--DATA_PEDIDO,
OOH.TRANSACTIONAL_CURR_CODE ,--COD_MOEDA ,
OOL.LINE_ID ,
OOL.LINE_TYPE_ID ,
OOL.LINE_NUMBER ,
OOL.ORDERED_ITEM ,
WDD.DELIVERY_DETAIL_ID ,
WDD.SOURCE_CODE ,
WDD.SOURCE_HEADER_ID ,
WDD.SOURCE_LINE_ID ,
WDD.SOURCE_HEADER_TYPE_ID ,
WDD.SOURCE_HEADER_TYPE_NAME ,
WDD.CUST_PO_NUMBER ,
WDD.CUSTOMER_ID ,
WDD.INVENTORY_ITEM_ID ,
WDD.ITEM_DESCRIPTION ,
WDD.SHIP_FROM_LOCATION_ID ,
WDD.CANCELLED_QUANTITY ,
WDD.REQUESTED_QUANTITY ,
WDD.REQUESTED_QUANTITY_UOM ,
WDD.SHIPPED_QUANTITY ,
WDD.DELIVERED_QUANTITY ,
WDD.MOVE_ORDER_LINE_ID ,
WDD.SUBINVENTORY ,
WDD.DATE_REQUESTED ,
WDD.DATE_SCHEDULED ,
WDD.MASTER_CONTAINER_ITEM_ID ,
WDD.DETAIL_CONTAINER_ITEM_ID ,
WDD.PROJECT_ID ,
WDD.TASK_ID ,
WDD.CREATION_DATE ,
WDD.LAST_UPDATE_DATE ,
WDD.MINIMUM_FILL_PERCENT ,
WDD.MAXIMUM_VOLUME ,
WDD.MAXIMUM_LOAD_WEIGHT ,
WDD.MASTER_SERIAL_NUMBER ,
WDD.CONTAINER_NAME ,
WDD.CONTAINER_TYPE_CODE ,
WDD.CONTAINER_FLAG ,
WDD.UNIT_PRICE ,
WDD.SHIP_TO_SITE_USE_ID ,
WND.DELIVERY_ID ,
WND.NAME ,
WND.PLANNED_FLAG ,
WND.STATUS_CODE ,
WND.FREIGHT_TERMS_CODE ,
WND.FOB_CODE ,
WND.WAYBILL ,
WND.ACCEPTED_DATE ,
WND.REASON_OF_TRANSPORT ,
WND.DESCRIPTION ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
156
WND.GROSS_WEIGHT ,
WND.NET_WEIGHT ,
WND.WEIGHT_UOM_CODE ,
WND.VOLUME ,
WND.VOLUME_UOM_CODE ,
WND.CONFIRM_DATE ,
WND.SHIP_METHOD_CODE ,
WND.DELIVERY_TYPE ,
WND.CURRENCY_CODE ,
WND.ORGANIZATION_ID ,
WND.GLOBAL_ATTRIBUTE10 , --Bug 9973235 NFe
WND.GLOBAL_ATTRIBUTE11 , --Bug 9973235 NFe
OOL.GLOBAL_ATTRIBUTE1 OOL_GLOBAL_ATTRIBUTE1 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE2 OOL_GLOBAL_ATTRIBUTE2 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE3 OOL_GLOBAL_ATTRIBUTE3 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE4 OOL_GLOBAL_ATTRIBUTE4 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE5 OOL_GLOBAL_ATTRIBUTE5 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE6 OOL_GLOBAL_ATTRIBUTE6 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE7 OOL_GLOBAL_ATTRIBUTE7 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE8 OOL_GLOBAL_ATTRIBUTE8 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE9 OOL_GLOBAL_ATTRIBUTE9 , --ENH 11795659
OOL.GLOBAL_ATTRIBUTE10 OOL_GLOBAL_ATTRIBUTE10 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE11 OOL_GLOBAL_ATTRIBUTE11 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE12 OOL_GLOBAL_ATTRIBUTE12 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE13 OOL_GLOBAL_ATTRIBUTE13 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE14 OOL_GLOBAL_ATTRIBUTE14 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE15 OOL_GLOBAL_ATTRIBUTE15 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE16 OOL_GLOBAL_ATTRIBUTE16 , --ENH
11795659 Service Execution Date
OOL.GLOBAL_ATTRIBUTE17 OOL_GLOBAL_ATTRIBUTE17 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE18 OOL_GLOBAL_ATTRIBUTE18 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE19 OOL_GLOBAL_ATTRIBUTE19 , --ENH
11795659
OOL.GLOBAL_ATTRIBUTE20 OOL_GLOBAL_ATTRIBUTE20 --ENH
11795659
FROM RA_CUSTOMER_TRX_ALL RCT,
WSH_NEW_DELIVERIES WND,
WSH_DELIVERY_ASSIGNMENTS WDA,
WSH_DELIVERY_DETAILS WDD,
OE_ORDER_HEADERS_ALL OOH,
OE_ORDER_LINES_ALL OOL
WHERE RCT.INTERFACE_HEADER_CONTEXT = 'ORDER ENTRY'

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
157
AND TO_CHAR(OOH.ORDER_NUMBER) =
RCT.INTERFACE_HEADER_ATTRIBUTE1
AND OOL.HEADER_ID = OOH.HEADER_ID
AND WND.DELIVERY_ID = WDA.DELIVERY_ID
AND WDA.DELIVERY_DETAIL_ID = WDD.DELIVERY_DETAIL_ID
AND WDD.SOURCE_HEADER_ID = OOH.HEADER_ID
AND WDD.SOURCE_LINE_ID = OOL.LINE_ID;

Null /
Column Type of Data Description
Not Null
Operating Unit which
ORG_ID NUMBER performed this
transaction
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Customer Trx Id
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
TRX_DATE NOT NULL DATE Trx Date
Order Header
HEADER_ID NOT NULL NUMBER
Identifier
Order Transaction
ORDER_TYPE_ID NOT NULL NUMBER
Type Identifier
User-visible number of
ORDER_NUMBER NOT NULL NUMBER
the order
VERSION_NUMBER NOT NULL NUMBER Not Used
ORDER_SOURCE_ID NUMBER Source of the order
Original document
ORIG_SYS_DOCUME
VARCHAR2(50) reference for the order
NT_REF
in external system
ORDERED_DATE DATE Ordered Date
TRANSACTIONAL_C
VARCHAR2(15) Currency for the order
URR_CODE
System Generated Line
LINE_ID NOT NULL NUMBER
Identifier
Line Transaction Type
LINE_TYPE_ID NOT NULL NUMBER
Identifier
Line sequence number
LINE_NUMBER NOT NULL NUMBER
within the order
VARCHAR2(200 Stores name of
ORDERED_ITEM
0) Ordered Item
DELIVERY_DETAIL_I Primary Key to
NOT NULL NUMBER
D identify delivery line
SOURCE_CODE NOT NULL VARCHAR2(30) OE/WIP/PO
For example, it can be
SOURCE_HEADER_ID NUMBER
sale order header ID
For example, it can be
SOURCE_LINE_ID NOT NULL NUMBER
sale order header ID
OE, WIP, or PO line
SOURCE_HEADER_T identifier. For
NUMBER
YPE_ID example, it can be sales
order line ID
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
158
SOURCE_HEADER_T
VARCHAR2(240) OE: Order_Type_Id
YPE_NAME
OE:
CUST_PO_NUMBER VARCHAR2(50)
Order_Type_Name
OE: PO Number the
CUSTOMER_ID NUMBER
line belongs to
Foreign Key to
INVENTORY_ITEM_I HZ_CUST_ACCOUN
NUMBER
D TS.CUST_ACCOUNT
_ID
Foreign key to
ITEM_DESCRIPTION VARCHAR2(250)
MTL_SYSTEM_ITEMS
SHIP_FROM_LOCATI
NOT NULL NUMBER Item description
ON_ID
CANCELLED_QUANT Quantity being
NUMBER
ITY cancelled
REQUESTED_QUANTI As ordered by
NOT NULL NUMBER
TY customer
REQUESTED_QUANTI As ordered by
NOT NULL VARCHAR2(3)
TY_UOM customer uom
In
SHIPPED_QUANTITY NUMBER shipping_quantity_U
OM
In
DELIVERED_QUANTI
NUMBER shipping_quantity_uo
TY
m
MOVE_ORDER_LINE_ Move order line
NUMBER
ID identifier
As ordered by
SUBINVENTORY VARCHAR2(10)
customer
Date on which the line
DATE_REQUESTED DATE
is requested
Date on which the line
DATE_SCHEDULED DATE
is scheduled
MASTER_CONTAINE Master container item
NUMBER
R_ITEM_ID identifier
DETAIL_CONTAINER Detail container item
NUMBER
_ITEM_ID identifier
PROJECT_ID NUMBER Project Identifier
TASK_ID NUMBER Task Identifier
CREATION_DATE NOT NULL DATE Standard Who column
LAST_UPDATE_DATE NOT NULL DATE Standard Who column
MINIMUM_FILL_PER Minimum fill
NUMBER
CENT percentage
MAXIMUM_VOLUME NUMBER Mzximum volume
MAXIMUM_LOAD_W Maximum loading
NUMBER
EIGHT weight
MASTER_SERIAL_NU
VARCHAR2(30) Master serial number
MBER
CONTAINER_NAME VARCHAR2(50) Container name
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
159
CONTAINER_TYPE_C
VARCHAR2(30) Container type code
ODE
Y for container N for
CONTAINER_FLAG NOT NULL VARCHAR2(1)
order line
UNIT_PRICE NUMBER Unit price
SHIP_TO_SITE_USE_I Site identifier for ship
NUMBER
D to destination
Primary Key to
DELIVERY_ID NOT NULL NUMBER
identify delivery
Unique Delivery
NAME NOT NULL VARCHAR2(30)
Name
Planned flag (N =
PLANNED_FLAG NOT NULL VARCHAR2(1) unplanned; Y =
planned)
Delivery shipping
STATUS_CODE NOT NULL VARCHAR2(2) status ,e.g., OP for
Open delivery
FREIGHT_TERMS_CO
VARCHAR2(30) Freight Terms Code
DE
FOB_CODE VARCHAR2(30) Freight On Board code
May be the tracking
WAYBILL VARCHAR2(30)
number
Date on which the
ACCEPTED_DATE DATE
goods were accepted
REASON_OF_TRANSP
VARCHAR2(30) Reason of Transport
ORT
External aspect of
DESCRIPTION VARCHAR2(30)
delivery
GROSS_WEIGHT NUMBER Gross Weight
NET_WEIGHT NUMBER Net Weight
Unit of Measure for
WEIGHT_UOM_CODE VARCHAR2(3)
weight
VOLUME NUMBER Volume
VOLUME_UOM_COD Unit of Measure for
VARCHAR2(3)
E volume
Date the delivery was
CONFIRM_DATE DATE
confirmed
SHIP_METHOD_COD
VARCHAR2(30) Shipping Method
E
Type of delivery -
DELIVERY_TYPE NOT NULL VARCHAR2(30) STANDARD,
CONSOLIDATED
Currency Code for
CURRENCY_CODE VARCHAR2(15)
COD Amount
ORGANIZATION_ID NUMBER Organization identifier
GLOBAL_ATTRIBUTE Reserved for country-
VARCHAR2(150)
10 specific functionality
GLOBAL_ATTRIBUTE Reserved for country-
VARCHAR2(150)
11 specific functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
160
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE1 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE2 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE3 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE4 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE5 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE6 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE7 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE8 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE9 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE10 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE11 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE12 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE13 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE14 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE15 specific functionality
Reserved for country-
OOL_GLOBAL_ATTRI
VARCHAR2(240) specific functionality.
BUTE16
Service Execution Date
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE17 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE18 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE19 specific functionality
OOL_GLOBAL_ATTRI Reserved for country-
VARCHAR2(240)
BUTE20 specific functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
161
CLL_F255_AR_RECEIVABLES_V
Selects the information in the CLL_F255_AR_RECEIVABLES_V view together with other
columns that are referred to

SELECT
ara.org_id ,
ara.receivable_application_id ,
nfs.trx_number , --num_docfis
nfs.series , --serie
nfs.code_document , --cod_docto
acr.pay_from_customer customer_id ,
acr.customer_site_use_id , --customer_site_use_id
acr.receipt_number , --num_doc_receb
acr.type , --tp_receb
acr.status status_rec , --status_receb
acr.currency_code , --moeda_receb
acr.customer_bank_branch_id bank_branch_id , --id_agencia
acr.customer_bank_account_id bank_account_id , --id_bco_cta
acr.remittance_bank_account_id , --id_cta_remessa_bco
ara.code_combination_id , --id_cta
ara.amount_applied , --valor_aplicado,
acr.amount , --vlr_recebido
ara.gl_date , --dt_movto,
ara.gl_posted_date , --dt_postado,
acr.receipt_date , --dt_receb,
nfs.trx_date , --dt_emissao
nfs.term_due_date , --dt_vencto,
ara.apply_date , --dt_aplicado,
ara.application_type , --tp_aplicado,
ara.earned_discount_taken , --vlr_desconto,
ara.set_of_books_id ,
ara.display ,
acr.exchange_rate ,
ara.status ,
nvl(arp.terms_sequence_number,
ara.payment_schedule_id) terms_sequence_number , --nr_parcela
ara.cash_receipt_id ,
ara.applied_customer_trx_id ,
ara.applied_customer_trx_line_id ,
ara.applied_payment_schedule_id ,
ara.customer_trx_id ,
ara.cash_receipt_history_id ,
ara.global_attribute1 ara_global_attribute1 ,
ara.global_attribute2 ara_global_attribute2 ,
ara.global_attribute3 ara_global_attribute3 ,
ara.global_attribute4 ara_global_attribute4 ,
ara.global_attribute5 ara_global_attribute5 ,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
162
ara.global_attribute6 ara_global_attribute6 ,
ara.global_attribute7 ara_global_attribute7 ,
ara.global_attribute8 ara_global_attribute8 ,
ara.global_attribute9 ara_global_attribute9 ,
ara.global_attribute10 ara_global_attribute10 ,
ara.global_attribute11 ara_global_attribute11 ,
ara.global_attribute12 ara_global_attribute12 ,
ara.global_attribute13 ara_global_attribute13 ,
ara.global_attribute14 ara_global_attribute14 ,
ara.global_attribute15 ara_global_attribute15 ,
ara.global_attribute16 ara_global_attribute16 ,
ara.global_attribute17 ara_global_attribute17 ,
ara.global_attribute18 ara_global_attribute18 ,
ara.global_attribute19 ara_global_attribute19 ,
ara.global_attribute20 ara_global_attribute20 ,
ara.global_attribute_category ara_global_attribute_category ,
aps.receipt_method_id ,
aps.name receipt_method , --metodo_receb
arc.receipt_class_id ,
arc.name receipt_class , --classe_receb
ara.receivables_trx_id ,
arp.amount_due_original amount_original , --vlr_original
arp.amount_due_remaining amount_remaining , --vlr_restante
arp.gl_date_closed date_closed , --dt_fech_contabil
arp.due_date due_date , --dt_vencto_docto
acr.attribute1 acr_attribute1 ,
acr.attribute2 acr_attribute2 ,
acr.attribute3 acr_attribute3 ,
acr.attribute4 acr_attribute4 ,
acr.attribute5 acr_attribute5 ,
acr.attribute6 acr_attribute6 ,
acr.attribute7 acr_attribute7 ,
acr.attribute8 acr_attribute8 ,
acr.attribute9 acr_attribute9 ,
acr.attribute10 acr_attribute10 ,
ara.reversal_gl_date , --bug 9710872
ara.payment_schedule_id --bug 9710872
--
FROM
ar_receivable_applications_all ara,
cll_f255_ar_invoices_v nfs,
ar_receipt_classes arc,
ar_receipt_methods aps,
ar_payment_schedules_all arp,
ar_cash_receipts_all acr
--
WHERE nfs.customer_trx_id = ara.applied_customer_trx_id
AND nfs.org_id = ara.org_id
AND arp.payment_schedule_id = ara.payment_schedule_id
AND arc.receipt_class_id = aps.receipt_class_id
AND aps.receipt_method_id = acr.receipt_method_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
163
AND ara.cash_receipt_id = acr.cash_receipt_id
AND acr.type = 'CASH' ;

Null /
Column Type of Data Description
Not Null
Operating unit
ORG_ID NUMBER(15,0)
identifier
Internal identifier of
the receivable
RECEIVABLE_APPLIC
NUMBER(15,0) application record and
ATION_ID
primary key for this
table
TRX_NUMBER VARCHAR2(20) Trx Number
Reserved For
SERIES VARCHAR2(3) Globalization
Functionality
Reserved For
CODE_DOCUMENT VARCHAR2(150) Globalization
Functionality
CUSTOMER_ID NUMBER(15,0) Customer Id
CUSTOMER_SITE_US
NUMBER(15,0) Customer Site Use Id
E_ID
RECEIPT_NUMBER VARCHAR2(30) Receipt Number
TYPE VARCHAR2(20) Type
STATUS VARCHAR2(30) Status
CURRENCY_CODE VARCHAR2(15) Currency Code
BANK_BRANCH_ID NUMBER(15,0) Bank Branch Id
BANK_ACCOUNT_ID NUMBER(15,0) Bank Account Id
REMITTANCE_BANK Remittance Bank
NUMBER(15,0)
_ACCOUNT_ID Account Id
General Ledger
account code
CODE_COMBINATIO combination that will
NUMBER(15,0)
N_ID be debited or credited
for this application
row.
For same currency
applications, the total
amount of the
application in the
currency of the receipt
and transaction. For
AMOUNT_APPLIED NUMBER
cross currency
applications, the total
amount of the
application in the
currency of the
transaction
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
164
AMOUNT NUMBER Amount
The General Ledger
accounting date for the
GL_DATE DATE
accounting entry for
this application
Date the application
GL_POSTED_DATE DATE was posted to General
Ledger
RECEIPT_DATE DATE Date
TRX_DATE DATE Date
TERM_DUE_DATE DATE Date
Date the application
APPLY_DATE DATE
was applied
Indicates whether the
application is a receipt
application or credit
memo application.
APPLICATION_TYPE VARCHAR2(20) Value ¿CASH¿
indicates receipt
application and ¿CM¿
indicates credit memo
application
Amount of earned
EARNED_DISCOUNT discount taken
NUMBER
_TAKEN towards the
application
Internal identifier of
the ledger to which
SET_OF_BOOKS_ID NUMBER(15,0) accounting entry for
this application will be
posted
Y or N flag to indicate
DISPLAY VARCHAR2(1) whether this is the
latest application
EXCHANGE_RATE NUMBER Exchange Rate
STATUS_REC VARCHAR2(30) Status Rec
The sequence number
given to each
installment record.
Multiple installment
records are created for
a receivables
TERMS_SEQUENCE_
NUMBER transaction when split
NUMBER
payment terms are
used. For each
transaction the
sequence number
starts with 1 and
incremented by 1

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
165
Internal identifier of
CASH_RECEIPT_ID NUMBER(15,0) the cash receipt being
applied
Internal identifier the
debit item or credit
APPLIED_CUSTOMER
NUMBER(15,0) memo to which the
_TRX_ID
receipt or credit memo
is applied
The line number of the
debit item or credit
APPLIED_CUSTOMER
NUMBER(15,0) memo to which the
_TRX_LINE_ID
receipt or credit memo
is applied
Identifies the payment
schedule of the debit
APPLIED_PAYMENT_
NUMBER(15,0) item or credit memo to
SCHEDULE_ID
which the receipt or
credit memo is applied
Internal identifier the
debit item or credit
CUSTOMER_TRX_ID NUMBER(15,0) memo to which the
receipt or credit memo
is applied
Foreign key to the
AR_CASH_RECEIPT_
HISTORY table
CASH_RECEIPT_HIST identifying the row
NUMBER(15,0)
ORY_ID that was current when
the receivable
application was
created
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE1 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE2 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE3 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE4 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE5 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE6 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE7 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE8 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE9 specific functionality

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
166
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE10 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE11 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE12 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE13 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE14 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE15 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE16 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE17 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE18 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE19 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(150)
BUTE20 specific functionality
ARA_GLOBAL_ATTRI Reserved for country-
VARCHAR2(30)
BUTE_CATEGORY specific functionality
RECEIPT_METHOD_I Identifier of the receipt
NUMBER(15,0)
D method
Name of the receipt
RECEIPT_METHOD VARCHAR2(30)
method
Identifier of receipt
RECEIPT_CLASS_ID NUMBER(15,0)
class
RECEIPT_CLASS VARCHAR2(30) Name of receipt class
RECEIVABLES_TRX_I Internal identifier of
NUMBER(15,0)
D receivable transaction
The original amount
AMOUNT_ORIGINAL NUMBER
due of the installment
The current
outstanding amount of
the installment. This
column is updated
when: A receipt is
AMOUNT_REMAININ applied to the
NUMBER
G installment A credit
memo is applied to the
installment An
adjustment is
performed for the
receivables transaction
The accounting date
DATE_CLOSED DATE when the schedule was
closed. If the schedule
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
167
is not closed, this
column is populated
with largest date
(V7db supports 31-
DEC-4712), to improve
the aging report
performance
Due date of the
DUE_DATE DATE
installment
Descriptive flexfield
ACR_ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ACR_ATTRIBUTE10 VARCHAR2(150)
segment
General Ledger
account date for the
records that have been
REVERSAL_GL_DATE DATE
reversed and for the
reversing record as
well.
Internal identifier of
PAYMENT_SCHEDUL the payment schedule
NUMBER(15,0)
E_ID of the credit memo that
is being applied.

CLL_F255_AR_TOTAL_INV_TAXES_V
Selects the information in the CLL_F255_AR_TOTAL_INV_TAXES_V view together with
other columns that are referred to

SELECT rac.org_id,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
168
rac.trx_number,
rac.trx_date,
ractl.customer_trx_id,
ractl.link_to_cust_trx_line_id,
tax.tax_category,
arvt.vat_tax_id,
-- SUM(DECODE(arvt.global_attribute2,'Y',TO_NUMBER(REPLACE(zl.global_attribute11,
',','.')),0)) value_base,
--
SUM(DECODE(arvt.global_attribute2,'Y',TO_NUMBER(REPLACE(zl.global_attribute12,',','.')
),0)) tax_reduction,
--
SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(zl.global_att
ribute11),0))) value_base, --BUG 16687282
--
SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(zl.global_att
ribute12),0))) tax_reduction, --BUG 16687282

SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(REPLACE(zl.gl
obal_attribute11, ',','.')),0))) value_base, --BUG 19357166

SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(REPLACE(zl.gl
obal_attribute12, ',','.')),0))) tax_reduction, --BUG 19357166
ABS(zl.tax_rate) tax_rate,
SUM(zl.tax_amt) tax_amount,
ractl.attribute1,
ractl.attribute2,
ractl.attribute3,
ractl.attribute4,
ractl.attribute5,
ractl.attribute6,
ractl.attribute7,
ractl.attribute8,
ractl.attribute9,
ractl.attribute10,
ractl.attribute11,
ractl.attribute12,
ractl.attribute13,
ractl.attribute14,
ractl.attribute15,
ractl.global_attribute1,
ractl.global_attribute2,
ractl.global_attribute3,
ractl.global_attribute4,
ractl.global_attribute5,
ractl.global_attribute6,
ractl.global_attribute7,
ractl.global_attribute8,
ractl.global_attribute9,
ractl.global_attribute10,
ractl.global_attribute11,
ractl.global_attribute12,
ractl.global_attribute13,
ractl.global_attribute14,
ractl.global_attribute15,
ractl.global_attribute16,
ractl.global_attribute17,
ractl.global_attribute18,
ractl.global_attribute19,
ractl.global_attribute20,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
169
arvt.global_attribute1 arvt_global_attribute1,
arvt.global_attribute2 arvt_global_attribute2,
arvt.global_attribute3 arvt_global_attribute3,
arvt.global_attribute4 arvt_global_attribute4,
arvt.global_attribute5 arvt_global_attribute5,
arvt.global_attribute6 arvt_global_attribute6,
arvt.global_attribute7 arvt_global_attribute7,
arvt.global_attribute8 arvt_global_attribute8,
-- arvt.global_attribute8 arvt_global_attribute9, --Bug 12766463
-- arvt.global_attribute8 arvt_global_attribute10, --TAX_NAME --ENH 11795659 --
Bug 12766463
zl.tax_base_modifier_rate,
SUM(zl.taxable_amt) taxable_amt, --BUG 9734325
arvt.global_attribute11 arvt_global_attribute11, --ENH 11795659
arvt.global_attribute12 arvt_global_attribute12, --ENH 11795659
arvt.global_attribute13 arvt_global_attribute13, --ENH 11795659
arvt.global_attribute14 arvt_global_attribute14, --ENH 11795659
arvt.global_attribute15 arvt_global_attribute15, --ENH 11795659
arvt.global_attribute16 arvt_global_attribute16, --ENH 11795659
arvt.global_attribute17 arvt_global_attribute17, --ENH 11795659
arvt.global_attribute18 arvt_global_attribute18, --ENH 11795659
arvt.global_attribute19 arvt_global_attribute19, --ENH 11795659
arvt.global_attribute20 arvt_global_attribute20, --ENH 11795659
arvt.global_attribute9 arvt_global_attribute9, --Bug 12766463
arvt.global_attribute10 arvt_global_attribute10, --Bug 12766463
zl.legal_justification_text1, --ENH 14571068
zl.legal_justification_text2, --ENH 14571068
zl.legal_justification_text3, --ENH 14571068
zl.event_class_code, --ENH 22179527
zl.tax_regime_code, --ENH 22179527
zl.tax --ENH 22179527
FROM ra_customer_trx_all rac,
ar_vat_tax_all arvt,
jl_zz_ar_tx_categ_all tax,
zx_lines zl,
ra_customer_trx_lines_all ractl
WHERE tax.tax_category_id = arvt.global_attribute1
AND tax.org_id = arvt.org_id
AND arvt.vat_tax_id = ractl.vat_tax_id
AND ractl.line_type = 'TAX'
AND ractl.customer_trx_id = rac.customer_trx_id
AND ractl.org_id = rac.org_id
AND rac.complete_flag = 'Y'
AND rac.customer_trx_id = zl.trx_id
AND ractl.vat_tax_id = zl.tax_rate_id
AND ractl.link_to_cust_trx_line_id = zl.trx_line_id --BUG 10301755
--
AND NOT EXISTS (SELECT 1
FROM cll_f255_ar_invoice_ato_line_v
WHERE customer_trx_line_id = ractl.link_to_cust_trx_line_id
AND customer_trx_id = ractl.customer_trx_id
)
GROUP BY rac.org_id,
rac.trx_number,
rac.trx_date,
ractl.customer_trx_id,
ractl.link_to_cust_trx_line_id,
tax.tax_category,
arvt.vat_tax_id,
ABS(zl.tax_rate),

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
170
ractl.attribute1,
ractl.attribute2,
ractl.attribute3,
ractl.attribute4,
ractl.attribute5,
ractl.attribute6,
ractl.attribute7,
ractl.attribute8,
ractl.attribute9,
ractl.attribute10,
ractl.attribute11,
ractl.attribute12,
ractl.attribute13,
ractl.attribute14,
ractl.attribute15,
ractl.global_attribute1,
ractl.global_attribute2,
ractl.global_attribute3,
ractl.global_attribute4,
ractl.global_attribute5,
ractl.global_attribute6,
ractl.global_attribute7,
ractl.global_attribute8,
ractl.global_attribute9,
ractl.global_attribute10,
ractl.global_attribute11,
ractl.global_attribute12,
ractl.global_attribute13,
ractl.global_attribute14,
ractl.global_attribute15,
ractl.global_attribute16,
ractl.global_attribute17,
ractl.global_attribute18,
ractl.global_attribute19,
ractl.global_attribute20,
arvt.global_attribute1,
arvt.global_attribute2,
arvt.global_attribute3,
arvt.global_attribute4,
arvt.global_attribute5,
arvt.global_attribute6,
arvt.global_attribute7,
arvt.global_attribute8,
-- arvt.global_attribute9, --Bug 12766463
-- arvt.global_attribute10, --Bug 12766463
zl.tax_base_modifier_rate,
arvt.global_attribute11, --ENH 11795659
arvt.global_attribute12, --ENH 11795659
arvt.global_attribute13, --ENH 11795659
arvt.global_attribute14, --ENH 11795659
arvt.global_attribute15, --ENH 11795659
arvt.global_attribute16, --ENH 11795659
arvt.global_attribute17, --ENH 11795659
arvt.global_attribute18, --ENH 11795659
arvt.global_attribute19, --ENH 11795659
arvt.global_attribute20, --ENH 11795659
arvt.global_attribute9, --Bug 12766463
arvt.global_attribute10, --Bug 12766463
zl.legal_justification_text1, --ENH 14571068
zl.legal_justification_text2, --ENH 14571068

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
171
zl.legal_justification_text3, --ENH 14571068
zl.event_class_code, --ENH 22179527
zl.tax_regime_code, --ENH 22179527
zl.tax --ENH 22179527
UNION ALL
SELECT rac.org_id,
rac.trx_number,
rac.trx_date,
ractl.customer_trx_id,
ractl.ato_customer_trx_line_id link_to_cust_trx_line_id,
tax.tax_category,
arvt.vat_tax_id,
-- SUM(DECODE(arvt.global_attribute2,'Y',TO_NUMBER(REPLACE(zl.global_attribute11,
',','.')),0)) value_base,
--
SUM(DECODE(arvt.global_attribute2,'Y',TO_NUMBER(REPLACE(zl.global_attribute12,',','.')
),0)) tax_reduction,

SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(zl.global_att
ribute11),0))) value_base, --BUG 16687282

SUM(DECODE(arvt.global_attribute2,'Y',NVL(fnd_number.canonical_to_number(zl.global_att
ribute12),0))) tax_reduction, --BUG 16687282
ABS(zl.tax_rate) tax_rate,
SUM(zl.tax_amt) tax_amount,
ractl.attribute1,
ractl.attribute2,
ractl.attribute3,
ractl.attribute4,
ractl.attribute5,
ractl.attribute6,
ractl.attribute7,
ractl.attribute8,
ractl.attribute9,
ractl.attribute10,
ractl.attribute11,
ractl.attribute12,
ractl.attribute13,
ractl.attribute14,
ractl.attribute15,
ractl.global_attribute1,
ractl.global_attribute2,
ractl.global_attribute3,
ractl.global_attribute4,
ractl.global_attribute5,
ractl.global_attribute6,
ractl.global_attribute7,
ractl.global_attribute8,
ractl.global_attribute9,
ractl.global_attribute10,
ractl.global_attribute11,
ractl.global_attribute12,
ractl.global_attribute13,
ractl.global_attribute14,
ractl.global_attribute15,
ractl.global_attribute16,
ractl.global_attribute17,
ractl.global_attribute18,
ractl.global_attribute19,
ractl.global_attribute20,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
172
arvt.global_attribute1 arvt_global_attribute1,
arvt.global_attribute2 arvt_global_attribute2,
arvt.global_attribute3 arvt_global_attribute3,
arvt.global_attribute4 arvt_global_attribute4,
arvt.global_attribute5 arvt_global_attribute5,
arvt.global_attribute6 arvt_global_attribute6,
arvt.global_attribute7 arvt_global_attribute7,
arvt.global_attribute8 arvt_global_attribute8,
-- arvt.global_attribute8 arvt_global_attribute9, --Bug 12766463
-- arvt.global_attribute8 arvt_global_attribute10, --TAX_NAME --ENH 11795659 --
Bug 12766463
zl.tax_base_modifier_rate,
SUM(zl.taxable_amt) taxable_amt, --BUG 9734325
arvt.global_attribute11 arvt_global_attribute11, --ENH 11795659
arvt.global_attribute12 arvt_global_attribute12, --ENH 11795659
arvt.global_attribute13 arvt_global_attribute13, --ENH 11795659
arvt.global_attribute14 arvt_global_attribute14, --ENH 11795659
arvt.global_attribute15 arvt_global_attribute15, --ENH 11795659
arvt.global_attribute16 arvt_global_attribute16, --ENH 11795659
arvt.global_attribute17 arvt_global_attribute17, --ENH 11795659
arvt.global_attribute18 arvt_global_attribute18, --ENH 11795659
arvt.global_attribute19 arvt_global_attribute19, --ENH 11795659
arvt.global_attribute20 arvt_global_attribute20, --ENH 11795659
arvt.global_attribute9 arvt_global_attribute9, --Bug 12766463
arvt.global_attribute10 arvt_global_attribute10, --Bug 12766463
zl.legal_justification_text1, --ENH 14571068
zl.legal_justification_text2, --ENH 14571068
zl.legal_justification_text3, --ENH 14571068
zl.event_class_code, --ENH 22179527
zl.tax_regime_code, --ENH 22179527
zl.tax --ENH 22179527
FROM ra_customer_trx_all rac,
ar_vat_tax_all arvt,
jl_zz_ar_tx_categ_all tax,
zx_lines zl,
cll_f255_ar_invoice_ato_tax_v ractl
WHERE tax.tax_category_id = arvt.global_attribute1
AND tax.org_id = arvt.org_id
AND arvt.vat_tax_id = ractl.vat_tax_id
AND ractl.line_type = 'TAX'
AND ractl.customer_trx_id = rac.customer_trx_id
AND ractl.org_id = rac.org_id
AND rac.complete_flag = 'Y'
AND rac.customer_trx_id = zl.trx_id
AND ractl.vat_tax_id = zl.tax_rate_id
AND ractl.link_to_cust_trx_line_id = zl.trx_line_id
GROUP BY rac.org_id,
rac.trx_number,
rac.trx_date,
ractl.customer_trx_id,
ractl.ato_customer_trx_line_id,
tax.tax_category,
arvt.vat_tax_id,
ABS(zl.tax_rate),
ractl.attribute1,
ractl.attribute2,
ractl.attribute3,
ractl.attribute4,
ractl.attribute5,
ractl.attribute6,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
173
ractl.attribute7,
ractl.attribute8,
ractl.attribute9,
ractl.attribute10,
ractl.attribute11,
ractl.attribute12,
ractl.attribute13,
ractl.attribute14,
ractl.attribute15,
ractl.global_attribute1,
ractl.global_attribute2,
ractl.global_attribute3,
ractl.global_attribute4,
ractl.global_attribute5,
ractl.global_attribute6,
ractl.global_attribute7,
ractl.global_attribute8,
ractl.global_attribute9,
ractl.global_attribute10,
ractl.global_attribute11,
ractl.global_attribute12,
ractl.global_attribute13,
ractl.global_attribute14,
ractl.global_attribute15,
ractl.global_attribute16,
ractl.global_attribute17,
ractl.global_attribute18,
ractl.global_attribute19,
ractl.global_attribute20,
arvt.global_attribute1,
arvt.global_attribute2,
arvt.global_attribute3,
arvt.global_attribute4,
arvt.global_attribute5,
arvt.global_attribute6,
arvt.global_attribute7,
arvt.global_attribute8,
-- arvt.global_attribute9, --Bug 12766463
-- arvt.global_attribute10, --Bug 12766463
zl.tax_base_modifier_rate,
arvt.global_attribute11, --ENH 11795659
arvt.global_attribute12, --ENH 11795659
arvt.global_attribute13, --ENH 11795659
arvt.global_attribute14, --ENH 11795659
arvt.global_attribute15, --ENH 11795659
arvt.global_attribute16, --ENH 11795659
arvt.global_attribute17, --ENH 11795659
arvt.global_attribute18, --ENH 11795659
arvt.global_attribute19, --ENH 11795659
arvt.global_attribute20, --ENH 11795659
arvt.global_attribute9, --Bug 12766463
arvt.global_attribute10, --Bug 12766463
zl.legal_justification_text1, --ENH 14571068
zl.legal_justification_text2, --ENH 14571068
zl.legal_justification_text3, --ENH 14571068
zl.event_class_code, --ENH 22179527
zl.tax_regime_code, --ENH 22179527
zl.tax --ENH 22179527

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
174
Null /
Column Type of Data Description
Not Null
ORG_ID NUMBER(15,0) Organization identifier
TRX_NUMBER NOT NULL VARCHAR2(20) Trx Number
TRX_DATE NOT NULL DATE Trx Date
CUSTOMER_TRX_ID NOT NULL NUMBER(15,0) Customer Trx Id
LINK_TO_CUST_TRX_ Link To Cust Trx Line
NUMBER(15,0)
LINE_ID Id
TAX_CATEGORY NOT NULL VARCHAR2(30) Tax Category
VAT_TAX_ID NOT NULL NUMBER(15,0) Val Tax Id
VALUE_BASE NUMBER Value Base
TAX_REDUCTION NUMBER Tax Reduction
TAX_RATE NUMBER Tax Rate
TAX_AMOUNT NUMBER Tax Amount
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment.
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment.
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment.
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment.
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
1
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
2
defining column.
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
175
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
3
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
4
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
5
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
6
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
7
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
8
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
9
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
10
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
11
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
12
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
13
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
14
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
15
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
16
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
17
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
18
defining column.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
176
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
19
defining column.
Global descriptive
GLOBAL_ATTRIBUTE
VARCHAR2(150) flexfield structure
20
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE1
defining column
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE2
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE3
defining column
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE4
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE5
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE6
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE7
defining column
Global descriptive
ARVT_GLOBAL_ATTR flexfield structure
VARCHAR2(150)
IBUTE10 defining column.
TAX NAME
Modifier rate used for
TAX_BASE_MODIFIER
NUMBER taxable basis
_RATE
determination.
Amount the Taxable
TAXABLE_AMT NUMBER amount in transaction
currency.
Global descriptive
flexfield structure
ARVT_GLOBAL_ATTR
VARCHAR2(150) defining column.
IBUTE11
RETENTION
INDICADOR
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE12
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE13
defining column.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
177
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE14
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE15
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE16
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE17
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE18
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE19
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE20
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE9
defining column.
Global descriptive
ARVT_GLOBAL_ATTR
VARCHAR2(150) flexfield structure
IBUTE10
defining column.
LEGAL_JUSTIFICATIO VARCHAR2(200 Legal justification text
N_TEXT1 0) 1 - for migration only
LEGAL_JUSTIFICATIO VARCHAR2(200 Legal justification text
N_TEXT2 0) 2 - for migration only
LEGAL_JUSTIFICATIO VARCHAR2(200 Legal justification text
N_TEXT3 0) 3 - for migration only
Event class code of the
EVENT_CLASS_CODE VARCHAR2(30)
transaction
TAX_REGIME_CODE VARCHAR2(30) Tax regime code
TAX VARCHAR2(30) Tax

CLL_F255_BOM_BILL_OF_MTLS_V
Selects the information in the CLL_F255_BOM_BILL_OF_MTLS_V view together with
other columns that are referred to

SELECT assembly_item_id
, organization_id
, alternate_bom_designator
, last_update_date
, last_updated_by
, creation_date
, created_by
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
178
, last_update_login
, common_assembly_item_id
, specific_assembly_comment
, pending_from_ecn
, attribute_category
, attribute1
, attribute2
, attribute3
, attribute4
, attribute5
, attribute6
, attribute7
, attribute8
, attribute9
, attribute10
, attribute11
, attribute12
, attribute13
, attribute14
, attribute15
, assembly_type
, common_bill_sequence_id
, bill_sequence_id
, request_id
, program_application_id
, program_id
, program_update_date
, common_organization_id
, next_explode_date
, project_id
, task_id
, original_system_reference
, structure_type_id
, implementation_date
, obj_name
, pk1_value
, pk2_value
, pk3_value
, pk4_value
, pk5_value
, effectivity_control
, is_preferred
, source_bill_sequence_id
FROM bom_bill_of_materials;

Null /
Column Type of Data Description
Not Null
Inventory item
ASSEMBLY_ITEM_ID NUMBER identifier of

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
179
manufactured
assembly
Organization
ORGANIZATION_ID NOT NULL NUMBER identifier
ALTERNATE_BOM_ Alternate designator
DESIGNATOR VARCHAR2(10) code
LAST_UPDATE_DAT Standard Who
E NOT NULL DATE column
Standard Who
LAST_UPDATED_BY NOT NULL NUMBER column
Standard Who
CREATION_DATE NOT NULL DATE column
Standard Who
CREATED_BY NOT NULL NUMBER column
LAST_UPDATE_LOG Standard Who
IN NUMBER column
Assembly item
COMMON_ASSEMB identifier of common
LY_ITEM_ID NUMBER bill
SPECIFIC_ASSEMBL Specific bill of
Y_COMMENT VARCHAR2(240) material comment
Change notice that
PENDING_FROM_EC created this bill of
N VARCHAR2(10) material
Descriptive flexfield
ATTRIBUTE_CATEG structure defining
ORY VARCHAR2(30) column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150) segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
180
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150) segment
Assembly type:
1=Manufacturing bill
ASSEMBLY_TYPE NOT NULL NUMBER 2=Engineering bill
COMMON_BILL_SE Identifier of common
QUENCE_ID NOT NULL NUMBER bill
Bill of material
BILL_SEQUENCE_ID NOT NULL NUMBER unique identifier
Concurrent Who
REQUEST_ID NUMBER column
PROGRAM_APPLIC Concurrent Who
ATION_ID NUMBER column
Concurrent Who
PROGRAM_ID NUMBER column
PROGRAM_UPDATE Concurrent Who
_DATE DATE column
Organization
COMMON_ORGANI identifier of common
ZATION_ID NUMBER bill
Next date when pre-
NEXT_EXPLODE_DA explosion will be
TE DATE refreshed
Project Identifier for
Project
PROJECT_ID NUMBER Manufacturing
Task identifier for
Project
TASK_ID NUMBER Manufacturing
Original system that
data for the current
ORIGINAL_SYSTEM_ record has come
REFERENCE VARCHAR2(50) from.
STRUCTURE_TYPE_I Structure Type
D NUMBER Identifier

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
181
The date on which
IMPLEMENTATION_ the impact is
DATE DATE implemented
OBJ_NAME VARCHAR2(30) Object Name
PK1_VALUE VARCHAR2(240) Primary Key 1
PK2_VALUE VARCHAR2(240) Primary Key 2
PK3_VALUE VARCHAR2(240) Primary Key 3
PK4_VALUE VARCHAR2(240) Primary Key 4
PK5_VALUE VARCHAR2(240) Primary Key 5
Effectivity control
code. Indicates if the
item is under Date
Effectivity or
EFFECTIVITY_CONT Model/Unit Number
ROL NUMBER Effectivity control.
Determines whether
this structure is
IS_PREFERRED VARCHAR2(1) preferred or not.
SOURCE_BILL_SEQU Source Bill Sequence
ENCE_ID NUMBER Id

CLL_F255_BOM_INV_COMPONENTS_V
Selects the information in the CLL_F255_BOM_INV_COMPONENTS_V view together
with other columns that are referred to

SELECT operation_seq_num
, component_item_id
, last_update_date
, last_updated_by
, creation_date
, created_by
, last_update_login
, item_num
, basis_type
, component_quantity
, component_yield_factor
, component_remarks
, effectivity_date
, change_notice
, implementation_date
, disable_date
, attribute_category
, attribute1
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
182
, attribute2
, attribute3
, attribute4
, attribute5
, attribute6
, attribute7
, attribute9
, attribute10
, attribute11
, attribute12
, attribute13
, attribute14
, attribute15
, planning_factor
, quantity_related
, so_basis
, optional
, mutually_exclusive_options
, include_in_cost_rollup
, check_atp
, shipping_allowed
, required_to_ship
, required_for_revenue
, include_on_ship_docs
, include_on_bill_docs
, low_quantity
, high_quantity
, acd_type
, old_component_sequence_id
, component_sequence_id
, bill_sequence_id
, request_id
, program_application_id
, program_id
, program_update_date
, wip_supply_type
, pick_components
, supply_subinventory
, supply_locator_id
, operation_lead_time_percent
, revised_item_sequence_id
, cost_factor
, bom_item_type
, from_end_item_unit_number
, to_end_item_unit_number
, component_item_revision_id
, original_system_reference
, eco_for_production
, delete_group_name
, dg_description
, enforce_int_requirements
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
183
, optional_on_model
, parent_bill_seq_id
, model_comp_seq_id
, plan_level
, auto_request_material
, suggested_vendor_name
, vendor_id
, unit_price
, obj_name
, pk1_value
, pk2_value
, pk3_value
, pk4_value
, pk5_value
, from_end_item_rev_id
, to_end_item_rev_id
, overlapping_changes
, from_object_revision_id
, from_minor_revision_id
, to_object_revision_id
, to_minor_revision_id
, from_end_item_minor_rev_id
, to_end_item_minor_rev_id
, component_minor_revision_id
, from_bill_revision_id
, to_bill_revision_id
, from_structure_revision_code
, to_structure_revision_code
, from_end_item_strc_rev_id
, to_end_item_strc_rev_id
, common_component_sequence_id
FROM bom_inventory_components;

Null /
Column Type of Data Description
Not Null
OPERATION_SEQ_N Operation sequence
UM NOT NULL NUMBER number
COMPONENT_ITEM_ Component item
ID NUMBER identifier
Standard Who
LAST_UPDATE_DATE NOT NULL DATE column
Standard Who
LAST_UPDATED_BY NOT NULL NUMBER column
Standard Who
CREATION_DATE NOT NULL DATE column
Standard Who
CREATED_BY NOT NULL NUMBER column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
184
LAST_UPDATE_LOGI Standard Who
N NUMBER column
Item sequence
within bill of
ITEM_NUM NUMBER material structure
BASIS_TYPE NUMBER Basis type identifier
Quantity of
COMPONENT_QUAN component in bill of
TITY NOT NULL NUMBER material
Factor used to
multiply component
quantity with to
COMPONENT_YIELD obtain required
_FACTOR NOT NULL NUMBER component quantity
COMPONENT_REMA
RKS VARCHAR2(240) Component remarks
EFFECTIVITY_DATE NOT NULL DATE Effective date
Engineering change
CHANGE_NOTICE VARCHAR2(10) order number
Date on which
engineering change
IMPLEMENTATION_ order was
DATE DATE implemented
DISABLE_DATE DATE Disable date
Descriptive flexfield
ATTRIBUTE_CATEGO structure defining
RY VARCHAR2(30) column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150) segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
185
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150) segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150) segment
Factor used to
multiply component
quantity with to
obtain planning
PLANNING_FACTOR NOT NULL NUMBER quantity
Identifier to indicate
if this component
has quantity related
QUANTITY_RELATE reference
D NOT NULL NUMBER designators
Quantity basis used
by Oracle Order
Management to
determine how
many units of
component to put
SO_BASIS NUMBER on an order
Flag indicating if
component is
OPTIONAL NUMBER optional in bill
Flag indicating if
one or more
children of
component can be
MUTUALLY_EXCLUS picked when taking
IVE_OPTIONS NUMBER an order
Flag indicating if
this component is to
INCLUDE_IN_COST_ be used when
ROLLUP NOT NULL NUMBER rolling up costs
Flag indicating if
ATP check is
CHECK_ATP NOT NULL NUMBER required

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
186
Flag indicating if
SHIPPING_ALLOWE component is
D NUMBER allowed to ship
Flag indicating if
component is
REQUIRED_TO_SHIP NUMBER required to ship
Flag indicating if
REQUIRED_FOR_REV component is
ENUE NUMBER required for revenue
Flag indicating if
component is
INCLUDE_ON_SHIP_ displayed on
DOCS NUMBER shipping documents
INCLUDE_ON_BILL_
DOCS NUMBER (not currently used)
Minimum quantity
LOW_QUANTITY NUMBER allowed on an order
Maximum quantity
HIGH_QUANTITY NUMBER allowed on an order
Add, change, or
disable code for
component on an
engineering change
ACD_TYPE NUMBER order
Identifier of original
OLD_COMPONENT_S component row an
EQUENCE_ID NUMBER ECO effects
COMPONENT_SEQU Component unique
ENCE_ID NOT NULL NUMBER identifier
Bill of material
BILL_SEQUENCE_ID NOT NULL NUMBER unique identifier
Concurrent Who
REQUEST_ID NUMBER column
PROGRAM_APPLICA Concurrent Who
TION_ID NUMBER column
Concurrent Who
PROGRAM_ID NUMBER column
PROGRAM_UPDATE_ Concurrent Who
DATE DATE column
WIP supply type
WIP_SUPPLY_TYPE NUMBER code
PICK_COMPONENTS NUMBER (not currently used)
SUPPLY_SUBINVENT Supply
ORY VARCHAR2(10) subinventory

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
187
SUPPLY_LOCATOR_I Supply locator
D NUMBER identifier
Operation offset
from first operation
in routing
(denormalized from
corresponding
column in
OPERATION_LEAD_T BOM_OPERATION
IME_PERCENT NUMBER _SEQUNCES)
Engineering change
REVISED_ITEM_SEQU order revised item
ENCE_ID NUMBER identifier
COST_FACTOR NUMBER (not currently used)
Type of item
(denormalized from
BOM Item Type in
MTL_SYSTEM_ITE
BOM_ITEM_TYPE NUMBER MS)
FROM_END_ITEM_U From End Item Unit
NIT_NUMBER VARCHAR2(30) Number
TO_END_ITEM_UNIT To End Item Unit
_NUMBER VARCHAR2(30) Number
COMPONENT_ITEM_ Item revision
REVISION_ID NUMBER Identifier
Original system that
data for the current
ORIGINAL_SYSTEM_ record has come
REFERENCE VARCHAR2(50) from
Indicates if this
component on an
Engineering Change
ECO_FOR_PRODUCTI Order is only for
ON NUMBER WIP jobs
Delete group name
DELETE_GROUP_NA for the entity type
ME VARCHAR2(10) you are deleting
Description of the
DG_DESCRIPTION VARCHAR2(240) delete group
ENFORCE_INT_REQU Enforce Integer
IREMENTS NUMBER Requirements
Flag indicating if
component is
OPTIONAL_ON_MOD optional on model
EL NUMBER bill (for ATO)

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
188
Common bill
PARENT_BILL_SEQ_I sequence id of the
D NUMBER model bill (for ATO)
Component
sequence identifier
MODEL_COMP_SEQ_ from model bill (for
ID NUMBER ATO)
Plan level based on
PLAN_LEVEL NUMBER model bill (for ATO)
Automatically create
move order for the
material at work
AUTO_REQUEST_MA order release
TERIAL VARCHAR2(1)
Suggested vendor
name will be used
SUGGESTED_VENDO for direct items for
R_NAME VARCHAR2(240) EAM BOMs
VENDOR_ID NUMBER Vendor Identifier
UNIT_PRICE NUMBER Unit price
OBJ_NAME VARCHAR2(30) Object Name
PK1_VALUE VARCHAR2(240) Primary Key 1
PK2_VALUE VARCHAR2(240) Primary Key 2
PK3_VALUE VARCHAR2(240) Primary Key 3
PK4_VALUE VARCHAR2(240) Primary Key 4
PK5_VALUE VARCHAR2(240) Primary Key 5
From End Item Rev
Id for End Item
FROM_END_ITEM_RE Revision Effective
V_ID NUMBER components
TO_END_ITEM_REV_I To end item revision
D NUMBER id
OVERLAPPING_CHA
NGES NUMBER
FROM_OBJECT_REVI From object revision
SION_ID NUMBER id
FROM_MINOR_REVIS From Minor
ION_ID NUMBER Revision Id
TO_OBJECT_REVISIO To Object Revision
N_ID NUMBER Id
TO_MINOR_REVISIO To Minor Revision
N_ID NUMBER Id
FROM_END_ITEM_MI From End Item
NOR_REV_ID NUMBER Minor Rev Id

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
189
TO_END_ITEM_MIN To End Item Minor
OR_REV_ID NUMBER Rev Id
COMPONENT_MINO
R_REVISION_ID NUMBER
FROM_BILL_REVISIO
N_ID NUMBER
TO_BILL_REVISION_I
D NUMBER
FROM_STRUCTURE_
REVISION_CODE VARCHAR2(30)
TO_STRUCTURE_REV
ISION_CODE VARCHAR2(30)
FROM_END_ITEM_ST
RC_REV_ID NUMBER
TO_END_ITEM_STRC
_REV_ID NUMBER
Common
COMMON_COMPON Component
ENT_SEQUENCE_ID NUMBER Sequence Id

CLL_F255_CST_INVENTORY_V

Selects the information in the CLL_F255_CST_INVENTORY_V view together with other


columns that are referred to

SELECT b.TYPE
,b.organization_id
,b.organization_code
,b.cost_type_id
,b.cost_type
,b.period_id
,b.period_name
,b.inventory_date
,b.count_group
,b.classification_code
,b.item_type
,b.item_code
,mmt.subinventory_code
,b.uom
,b.inventory_item_id
, (NVL (mmt.prior_costed_quantity, 0) + NVL (mmt.primary_quantity, 0)
) quantity

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
190
, ( NVL (mmt.prior_costed_quantity, 0)
+ NVL (mmt.primary_quantity, 0)
)
* NVL (mmt.new_cost, 0) cost_total
,NVL (mmt.new_cost, 0) cost_unit
,b.ACCOUNT
FROM mtl_material_transactions mmt
, (SELECT a.TYPE
,a.organization_id
,a.organization_code
,a.cost_type_id
,a.cost_type
,a.period_id
,a.period_name
,a.inventory_date
,a.count_group
,a.classification_code
,a.item_type
,a.item_code
,a.uom
,a.inventory_item_id
,a.ACCOUNT
,MAX (a.transaction_id) transaction_id
FROM mtl_material_transactions mmt
, (SELECT '1-Stock' TYPE
,msi.organization_id organization_id
,mp.organization_code organization_code
,cic.cost_type_id cost_type_id
,cct.cost_type cost_type
,oap.acct_period_id period_id
,oap.period_name period_name
,oap.schedule_close_date inventory_date
,' ' count_group
,SUBSTR (mc.concatenated_segments, 1, 10)
classification_code
,msi.item_type item_type
,msi.concatenated_segments item_code
,msi.primary_uom_code uom
,msi.inventory_item_id inventory_item_id
,mp.material_account ACCOUNT
,mmt.transaction_id
FROM mtl_material_transactions mmt
,cst_item_costs cic
,mtl_system_items_kfv msi
,mtl_item_categories mic
,mtl_category_sets_tl mcst
,mtl_category_sets_b mcs
,mfg_lookups ml
,mtl_categories_b_kfv mc
,fnd_id_flex_structures_vl fifs
,org_acct_periods oap
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
191
,mtl_parameters mp
,cst_cost_types cct
WHERE msi.organization_id = mmt.organization_id
AND msi.inventory_item_id = mmt.inventory_item_id
AND mmt.inventory_item_id = cic.inventory_item_id
AND mmt.organization_id = oap.organization_id
AND mmt.transaction_date
BETWEEN TRUNC (oap.period_start_date)
AND TRUNC (oap.schedule_close_date)
+ .99999
AND mmt.transaction_id =
(SELECT MAX (mmt1.transaction_id)
FROM mtl_material_transactions mmt1
WHERE mmt1.transaction_type_id NOT IN
(10
,11
,13
,14
,16
,19
,22
,23
,26
,27
,30
,39
,59
,69
,76
,80
)
AND mmt1.transaction_action_id <> 2
AND mmt1.inventory_item_id =
cic.inventory_item_id
AND mmt1.organization_id =
cic.organization_id
AND mmt1.transaction_date
BETWEEN TRUNC
(oap.period_start_date)
AND TRUNC
(oap.schedule_close_date
)
+ .99999
AND 2 NOT IN (
SELECT asset_inventory
FROM mtl_secondary_inventories
WHERE secondary_inventory_name =
mmt1.subinventory_code
AND organization_id =
mmt.organization_id)) -- nao custeia
AND oap.organization_id = cic.organization_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
192
AND mp.organization_id = cic.organization_id
AND mp.organization_id = mmt.organization_id
AND cic.cost_type_id = cct.cost_type_id
AND cct.cost_type_id = 2 --Average
AND mic.category_set_id = mcs.category_set_id
AND mcs.structure_id = fifs.id_flex_num
AND mcs.category_set_id = mcst.category_set_id
AND mcst.LANGUAGE = USERENV ('LANG')
AND mic.category_id = mc.category_id
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND fifs.id_flex_structure_code =
'FISCAL_CLASSIFICATION'
AND mic.inventory_item_id = msi.inventory_item_id
AND mic.organization_id = msi.organization_id
UNION
SELECT '1-Stock' TYPE
,msi.organization_id organization_id
,mp.organization_code organization_code
,cic.cost_type_id cost_type_id
,cct.cost_type cost_type
,oap.acct_period_id period_id
,oap.period_name period_name
,oap.schedule_close_date inventory_date
,' ' count_group
,SUBSTR (mc.concatenated_segments, 1, 10)
classification_code
,msi.item_type item_type
,msi.concatenated_segments item_code
,msi.primary_uom_code uom
,msi.inventory_item_id inventory_item_id
,mp.material_account ACCOUNT
,mmt.transaction_id
FROM mtl_material_transactions mmt
,cst_item_costs cic
,mtl_system_items_kfv msi
,mtl_item_categories mic
,mtl_category_sets_tl mcst
,mtl_category_sets_b mcs
,mfg_lookups ml
,mtl_categories_b_kfv mc
,fnd_id_flex_structures_vl fifs
,org_acct_periods oap
,mtl_parameters mp
,cst_cost_types cct
WHERE msi.organization_id = mmt.organization_id
AND msi.inventory_item_id = mmt.inventory_item_id
AND mmt.inventory_item_id = cic.inventory_item_id
AND mmt.organization_id = oap.organization_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
193
AND mmt.transaction_id =
(SELECT MAX (mmt1.transaction_id)
FROM mtl_material_transactions mmt1
WHERE mmt1.transaction_type_id NOT IN
(10
,11
,13
,14
,16
,19
,22
,23
,26
,27
,30
,39
,59
,69
,76
,80
)
AND mmt1.transaction_action_id <> 2
AND mmt1.inventory_item_id =
cic.inventory_item_id
AND mmt1.organization_id =
cic.organization_id
AND mmt1.transaction_date <
oap.period_start_date + .99999
AND 2 NOT IN (
SELECT asset_inventory
FROM mtl_secondary_inventories
WHERE secondary_inventory_name =
mmt1.subinventory_code
AND organization_id =
mmt.organization_id)) -- nao custeia
AND oap.organization_id = cic.organization_id
AND mp.organization_id = cic.organization_id
AND mp.organization_id = mmt.organization_id
AND cic.cost_type_id = cct.cost_type_id
AND cct.cost_type_id = 2 --Average
AND mic.category_set_id = mcs.category_set_id
AND mcs.structure_id = fifs.id_flex_num
AND mcs.category_set_id = mcst.category_set_id
AND mcst.LANGUAGE = USERENV ('LANG')
AND mic.category_id = mc.category_id
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND fifs.id_flex_structure_code =
'FISCAL_CLASSIFICATION'
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
194
AND mic.inventory_item_id = msi.inventory_item_id
AND mic.organization_id = msi.organization_id) a
WHERE a.transaction_id = mmt.transaction_id
GROUP BY a.TYPE
,a.organization_id
,a.organization_code
,a.cost_type_id
,a.cost_type
,a.period_id
,a.period_name
,a.inventory_date
,a.count_group
,a.classification_code
,a.item_type
,a.item_code
,a.uom
,a.inventory_item_id
,a.ACCOUNT) b
WHERE b.transaction_id = mmt.transaction_id
UNION
SELECT '3-In Process' TYPE
,we.organization_id organization_id
,mp.organization_code organization_code
,cct.cost_type_id cost_type_id
,cct.cost_type cost_type
,oap.acct_period_id period_id
,oap.period_name period_name
,oap.schedule_close_date inventory_date
,'1' count_group
,SUBSTR (mc.concatenated_segments, 1, 10) classification_code
,msi.item_type item_type
,msi.concatenated_segments item_code
,bd.department_code subinventory_code
,msi.primary_uom_code uom
,msi.inventory_item_id inventory_item_id
,TO_NUMBER (NULL) quantity
,SUM ( NVL (wpb2.tl_resource_in, 0)
+ NVL (wpb2.tl_outside_processing_in, 0)
+ NVL (wpb2.tl_overhead_in, 0)
- NVL (wpb2.tl_resource_out, 0)
- NVL (wpb2.tl_outside_processing_out, 0)
- NVL (wpb2.tl_overhead_out, 0)
+ NVL (wpb2.pl_material_in, 0)
+ NVL (wpb2.pl_resource_in, 0)
+ NVL (wpb2.pl_overhead_in, 0)
+ NVL (wpb2.pl_outside_processing_in, 0)
+ NVL (wpb2.pl_material_overhead_in, 0)
- NVL (wpb2.pl_material_out, 0)
- NVL (wpb2.pl_resource_out, 0)
- NVL (wpb2.pl_overhead_out, 0)
- NVL (wpb2.pl_outside_processing_out, 0)
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
195
- NVL (wpb2.pl_material_overhead_out, 0)
) cost_total
,TO_NUMBER (NULL) cost_unit
,mp.material_account ACCOUNT
FROM wip_period_balances wpb
,wip_period_balances wpb2
,wip_operations wo
,wip_entities we
,mtl_system_items_kfv msi
,mtl_item_categories mic
,mtl_category_sets_tl mcst
,mtl_category_sets_b mcs
,mfg_lookups ml
,mtl_categories_b_kfv mc
,fnd_id_flex_structures_vl fifs
,bom_departments bd
,org_acct_periods oap
,mtl_parameters mp
,cst_cost_types cct
WHERE msi.organization_id = we.organization_id
AND msi.inventory_item_id = we.primary_item_id
AND cct.cost_type_id = 2 -- Average
AND oap.organization_id = we.organization_id
AND bd.department_id = wo.department_id
AND wo.wip_entity_id = wpb.wip_entity_id
AND wo.date_last_moved =
(SELECT MAX (wo2.date_last_moved)
FROM wip_operations wo2
WHERE wo2.wip_entity_id = wo.wip_entity_id
AND wo.date_last_moved BETWEEN TRUNC (we.creation_date)
AND TRUNC
(oap.schedule_close_date
)
+ .99999)
AND we.wip_entity_id = wpb.wip_entity_id
AND mp.organization_id = oap.organization_id
AND mp.primary_cost_method = 2 --- Average
AND oap.acct_period_id = wpb.acct_period_id
AND wpb2.acct_period_id <= wpb.acct_period_id
AND wpb2.organization_id = wpb.organization_id
AND wpb2.wip_entity_id = wpb.wip_entity_id
AND mic.category_set_id = mcs.category_set_id
AND mcs.structure_id = fifs.id_flex_num
AND mcs.category_set_id = mcst.category_set_id
AND mcst.LANGUAGE = USERENV ('LANG')
AND mic.category_id = mc.category_id
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND fifs.id_flex_structure_code = 'FISCAL_CLASSIFICATION'
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
196
AND mic.inventory_item_id = msi.inventory_item_id
AND mic.organization_id = msi.organization_id
GROUP BY we.organization_id
,mp.organization_code
,cct.cost_type_id
,cct.cost_type
,oap.acct_period_id
,oap.period_name
,oap.schedule_close_date
,SUBSTR (mc.concatenated_segments, 1, 10)
,msi.item_type
,msi.concatenated_segments
,bd.department_code
,msi.primary_uom_code
,msi.inventory_item_id
,mp.material_account;

Null /
Column Type of Data Description
Not Null
TYPE VARCHAR2(12) Type
Inventory
ORGANIZATION_ID NUMBER organization foreign
key
ORGANIZATION_COD
VARCHAR2(3) Organization Code
E
COST_TYPE_ID NUMBER Cost Type Id
COST_TYPE VARCHAR2(10) Cost Type
PERIOD_ID NUMBER Period Id
PERIOD_NAME VARCHAR2(15) Period Name
INVENTORY_DATE DATE Inventory Date
COUNT_GROUP CHAR(1) Count Group
CLASSIFICATION_COD
VARCHAR2(30) Classification Code
E
ITEM_TYPE VARCHAR2(30) Item Type
ITEM_CODE VARCHAR2(40) Item Code
SUBINVENTORY_CODE VARCHAR2(10) Subinventory Code
UOM VARCHAR2(3) Uom
INVENTORY_ITEM_ID NUMBER Inventory Item Id
QUANTITY NUMBER Quantity
COST_TOTAL NUMBER Cost Total
COST_UNIT NUMBER Cost Unit
ACCOUNT NUMBER Account

CLL_F255_CST_STOCK_V
Selects the information in the CLL_F255_CST_STOCK_V view together with other
columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
197
SELECT mp.organization_id,
mp.organization_code,
cct.cost_type_id,
cct.cost_type,
oap.acct_period_id period_id,
oap.period_name,
DECODE(SIGN(mmt.primary_quantity),1,'E',-1,'S') type,

DECODE(mmt.transaction_action_id,1,DECODE(mmt.transaction_source_type_id,1,'D','
N'),
27,DECODE(mmt.transaction_source_type_id,12,'D','N'),'N')
return,
mmt.transaction_date,
mmt.creation_date,
mmt.transaction_id,
mmt.transaction_source_id,
mmt.transaction_source_type_id,
mmt.transaction_type_id,
mmt.trx_source_line_id,
mmt.trx_source_delivery_id,
mmt.picking_line_id,
mmt.rcv_transaction_id,
msi.item_type,
msi.concatenated_segments item_code,
mmt.transaction_uom uom,
msi.primary_uom_code,
mmt.subinventory_code,
(mmt.prior_costed_quantity +
DECODE(mmt.transaction_type_id,80,0,mmt.primary_quantity)) balance,
mmt.primary_quantity quantity,
mmt.actual_cost cost_unit,
msi.inventory_item_id,
mp.material_account account
FROM mtl_material_transactions mmt,
mtl_system_items_kfv msi,
org_acct_periods oap,
mtl_parameters mp,
cst_cost_types cct
WHERE msi.organization_id = mmt.organization_id
AND msi.inventory_item_id = mmt.inventory_item_id
AND mp.organization_id = oap.organization_id
AND cct.cost_type_id = 2 -- Average
AND mmt.transaction_date BETWEEN TRUNC(oap.period_start_date)
AND TRUNC(oap.schedule_close_date)+.99999
AND mmt.transaction_type_id <> 26
AND oap.organization_id = mmt.organization_id;

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
198
Null /
Column Type of Data Description
Not Null
Inventory
ORGANIZATION_ID NOT NULL NUMBER organization foreign
key
ORGANIZATION_CO
VARCHAR2(3) Organization Code
DE
COST_TYPE_ID NOT NULL NUMBER Cost Type Id
COST_TYPE NOT NULL VARCHAR2(10) Cost Type
PERIOD_ID NOT NULL NUMBER Period Id
PERIOD_NAME NOT NULL VARCHAR2(15) Period Name
TYPE VARCHAR2(1) Type
RETURN VARCHAR2(1) Return
TRANSACTION_DAT
NOT NULL DATE Transaction Date
E
Creation date of this
CREATION_DATE NOT NULL DATE
line
TRANSACTION_ID NOT NULL NUMBER Transaction Id
TRANSACTION_SOU
NUMBER Transaction Source Id
RCE_ID
TRANSACTION_SOU Transaction Source
NOT NULL NUMBER
RCE_TYPE_ID Type Id
TRANSACTION_TYPE
NOT NULL NUMBER Transaction Type Id
_ID
TRX_SOURCE_LINE_I
NUMBER Trx Source Line Id
D
TRX_SOURCE_DELIV
NUMBER Trx Source Delivery Id
ERY_ID
PICKING_LINE_ID NUMBER Picking Line Id
RCV_TRANSACTION_
NUMBER Rcv Transaction Id
ID
ITEM_TYPE VARCHAR2(30) Item Type
ITEM_CODE VARCHAR2(40) Item Code
UOM NOT NULL VARCHAR2(3) Uom
PRIMARY_UOM_COD
VARCHAR2(3) Primary Uom Code
E
SUBINVENTORY_CO
VARCHAR2(10) Subinventory_Code
DE
BALANCE NUMBER Balance
QUANTITY NOT NULL NUMBER Quantity
COST_UNIT NUMBER Cost Unit
INVENTORY_ITEM_I
NOT NULL NUMBER Inventory Item Id
D
ACCOUNT NUMBER Account

CLL_F255_ESTABLISHMENT_V
Selects the information in the CLL_F255_ESTABLISHMENT_V view together with other
columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
199
SELECT
gl.ledger_id,
etb.establishment_id,
etb.establishment_name,
etb.legal_entity_id,
etb.registration_number,
etb.legislative_cat_code,
etb.address_line_1,
etb.address_line_2,
etb.address_line_3,
etb.town_or_city,
etb.region_1,
etb.region_2,
etb.region_3,
etb.postal_code,
etb.country,
etb.location_id,
etb_effective_from,
etb_effective_to,
hl1.inventory_organization_id,
gl.ledger_category_code,
cll_f255_utils_pkg.balancing_segment_value(etb.legal_entity_id,
etb.establishment_id) entity_name,
CASE WHEN hl1.inventory_organization_id IS NULL THEN
(SELECT od.operating_unit
FROM cll_f255_org_definitions_v od
WHERE od.organization_id IN (SELECT haou.organization_id
FROM hr_all_organization_units haou,
hr_locations_all hl
WHERE hl.inventory_organization_id = haou.organization_id
AND hl.location_id = etb.location_id)) --ENH 12998014
ELSE
/* (SELECT operating_unit
FROM org_organization_definitions
WHERE organization_id = hl.inventory_organization_id) -- BUG 9712217 nao
acessar a view org_organization_definitions devido as profiles de seguranca */
(SELECT DECODE(mp.master_organization_id, hl1.inventory_organization_id,
(SELECT f1.operating_unit
FROM cll_f255_org_definitions_v f1
WHERE f1.organization_id = hl.inventory_organization_id),
od.operating_unit)
FROM cll_f255_org_definitions_v od,
mtl_parameters mp
WHERE od.organization_id = hl1.inventory_organization_id
AND mp.organization_id = hl1.inventory_organization_id) --BUG 9712217
END operating_unit,
gl.chart_of_accounts_id,
hl.location_code,
hl.in_organization_flag,
hl.inactive_date,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
200
hl.telephone_number_1, --BUG 9973235 NFe
haou.location_id est_location_id, --BUG 12312848,
etb.main_establishment_flag, --ENH 12998014
DECODE(hl1.inventory_organization_id,
NULL, 'N',
mp.organization_id, DECODE(mp.master_organization_id ,
mp.organization_id,'Y','N')
,'N') master_organization_flag,
DECODE(hl1.inventory_organization_id,
TO_NUMBER(NULL), TO_NUMBER(NULL),
mp.organization_id, DECODE(mp.master_organization_id ,
mp.organization_id,mp.organization_id,TO_NUMBER(NULL))
,TO_NUMBER(NULL)) master_organization_id,
CASE WHEN hl1.inventory_organization_id IS NULL THEN
(SELECT od.operating_unit
FROM cll_f255_org_definitions_v od
WHERE od.organization_id IN (SELECT haou.organization_id
FROM hr_all_organization_units haou,
hr_locations_all hl
WHERE hl.inventory_organization_id = haou.organization_id
AND hl.location_id = etb.location_id)) --ENH 12998014
ELSE
/* (SELECT operating_unit
FROM org_organization_definitions
WHERE organization_id = hl.inventory_organization_id) -- BUG 9712217 nao
acessar a view org_organization_definitions devido as profiles de seguranca */
(SELECT operating_unit
FROM cll_f255_org_definitions_v
WHERE organization_id = hl1.inventory_organization_id) --BUG 9712217
END master_operating_unit
FROM xle_establishment_v etb
,hr_locations_all hl
,(SELECT hl.location_id,
hl.inventory_organization_id
FROM hr_locations_all hl
UNION
SELECT --xles.location_id, hrl.inventory_organization_id --BUG 10226480
xles.location_id, ---BUG 10226480
DECODE(xlas.entity_type,'OPERATING_UNIT', TO_NUMBER(NULL),
hro.organization_id -- BUG 23091273 hrl.inventory_organization_id
) inventory_organization_id --- BUG 10226480
FROM hr_locations_all hrl,
hr_all_organization_units hro,
xle_associations_v xlas,
xle_establishment_v xles
WHERE xlas.legal_construct_id = xles.establishment_id
AND xlas.entity_id = hro.organization_id
AND hro.location_id = hrl.location_id
AND xlas.legal_construct = 'ESTABLISHMENT'
AND SYSDATE BETWEEN NVL(xlas.effective_from,SYSDATE-1)
AND NVL(xlas.effective_to,SYSDATE+1)
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
201
AND xlas.entity_type IN ('OPERATING_UNIT','INVENTORY_ORGANIZATION')
) hl1 --BUG 10034093
,hr_all_organization_units haou --BUG 12312848
,gl_ledger_le_v gl
,mtl_parameters mp --ENH 13814832 Tratar organizacao master inventario
WHERE etb.legal_entity_id = gl.legal_entity_id
AND etb.location_id = hl1.location_id --BUG 10034093
AND etb.location_id = hl.location_id --BUG 10034093
AND (gl.ledger_category_code = 'PRIMARY' or (gl.ledger_category_code =
'SECONDARY' and NVL( fnd_profile.value( 'CLL_F255_SECONDARY_LEDGER' ), 'N' )
= 'Y')) -- ER 18865597
AND hl1.inventory_organization_id = haou.organization_id (+) --BUG 12312848
AND hl1.inventory_organization_id = mp.organization_id (+) --ENH 13814832
AND NVL( fnd_profile.value( 'CLL_F255_ORG_STRUCTURE' ), 1 ) = 1 -- LE setup --
ENH 19277642
UNION
-- ENH 19277642 included at 26-aug-2014
SELECT
gl.ledger_id,
etb.establishment_id,
etb.establishment_name,
etb.legal_entity_id,
etb.registration_number,
etb.legislative_cat_code,
etb.address_line_1,
etb.address_line_2,
etb.address_line_3,
etb.town_or_city,
etb.region_1,
etb.region_2,
etb.region_3,
etb.postal_code,
etb.country,
etb.location_id,
etb_effective_from,
etb_effective_to,
oi.organization_id inventory_organization_id,
gl.ledger_category_code,
cll_f255_utils_pkg.balancing_segment_value(etb.legal_entity_id,
etb.establishment_id) entity_name,
ou.organization_id operating_unit,
gl.chart_of_accounts_id,
hl.location_code,
hl.in_organization_flag,
hl.inactive_date,
hl.telephone_number_1,
haou_oi.location_id est_location_id,
etb.main_establishment_flag ,
DECODE(mp.master_organization_id , mp.organization_id,'Y','N')
master_organization_flag,
mp.master_organization_id,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
202
(SELECT operating_unit
FROM cll_f255_org_definitions_v
WHERE organization_id = ou.organization_id) master_operating_unit
FROM xle_establishment_v etb
,hr_locations_all hl
,gl_ledger_le_v gl
,mtl_parameters mp
,hr_all_organization_units haou_oi
,( SELECT xlas.entity_id organization_id, xlas.entity_name organization_name,
xlas.legal_parent_id legal_entity_id,
xlas.legal_construct_id establishment_id
FROM xle_associations_v xlas
WHERE xlas.legal_construct = 'ESTABLISHMENT'
AND SYSDATE BETWEEN NVL (xlas.effective_from, SYSDATE - 1)
AND NVL (xlas.effective_to, SYSDATE + 1)
AND xlas.entity_type = 'INVENTORY_ORGANIZATION' ) oi
,( SELECT xlas.entity_id organization_id, xlas.entity_name organization_name,
xlas.legal_parent_id legal_entity_id,
xlas.legal_construct_id establishment_id
FROM xle_associations_v xlas
WHERE xlas.legal_construct = 'ESTABLISHMENT'
AND SYSDATE BETWEEN NVL (xlas.effective_from, SYSDATE - 1)
AND NVL (xlas.effective_to, SYSDATE + 1)
AND xlas.entity_type = 'OPERATING_UNIT' ) ou
WHERE
-- ---------------------------------------------------
etb.legal_entity_id = ou.legal_entity_id
AND etb.establishment_id = ou.establishment_id
-- ---------------------------------------------------
AND etb.legal_entity_id = oi.legal_entity_id
AND etb.establishment_id = oi.establishment_id
-- ---------------------------------------------------
AND oi.legal_entity_id = ou.legal_entity_id
AND oi.establishment_id = ou.establishment_id
-- ---------------------------------------------------
AND haou_oi.organization_id = oi.organization_id
-- ---------------------------------------------------
and etb.legal_entity_id = gl.legal_entity_id
AND etb.location_id = hl.location_id
AND (gl.ledger_category_code = 'PRIMARY' or (gl.ledger_category_code =
'SECONDARY' and NVL( fnd_profile.value( 'CLL_F255_SECONDARY_LEDGER' ), 'N' )
= 'Y')) -- ER 18865597
AND oi.organization_id = mp.organization_id (+)
AND NVL( fnd_profile.value( 'CLL_F255_ORG_STRUCTURE' ), 1 ) = 2 -- XLA
Associations -- ENH 19277642

Null /
Column Type of Data Description
Not Null
Ledger defining
LEDGER_ID NOT NULL NUMBER(15,0)
column
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
203
Establishment
ESTABLISHMENT_ID NUMBER(15,0)
Identifier
ESTABLISHMENT_NA
VARCHAR2(240) Name
ME
LEGAL_ENTITY_ID NUMBER(15,0) Legal Entity Identifier
REGISTRATION_NUM
VARCHAR2(30) Registration Number
BER
LEGISLATIVE_CAT_C Legislative Category
VARCHAR2(30)
ODE Code
1st line of location
ADDRESS_LINE_1 VARCHAR2(240)
address
2nd line of location
ADDRESS_LINE_2 VARCHAR2(240)
address
3rd line of location
ADDRESS_LINE_3 VARCHAR2(240)
address
TOWN_OR_CITY VARCHAR2(30) Town or city.
County (US, UK);
REGION_1 VARCHAR2(120)
Province (CA).
State (US); Province of
REGION_2 VARCHAR2(120)
work (CA).
Additional address
segment - not used by
REGION_3 VARCHAR2(120)
seeded address
structures
POSTAL_CODE VARCHAR2(30) Postal code
COUNTRY VARCHAR2(60) Country.
System-generated
LOCATION_ID NUMBER
primary key column
ETB_EFFECTIVE_FRO
DATE Effective From
M
ETB_EFFECTIVE_TO DATE Effective To
Inventory
INVENTORY_ORGAN
NUMBER(15,0) organization foreign
IZATION_ID
key
Ledger category
LEDGER_CATEGORY (PRIMARY,
VARCHAR2(30)
_CODE SECONDARY, ALC
etc)
VARCHAR2(400
ENTITY_NAME Entity Name
0)
OPERATING_UNIT NUMBER Operation Unit
CHART_OF_ACCOUN Key flexfield structure
NOT NULL NUMBER(15)
TS_ID defining column
LOCATION_CODE VARCHAR2(60) Location name.
Indicates whether this
IN_ORGANIZATION_
VARCHAR2(30) location is an internal
FLAG
site
Date after which this
INACTIVE_DATE DATE location is no longer
valid.
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
204
TELEPHONE_NUMBE
VARCHAR2(60) Telephone number
R_1
Identifier
EST_LOCATION_ID NUMBER(15) Establishment
Location
MAIN_ESTABLISHME
VARCHAR2(1)
NT_FLAG
MASTER_ORGANIZA Identifier Master
VARCHAR2(1)
TION_FLAG Organization Flag
MASTER_ORGANIZA Identifier Master
NUMBER
TION_ID Organization
MASTER_OPERATIO Identifier Master
NUMBER
N_UNIT Operating Unit

CLL_F255_GL_DAILY_BOOK_V
Selects the information in the CLL_F255_GL_DAILY_BOOK_V view together with other
columns that are referred to

SELECT
gjh.ledger_id,
gjh.je_batch_id,
gjh.je_header_id,
cjl.je_line_num,
gcc.enabled_flag,
gcc.summary_flag,
-- gsb.currency_code currency_code , --
COD_MOEDA_FUNC --BUG 12775276
gjh.currency_code currency_code_lcto , --
COD_MOEDA_LCTO
gjh.period_name , --
PERIODO_CONTABIL
gjh.je_source , --
ORIGEM_LANCTO
-- gsb.chart_of_accounts_id , --
GRAFICO_DE_CONTAS --BUG 12775276
gjh.posted_date , --
DATA_LANCTO
cjl.effective_date , --
DT_EFETIVACAO_LANCTO
gjh.last_update_date , --
DATA_ATUALIZACAO
gcc.code_combination_id , --
ID_CONTA_DC
DECODE(NVL(cjl.entered_dr,0),0,DECODE(SIGN(cjl.entered_cr), -1, 'D' , 'C' )
,
DECODE(SIGN(cjl.entered_dr), -1, 'C' , 'D' )) ind_dc ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
205
DECODE(NVL(cjl.accounted_dr,0),0,DECODE(SIGN(cjl.accounted_cr), -1, 'D' , 'C' )
,
DECODE(SIGN(cjl.accounted_dr), -1, 'C' , 'D' )) ind_dc_converted
, --IND_DC_CONVERTIDO
DECODE(NVL(cjl.entered_dr,0),0,ABS(cjl.entered_cr), ABS(cjl.entered_dr) )
release_value , --VLR_LANCTO
DECODE(NVL(cjl.accounted_dr,0),0,ABS(cjl.accounted_cr),ABS(cjl.accounted_dr) )
release_value_converted,--VLR_LANCTO_CONVERTIDO
cjl.attribute1 standard_history, --
COD_HISTPADRAO
gjh.je_category operation_type , --
TIPO_OPERACAO,
REPLACE(NVL(SUBSTR(cjl.description,1,120),SUBSTR(gjh.description,1,120)),'@',' ')
description , --HISTCOMPL,
cjl.reference_1,
cjl.reference_2,
cjl.reference_3,
cjl.reference_4,
cjl.reference_5,
cjl.reference_6,
cjl.reference_7,
cjl.reference_8,
cjl.reference_9,
cjl.reference_10,
gjh.default_effective_date,
DECODE(SIGN(NVL(cjl.entered_dr,0)),
0,
DECODE(SIGN(cjl.entered_cr), -1, ABS(cjl.entered_cr), 0),
-1,
DECODE(SIGN(cjl.entered_cr), -1, ABS(cjl.entered_cr), 0),
DECODE(SIGN(cjl.entered_cr), -1, (ABS(cjl.entered_cr)+cjl.entered_dr),
cjl.entered_dr)
) entered_dr,
DECODE(SIGN(NVL(cjl.entered_cr,0)),
0,
DECODE(SIGN(cjl.entered_dr), -1, ABS(cjl.entered_dr), 0),
-1,
DECODE(SIGN(cjl.entered_dr), -1, ABS(cjl.entered_dr), 0),
DECODE(SIGN(cjl.entered_dr), -1, (ABS(cjl.entered_dr)+cjl.entered_cr),
cjl.entered_cr)
) entered_cr,
DECODE(SIGN(NVL(cjl.accounted_dr,0)),
0,
DECODE(SIGN(cjl.accounted_cr), -1, ABS(cjl.accounted_cr), 0),
-1,
DECODE(SIGN(cjl.accounted_cr), -1, ABS(cjl.accounted_cr), 0),
DECODE(SIGN(cjl.accounted_cr), -1, (ABS(cjl.accounted_cr)+cjl.accounted_dr),
cjl.accounted_dr)
) accounted_dr,
DECODE(SIGN(NVL(cjl.accounted_cr,0)),
0,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
206
DECODE(SIGN(cjl.accounted_dr), -1, ABS(cjl.accounted_dr), 0),
-1,
DECODE(SIGN(cjl.accounted_dr), -1, ABS(cjl.accounted_dr), 0),
DECODE(SIGN(cjl.accounted_dr), -1, (ABS(cjl.accounted_dr)+cjl.accounted_cr),
cjl.accounted_cr)
) accounted_cr,
cll_f255_utils_pkg.get_segment_company_value(gcc.code_combination_id,
gjh.ledger_id) balancing_segment_value, --BUG 9775122
gls.currency_code currency_code, --
COD_MOEDA_FUNC --BUG 12775276
gls.chart_of_accounts_id --
GRAFICO_DE_CONTAS --BUG 12775276
FROM --gl_sets_of_books gsb, --BUG 12775276
gl_ledgers gls, --BUG 12775276
gl_code_combinations gcc,
gl_je_lines cjl,
gl_je_headers gjh
WHERE cjl.je_header_id = gjh.je_header_id
-- AND gjh.ledger_id = gsb.set_of_books_id --BUG 12775276
AND gjh.ledger_id = gls.ledger_id --BUG 12775276
AND gjh.status = 'P'
AND gjh.actual_flag = 'A'
AND gcc.code_combination_id = cjl.code_combination_id
-- AND gcc.chart_of_accounts_id = gsb.chart_of_accounts_id --BUG 12775276
AND gcc.chart_of_accounts_id = gls.chart_of_accounts_id;

Null /
Column Type of Data Description
Not Null
Ledger defining
LEDGER_ID NOT NULL NUMBER(15,0)
column
Journal entry batch
JE_BATCH_ID NUMBER(15,0)
defining column
Journal entry header
JE_HEADER_ID NOT NULL NUMBER(15,0)
defining column
Journal entry line
JE_LINE_NUM NOT NULL NUMBER(15,0)
number
Key flexfield enabled
ENABLED_FLAG NOT NULL VARCHAR2(1)
flag
SUMMARY_FLAG NOT NULL VARCHAR2(1) Summary account flag
CURRENCY_CODE_L
NOT NULL VARCHAR2(15) Currency
CTO
PERIOD_NAME NOT NULL VARCHAR2(15) Accounting period
JE_SOURCE NOT NULL VARCHAR2(25) Journal entry source
CHART_OF_ACCOUN
NOT NULL NUMBER(15,0) Chart Of Accounts Id
TS_ID
Date journal entry
POSTED_DATE DATE
header was posted

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
207
Journal entry line
EFFECTIVE_DATE NOT NULL DATE
effective date
LAST_UPDATE_DATE NOT NULL DATE Standard Who column
Key flexfield
CODE_COMBINATIO
NOT NULL NUMBER(15,0) combination defining
N_ID
column
IND_DC VARCHAR2(1) Ind Debit or Credit
IND_DC_CONVERTE Ind Debit or Credit
VARCHAR2(1)
D Converted
RELEASE_VALUE NUMBER Release Value
RELEASE_VALUE_CO Release Value
NUMBER
NVERTED Converted
STANDARD_HISTOR Descriptive flexfield
VARCHAR2(150)
Y segment
OPERATION_TYPE NOT NULL VARCHAR2(25) Operation Type
DESCRIPTION VARCHAR2(360) Description
Journal entry line
REFERENCE_1 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_2 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_3 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_4 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_5 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_6 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_7 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_8 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_9 VARCHAR2(240)
reference column
Journal entry line
REFERENCE_10 VARCHAR2(240)
reference column
DEFAULT_EFFECTIVE
NOT NULL DATE Default Effective Date
_DATE
ENTERED_DR NUMBER Entered Dr
ENTERED_CR NUMBER Entered Cr
ACCOUNTED_DR NUMBER Accounted Dr
ACCOUNTED_CR NUMBER Accounted Cr
BALANCING_SEGME VARCHAR2(400 Balancing Segment
NT_VALUE 0) Value
CURRENCY_CODE NOT NULL VARCHAR2(15) Currency
CHART_OF_ACCOUN Key flexfield structure
NOT NULL NUMBER(15,0)
TS_ID defining column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
208
CLL_F255_INV_CATEGORY_ITEMS_V
Selects the information in the CLL_F255_INV_CATEGORY_ITEMS_V view together with
other columns that are referred to

SELECT a.inventory_item_id ,
c.concatenated_segments item_code,
c.item_type ,
a.organization_id ,
a.category_set_id ,
a.category_id ,
d.category_set_name ,
d.description category_sets_description,
b.concatenated_segments category_name,
b.description category_description,
a.last_update_date ,
a.creation_date
FROM mtl_system_items_b_kfv c,
mtl_categories_b_kfv b,
mtl_item_categories a,
mtl_category_sets d
WHERE d.category_set_id = a.category_set_id
AND c.inventory_item_id = a.inventory_item_id
AND c.organization_id = a.organization_id
AND b.category_id = a.category_id

Null /
Column Type of Data Description
Not Null
INVENTORY_ITEM_ID NUMBER Inventory item
identifier
ITEM_CODE VARCHAR2(40) Concatenated
segments
ITEM_TYPE VARCHAR2(30) Type of item
ORGANIZATION_ID NUMBER Organization identifier
CATEGORY_SET_ID NUMBER Category set identifier
CATEGORY_ID NUMBER Category identifier
CATEGORY_SET_NAM VARCHAR2(30)
Category set name
E
CATEGORY_SETS_DE VARCHAR2(240) Category set
SCRIPTION description
CATEGORY_NAME VARCHAR2(163) Category name
CATEGORY_DESCRIP VARCHAR2(240)
Category description
TION
LAST_UPDATE_DATE DATE Standard Who column
CREATION_DATE DATE Standard Who column

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
209
CLL_F255_GL_MAJOR_BOOK_V
Selects the information in the CLL_F255_GL_MAJOR_BOOK_V view together with other
columns that are referred to

SELECT clb.ledger_id ,
clb.currency_code , --COD_MOEDA
clb.period_name , --
PERIODO_CONTABIL
gcc.code_combination_id ,
gcc.chart_of_accounts_id , --
GRAFICO_DE_CONTAS
gps.start_date , --DATA_GERACAO
gps.end_date , --DATA_SALDO
SUM( ABS( clb.begin_balance_dr - clb.begin_balance_cr ))
value_opening_balance , --VLR_SALDO_INI
DECODE( SIGN( ( clb.begin_balance_dr - clb.begin_balance_cr)),
-1, 'C' , 'D' ) ind_opening_balance , --
IND_SALDO_INI
SUM ( ABS( (clb.begin_balance_dr - clb.begin_balance_cr +
clb.period_net_dr - clb.period_net_cr ) ) ) value_end_balance , -
-VLR_SALDO_FIM
DECODE(SIGN( ( clb.begin_balance_dr - clb.begin_balance_cr +
clb.period_net_dr - clb.period_net_cr ) ), -1, 'C' , 'D' ) ind_end_balance ,
--IND_SALDO_FIM
SUM ( ABS( NVL(clb.period_net_cr,0) ) ) value_cr_value , -
-VLR_TOT_CREDITO
DECODE( SIGN( clb.period_net_cr), -1, 'D' , 'C' ) ind_cr_value ,
--IND_TOT_CREDITO
SUM ( ABS( NVL(clb.period_net_dr,0) ) ) value_tot_dr , --
VLR_TOT_DEBITO
DECODE( SIGN( clb.period_net_dr), -1, 'C' , 'D' ) ind_tot_dr , -
-IND_TOT_DEBITO
gps.closing_status status , --STATUS
DECODE(gps.closing_status,'O','Open','C','Closed','Pending')
status_description , --DESCR_STATUS
gcc.summary_flag,
gcc.enabled_flag,
cll_f255_utils_pkg.get_segment_company_value(gcc.code_combination_id,
clb.ledger_id) balancing_segment_value, --BUG 9786909
gls.currency_code gl_currency_code -- --
COD_MOEDA_FUNC --BUG 12775276
FROM gl_period_statuses gps,
gl_code_combinations gcc,
gl_balances clb,
gl_ledgers gls --BUG 12775276
WHERE gps.set_of_books_id = clb.ledger_id
AND gps.application_id = 101

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
210
AND gps.period_name = clb.period_name
AND clb.actual_flag = 'A'
AND ( ABS(clb.begin_balance_dr - clb.begin_balance_cr +
clb.period_net_dr - clb.period_net_cr ) > 0 OR
ABS(clb.begin_balance_dr - clb.begin_balance_cr) > 0 OR
ABS(NVL(clb.period_net_cr,0)) > 0 OR
ABS(NVL(clb.period_net_dr,0)) >0)
AND clb.code_combination_id = gcc.code_combination_id
AND gls.ledger_id = gps.ledger_id --BUG 12775276
GROUP BY clb.ledger_id,
clb.currency_code,
clb.period_name,
gcc.code_combination_id,
gcc.chart_of_accounts_id,
gps.start_date,
gps.end_date,
DECODE( SIGN( ( clb.begin_balance_dr - clb.begin_balance_cr)),-1, 'C' , 'D' ),
DECODE(SIGN( ( clb.begin_balance_dr - clb.begin_balance_cr +
clb.period_net_dr - clb.period_net_cr ) ), -1, 'C' , 'D' ),
DECODE( SIGN( clb.period_net_cr), -1, 'D' , 'C' ),
DECODE( SIGN( clb.period_net_dr), -1, 'C' , 'D' ),
gps.closing_status ,
DECODE(gps.closing_status,'O','Open','C','Closed','Pending') ,
gcc.summary_flag,
gcc.enabled_flag,
cll_f255_utils_pkg.get_segment_company_value(gcc.code_combination_id,
clb.ledger_id), --BUG 9786909
gls.currency_code;

Null /
Column Not Null Type of Data Description
Ledger defining
LEDGER_ID NOT NULL NUMBER(15,0) column
CURRENCY_CODE NOT NULL VARCHAR2(15) Currency
PERIOD_NAME NOT NULL VARCHAR2(15) Accounting period
Key flexfield
CODE_COMBINATIO combination defining
N_ID NOT NULL NUMBER(15,0) column
CHART_OF_ACCOUN
TS_ID NOT NULL NUMBER(15,0) Chart Of Accounts Id
Date on which
accounting period
START_DATE NOT NULL DATE begins
Date on which
accounting period
END_DATE NOT NULL DATE ends

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
211
VALUE_OPENING_B Value Opening
ALANCE NUMBER Balance
IND_OPENING_BALA
NCE VARCHAR2(1) Ind Opening Balance
VALUE_END_BALAN
CE NUMBER Value End Balance
IND_END_BALANCE VARCHAR2(1) Ind End Balance
VALUE_CR_VALUE NUMBER Value Cr Value
IND_CR_VALUE VARCHAR2(1) Ind Cr Value
VALUE_TOT_DR NUMBER Value Tot Dr
IND_TOT_DR VARCHAR2(1) Ind Tot Dr
Accounting period
STATUS NOT NULL VARCHAR2(1) status
STATUS_DESCRIPTIO
N VARCHAR2(7) Status Description

SUMMARY_FLAG NOT NULL VARCHAR2(1) Summary account flag


Key flexfield enabled
ENABLED_FLAG NOT NULL VARCHAR2(1) flag
BALANCING_SEGME VARCHAR2(400 Balancing Segment
NT_VALUE 0) Value
GL_CURRENCY_COD
E NOT NULL VARCHAR2(15) Currency

CLL_F255_LE_SETUP_V
Selects the information in the CLL_F255_LE_SETUP_V view together with other columns
that are referred to

SELECT ff."ENTITY_TYPE",
ff."ENTITY_DESCRIPTION",
ff."ENTITY_SUBTYPE",
ff."LEDGER_ID",
ff."ESTABLISHMENT_ID",
ff."ESTABLISHMENT_NAME",
ff."LEGAL_ENTITY_ID",
ff."REGISTRATION_NUMBER",
ff."LEGISLATIVE_CAT_CODE",
ff."ADDRESS_LINE_1",
ff."ADDRESS_LINE_2",
ff."ADDRESS_LINE_3",
ff."TOWN_OR_CITY",
ff."REGION_1",
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
212
ff."REGION_2",
ff."REGION_3",
ff."POSTAL_CODE",
ff."COUNTRY",
ff."LOCATION_ID",
ff."ETB_EFFECTIVE_FROM",
ff."ETB_EFFECTIVE_TO",
ff."INVENTORY_ORGANIZATION_ID",
ff."ENTITY_NAME",
ff."OPERATING_UNIT",
ff."CHART_OF_ACCOUNTS_ID",
ff."LOCATION_CODE",
ff."IN_ORGANIZATION_FLAG",
ff."INACTIVE_DATE",
ff."TELEPHONE_NUMBER_1",
ff."EST_LOCATION_ID",
ff."MASTER_ORGANIZATION_FLAG",
ff."MASTER_ORGANIZATION_ID",
ff."ORGANIZATION_NAME",
ff."OPERATING_UNIT_NAME"
FROM (SELECT DISTINCT '01' entity_type,
'EMP' entity_description,
'01 - EMP' entity_subtype,
etb1.ledger_id,
etb1.establishment_id,
etb1.establishment_name,
etb1.legal_entity_id,
etb1.registration_number,
etb1.legislative_cat_code,
etb1.address_line_1,
etb1.address_line_2,
etb1.address_line_3,
etb1.town_or_city,
etb1.region_1,
etb1.region_2,
etb1.region_3,
etb1.postal_code,
etb1.country,
etb1.location_id,
etb1.etb_effective_from,
etb1.etb_effective_to,
NULL inventory_organization_id,
etb1.entity_name,
NULL operating_unit,
etb1.chart_of_accounts_id,
NULL location_code,
NULL in_organization_flag,
NULL inactive_date,
NULL telephone_number_1,
NULL est_location_id,
NULL master_organization_flag, --ENH 13814832
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
213
TO_NUMBER (NULL) master_organization_id, --ENH 13814832
NULL organization_name, --ENH 13814832
NULL operating_unit_name --ENH 13814832
FROM cll_f255_establishment_v etb1, xle_establishment_v xe
WHERE etb1.inventory_organization_id IS NOT NULL
AND xe.establishment_id = etb1.establishment_id
AND xe.main_establishment_flag = 'Y'
UNION
SELECT DISTINCT '02' entity_type,
'ESTAB' entity_description,
'02 - ESTAB' entity_subtype,
etb1.ledger_id,
etb1.establishment_id,
etb1.establishment_name,
etb1.legal_entity_id,
etb1.registration_number,
etb1.legislative_cat_code,
etb1.address_line_1,
etb1.address_line_2,
etb1.address_line_3,
etb1.town_or_city,
etb1.region_1,
etb1.region_2,
etb1.region_3,
etb1.postal_code,
etb1.country,
etb1.location_id,
etb1.etb_effective_from,
etb1.etb_effective_to,
NULL inventory_organization_id,
etb1.entity_name,
NULL operating_unit,
etb1.chart_of_accounts_id,
NULL location_code,
NULL in_organization_flag,
NULL inactive_date,
NULL telephone_number_1,
NULL est_location_id,
NULL master_organization_flag,
TO_NUMBER (NULL) master_organization_id,
NULL organization_name,
NULL operating_unit_name
FROM cll_f255_establishment_v etb1, xle_establishment_v xe
WHERE etb1.inventory_organization_id IS NOT NULL
AND xe.establishment_id = etb1.establishment_id
UNION
SELECT '03' entity_type,
'OU' entity_description,
'03 - OU' entity_subtype,
etb21.ledger_id,
etb21.establishment_id,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
214
etb21.establishment_name,
etb21.legal_entity_id,
etb21.registration_number,
etb21.legislative_cat_code,
etb21.address_line_1,
etb21.address_line_2,
etb21.address_line_3,
etb21.town_or_city,
etb21.region_1,
etb21.region_2,
etb21.region_3,
etb21.postal_code,
etb21.country,
etb21.location_id,
etb21.etb_effective_from,
etb21.etb_effective_to,
NULL inventory_organization_id,
etb21.entity_name,
etb21.operating_unit,
etb21.chart_of_accounts_id,
NULL location_code,
NULL in_organization_flag,
NULL inactive_date,
NULL telephone_number_1,
NULL est_location_id,
NULL master_organization_flag,
TO_NUMBER (NULL) master_organization_id,
NULL organization_name,
od2.operating_unit_name
FROM cll_f255_establishment_v etb21,
(SELECT DISTINCT operating_unit, operating_unit_name
FROM cll_f255_org_definitions_v) od2
WHERE etb21.inventory_organization_id IS NULL
AND od2.operating_unit = etb21.operating_unit
UNION
SELECT '05' entity_type,
'INV' entity_description,
'05 - INV' entity_subtype,
etb1.ledger_id,
etb1.establishment_id,
etb1.establishment_name,
etb1.legal_entity_id,
etb1.registration_number,
etb1.legislative_cat_code,
etb1.address_line_1,
etb1.address_line_2,
etb1.address_line_3,
etb1.town_or_city,
etb1.region_1,
etb1.region_2,
etb1.region_3,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
215
etb1.postal_code,
etb1.country,
etb1.location_id,
etb1.etb_effective_from,
etb1.etb_effective_to,
etb1.inventory_organization_id,
etb1.entity_name,
etb1.operating_unit,
etb1.chart_of_accounts_id,
etb1.location_code,
etb1.in_organization_flag,
etb1.inactive_date,
etb1.telephone_number_1,
etb1.est_location_id,
etb1.master_organization_flag,
etb1.master_organization_id,
od1.organization_name,
od2.operating_unit_name
FROM cll_f255_establishment_v etb1,
cll_f255_org_definitions_v od1,
(SELECT DISTINCT operating_unit, operating_unit_name
FROM cll_f255_org_definitions_v) od2
WHERE etb1.inventory_organization_id IS NOT NULL
AND od1.organization_id = etb1.inventory_organization_id
AND od2.operating_unit (+) = etb1.operating_unit -- ENH 19277642: included
outer join
UNION
SELECT DISTINCT '03' entity_type,
'OU' entity_description,
'03 - WITHOUT OU' entity_subtype,
etb1.ledger_id,
etb1.establishment_id,
etb1.establishment_name,
etb1.legal_entity_id,
etb1.registration_number,
etb1.legislative_cat_code,
etb1.address_line_1,
etb1.address_line_2,
etb1.address_line_3,
etb1.town_or_city,
etb1.region_1,
etb1.region_2,
etb1.region_3,
etb1.postal_code,
etb1.country,
etb1.location_id,
etb1.etb_effective_from,
etb1.etb_effective_to,
NULL inventory_organization_id,
etb1.entity_name,
etb1.operating_unit,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
216
etb1.chart_of_accounts_id,
NULL location_code,
NULL in_organization_flag,
NULL inactive_date,
NULL telephone_number_1,
NULL est_location_id,
NULL master_organization_flag,
TO_NUMBER (NULL) master_organization_id,
NULL organization_name,
od2.operating_unit_name
FROM cll_f255_establishment_v etb1,
(SELECT DISTINCT operating_unit, operating_unit_name
FROM cll_f255_org_definitions_v) od2
WHERE etb1.inventory_organization_id IS NOT NULL
AND od2.operating_unit (+) = etb1.operating_unit -- ENH 19277642: included
outer join
MINUS
SELECT '03' entity_type,
'OU' entity_description,
'03 - WITHOUT OU' entity_subtype,
etb21.ledger_id,
etb21.establishment_id,
etb21.establishment_name,
etb21.legal_entity_id,
etb21.registration_number,
etb21.legislative_cat_code,
etb21.address_line_1,
etb21.address_line_2,
etb21.address_line_3,
etb21.town_or_city,
etb21.region_1,
etb21.region_2,
etb21.region_3,
etb21.postal_code,
etb21.country,
etb21.location_id,
etb21.etb_effective_from,
etb21.etb_effective_to,
NULL inventory_organization_id,
etb21.entity_name,
etb21.operating_unit,
etb21.chart_of_accounts_id,
NULL location_code,
NULL in_organization_flag,
NULL inactive_date,
NULL telephone_number_1,
NULL est_location_id,
NULL master_organization_flag,
TO_NUMBER (NULL) master_organization_id,
NULL organization_name,
od2.operating_unit_name
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
217
FROM cll_f255_establishment_v etb21,
(SELECT DISTINCT operating_unit, operating_unit_name
FROM cll_f255_org_definitions_v) od2
WHERE etb21.inventory_organization_id IS NULL
AND od2.operating_unit = etb21.operating_unit) ff

Null /
Column Type of Data Description
Not Null
ENTITY_TYPE CHAR(2) Entity code of the row
ENTITY_DESCRIPTIO Entity description of
VARCHAR2(5)
N the row
Entity subtype of the
ENTITY_SUBTYPE VARCHAR2(15)
row
Ledger defining
LEDGER_ID NUMBER(15,0)
column
Establishment
ESTABLISHMENT_ID NUMBER(15,0)
Identifier
ESTABLISHMENT_NA
VARCHAR2(240) Name
ME
LEGAL_ENTITY_ID NUMBER(15,0) Legal Entity Identifier
REGISTRATION_NUM
VARCHAR2(30) Registration Number
BER
LEGISLATIVE_CAT_C Legislative Category
VARCHAR2(30)
ODE Code
1st line of location
ADDRESS_LINE_1 VARCHAR2(240)
address
2nd line of location
ADDRESS_LINE_2 VARCHAR2(240)
address
3rd line of location
ADDRESS_LINE_3 VARCHAR2(240)
address
TOWN_OR_CITY VARCHAR2(30) Town or city.
County (US, UK);
REGION_1 VARCHAR2(120)
Province (CA).
State (US); Province of
REGION_2 VARCHAR2(120)
work (CA).
Additional address
segment - not used by
REGION_3 VARCHAR2(120)
seeded address
structures
POSTAL_CODE VARCHAR2(30) Postal code
COUNTRY VARCHAR2(60) Country.
System-generated
LOCATION_ID NUMBER
primary key column
ETB_EFFECTIVE_FRO
DATE Effective From
M
ETB_EFFECTIVE_TO DATE Effective To
Inventory
INVENTORY_ORGAN
NUMBER(15,0) organization foreign
IZATION_ID
key
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
218
VARCHAR2(400
ENTITY_NAME Entity Name
0)
OPERATING_UNIT NUMBER Operation Unit
CHART_OF_ACCOUN Key flexfield structure
NOT NULL NUMBER(15,0)
TS_ID defining column
LOCATION_CODE VARCHAR2(60) Location name.
Indicates whether this
IN_ORGANIZATION_
VARCHAR2(30) location is an internal
FLAG
site
Date after which this
INACTIVE_DATE DATE location is no longer
valid.
TELEPHONE_NUMBE
VARCHAR2(60) Telephone number
R_1
Identifier
EST_LOCATION_ID NUMBER Establishment
Location
MASTER_ORGANIZA Item master
VARCHAR2(1)
TION_FLAG organization flag
MASTER_ORGANIZA Master organization
NUMBER
TION_ID identifier
ORGANIZATION_NA
VARCHAR2(240) Name of organization
ME
OPERATING_UNIT_N Operating unit
VARCHAR2(240)
AME identifier

CLL_F255_MTL_UNITS_MEASURE_V
Selects the information in the CLL_F255_MTL_UNITS_MEASURE_V view together with
other columns that are referred to

SELECT
mum.unit_of_measure ,
mum.unit_of_measure_tl ,
mum.uom_code ,
mum.uom_class ,
mum.description ,
mum.language ,
fnl.installed_flag ,
mum.creation_date ,
mum.last_update_date ,
mum.attribute_category ,
mum.attribute1 ,
mum.attribute2 ,
mum.attribute3 ,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
219
mum.attribute4 ,
mum.attribute5 ,
mum.attribute6 ,
mum.attribute7 ,
mum.attribute8 ,
mum.attribute9 ,
mum.attribute10 ,
mum.attribute11 ,
mum.attribute12 ,
mum.attribute13 ,
mum.attribute14 ,
mum.attribute15
FROM
mtl_units_of_measure_tl mum ,
fnd_languages fnl
WHERE
fnl.language_code = mum.language and
fnl.installed_flag in ('B','I');

Null /
Column Type of Data Description
Not Null
UNIT_OF_MEASURE NOT NULL VARCHAR2(25) Unit of measure name
UNIT_OF_MEASURE_ Unit of measure name
NOT NULL VARCHAR2(25)
TL translation
Abbreviated unit of
UOM_CODE NOT NULL VARCHAR2(3)
measure code
UOM_CLASS NOT NULL VARCHAR2(10) Unit of measure class
Unit of measure
DESCRIPTION VARCHAR2(50)
description
The defined Language
Code of the row (From
LANGUAGE_CODE
LANGUAGE NOT NULL VARCHAR2(4)
column in
FND_LANGUAGES
table
Flag to indicate if the
INSTALLED_FLAG NOT NULL VARCHAR2(1) language is installed
and available for use
CREATION_DATE NOT NULL DATE Standard Who column
LAST_UPDATE_DATE NOT NULL DATE Standard Who column
Descriptive flexfield
ATTRIBUTE_CATEGO
VARCHAR2(30) structure defining
RY
column
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
220
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment

CLL_F255_OM_STOCK_V
Selects the information in the CLL_F255_OM_STOCK_V view together with other
columns that are referred to

SELECT
ooh.org_id,
mmt.transaction_id,
NVL(mmt.pick_slip_number,ooh.order_number) order_number,
NVL(rctt.global_attribute1,'NFF') document_code,
ool.line_number,
ool.unit_selling_price unit_price,
mmt.inventory_item_id,
mmt.organization_id,
mmt.transaction_type_id,
mmt.transaction_source_id,
mmt.transaction_source_name,
mmt.transaction_reference,
mmt.shipment_number,
mmt.waybill_airbill,
mmt.subinventory_code,
mmt.trx_source_line_id,
mmt.picking_line_id,
mmt.trx_source_delivery_id,
mmt.source_code,
mmt.source_line_id,
ool.ship_from_org_id location_id,
ooh.attribute1 ooe_attribute1,
ooh.attribute2 ooe_attribute2,
ooh.attribute3 ooe_attribute3,
ooh.attribute4 ooe_attribute4,
ooh.attribute5 ooe_attribute5,
ooh.attribute6 ooe_attribute6,
ooh.attribute7 ooe_attribute7,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
221
ooh.attribute8 ooe_attribute8,
ooh.attribute9 ooe_attribute9,
ooh.attribute10 ooe_attribute10,
ooh.attribute11 ooe_attribute11,
ooh.attribute12 ooe_attribute12,
ooh.attribute13 ooe_attribute13,
ooh.attribute14 ooe_attribute14,
ooh.attribute15 ooe_attribute15,
ooh.attribute16 ooe_attribute16,
ooh.attribute17 ooe_attribute17,
ooh.attribute18 ooe_attribute18,
ooh.attribute19 ooe_attribute19,
ooh.attribute20 ooe_attribute20,
ooh.global_attribute1 ooe_global_attribute1,
ooh.global_attribute2 ooe_global_attribute2,
ooh.global_attribute3 ooe_global_attribute3,
ooh.global_attribute4 ooe_global_attribute4,
ooh.global_attribute5 ooe_global_attribute5,
ooh.global_attribute6 ooe_global_attribute6,
ooh.global_attribute7 ooe_global_attribute7,
ooh.global_attribute8 ooe_global_attribute8,
ooh.global_attribute9 ooe_global_attribute9,
ooh.global_attribute10 ooe_global_attribute10,
ooh.global_attribute11 ooe_global_attribute11,
ooh.global_attribute12 ooe_global_attribute12,
ooh.global_attribute13 ooe_global_attribute13,
ooh.global_attribute14 ooe_global_attribute14,
ooh.global_attribute15 ooe_global_attribute15,
ooh.global_attribute16 ooe_global_attribute16,
ooh.global_attribute17 ooe_global_attribute17,
ooh.global_attribute18 ooe_global_attribute18,
ooh.global_attribute19 ooe_global_attribute19,
ooh.global_attribute20 ooe_global_attribute20
FROM oe_transaction_types_all ott,
ra_cust_trx_types_all rctt,
oe_order_headers_all ooh,
oe_order_lines_all ool,
mtl_material_transactions mmt
WHERE rctt.cust_trx_type_id = ott.cust_trx_type_id
AND ott.transaction_type_id = ooh.order_type_id
AND mmt.transaction_source_type_id = 2
AND ool.header_id = ooh.header_id
AND ool.inventory_item_id = mmt.inventory_item_id
AND ool.line_id = mmt.trx_source_line_id
AND ooh.header_id (+) = mmt.transaction_reference;

Null /
Column Type of Data Description
Not Null

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
222
Unique internal
identifier of the
ORG_ID NUMBER Operating Unit to
which the invoice
belongs
TRANSACTION_ID NOT NULL NUMBER Transaction identifier
Pick Slip number for
ORDER_NUMBER NUMBER
the transaction line
Descriptive flexfield
DOCUMENT_CODE VARCHAR2(150)
segment
Line sequence number
LINE_NUMBER NOT NULL NUMBER
within the order
Actual price chaged to
UNIT_PRICE NUMBER
customer
INVENTORY_ITEM_I Inventory item
NOT NULL NUMBER
D identifier
ORGANIZATION_ID NOT NULL NUMBER Organization identifier
TRANSACTION_TYPE Transaction type
NOT NULL NUMBER
_ID identifier
TRANSACTION_SOU Transaction source
NUMBER
RCE_ID identifier
TRANSACTION_SOU Transaction source
VARCHAR2(80)
RCE_NAME identfier
TRANSACTION_REFE Transaction reference
VARCHAR2(240)
RENCE code
Intransit shipment
SHIPMENT_NUMBER VARCHAR2(30)
identifier
Airbill / waybill
WAYBILL_AIRBILL VARCHAR2(20)
number
SUBINVENTORY_CO Transaction secondary
VARCHAR2(10)
DE inventory
TRX_SOURCE_LINE_I Line level transaction
NUMBER
D source id
PICKING_LINE_ID NUMBER Picking line id
TRX_SOURCE_DELIV Sales order delivery
NUMBER
ERY_ID identifier
User- entered source
SOURCE_CODE VARCHAR2(30) code for outside
transactions
Line level transaction
SOURCE_LINE_ID NUMBER
source id
DOCUMENT VARCHAR2(87) Receiving document
LOCATION_ID NUMBER Location identifier
Descriptive Flexfield
OOE_ATTRIBUTE1 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE2 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE3 VARCHAR2(240)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
223
Descriptive Flexfield
OOE_ATTRIBUTE4 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE5 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE6 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE7 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE8 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE9 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE10 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE11 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE12 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE13 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE14 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE15 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE16 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE17 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE18 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE19 VARCHAR2(240)
segment
Descriptive Flexfield
OOE_ATTRIBUTE20 VARCHAR2(240)
segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE1 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE2 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE3 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE4 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE5 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE6 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE7 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE8 segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
224
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE9 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE10 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE11 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE12 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE13 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE14 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE15 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE16 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE17 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE18 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE19 segment
OOE_GLOBAL_ATTRI Descriptive Flexfield
VARCHAR2(240)
BUTE20 segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
225
CLL_F255_OPM_FORMULA_ITEMS_V

Selects the information in the CLL_F255_OPM_FORMULA_ITEMS_V view together with


other columns that are referred to

SELECT
DECODE(LENGTH(fe.registration_number),15,
SUBSTR(fe.registration_number,2,9),
SUBSTR(fe.registration_number,1,8)) company_code -- Adicionado
, DECODE(LENGTH(fe.registration_number),15,
SUBSTR(fe.registration_number,10,4),
SUBSTR(fe.registration_number,9,4)) establishment_code -- Adicionado
, msi.concatenated_segments item_code
, msi.description item_description
, prod.item_um
, prod.qty
, prod.line_type
, prod.line_no
, msi.organization_id
, msi.inventory_item_id
, form.formula_id
, form.formula_no
, form.formula_vers
, form.formula_type
, form.scale_type
, form.formula_desc1
, form.formula_desc2
, form.formula_class
, form.fmcontrol_class
, form.in_use
, form.inactive_ind
, form.attribute1
, form.attribute2
, form.attribute3
, form.attribute4
, form.attribute5
, form.attribute6
, form.attribute7
, form.attribute8
, form.attribute9
, form.attribute10
, form.attribute11
, form.attribute12
, form.attribute13
, form.attribute14
, form.attribute15
, form.attribute16
, form.attribute17
, form.attribute18
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
226
, form.attribute19
, form.attribute20
, form.attribute21
, form.attribute22
, form.attribute23
, form.attribute24
, form.attribute25
, form.attribute26
, form.attribute27
, form.attribute28
, form.attribute29
, form.attribute30
, form.attribute_category
, form.text_code
, form.delete_mark
, form.created_by
, form.creation_date
, form.last_update_date
, form.last_updated_by
, form.last_update_login
, form.orgn_code
, form.formula_uom
, form.total_input_qty
, form.total_output_qty
, form.formula_status
, form.owner_id
, form.project_id
, fe.operating_unit
FROM fm_form_mst_b form
, fm_matl_dtl prod
, mtl_system_items_b_kfv msi
, cll_f255_establishment_v fe
WHERE form.formula_id = prod.formula_id
AND prod.inventory_item_id = msi.inventory_item_id
AND prod.organization_id = msi.organization_id
AND msi.organization_id = form.owner_organization_id
AND fe.inventory_organization_id = msi.organization_id

Null /
Column Type of Data Description
Not Null
COMPANY_CODE VARCHAR2(27) Company code
identifier
ESTABLISHMENT_CO VARCHAR2(12)
Establisment code
DE
ITEM_CODE VARCHAR2(40) Concatenated
segments
ITEM_DESCRIPTION VARCHAR2(240) Item description
ITEM_UM VARCHAR2(4) Unit of measures of
qty.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
227
QTY NUMBER Item qty produced or
consumed.
LINE_TYPE NUMBER Line type. 1=product; -
1=ingredient;
2=byprod.
LINE_NO NUMBER List order on screen
within a line_type.
ORGANIZATION_ID NUMBER Inventory
organization id
INVENTORY_ITEM_ID NUMBER Inventory item id
FORMULA_ID NUMBER Surrogate key for the
formula/version.
FORMULA_NO VARCHAR2(32) Alphanumeric formula
name or number.
FORMULA_VERS NUMBER Formula version.
FORMULA_TYPE NUMBER 0=std formula;
1=packaged item
formula
SCALE_TYPE NUMBER Controls scaling
behavior of formula.
0=Formula cannot be
scaled, 1=Formula can
be scaled.
FORMULA_DESC1 VARCHAR2(70)
FORMULA_DESC2 VARCHAR2(70)
FORMULA_CLASS VARCHAR2(8) Formula class. No
programatic support
(fm_form_cls).
FMCONTROL_CLASS VARCHAR2(8) Not currently used.
(fn_fmct_cls).
IN_USE NUMBER Not currently used
INACTIVE_IND NUMBER Inactive indicator.
0=Active, 1=Inactive.
ATTRIBUTE1 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE2 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE3 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE4 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE5 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE6 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE7 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE8 VARCHAR2(240) Descriptive flexfield
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
228
ATTRIBUTE9 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE10 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE11 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE12 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE13 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE14 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE15 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE16 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE17 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE18 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE19 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE20 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE21 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE22 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE23 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE24 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE25 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE26 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE27 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE28 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE29 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE30 VARCHAR2(240) Descriptive flexfield
segment
ATTRIBUTE_CATEGO VARCHAR2(30) Descriptive flexfield
RY segment
TEXT_CODE NUMBER ID which joins any
rows of text in this
table to the Text Table
for this Module
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
229
DELETE_MARK NUMBER Standard: 0=Active
record (default);
1=Marked for (logical)
deletion.
CREATED_BY NUMBER Standard who column
CREATION_DATE DATE Standard who column
LAST_UPDATE_DATE DATE Standard who column
LAST_UPDATED_BY NUMBER Standard who column
LAST_UPDATE_LOGIN NUMBER Standard who column
ORGN_CODE VARCHAR2(4) Organization Code
FORMULA_UOM VARCHAR2(4) Formula Unit of
Measure
TOTAL_INPUT_QTY NUMBER Total Input Quantity
TOTAL_OUTPUT_QTY NUMBER Total Output Quantity
FORMULA_STATUS VARCHAR2(30) Formula Status
OWNER_ID NUMBER Owner Identifier
PROJECT_ID NUMBER Project Identifier
OPERATING_UNIT NUMBER Operating Unit

CLL_F255_ORG_COMPANIES_V
Selects the information in the CLL_F255_ORG_COMPANIES_V view together with other
columns that are referred to

SELECT TO_CHAR(hl.location_id) location_id,


hl.location_code organization_id,
SUBSTR(cffe.document_type,1,6) document_type,
DECODE(LENGTH(cffe.document_number),15,
SUBSTR(cffe.document_number,2),
cffe.document_number) document,
DECODE(LENGTH(cffe.document_number),15,
SUBSTR(cffe.document_number,2,9),
SUBSTR(cffe.document_number,1,8)) company_code,
DECODE(LENGTH(cffe.document_number),15,
SUBSTR(cffe.document_number,10,4),
SUBSTR(cffe.document_number,9,4)) establishment_code,
DECODE(LENGTH(cffe.document_number),15,
SUBSTR(cffe.document_number,14,15),
SUBSTR(cffe.document_number,13,14)) register_digit,
cffe.ie ie,
hl.inactive_date inactive_date
FROM mtl_parameters mp,
hr_locations_all hl,
cll_f189_fiscal_entities_all cffe
WHERE mp.organization_id (+) = hl.inventory_organization_id
AND cffe.location_id = hl.location_id

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
230
AND cffe.document_type IN ('CNPJ','CPF')
AND cffe.entity_type_lookup_code = 'LOCATION'
UNION
SELECT cfe.entity_name location_id,
cfe.establishment_name organization_id,
'CPNJ' document_type,
SUBSTR(cfe.registration_number,2,14) document,
SUBSTR(cfe.registration_number,2,9) company_code,
NULL establishment_code,
NULL register_digit,
NULL ie,
NULL inactive_date
FROM cll_f255_establishment_v cfe;

Null /
Column Type of Data Description
Not Null
System-generated
LOCATION_ID VARCHAR2(4000)
primary key column
ORGANIZATION_ID VARCHAR2(240) Location name
DOCUMENT_TYPE VARCHAR2(18) Document Type
DOCUMENT VARCHAR2(87) Document
COMPANY_CODE VARCHAR2(27) Company Code
ESTABLISHMENT_CO
VARCHAR2(12) Establhishment Code
DE
REGISTER_DIGIT VARCHAR2(45) Register Digit
IE VARCHAR2(30) IE
Date after which this
INACTIVE_DATE DATE location is no longer
valid

CLL_F255_PAC_INVENTORY_V
Selects the information in the CLL_F255_PAC_INVENTORY_V view together with other
columns that are referred to

CREATE OR REPLACE VIEW cll_f255_pac_inventory_v (


type,
legal_entity,
cost_group_id,
cost_group,
cost_type_id,
cost_type,
period_id,
period_name,
inventory_date,
classification_code,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
231
item_type,
item_code,
subinventory_code,
cost_center,
category_id,
stock_description,
uom,
organization_id,
inventory_item_id,
quantity_inventory,
cost_total,
cost_unit,
cost_variance,
account,
count_group )
AS
SELECT '1-Stock' type,
ccg.legal_entity ,
ccg.cost_group_id ,
ccg.cost_group ,
cpp.cost_type_id ,
cct.cost_type ,
cpp.pac_period_id period_id,
cpp.period_name period_name,
cpp.period_end_date inventory_date,
-- DECODE(base.outside_flag,'N',1,'S',2) count_group, --- ENH 10086940
SUBSTR(mc1.concatenated_segments,1,10) classification_code,
msi.item_type item_type,
msi.concatenated_segments item_code,
basl.subinventory_code subinventory_code,
NULL cost_center,
mc.category_id category_id,
SUBSTR(mc.description,1,30) stock_description,
msi.primary_unit_of_measure uom,
msi.organization_id organization_id,
msi.inventory_item_id inventory_item_id,
basl.total_layer_quantity quantity_inventory,
basl.total_layer_quantity * cpic.item_cost cost_total,
cpic.item_cost cost_unit,
TO_NUMBER(NULL) cost_variance,
(select gcc.concatenated_segments
from mtl_fiscal_cat_accounts mfca, --BUG 9588585
gl_code_combinations_kfv gcc --BUG 9588585
where mfca.category_id = mic.category_id --BUG 9588585
AND mfca.cost_type_id = cct.cost_type_id --BUG 9588585
AND mfca.cost_group_id = basl.cost_group_id --BUG 9588585
AND mfca.legal_entity_id = ccg.legal_entity --BUG 9588585
AND mfca.material_account = gcc.code_combination_id --BUG 9588585
AND rownum = 1 ) account, --BUG 9588585 adjust BUG 9915402
DECODE(base.outside_flag,'N',0,'Y',1,'T',2) count_group --- ENH 10086940
FROM cst_pac_item_costs cpic,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
232
cst_pac_periods cpp,
cst_cost_types cct,
cst_cost_groups ccg,
cst_cost_group_assignments ccga,
-- hr_legal_entities hr, --BUG 8234896
cll_f032_subinventory_layers basl,
mtl_system_items_kfv msi,
mtl_item_categories mic,
mtl_categories mc,
-- mtl_default_category_sets mdcs, --BUG 9946802
mtl_item_categories mic1,
( SELECT *
FROM mtl_categories_b_kfv
WHERE structure_id = 4 ) mc1,
cll_f032_subinventories_ext base
WHERE basl.subinventory_code IS NOT NULL
AND basl.subinventory_code = base.secondary_inventory_name
AND basl.organization_id = base.organization_id
AND mic1.category_id = mc1.category_id(+)
/* AND exists ( SELECT 'x '
FROM mtl_category_sets_tl mcst
WHERE category_set_id = mic1.category_set_id
AND upper(category_set_name) = 'FISCAL_CLASSIFICATION') --BUG
9915402*/ -- BUG 10427796
--AND mic1.category_set_id(+) = 1100000209 -- hardcoded to Fiscal Classification
BUG 9915402
-- AND mdcs.functional_area_id = 1 --BUG 9946802
AND EXISTS (SELECT t.category_set_id
FROM mtl_category_sets_tl t
,mtl_category_sets_b mcs
,fnd_id_flex_structures_vl fifs
,mfg_lookups ml
WHERE mcs.category_set_id = t.category_set_id
AND t.LANGUAGE = USERENV ('LANG')
AND mcs.structure_id = fifs.id_flex_num
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
AND fifs.id_flex_structure_code = 'FISCAL_CLASSIFICATION'
AND t.category_set_id = mic1.category_set_id) -- BUG 10427796
AND msi.organization_id = mic1.organization_id(+)
AND msi.inventory_item_id = mic1.inventory_item_id(+)
-- AND mic.category_set_id = mdcs.category_set_id --BUG 9946802
AND mic.category_set_id = (SELECT a.category_set_id
FROM mtl_default_category_sets a
WHERE a.functional_area_id = 5)
AND mic.category_id = mc.category_id
AND msi.organization_id = mic.organization_id
AND msi.inventory_item_id = mic.inventory_item_id
AND basl.organization_id = msi.organization_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
233
AND basl.inventory_item_id = msi.inventory_item_id
AND cpic.pac_period_id = basl.pac_period_id
AND cpic.cost_group_id = basl.cost_group_id
AND ccga.cost_group_id = basl.cost_group_id
AND cpic.inventory_item_id = basl.inventory_item_id
AND ccga.organization_id = basl.organization_id
-- AND hr.organization_id = ccg.legal_entity --BUG 8234896
AND ccg.cost_group_id = ccga.cost_group_id
AND ccg.cost_group_type = 2 -- Organization Cost Group Type
AND cpp.legal_entity = ccg.legal_entity
AND cpic.cost_group_id = ccg.cost_group_id
AND cpp.cost_type_id = cct.cost_type_id
AND cpic.pac_period_id = cpp.pac_period_id
UNION ALL
SELECT '2-Additional' type,
baai.legal_entity ,
baai.cost_group_id ,
ccg.cost_group ,
cct.cost_type_id ,
cct.cost_type ,
baai.pac_period_id period_id,
cpp.period_name period_name,
cpp.period_end_date inventory_date,
-- DECODE(base.outside_flag,'N',1,'S',2) count_group, --- ENH 10086940
NULL classification_code,
NULL item_type,
SUBSTR(baai.description,1,35) item_code,
baai.subinventory_code subinventory_code,
NULL cost_center,
TO_NUMBER(NULL) category_id,
'ADDITIONAL_ITEM' stock_description,
NULL uom,
0 organization_id,
0 inventory_item_id,
TO_NUMBER(NULL) quantity_inventory,
baai.balance_value cost_total,
TO_NUMBER(NULL) cost_unit,
TO_NUMBER(NULL) cost_variance,
NULL account, --BUG 9588585
DECODE(base.outside_flag,'N',0,'Y',1,'T',2) count_group --- ENH 10086940
FROM cll_f032_additional_items baai,
cll_f032_subinventories_ext base,
-- hr_legal_entities hr, --BUG 8234896
cst_cost_groups ccg,
cst_cost_types cct,
cst_pac_periods cpp
WHERE base.secondary_inventory_name = baai.subinventory_code
AND base.organization_id = baai.organization_id
AND baai.subinventory_code IS NOT NULL
AND cpp.pac_period_id = baai.pac_period_id
AND cct.cost_type_id = baai.cost_type_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
234
AND baai.cost_group_id = ccg.cost_group_id
-- AND hr.organization_id = ccg.legal_entity --BUG 8234896
AND ccg.cost_group_type = 2 -- Organization Cost Group Type
UNION ALL
SELECT '3-In Process' type,
cpp.legal_entity ,
wppb.cost_group_id ,
ccg.cost_group ,
wppb.cost_type_id ,
cct.cost_type ,
wppb.pac_period_id period_id,
cpp.period_name period_name,
cpp.period_end_date inventory_date,
-- 1 count_group, --- ENH 10086940
SUBSTR(mc1.concatenated_segments,1,10) classification_code,
msi.item_type item_type,
msi.concatenated_segments item_code,
bd.department_code subinventory_code,
SUBSTR(we.wip_entity_name,1,20) cost_center,
mc.category_id category_id,
substr(mc.description,1,30) stock_description,
msi.primary_unit_of_measure uom,
msi.organization_id organization_id,
msi.inventory_item_id inventory_item_id,
(NVL(wdj.start_quantity,0) - cll_f255_utils_pkg.get_quantity_mtl(we.wip_entity_id,
cpp.period_end_date)) quantity_inventory,
SUM((NVL(wppb.tl_resource_in,0)
+ NVL(wppb.tl_outside_processing_in,0)
+ NVL(wppb.tl_overhead_in,0)
- NVL(wppb.tl_resource_out,0)
- NVL(wppb.tl_outside_processing_out,0)
- NVL(wppb.tl_overhead_out,0)
+ NVL(wppb.pl_material_in,0)
+ NVL(wppb.pl_resource_in,0)
+ NVL(wppb.pl_overhead_in,0)
+ NVL(wppb.pl_outside_processing_in,0)
+ NVL(wppb.pl_material_overhead_in,0)
- NVL(wppb.pl_material_out,0)
- NVL(wppb.pl_resource_out,0)
- NVL(wppb.pl_overhead_out,0)
- NVL(wppb.pl_outside_processing_out,0)
- NVL(wppb.pl_material_overhead_out,0))) cost_total,
TO_NUMBER(NULL) cost_unit,
SUM((NVL(wppb.tl_resource_var,0)
+ NVL(wppb.tl_outside_processing_var,0)
+ NVL(wppb.tl_overhead_var,0)
+ NVL(wppb.pl_material_var,0)
+ NVL(wppb.pl_material_overhead_var,0)
+ NVL(wppb.pl_resource_var,0)
+ NVL(wppb.pl_outside_processing_var,0)
+ NVL(wppb.pl_overhead_var,0))) cost_variance,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
235
gcc.concatenated_segments account, --BUG 9588585
1 count_group --- ENH 10086940
FROM wip_pac_period_balances wppb,
wip_operations wo,
wip_entities we,
wip_discrete_jobs wdj,
mtl_system_items_kfv msi,
mtl_item_categories mic1,
(SELECT *
FROM mtl_categories_b_kfv
WHERE structure_id =4) mc1,
mtl_item_categories mic,
bom_departments bd,
cst_pac_periods cpp,
mtl_categories mc,
-- hr_legal_entities hr,
cst_cost_groups ccg,
cst_cost_types cct,
wip_accounting_classes wac, --BUG 9588585
gl_code_combinations_kfv gcc --BUG 9588585
-- mtl_default_category_sets mdcs --BUG 9946802
WHERE mc.category_id = mic.category_id
AND mic.organization_id = msi.organization_id
AND mic.inventory_item_id = msi.inventory_item_id
-- AND mic.category_set_id = mdcs.category_set_id --BUG 9946802
AND mic.category_set_id = (SELECT a.category_set_id
FROM mtl_default_category_sets a
WHERE a.functional_area_id = 5)
AND mc1.category_id (+) = mic1.category_id
AND mic1.organization_id (+) = msi.organization_id
AND mic1.inventory_item_id (+) = msi.inventory_item_id
/* AND exists ( SELECT 'x '
FROM mtl_category_sets_tl mcst
WHERE category_set_id = mic1.category_set_id
AND upper(category_set_name) = 'FISCAL_CLASSIFICATION') --BUG
9915402 */
--AND mic1.category_set_id(+) = 1100000209 -- hardcoded to Fiscal Classification
BUG 9915402 -- BUG 10427796
-- AND mdcs.functional_area_id = 1 --- Inventory BUG 9915402
AND EXISTS (SELECT t.category_set_id
FROM mtl_category_sets_tl t
,mtl_category_sets_b mcs
,fnd_id_flex_structures_vl fifs
,mfg_lookups ml
WHERE mcs.category_set_id = t.category_set_id
AND t.LANGUAGE = USERENV ('LANG')
AND mcs.structure_id = fifs.id_flex_num
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
236
AND fifs.id_flex_structure_code = 'FISCAL_CLASSIFICATION'
AND t.category_set_id = mic1.category_set_id) -- BUG 10427796
AND bd.department_id = wo.department_id
AND msi.organization_id = we.organization_id
AND msi.inventory_item_id = we.primary_item_id
AND we.organization_id = wppb.organization_id
AND we.wip_entity_id = wppb.wip_entity_id
AND wdj.organization_id = we.organization_id
AND wdj.wip_entity_id = we.wip_entity_id
AND wo.wip_entity_id = wppb.wip_entity_id
AND wo.operation_seq_num = wppb.operation_seq_num
AND wo.organization_id = wppb.organization_id
AND cct.cost_type_id = wppb.cost_type_id
-- AND hr.organization_id = ccg.legal_entity --BUG 8234896
AND ccg.cost_group_id = wppb.cost_group_id
AND ccg.cost_group_type = 2 -- Organization Cost Group
AND cpp.pac_period_id = wppb.pac_period_id
AND (wdj.date_closed IS NULL OR TRUNC(wdj.date_closed) >=
cpp.period_start_date ) --BUG 17800584
AND (wdj.date_released IS NOT NULL AND TRUNC(wdj.date_released) <=
cpp.period_end_date ) --BUG 17800584
AND we.entity_type = wac.class_type(+) --BUG 9588585
AND wac.material_account = gcc.code_combination_id(+) --BUG 9588585
AND wac.organization_id (+) = we.organization_id --BUG 9588585
GROUP BY cpp.legal_entity,
wppb.cost_group_id,
ccg.cost_group,
wppb.cost_type_id,
cct.cost_type,
wppb.pac_period_id,
cpp.period_name,
cpp.period_end_date,
1,
SUBSTR(mc1.concatenated_segments,1,10),
msi.item_type,
msi.concatenated_segments,
bd.department_code,
SUBSTR(we.wip_entity_name,1,20),
mc.category_id,
substr(mc.description,1,30),
msi.primary_unit_of_measure,
msi.organization_id,
msi.inventory_item_id,
NVL(wdj.start_quantity,0) - cll_f255_utils_pkg.get_quantity_mtl(we.wip_entity_id,
cpp.period_end_date),
gcc.concatenated_segments --BUG 9588585
UNION ALL
SELECT '4-In Process/Without Routing' type,
cpp.legal_entity ,
wppb.cost_group_id ,
ccg.cost_group ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
237
wppb.cost_type_id ,
cct.cost_type ,
wppb.pac_period_id period_id,
cpp.period_name period_name,
cpp.period_end_date inventory_date,
--- 1 count_group, --- ENH 10086940
SUBSTR(mc1.concatenated_segments,1,10) classification_code,
msi.item_type item_type,
msi.concatenated_segments item_code,
NULL subinventory_code,
SUBSTR(we.wip_entity_name,1,20) cost_center,
mc.category_id category_id,
SUBSTR(mc.description,1,30) stock_description,
msi.primary_unit_of_measure uom,
msi.organization_id organization_id,
msi.inventory_item_id inventory_item_id,
(NVL(wdj.start_quantity,0) - cll_f255_utils_pkg.get_quantity_mtl(we.wip_entity_id,
cpp.period_end_date)) quantity_inventory,
(NVL(wppb.tl_resource_in,0)
+ NVL(wppb.tl_outside_processing_in,0)
+ NVL(wppb.tl_overhead_in,0)
- NVL(wppb.tl_resource_out,0)
- NVL(wppb.tl_outside_processing_out,0)
- NVL(wppb.tl_overhead_out,0)
+ NVL(wppb.pl_material_in,0)
+ NVL(wppb.pl_resource_in,0)
+ NVL(wppb.pl_overhead_in,0)
+ NVL(wppb.pl_outside_processing_in,0)
+ NVL(wppb.pl_material_overhead_in,0)
- NVL(wppb.pl_material_out,0)
- NVL(wppb.pl_resource_out,0)
- NVL(wppb.pl_overhead_out,0)
- NVL(wppb.pl_outside_processing_out,0)
- NVL(wppb.pl_material_overhead_out,0)) cost_total,
TO_NUMBER(NULL) cost_unit,
(NVL(wppb.tl_resource_var,0)
+ NVL(wppb.tl_outside_processing_var,0)
+ NVL(wppb.tl_overhead_var,0)
+ NVL(wppb.pl_material_var,0)
+ NVL(wppb.pl_material_overhead_var,0)
+ NVL(wppb.pl_resource_var,0)
+ NVL(wppb.pl_outside_processing_var,0)
+ NVL(wppb.pl_overhead_var,0)) cost_variance,
gcc.concatenated_segments account, --BUG 9588585
1 count_group --- ENH 10086940
FROM wip_pac_period_balances wppb,
wip_requirement_operations wro,
wip_entities we,
wip_discrete_jobs wdj,
mtl_system_items_kfv msi,
mtl_item_categories mic,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
238
cst_pac_periods cpp,
mtl_categories mc,
mtl_item_categories mic1,
(SELECT *
FROM mtl_categories_b_kfv
WHERE structure_id = 4) mc1,
-- hr_legal_entities hr, --BUG 8234896
cst_cost_groups ccg,
cst_cost_types cct,
wip_accounting_classes wac, --BUG 9588585
gl_code_combinations_kfv gcc --BUG 9588585
-- mtl_default_category_sets mdcs --BUG 9946802
WHERE mc.category_id = mic.category_id
AND mic.organization_id = msi.organization_id
AND mic.inventory_item_id = msi.inventory_item_id
-- AND mic.category_set_id = mdcs.category_set_id --BUG 9946802
AND mic.category_set_id = (SELECT a.category_set_id
FROM mtl_default_category_sets a
WHERE a.functional_area_id = 5)
AND mc1.category_id (+) = mic1.category_id
AND mic1.organization_id (+) = msi.organization_id
AND mic1.inventory_item_id (+) = msi.inventory_item_id
/* AND exists ( SELECT 'x '
FROM mtl_category_sets_tl mcst
WHERE category_set_id = mic1.category_set_id
AND upper(category_set_name) = 'FISCAL_CLASSIFICATION') --BUG
9915402
*/ --AND mic1.category_set_id(+) = 1100000209 -- hardcoded to Fiscal Classification
BUG 9915402 -- BUG 10427796
-- AND mdcs.functional_area_id = 1 --- Inventory BUG 9915402
AND EXISTS (SELECT t.category_set_id
FROM mtl_category_sets_tl t
,mtl_category_sets_b mcs
,fnd_id_flex_structures_vl fifs
,mfg_lookups ml
WHERE mcs.category_set_id = t.category_set_id
AND t.LANGUAGE = USERENV ('LANG')
AND mcs.structure_id = fifs.id_flex_num
AND fifs.application_id = 401
AND fifs.id_flex_code = 'MCAT'
AND mcs.control_level = ml.lookup_code
AND ml.lookup_type = 'ITEM_CONTROL_LEVEL_GUI'
AND fifs.id_flex_structure_code = 'FISCAL_CLASSIFICATION'
AND t.category_set_id = mic1.category_set_id) -- BUG 10427796
AND msi.organization_id = we.organization_id
AND msi.inventory_item_id = we.primary_item_id
AND we.organization_id = wppb.organization_id
AND we.wip_entity_id = wppb.wip_entity_id
AND wdj.organization_id = we.organization_id
AND wdj.wip_entity_id = we.wip_entity_id
AND cct.cost_type_id = wppb.cost_type_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
239
-- AND hr.organization_id = ccg.legal_entity
AND ccg.cost_group_id = wppb.cost_group_id
AND ccg.cost_group_type = 2 -- Organization Cost Group
AND cpp.pac_period_id = wppb.pac_period_id
AND wro.wip_entity_id = we.wip_entity_id
AND we.wip_entity_id NOT IN ( SELECT wo.wip_entity_id
FROM wip_operations wo )
AND wro.wip_entity_id = we.wip_entity_id
AND wro.inventory_item_id = ( SELECT MIN(inventory_item_id)
FROM wip_requirement_operations wro1
WHERE wro1.wip_entity_id = we.wip_entity_id)
AND (wdj.date_closed IS NULL OR TRUNC(wdj.date_closed) >=
cpp.period_start_date ) --BUG 17800584
AND (wdj.date_released IS NOT NULL AND TRUNC(wdj.date_released) <=
cpp.period_end_date ) --BUG 17800584
AND we.entity_type = wac.class_type(+) --BUG 9588585
AND wac.material_account = gcc.code_combination_id(+) --BUG 9588585
AND wac.organization_id(+) = we.organization_id --BUG 9588585
WITH READ ONLY
/

Null /
Column Type of Data Description
Not Null
TYPE VARCHAR2(28) Default 1-Stock
LEGAL_ENTITY NUMBER Legal Entity Identifier
COST_GROUP_ID NUMBER Cost Group Identifier
COST_GROUP VARCHAR2(10) Cost Group Identifier
COST_TYPE_ID NUMBER Cost Type Identifier
COST_TYPE VARCHAR2(10) Cost Type Identifier
Periodic Costing
PERIOD_ID NUMBER
Period Identifier
PERIOD_NAME VARCHAR2(15) Period Name
INVENTORY_DATE DATE Period End Date
CLASSIFICATION_CO
VARCHAR2(30) Classification Code
DE
ITEM_TYPE VARCHAR2(30) Item Type
ITEM_CODE VARCHAR2(105) Item Code
SUBINVENTORY_CO
VARCHAR2(10) Subinventory Code
DE
COST_CENTER VARCHAR2(60) Cost Center
CATEGORY_ID NUMBER Category Id
STOCK_DESCRIPTIO
VARCHAR2(90) Stock Description
N
UOM VARCHAR2(25) Uom
ORGANIZATION_ID NUMBER Organization Id

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
240
INVENTORY_ITEM_I Inventory item
NUMBER
D identifier
QUANTITY_INVENT
NUMBER Quantity Inventory
ORY
COST_TOTAL NUMBER Cost Total
COST_UNIT NUMBER Cost Unit
COST_VARIANCE NUMBER Cost Variance
Concatenated
ACCOUNT VARCHAR2(311)
Segments
Values:
N: 0
COUNT_GROUP NUMBER
Y: 1
T: 2

CLL_F255_PAC_STOCK_V
Selects the information in the CLL_F255_PAC_STOCK_V view together with other
columns that are referred to

SELECT ccg.legal_entity ,
ccg.cost_group_id ,
ccg.cost_group ,
cpp.cost_type_id ,
cct.cost_type ,
cpp.pac_period_id ,
cpp.period_name ,
NULL registration_number,
DECODE(SIGN(mmt.primary_quantity),1,'E',-1,'S') type,
DECODE(mmt.transaction_action_id,1,
DECODE(mmt.transaction_source_type_id,1,'D',

'N'),
27,
DECODE(mmt.transaction_source_type_id, 12,'D','N')
, 'N') return,
-- DECODE(cfse.outside_flag, 'N', 1, 'S', 2 ) count_group, --- ENH 10086940
mmt.organization_id ,
mmt.inventory_item_id ,
mmt.transaction_date ,
mmt.creation_date ,
mmt.transaction_source_id ,
mmt.transaction_source_type_id ,
mmt.transaction_type_id ,
mmt.transaction_id ,
mmt.trx_source_line_id ,
mmt.trx_source_delivery_id ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
241
mmt.picking_line_id ,
mmt.rcv_transaction_id ,
msi.item_type ,
msi.concatenated_segments ,
mmt.subinventory_code ,
mc.category_id ,
substr(mc.description,1,30) category_description,
mmt.primary_quantity quantity,
mmt.currency_code ,
( SELECT SUM( mpacd2.actual_cost )
FROM mtl_pac_actual_cost_details mpacd2
WHERE mpacd2.transaction_id = mmt.transaction_id ) unit_cost,
mmt.org_cost_group_id ,
ccga.organization_id organization_id_unit,
mmt.transaction_uom, --- ENH 10086940
(SELECT mmt1.operation_seq_num
FROM mtl_material_transactions mmt1
WHERE mmt1.transaction_type_id = 44
AND mmt1.transaction_id = mmt.transaction_id
) Operation_Seq_Num, --- ENH 10086940
DECODE(cfse.outside_flag,'N',0,'Y',1,'T',2) count_group
FROM mtl_material_transactions mmt,
mtl_pac_actual_cost_details mpacd,
mtl_system_items_kfv msi,
mtl_item_categories mic,
mtl_categories mc,
mtl_default_category_sets mdcs,
cst_pac_periods cpp,
cst_cost_types cct,
cst_cost_group_assignments ccga,
cst_cost_groups ccg,
-- cll_f255_establishment_v cfev, --BUG 8429091
cll_f032_subinventories_ext cfse
WHERE mmt.subinventory_code = cfse.secondary_inventory_name (+)
AND mmt.organization_id = cfse.organization_id (+)
-- AND mmt.organization_id = cfev.inventory_organization_id (+) --BUG 8429091
-- AND ccg.legal_entity = cfev.legal_entity_id
AND mpacd.cost_group_id = ccga.cost_group_id
AND mmt.organization_id = ccga.organization_id
AND ccg.cost_group_type =2
AND mpacd.cost_group_id = ccg.cost_group_id
AND mmt.transaction_date BETWEEN cpp.period_start_date
AND cpp.period_end_date+.99999
AND mpacd.cost_type_id = cct.cost_type_id
AND mpacd.pac_period_id = cpp.pac_period_id
AND mpacd.cost_type_id = cpp.cost_type_id
AND mc.category_id = mic.category_id
AND mic.organization_id = msi.organization_id
AND mic.inventory_item_id = msi.inventory_item_id
AND mic.organization_id = msi.organization_id
AND mic.category_set_id = mdcs.category_set_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
242
AND mdcs.functional_area_id = 1 /* Inventory */
AND msi.organization_id = mmt.organization_id
AND msi.inventory_item_id = mmt.inventory_item_id
AND mpacd.transaction_id = mmt.transaction_id
AND mpacd.cost_element_id = 1
AND mpacd.level_type =1
AND (mmt.subinventory_code IS NOT NULL
OR mmt.transaction_type_id = 26)
UNION ALL
SELECT ccg.legal_entity ,
ccg.cost_group_id ,
ccg.cost_group ,
cpp.cost_type_id ,
cct.cost_type ,
cpp.pac_period_id ,
cpp.period_name ,
NULL registration_number,
DECODE(SIGN(mmt.primary_quantity),1,'E',-1,'S') type,
DECODE(mmt.transaction_action_id,1,
DECODE(mmt.transaction_source_type_id,1,'D',

'N'),
27,
DECODE(mmt.transaction_source_type_id, 12,'D','N')
, 'N') return,
-- DECODE(cfse.outside_flag, 'N', 1, 'S', 2 ) count_group, --- ENH 10086940
mmt.organization_id ,
mmt.inventory_item_id ,
mmt.transaction_date ,
mmt.creation_date ,
mmt.transaction_source_id ,
mmt.transaction_source_type_id ,
mmt.transaction_type_id ,
mmt.transaction_id ,
mmt.trx_source_line_id ,
mmt.trx_source_delivery_id ,
mmt.picking_line_id ,
mmt.rcv_transaction_id ,
msi.item_type ,
msi.concatenated_segments ,
mmt.subinventory_code ,
mc.category_id ,
substr(mc.description,1,30) category_description,
mmt.primary_quantity quantity,
mmt.currency_code ,
( SELECT SUM( mpacd2.actual_cost )
FROM mtl_pac_actual_cost_details mpacd2
WHERE mpacd2.transaction_id = mmt.transaction_id ) unit_cost,
mmt.org_cost_group_id ,
ccga.organization_id organization_id_unit,
mmt.transaction_uom, --- ENH 10086940
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
243
(SELECT mmt1.operation_seq_num
FROM mtl_material_transactions mmt1
WHERE mmt1.transaction_type_id = 44
AND mmt1.transaction_id = mmt.transaction_id
) Operation_Seq_Num, --- ENH 10086940
DECODE(cfse.outside_flag,'N',0,'Y',1,'T',2) count_group
FROM mtl_material_transactions mmt,
mtl_pac_actual_cost_details mpacd,
mtl_system_items_kfv msi,
mtl_item_categories mic,
mtl_categories mc,
mtl_default_category_sets mdcs,
cst_pac_periods cpp,
cst_cost_types cct,
cst_cost_group_assignments ccga,
cst_cost_groups ccg,
-- cll_f255_establishment_v cfev, --BUG 8429091
cll_f032_subinventories_ext cfse
WHERE mmt.subinventory_code = cfse.secondary_inventory_name (+)
AND mmt.organization_id = cfse.organization_id (+)
-- AND mmt.organization_id = cfev.inventory_organization_id (+) --BUG 8429091
-- AND ccg.legal_entity = cfev.legal_entity_id --BUG 8429091
AND mpacd.cost_group_id = ccga.cost_group_id
AND mmt.organization_id = ccga.organization_id
AND ccg.cost_group_type =2
AND mpacd.cost_group_id = ccg.cost_group_id
AND mmt.transaction_date BETWEEN cpp.period_start_date
AND cpp.period_end_date+.99999
AND mpacd.cost_type_id = cct.cost_type_id
AND mpacd.pac_period_id = cpp.pac_period_id
AND mpacd.cost_type_id = cpp.cost_type_id
AND mc.category_id = mic.category_id
AND mic.organization_id = msi.organization_id
AND mic.inventory_item_id = msi.inventory_item_id
AND mic.organization_id = msi.organization_id
AND mic.category_set_id = mdcs.category_set_id
AND mdcs.functional_area_id = 1 /* Inventory */
AND msi.organization_id = mmt.transfer_organization_id
AND msi.inventory_item_id = mmt.inventory_item_id
AND mpacd.transaction_id = mmt.transfer_transaction_id
AND mpacd.cost_element_id =1
AND mpacd.level_type =1
AND (mmt.subinventory_code IS NOT NULL
OR mmt.transaction_type_id = 26)
AND mmt.transaction_action_id =2
AND NVL(mmt.transaction_quantity,0) > 0;

Null /
Column Type of Data Description
Not Null
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
244
LEGAL_ENTITY NUMBER Legal Entity Identifier
COST_GROUP_ID NUMBER Cost Group Identifier
COST_GROUP VARCHAR2(10) Cost group name
COST_TYPE_ID NUMBER Cost type identifier
COST_TYPE VARCHAR2(10) Cost type name
Periodic Costing
PAC_PERIOD_ID NUMBER
Period Identifier
PERIOD_NAME VARCHAR2(15) Period Name
REGISTRATION_NUM Registration Num –
VARCHAR2
BER Default Null
TYPE VARCHAR2(1) Type
RETURN VARCHAR2(1) Return
COUNT_GROUP NUMBER Count Group
ORGANIZATION_ID NUMBER Organization identifier
INVENTORY_ITEM_I Inventory item
NUMBER
D identifier
TRANSACTION_DAT
DATE Transaction date
E
CREATION_DATE DATE Standard Who column
TRANSACTION_SOU Transaction source
NUMBER
RCE_ID identifier
TRANSACTION_SOU Transaction source
NUMBER
RCE_TYPE_ID type identifier
TRANSACTION_TYPE Transaction type
NUMBER
_ID identifier
TRANSACTION_ID NUMBER Transaction identifier
TRX_SOURCE_LINE_I Line level transaction
NUMBER
D source id
TRX_SOURCE_DELIV Sales order delivery
NUMBER
ERY_ID identifier
PICKING_LINE_ID NUMBER Picking line id
RCV_TRANSACTION_ Receiving transaction
NUMBER
ID cross reference
ITEM_TYPE VARCHAR2(30) User defined item type
Concatenated
CONCATENATED_SE
VARCHAR2(40) Segments
GMENTS

SUBINVENTORY_CO Transaction secondary


VARCHAR2(10)
DE inventory
CATEGORY_ID NUMBER Category identifier
Category description.
Translations table
CATEGORY_DESCRIP (MTL_SYSTEM_ITEM
VARCHAR2(90)
TION S_TL) holds item
descriptions in
multiple languages
Transaction quantity
QUANTITY NUMBER in terms of primary
uom of the item

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
245
Currency conversion
CURRENCY_CODE VARCHAR2(10)
code
UNIT_COST NUMBER Unit Cost
ORG_COST_GROUP_I organization's cost
NUMBER
D group id
Organization identifier
ORGANIZATION_ID_
NUMBER assigned to the cost
UNIT
group.
Transaction unit of
TRANSACTION_UOM VARCHAR2(3)
measure.
Operation sequence
OPERATION_SEQ_NU
NUMBER number within a
M
routing.
Outside Flag:
N: 0
COUNT_GROUP NUMBER
Y: 1
T: 2

CLL_F255_PO_SUPPLIERS_V
Selects the information in the CLL_F255_PO_SUPPLIERS_V view together with other
columns that are referred to

SELECT
sup.vendor_id,
sup.segment1,
sup_site.vendor_site_id,
sup_site.vendor_site_code,
sup.vendor_name,
sup.vendor_type_lookup_code,
sup.customer_num,
sup.attribute1 sup_attribute1,
sup.attribute2 sup_attribute2,
sup.attribute3 sup_attribute3,
sup.attribute4 sup_attribute4,
sup.attribute5 sup_attribute5,
sup.attribute6 sup_attribute6,
sup.attribute7 sup_attribute7,
sup.attribute8 sup_attribute8,
sup.attribute9 sup_attribute9,
sup.attribute10 sup_attribute10,
sup.attribute11 sup_attribute11,
sup.attribute12 sup_attribute12,
sup.attribute13 sup_attribute13,
sup.attribute14 sup_attribute14,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
246
sup.attribute15 sup_attribute15,
sup_site.inactive_date,
sup_site.ship_via_lookup_code,
sup_site.address_lines_alt,
sup_site.address_line1,
sup_site.address_line2,
sup_site.address_line3,
sup_site.address_line4,
sup_site.city,
sup_site.state,
sup_site.zip,
sup_site.province,
sup_site.country,
sup_site.county,
sup_site.fax_area_code,
sup_site.fax,
sup_site.area_code,
sup_site.phone,
sup_site.telex,
sup_site.fob_lookup_code,
sup_site.org_id,
sup_site.ship_to_location_id,
sup_site.bill_to_location_id,
sup_site.last_update_date,
sup_site.last_updated_by,
sup_site.creation_date,
sup_site.global_attribute1 sup_site_global_attribute1,
sup_site.global_attribute2 sup_site_global_attribute2,
sup_site.global_attribute3 sup_site_global_attribute3,
sup_site.global_attribute4 sup_site_global_attribute4,
sup_site.global_attribute5 sup_site_global_attribute5,
sup_site.global_attribute6 sup_site_global_attribute6,
sup_site.global_attribute7 sup_site_global_attribute7,
sup_site.global_attribute8 sup_site_global_attribute8,
sup_site.global_attribute9 sup_site_global_attribute9,
sup_site.global_attribute10 sup_site_global_attribute10,
sup_site.global_attribute11 sup_site_global_attribute11,
sup_site.global_attribute12 sup_site_global_attribute12,
sup_site.global_attribute13 sup_site_global_attribute13,
sup_site.global_attribute14 sup_site_global_attribute14,
sup_site.global_attribute15 sup_site_global_attribute15,
sup_site.global_attribute16 sup_site_global_attribute16,
sup_site.global_attribute17 sup_site_global_attribute17,
sup_site.global_attribute18 sup_site_global_attribute18,
sup_site.global_attribute19 sup_site_global_attribute19,
sup_site.global_attribute20 sup_site_global_attribute20,
sup_site.payment_method_lookup_code,
sup_site.bank_account_name,
sup_site.bank_account_num,
sup_site.bank_num,
sup_site.bank_number,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
247
sup_site.awt_group_id,
sup_site.bank_account_type,
sup.employee_id --BUG 10323711
FROM ap_supplier_sites_all sup_site,
ap_suppliers sup
WHERE sup_site.vendor_id = sup.vendor_id;

Null /
Column Type of Data Description
Not Null
Unique internal
Identifier for this
VENDOR_ID NOT NULL NUMBER record. Generated
using a database
sequence
SEGMENT1 NOT NULL VARCHAR2(30) Supplier number
Unique internal
Identifier for this
VENDOR_SITE_ID NOT NULL NUMBER record. Generated
using a database
sequence
Site code name.
VENDOR_SITE_CODE NOT NULL VARCHAR2(15) Unique name assigned
to the supplier site
VENDOR_NAME VARCHAR2(240) Supplier name
Indicates Supplier
Type of the Supplier.
VENDOR_TYPE_LOO Possible values from
VARCHAR2(30)
KUP_CODE FND_LOOKUP_VAL
UES.LOOKUP_TYPE =
'VENDOR TYPE'
Customer number
CUSTOMER_NUM VARCHAR2(25)
with the supplier
Descriptive flexfield
SUP_ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE8 VARCHAR2(150)
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
248
Descriptive flexfield
SUP_ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
SUP_ATTRIBUTE15 VARCHAR2(150)
segment
Inactive date for the
INACTIVE_DATE DATE
supplier site
Default freight career
for the supplier.
SHIP_VIA_LOOKUP_
VARCHAR2(25) Validated against
CODE
ORG_FREIGHT.FREI
GHT_CODE.
Alternate address line
ADDRESS_LINES_ALT VARCHAR2(560) for Kana Value of the
supplier site address
First line of supplier
ADDRESS_LINE1 VARCHAR2(240)
site address.
Second line of supplier
ADDRESS_LINE2 VARCHAR2(240)
site address
Third line of supplier
ADDRESS_LINE3 VARCHAR2(240)
site address
Fourth line of the
ADDRESS_LINE4 VARCHAR2(240)
supplier site address
CITY VARCHAR2(60) City name
State name or
STATE VARCHAR2(150)
abbreviation
ZIP VARCHAR2(60) Postal code
PROVINCE VARCHAR2(150) Province
COUNTRY VARCHAR2(60) Country name
COUNTY VARCHAR2(150) Supplier site county.
Supplier site area code
FAX_AREA_CODE VARCHAR2(10)
for facsimile number
Supplier site facsimile
FAX VARCHAR2(15)
number.
AREA_CODE VARCHAR2(10) Area code
PHONE VARCHAR2(15) Phone number
Supplier site telex
TELEX VARCHAR2(15)
number
Default free-on-board
FOB_LOOKUP_CODE VARCHAR2(25) type for the supplier.
Validated against
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
249
FND_LOOKUP_VAL
UES.LOOKUP_TYPE =
'FOB'.
Operating unit unique
ORG_ID NUMBER
identifier
Default ship-to-
location unique
identifier for the
SHIP_TO_LOCATION supplier site. Validated
NUMBER
_ID against
PO_LINE_LOCATIO
NS.SHIP_TO_LOCATI
ON_ID.
Default unique
identifier for the
location for the
BILL_TO_LOCATION_ supplier site where the
NUMBER
ID supplier sends
invoices for goods and
services. Validated
against
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row.
Standard who column
- unique internal
identifier user who last
LAST_UPDATED_BY NOT NULL NUMBER updated this row.
Foreign key to the
USER_ID column of
the FND_USER table
Standard who column
CREATION_DATE NOT NULL DATE - date when this row
was created
SUP_SITE_GLOBAL_A Reserved for country-
VARCHAR2(150)
TTRIBUTE1 specific functionality
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE2
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE3
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE4
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE5
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE6
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE7
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE8

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
250
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE9
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE10
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE11
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE12
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE13
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE14
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE15
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE16
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE17
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE18
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE19
SUP_SITE_GLOBAL_A
VARCHAR2(150) Reserved for country
TTRIBUTE20
Indicates the default
PAYMENT_METHOD_
VARCHAR2(25) method of payment for
LOOKUP_CODE
the supplier site
BANK_ACCOUNT_N
VARCHAR2(80) No longer used
AME
BANK_ACCOUNT_N
VARCHAR2(30) No longer used
UM
BANK_NUM VARCHAR2(25) No longer used
BANK_NUMBER VARCHAR2(30) No longer used
Indicates the unique
identifier for the
AWT_GROUP_ID NUMBER(15,0) withholding tax group
for supplier site
invoices.
BANK_ACCOUNT_TY
VARCHAR2(25) No longer used
PE
Employee unique
identifier if the
EMPLOYEE_ID NUMBER
supplier is an
employee

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
251
CLL_F255_RA_TERMS_V
Selects the information in the CLL_F255_RA_TERMS_V view together with other
columns that are referred to

SELECT
rat.term_id,
rat.creation_date,
rat.last_update_date,
rat.credit_check_flag,
rat.due_cutoff_day,
rat.printing_lead_days,
rat.start_date_active,
rat.end_date_active,
rat.attribute1 rat_attribute1,
rat.attribute2 rat_attribute2,
rat.attribute3 rat_attribute3,
rat.attribute4 rat_attribute4,
rat.attribute5 rat_attribute5,
rat.attribute6 rat_attribute6,
rat.attribute7 rat_attribute7,
rat.attribute8 rat_attribute8,
rat.attribute9 rat_attribute9,
rat.attribute10 rat_attribute10,
rat.attribute11 rat_attribute11,
rat.attribute12 rat_attribute12,
rat.attribute13 rat_attribute13,
rat.attribute14 rat_attribute14,
rat.attribute15 rat_attribute15,
rat.base_amount,
rat.calc_discount_on_lines_flag ,
rat.first_installment_code,
rat.in_use,
rat.partial_discount_flag,
rat.name ,
rat.description,
rtl.sequence_num,
rtl.relative_amount,
rtl.due_days,
rtl.due_date,
rtl.due_day_of_month,
rtl.due_months_forward
FROM ra_terms_lines rtl,
ra_terms rat
WHERE rtl.term_id = rat.term_id;

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
252
Null /
Column Type of Data Description
Not Null
Foreign key to the
TERM_ID NOT NULL NUMBER(15,0)
RA_TERMS table
Standard who column
CREATION_DATE NOT NULL DATE - date when this row
was created
Standard Who column
LAST_UPDATE_DATE NOT NULL DATE - date when a user last
updated this row.
CREDIT_CHECK_FLA
VARCHAR2(1) Credit Check Flag
G
DUE_CUTOFF_DAY NUMBER Due Cutoff Day
PRINTING_LEAD_DA
NUMBER Printing Lead Days
YS
START_DATE_ACTIV
NOT NULL DATE Start Date Active
E
END_DATE_ACTIVE DATE End Date Active
Descriptive flexfield
RAT_ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
RAT_ATTRIBUTE15 VARCHAR2(150)
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
253
BASE_AMOUNT NOT NULL NUMBER Base Amount
CALC_DISCOUNT_O Calc Discount On
NOT NULL VARCHAR2(1)
N_LINES_FLAG Lines Flag
FIRST_INSTALLMENT
NOT NULL VARCHAR2(12) First Installment Code
_CODE
IN_USE NOT NULL VARCHAR2(1) In Use
PARTIAL_DISCOUNT
NOT NULL VARCHAR2(1) Partial Discount Flag
_FLAG
NAME NOT NULL VARCHAR2(15) Name
DESCRIPTION VARCHAR2(240) Description
SEQUENCE_NUM NOT NULL NUMBER Sequence Num
Amount due this
RELATIVE_AMOUNT NOT NULL NUMBER installment relative to
the base amount
Number of days until
DUE_DAYS NUMBER
due
DUE_DATE DATE Fixed due date
DUE_DAY_OF_MONT Day of the month
NUMBER
H when due
DUE_MONTHS_FOR Number of months
NUMBER
WARD until due

CLL_F255_RI_FISCAL_CLASS_V
Selects the information in the CLL_F255_RI_FISCAL_CLASS_V view together with other
columns that are referred to

SELECT
cffcd.classification_id,
cffc.classification_code,
cffc.description,
cffc.ipi_tax,
cffc.importation_tax,
cffc.exception_classification_code,
cffcd.tax_code,
cffcd.tax_perc,
cffcd.dutty_free,
cffcd.start_date,
cffcd.end_date,
cffcd.tax_inactive_date,
cffcd.creation_date,
cffcd.created_by,
cffcd.last_update_date,
cffcd.last_updated_by,
cffc.attribute1,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
254
cffc.attribute2,
cffc.attribute3,
cffc.attribute4,
cffc.attribute5,
cffc.attribute6,
cffc.attribute7,
cffc.attribute8,
cffc.attribute9,
cffc.attribute10,
cffc.attribute11,
cffc.attribute12,
cffc.attribute13,
cffc.attribute14,
cffc.attribute15,
cffc.attribute16,
cffc.attribute17,
cffc.attribute18,
cffc.attribute19,
cffc.attribute20
FROM cll_f189_fiscal_class cffc,
cll_f189_fiscal_class_details cffcd
WHERE cffc.classification_id = cffcd.classification_id;

Column Null / Type of Data Description


Not Null
CLASSIFICATION_ID NOT NULL NUMBER Classification Id
CLASSIFICATION_CO NOT NULL VARCHAR2(15) Classification Code
DE
DESCRIPTION NOT NULL VARCHAR2(240) Description
IPI_TAX NUMBER Ipi Tax
IMPORTATION_TAX NUMBER(6,2) Importation Tax
EXCEPTION_CLASSIF Exception
VARCHAR2(15)
ICATION_CODE Classification Code
TAX_CODE NOT NULL VARCHAR2(15) Tax Code
TAX_PERC NOT NULL NUMBER(6,2) Tax Perc
DUTTY_FREE NOT NULL VARCHAR2(1) Dutty Free
START_DATE NOT NULL DATE Start Date
END_DATE DATE End Date
TAX_INACTIVE_DAT
DATE Tax Inactive Date
E
CREATION_DATE NOT NULL DATE Creation Date
CREATED_BY NOT NULL NUMBER Created By
LAST_UPDATE_DATE NOT NULL DATE Last Update Date
LAST_UPDATED_BY NOT NULL NUMBER Last Updated By
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
255
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE20 VARCHAR2(150)
segment

CLL_F255_RI_FISC_EXCEPTIONS_V
Selects the information in the CLL_F255_RI_FISC_EXCEPTIONS_V view together with
other columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
256
SELECT
cffe.rule_id,
cfgr.rule_code,
cffe.classification_id,
cffe.classification_code,
cffe.exception_classification_code,
cffe.creation_date,
cffe.created_by,
cffe.last_update_date,
cfgr.state_id,
cfgr.utilization_id,
cfgr.tax_type,
cfgr.description,
cfgr.begin_effective_date,
cfgr.end_effective_date,
cfgr.differ_tax_flag,
cfgr.reduction_percent,
cfgr.different_tax,
cfgr.exempt_tax_flag,
cfgr.tributation_code,
cfgr.inactive_date,
cfgr.destination_state_id,
cfgr.increase_percent,
cfgr.attribute1,
cfgr.attribute2,
cfgr.attribute3,
cfgr.attribute4,
cfgr.attribute5,
cfgr.attribute6,
cfgr.attribute7,
cfgr.attribute8,
cfgr.attribute9,
cfgr.attribute10,
cfgr.attribute11,
cfgr.attribute12,
cfgr.attribute13,
cfgr.attribute14,
cfgr.attribute15,
cfgr.attribute16,
cfgr.attribute17,
cfgr.attribute18,
cfgr.attribute19,
cfgr.attribute20
FROM cll_f189_fiscal_exceptions cffe,
cll_f189_government_rules cfgr
WHERE cffe.rule_id = cfgr.rule_id;

Null /
Column Type of Data Description
Not Null
RULE_ID NOT NULL NUMBER Rule Id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
257
RULE_CODE NOT NULL VARCHAR2(20) Rule Code
CLASSIFICATION_ID NOT NULL NUMBER Classification Id
CLASSIFICATION_CO
NOT NULL VARCHAR2(15) Classification Code
DE
EXCEPTION_CLASSIF Exception
VARCHAR2(15)
ICATION_CODE Classification Code
CREATION_DATE NOT NULL DATE Creation Date
CREATED_BY NOT NULL NUMBER Created By
LAST_UPDATE_DATE NOT NULL DATE Last Update Date
STATE_ID NUMBER State Id
UTILIZATION_ID NUMBER Utilization Id
TAX_TYPE VARCHAR2(30) Tax Type
DESCRIPTION VARCHAR2(240) Description
BEGIN_EFFECTIVE_D
DATE Begin Effective Date
ATE
END_EFFECTIVE_DA
DATE End Effective Date
TE
DIFFER_TAX_FLAG NOT NULL VARCHAR2(1) Differ Tax Flag
REDUCTION_PERCE
NUMBER Reduction Percent
NT
DIFFERENT_TAX NUMBER Different Tax
EXEMPT_TAX_FLAG NOT NULL VARCHAR2(1) Exempt Tax Flag
TRIBUTATION_CODE VARCHAR2(30) Tributation Code
INACTIVE_DATE DATE Inactive Date
DESTINATION_STAT
NUMBER Destination State
E_ID
INCREASE_PERCENT NUMBER Increase Percent
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
258
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE20 VARCHAR2(150)
segment

CLL_F255_RI_FREIGHTS_V
Selects the information in the CLL_F255_RI_FREIGHTS_V view together with other
columns that are referred to

SELECT
rfi.organization_id ,
rfi.location_id ,
rfi.operation_id ,
reo.receive_date ,
reo.gl_date ,
reo.reversion_flag ,
rit.operation_type ,
rfi.fiscal_document_model ,
rfi.invoice_num ,
rfi.series ,
rfi.invoice_date ,
rfo.cfo_code ,
rit.operation_fiscal_type ,
ROUND(rfi.invoice_amount,2) invoice_amount,
ROUND(rfi.total_freight_weight,2) total_freight,
rfi.invoice_id ,
rfi.icms_tax ,
rfi.icms_amount ,
rfi.diff_icms_tax ,
rfi.diff_icms_amount ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
259
rfi.diff_icms_amount_recover ,
rfi.icms_type ,
rfi.icms_base ,
rfi.terms_id ,
rfi.terms_date ,
rfi.first_payment_date ,
rit.cr_code_combination_id ,
rit.icms_reduction_percent ,
rfi.ship_via_lookup_code ,
rfi.attribute1 ,
rfi.attribute2 ,
rfi.attribute3 ,
rfi.attribute4 ,
rfi.attribute5 ,
rfi.attribute6 ,
rfi.attribute7 ,
rfi.attribute8 ,
rfi.attribute9 ,
rfi.attribute10 ,
rfi.attribute11 ,
rfi.attribute12 ,
rfi.attribute13 ,
rfi.attribute14 ,
rfi.attribute15 ,
rfi.attribute16 ,
rfi.attribute17 ,
rfi.attribute18 ,
rfi.attribute19 ,
rfi.attribute20 ,
rfi.last_updated_by ,
rfi.last_update_date ,
rfi.description ,
rfi.fiscal_interface_flag ,
rfi.fiscal_interface_date ,
rfea.vendor_site_id ,
rfea.entity_type_lookup_code ,
rfea.state_id ,
rs2.state_code ,
rs2.national_state ,
rfea.icms_reduction_base_flag ,
rfea.city_id ,
rfea.address_id ,
rfea.org_id ,
rit.invoice_type_lookup_code ,
rit.invoice_type_id ,
rit.fiscal_flag ,
rfi.interface_invoice_id ,
rs.state_code source_state,
rs1.state_code destination_state,
rit.return_flag , --BUG 9747631
rfi.tributary_status_code , --ENH 10358521
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
260
rfi.eletronic_invoice_key , --ENH 10086617
rfi.cte_type , --ENH 10086617
rfi.pis_amount_recover , --ENH 11795659
rfi.cofins_amount_recover , --ENH 11795659
rfi.pis_tax_rate , --ER 14645759
rfi.pis_base_amount , --ER 14645759
rfi.cofins_tax_rate , --ER 14645759
rfi.cofins_base_amount , --ER 14645759
rfi.pis_tributary_code , --ENH 15929409
rfi.cofins_tributary_code , --ENH 15929409
rfi.utilization_id --BUG 18545608
FROM cll_f189_entry_operations reo,
cll_f189_states rs2,
cll_f189_fiscal_operations rfo,
cll_f189_invoice_types rit,
cll_f189_fiscal_entities_all rfea,
cll_f189_business_vendors rbv,
cll_f189_freight_invoices rfi,
cll_f189_states rs,
cll_f189_states rs1
WHERE reo.operation_id = rfi.operation_id
AND reo.organization_id = rfi.organization_id
AND rs2.state_id = rfea.state_id
AND rfo.cfo_id = rfi.cfo_id
AND rfea.entity_id = rfi.entity_id
AND rbv.business_id = rfea.business_vendor_id
AND rit.invoice_type_id = rfi.invoice_type_id
AND rit.organization_id = rfi.organization_id
AND rs.state_id = rfi.source_state_id
AND rs1.state_id = rfi.destination_state_id
WITH READ ONLY

Null /
Column Type of Data Description
Not Null
ORGANIZATION_ID NOT NULL NUMBER Organization Id
LOCATION_ID NOT NULL NUMBER(15,0) Location Id
OPERATION_ID NOT NULL NUMBER Operation Id
RECEIVE_DATE DATE Receive Date
GL_DATE NOT NULL DATE Gl Date
REVERSION_FLAG VARCHAR2(1) Reversion Flag
OPERATION_TYPE NOT NULL VARCHAR2(30) Operation Type
FISCAL_DOCUMENT_ Fiscal Document
NOT NULL VARCHAR2(30)
MODEL Model
INVOICE_NUM NUMBER(16,2) Invoice Num
SERIES NOT NULL VARCHAR2(30) Series
INVOICE_DATE NOT NULL DATE Invoice Date
CFO_CODE NOT NULL VARCHAR2(30) CFO Code
OPERATION_FISCAL_
VARCHAR2(30) Operation Fiscal Type
TYPE
INVOICE_AMOUNT NUMBER Invoice Amount

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
261
TOTAL_FREIGHT NUMBER Total Freight
INVOICE_ID NOT NULL NUMBER Invoice Id
ICMS_TAX NUMBER ICMS Tax
ICMS_AMOUNT NUMBER ICMS Amount
DIFF_ICMS_TAX NUMBER DIFF ICMS Tax
DIFF_ICMS_AMOUNT NUMBER Diff Icms Amount
DIFF_ICMS_AMOUNT Diff ICMS Amount
NUMBER
_RECOVER Recover
ICMS_TYPE VARCHAR2(20) ICMS Type
ICMS_BASE NUMBER ICMS Base
TERMS_ID NUMBER Terms Id
TERMS_DATE DATE Terms Date
FIRST_PAYMENT_DA
DATE First Payment Date
TE
CR_CODE_COMBINA Cr Code Combination
NOT NULL NUMBER
TION_ID Id
ICMS_REDUCTION_P ICMS Reduction
NOT NULL NUMBER
ERCENT Percent
SHIP_VIA_LOOKUP_
NOT NULL VARCHAR2(30) Ship Via Lookup Code
CODE
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
262
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE20 VARCHAR2(150)
segment
LAST_UPDATED_BY NOT NULL NUMBER Last Updated By
LAST_UPDATE_DATE NOT NULL DATE Last Update Date
DESCRIPTION VARCHAR2(240) Description
FISCAL_INTERFACE_
NOT NULL VARCHAR2(1) Fiscal Interface Flag
FLAG
FISCAL_INTERFACE_
DATE Fiscal Interface Date
DATE
VENDOR_SITE_ID NUMBER Vendor Site Id
ENTITY_TYPE_LOOK Entity Type Lookup
NOT NULL VARCHAR2(30)
UP_CODE Code
STATE_ID NOT NULL NUMBER State Id
STATE_CODE NOT NULL VARCHAR2(30) State Code
NATIONAL_STATE NOT NULL VARCHAR2(1) National State
ICMS_REDUCTION_B ICMS Reduction Base
NOT NULL VARCHAR2(1)
ASE_FLAG Flag
CITY_ID NUMBER City Id
ADDRESS_ID NUMBER(15,0) Address Id
ORG_ID NUMBER Org Id
INVOICE_TYPE_LOO Invoice Type Lookup
NOT NULL VARCHAR2(30)
KUP_CODE Code
INVOICE_TYPE_ID NOT NULL NUMBER Invoice Type Id
FISCAL_FLAG NOT NULL VARCHAR2(1) Fiscal Flag
INTERFACE_INVOICE
NUMBER Interface Invoice Id
_ID
SOURCE_STATE NOT NULL VARCHAR2(30) Source State
DESTINATION_STAT
NOT NULL VARCHAR2(30) Destination State
E
Indicate whether a
RETURN_FLAG NOT NULL VARCHAR2(1) note is the return of
industrialization
TRIBUTARY_STATUS_
VARCHAR2(6) Tributary code status
CODE
ELETRONIC_INVOICE
VARCHAR2(100) Invoice key
_KEY
CTE_TYPE NUMBER CTe Type
PIS_AMOUNT_RECO
NUMBER PIS Amount Recover
VER

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
263
COFINS_AMOUNT_R COFINS Amount
NUMBER
ECOVER Recover
PIS_TAX_RATE NUMBER
PIS_BASE_AMOUNT NUMBER
COFINS_TAX_RATE NUMBER
COFINS_BASE_AMOU
NUMBER
NT
PIS_TRIBUTARY_COD
VARCHAR2(25)
E
COFINS_TRIBUTARY_
VARCHAR2(25)
CODE
UTILIZATION_ID
NUMBER

CLL_F255_RI_INTERSTATE_ICMS_V
Selects the information in the CLL_F255_RI_INTERSTATE_ICMS_V view together with
other columns that are referred to

SELECT
cfsr.source_state_id,
cs.description ,
cs.internal_icms_tax,
cs.inactive_date,
cs.state_code source_state,
cs1.state_code destination_state,
cfsr.destination_state_id,
cfsr.icms_tax
FROM cll_f189_state_relations cfsr,
cll_f189_states cs,
cll_f189_states cs1
WHERE cs.state_id = cfsr.source_state_id
AND cs1.state_id = cfsr.destination_state_id;

Null /
Column Type of Data Description
Not Null
SOURCE_STATE_ID NOT NULL NUMBER Source State Id
DESCRIPTION NOT NULL VARCHAR2(240) Description
INTERNAL_ICMS_TA
NUMBER Internal ICMS Tax
X
INACTIVE_DATE DATE Inactive Date
SOURCE_STATE NOT NULL VARCHAR2(30) Source State
DESTINATION_STAT
NOT NULL VARCHAR2(30) Destination State
E
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
264
DESTINATION_STAT
NOT NULL NUMBER Destination State id
E_ID
ICMS_TAX NUMBER ICMS Tax

CLL_F255_RI_INVOICE_ITEMS_V
Selects the information in the CLL_F255_RI_INVOICE_ITEMS_V view together with
other columns that are referred to

SELECT
cfi.invoice_id,
cfi.organization_id,
cfi.location_id,
cfi.operation_id,
cfil.classification_id,
cffe.vendor_site_id,
cfit.operation_type,
cfi.fiscal_document_model,
cfi.invoice_num,
cfi.series,
cfi.invoice_date,
NVL(cfil.item_id,999999999999999) item_id,
NVL(msi.primary_uom_code,cfil.uom) primary_uom_code,
NVL(msi.primary_unit_of_measure,cfil.uom) primary_unit_of_measure,
cfil.uom uom, --BUG 19403452
msi.volume_uom_code,
msi.unit_weight,
msi.weight_uom_code,
msi.inventory_item_flag,
msi.service_item_flag,
cfil.invoice_line_id,
cfil.description,
cffo.cfo_code,
cfil.operation_fiscal_type,
cfil.quantity,
cfil.icms_tax_code,
cfil.ipi_tax_code,
cfil.unit_price,
cfil.dollar_unit_price,
cfil.ipi_base_amount,
cfil.icms_tax,
cfil.cost_amount,
cfil.cost_freight,
cfil.icms_amount,
cfil.icms_amount_recover,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
265
cfil.diff_icms_tax,
cfil.diff_icms_amount,
cfil.ipi_amount,
cfil.ipi_tax,
cfil.ipi_amount_recover,
cfil.total_amount,
cfil.icms_st_base,
cfil.icms_st_amount,
cfil.icms_st_amount_recover,
cfil.icms_base,
cfil.discount_amount,
cfil.discount_percent,
cfit.invoice_type_code,
cfiu.utilization_code,
cfit.fiscal_flag,
cfi.additional_tax,
cfil.freight_amount,
cfil.insurance_amount,
cfil.other_expenses,
cfil.attribute1 ,
cfil.attribute2 ,
cfil.attribute3 ,
cfil.attribute4 ,
cfil.attribute5 ,
cfil.attribute6 ,
cfil.attribute7 ,
cfil.attribute8 ,
cfil.attribute9 ,
cfil.attribute10 ,
cfil.attribute11 ,
cfil.attribute12 ,
cfil.attribute13 ,
cfil.attribute14 ,
cfil.attribute15 ,
cfil.attribute16 ,
cfil.attribute17 ,
cfil.attribute18 ,
cfil.attribute19 ,
cfil.attribute20 ,
cfil.line_location_id ,
cfil.requisition_line_id ,
cfil.shipment_line_id ,
cfil.rma_interface_id ,
cfil.db_code_combination_id ,
cfil.utilization_id ,
cfiu.recover_ipi_flag,
cfiu.recover_icms_flag,
cfiu.add_ipi_to_icms_flag,
cfiu.diff_icms_flag,
cfiu.fixed_assets_flag,
cfiu.recover_ipi_percent,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
266
cfil.cfo_id,
cffo.dipi,
cffo.freight_flag,
cffo.return_flag,
cffo.st_flag,
cfi.last_update_date,
cfi.last_updated_by,
cfi.icms_type,
cfi.fiscal_interface_flag,
cfil.receipt_flag,
cfi.fiscal_interface_date,
cfil.pis_amount_recover,
cfil.cofins_amount_recover,
cfil.tributary_status_code,
cfil.interface_invoice_line_id,
cfil.importation_pis_cofins_base,
cfil.diff_icms_amount_recover,
(SELECT distinct rtc.tax_class_code
FROM cll_f189_tax_classes rtc,
cll_f189_item_taxes rit
WHERE rtc.tax_class_id = rit.tax_class_id
AND rit.inventory_item_id = cfil.item_id
AND rit.organization_id = cfi.organization_id
AND rit.start_date = (select max(x.start_date) from cll_f189_item_taxes x where x.organization_id =
rit.organization_id and x.inventory_item_id = rit.inventory_item_id and x.tax_code = rit.tax_code and x.start_date
&lt;= cfi.invoice_date) -- BUG 22527574
AND rit.end_date IS NULL
AND rit.inactive_date IS NULL) ipi_class,
cfil.ipi_tributary_code,
cfil.ipi_tributary_type,
cfil.pis_tributary_code,
cfil.cofins_tributary_code,
cfil.pis_amount,
cfil.cofins_amount,
cfil.pis_base_amount,
cfil.pis_tax_rate,
cfil.pis_qty,
cfil.pis_unit_amount,
cfil.cofins_base_amount,
cfil.cofins_tax_rate,
cfil.cofins_qty,
cfil.cofins_unit_amount,
cfil.iss_tax_rate,
cfil.shipment_header_id, -- BUG 9770000
cfil.importation_pis_amount, -- BUG 10283258
cfil.importation_cofins_amount, -- BUG 10283258
cfil.net_amount, -- ENH 10086617
cfil.icms_base_reduc_perc, -- ENH 10086617
cfil.invoice_amount_frt, -- ENH 11795659
cfil.pis_amount_rec_frt, -- ENH 11795659
cfil.cofins_amount_rec_frt, -- ENH 11795659
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
267
cffo.outbound_type, -- ENH 11795659
cfil.iss_base_amount, -- BUG 12666292
cfil.iss_tax_amount, -- BUG 12666292
cfil.last_update_date CFIL_LAST_UPDATE_DATE, -- BUG 12670251
cfil.update_tax_code_reason, -- BUG 12670251
cfil.tax_code_updated_by, -- BUG 12670251
cfil.customs_total_value, -- BUG 16971338
cfil.ci_percent, -- BUG 16971338
cfil.total_import_parcel, -- BUG 16971338
cfil.fci_number, -- BUG 16971338
cfil.cest_code, -- BUG 22527574
cfil.icms_dest_base_amount, -- ENH 22959608
cfil.icms_fcp_dest_perc, -- ENH 22959608
cfil.icms_dest_tax, -- ENH 22959608
cfil.icms_sharing_inter_perc, -- ENH 22959608
cfil.icms_fcp_amount, -- ENH 22959608
cfil.icms_sharing_dest_amount, -- ENH 22959608
cfil.icms_sharing_source_amount -- ENH 22959608
FROM cll_f189_invoices cfi,
cll_f189_invoice_lines cfil,
cll_f189_invoice_types cfit,
cll_f189_fiscal_entities_all cffe,
cll_f189_business_vendors cfbv,
cll_f189_item_utilizations cfiu,
cll_f189_fiscal_operations cffo,
mtl_system_items_b msi
WHERE msi.inventory_item_id (+) = cfil.item_id
AND msi.organization_id (+) = cfil.organization_id
AND cffo.cfo_id = cfil.cfo_id
AND cfiu.utilization_id = cfil.utilization_id
AND cffe.entity_id = cfi.entity_id
AND cfbv.business_id = cffe.business_vendor_id
AND cfit.invoice_type_id = cfi.invoice_type_id
AND cfit.organization_id = cfi.organization_id
AND cfil.invoice_id = cfi.invoice_id

Null /
Column Type of Data Description
Not Null
INVOICE_ID NOT NULL NUMBER Invoice Id
ORGANIZATION_ID NOT NULL NUMBER Organization Id
LOCATION_ID NOT NULL NUMBER(15,0) Location Id
OPERATION_ID NOT NULL NUMBER Operation Id
CLASSIFICATION_ID NOT NULL NUMBER Classification Id
VENDOR_SITE_ID NUMBER Vendor Site Id
OPERATION_TYPE NOT NULL VARCHAR2(30) Operation Type
FISCAL_DOCUMENT_ Fiscal Document
NOT NULL VARCHAR2(30)
MODEL Model
INVOICE_NUM NOT NULL NUMBER(16,2) Invoice Num
SERIES NOT NULL VARCHAR2(30) Series
INVOICE_DATE NOT NULL DATE Invoice Date

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
268
ITEM_ID NUMBER Item Id
PRIMARY_UOM_COD
VARCHAR2(30) Primary Uom Code
E
PRIMARY_UNIT_OF_ Primary Unit Of
VARCHAR2(30)
MEASURE Measure
Unit Of Measure from
UOM VARCHAR2(30)
RI
VOLUME_UOM_COD
VARCHAR2(3) Volume Uom Code
E
UNIT_WEIGHT NUMBER Unit Weight
WEIGHT_UOM_CODE VARCHAR2(3) Weight Uom Code
INVENTORY_ITEM_F
VARCHAR2(1) Inventory Item Flag
LAG
SERVICE_ITEM_FLAG VARCHAR2(1) Service Item Flag
INVOICE_LINE_ID NOT NULL NUMBER Invoice Line Id
DESCRIPTION VARCHAR2(240) Description
CFO_CODE NOT NULL VARCHAR2(30) CFO Code
OPERATION_FISCAL_
VARCHAR2(30) Operation Fiscal Type
TYPE
QUANTITY NUMBER Quantity
ICMS_TAX_CODE NOT NULL VARCHAR2(30) ICMS Tax Code
IPI_TAX_CODE NOT NULL VARCHAR2(30) IPI Tax Code
UNIT_PRICE NUMBER Unit Price
DOLLAR_UNIT_PRIC
NUMBER Dollar Unit Price
E
IPI_BASE_AMOUNT NUMBER IPI Base Amount
ICMS_TAX NUMBER ICMS Tax
COST_AMOUNT NUMBER Cost Amount
COST_FREIGHT NUMBER Cost Freight
ICMS Amount
ICMS_AMOUNT NUMBER
Recover
ICMS_AMOUNT_REC
NUMBER ICMS Amout Recover
OVER
DIFF_ICMS_TAX NUMBER Diff ICMS Tax
DIFF_ICMS_AMOUNT NUMBER Diff ICMS Amount
IPI_AMOUNT NUMBER IPI Amount
IPI_TAX NUMBER IPI Tax
IPI_AMOUNT_RECOV
NUMBER IPI Amount Recover
ER
TOTAL_AMOUNT NUMBER Total Amount
ICMS_ST_BASE NUMBER ICMS ST Base
ICMS_ST_AMOUNT NUMBER ICMS St Amount
ICMS_ST_AMOUNT_R ICMS St Amount
NUMBER
ECOVER Recover
ICMS_BASE NUMBER ICMS Base
DISCOUNT_AMOUNT NUMBER Discount Amount
DISCOUNT_PERCENT NUMBER Discount Percent
INVOICE_TYPE_COD
NOT NULL VARCHAR2(15) Invoice Type Code
E

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
269
UTILIZATION_CODE VARCHAR2(30) Utilization Code
FISCAL_FLAG NOT NULL VARCHAR2(1) Fiscal Flag
ADDITIONAL_TAX NUMBER Additional Tax
FREIGHT_AMOUNT NUMBER Freight Amount
INSURANCE_AMOU
NUMBER Insurance Amount
NT
OTHER_EXPENSES NUMBER Other Expenses
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE20 VARCHAR2(150)
segment
LINE_LOCATION_ID NUMBER Line Location Id
REQUISITION_LINE_I
NUMBER Requisition Line Id
D
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
270
SHIPMENT_LINE_ID NUMBER Shipment Line Id
RMA_INTERFACE_ID NUMBER RMA Interface Id
DB_CODE_COMBINA DB Code Combination
NUMBER
TION_ID Id
UTILIZATION_ID NOT NULL NUMBER Utilization Id
RECOVER_IPI_FLAG NOT NULL VARCHAR2(1) Recover ICMS Flag
RECOVER_ICMS_FLA
NOT NULL VARCHAR2(1) Recover ICMS Flag
G
ADD_IPI_TO_ICMS_F
NOT NULL VARCHAR2(1) Add IPI to ICMS Flag
LAG
DIFF_ICMS_FLAG NOT NULL VARCHAR2(1) Diff ICMS Flag
FIXED_ASSETS_FLAG NOT NULL VARCHAR2(1) Fixed Assets Flag
RECOVER_IPI_PERCE
NUMBER Recover IPI Percent
NT
CFO_ID NOT NULL NUMBER CFO Id
DIPI VARCHAR2(5) Dipi
FREIGHT_FLAG VARCHAR2(1) Freight Flag
RETURN_FLAG NOT NULL VARCHAR2(1) Return Flag
ST_FLAG VARCHAR2(1) St Flag
LAST_UPDATE_DATE NOT NULL DATE Standard Who column
User that did the last
update in this line (
LAST_UPDATED_BY NOT NULL NUMBER Foreign Key relative to
FND_USER.USER_ID
)
ICMS_TYPE VARCHAR2(30) ICMS Type
FISCAL_INTERFACE_
NOT NULL VARCHAR2(1) Fiscal Interface Flag
FLAG
RECEIPT_FLAG NOT NULL VARCHAR2(1) Receipt Flag
FISCAL_INTERFACE_
DATE Fiscal Interface Date
DATE
PIS_AMOUNT_RECO
NUMBER PIS Amount Recover
VER
COFINS_AMOUNT_R Cofins Amount
NUMBER
ECOVER Recover
TRIBUTARY_STATUS_
VARCHAR2(6) Tributary Status Code
CODE
INTERFACE_INVOICE Interface Invoice Line
NUMBER
_LINE_ID Id
IMPORTATION_PIS_C Importation Pis Cofins
NUMBER
OFINS_BASE Base
DIFF_ICMS_AMOUNT Diff Icms Amount
NUMBER
_RECOVER Recover
IPI_CLASS VARCHAR2(50) IPI Class
IPI_TRIBUTARY_COD
VARCHAR2(25) Ipi Tributary Code
E
IPI_TRIBUTARY_TYPE VARCHAR2(25) Ipi Tributary Type
PIS_TRIBUTARY_COD
VARCHAR2(25) Pis Tributary Code
E

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
271
COFINS_TRIBUTARY_
VARCHAR2(25) Cofins Tributary Code
CODE
PIS_AMOUNT NUMBER Pis Amount
COFINS_AMOUNT NUMBER Cofins Amount
PIS_BASE_AMOUNT NUMBER Pis Base Amount
PIS_TAX_RATE NUMBER Pis Tax Rate
PIS_QTY NUMBER Pis Qty
PIS_UNIT_AMOUNT NUMBER Pis Unit Amount
COFINS_BASE_AMOU
NUMBER Cofins Base Amount
NT
COFINS_TAX_RATE NUMBER Cofins Tax Rate
COFINS_QTY NUMBER Cofins Qty
COFINS_UNIT_AMOU
NUMBER Cofins Unit Amount.
NT
ISS_TAX_RATE NUMBER ISS Tax Rate.
SHIPMENT_HEADER_
NUMBER Shipment Header Id.
ID
IMPORTATION_PIS_A PIS value about
NUMBER
MOUNT import.
IMPORTATION_COFI COFINS value about
NUMBER
NS_AMOUNT import.
NET_AMOUNT NUMBER Net amount.
ICMS_BASE_REDUC_ ICMS Base Reduction
NUMBER
PERC Percentage
INVOICE_AMOUNT_ Invoice Amount
NUMBER
FRT Freight
PIS_AMOUNT_REC_F PIS Amount Rec
NUMBER
RT Freight
COFINS_AMOUNT_R Cofins Amount Rec
NUMBER
EC_FRT Freight
OUTBOUND_TYPE VARCHAR2(1) Outbound Type
Basis for calculation of
ISS_BASE_AMOUNT NUMBER the ISS in line with the
NF.
ISS value in line with
ISS_TAX_AMOUNT NUMBER
the NF.
CFIL_LAST_UPDATE_ Column default
NOT NULL DATE
DATE charge.
Identifier of reason for
UPDATE_TAX_CODE_
VARCHAR2(240) change of tax
REASON
information.
Identifier of user who
TAX_CODE_UPDATE
NUMBER promoted the change
D_BY
of tax information.
CUSTOMS_TOTAL_V
ALUE NUMBER Customs Total Value

CI_PERCENT NUMBER CI Percent


TOTAL_IMPORT_PAR Total Value of Parcel
NUMBER
CEL Imported
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
272
FCI_NUMBER VARCHAR2(36) FCI Number
ITEM_NUMBER NUMBER(20,0) Item Number
CEST_CODE NUMBER(7,0) Cest Code
ICMS_DEST_BASE_AM NUMBER ICMS Destination Base
OUNT Amount
ICMS_FCP_DEST_PER NUMBER ICMS FCP Descination
C Percentage
ICMS_DEST_TAX NUMBER ICMS Destination Tax
ICMS_SHARING_INTE NUMBER ICMS Sharing Inter
R_PERC Percentage
ICMS_FCP_AMOUNT NUMBER ICMS FCP Amount
ICMS_SHARING_DEST NUMBER ICMS Sharing
_AMOUNT Destination Amount
ICMS_SHARING_SOUR NUMBER ICMS Sharing Source
CE_AMOUNT Amount
FUNDERSUL_PER_U_ NUMBER Fundersul Percentage
MEAS Unit Measure
FUNDERSUL_UNIT_A NUMBER Fundersul Unit
MOUNT Amount
FUNDERSUL_UNIT_PE NUMBER Fundersul Unit
RCENT Percentage
FUNDERSUL_AMOUN NUMBER
Fundersul amount
T
FUNDERSUL_ADDITIO NUMBER Fundersul Additional
NAL_AMOUNT Amount
DIFF_ICMS_BASE NUMBER Difference ICMS Base

CLL_F255_RI_INVOICES_V
Selects the information in the CLL_F255_RI_INVOICES_V view together with other
columns that are referred to

SELECT
ood.operating_unit org_id,
hou.name,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'FEDERAL_TAX')
ou_cnpj,
cll_f255_utils_pkg.get_jurisdiction(hou.location_id, ood.legal_entity, 'INCOME_TAX')
ou_ie,
cfi.invoice_id,
cfi.organization_id,
cfeo.location_id,
/* cll_f255_utils_pkg.get_jurisdiction(cfi.location_id,
(SELECT legal_entity FROM org_organization_definitions WHERE
organization_id = cfi.organization_id),
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
273
'FEDERAL_TAX') io_cnpj, --BUG 9712330
cll_f255_utils_pkg.get_jurisdiction(cfi.location_id, --BUG 9712330
ood.legal_entity,
'FEDERAL_TAX') io_cnpj,*/
cffe1.document_number io_cnpj, --BUG 12976691
cfi.operation_id,
cfit.operation_type,
cfi.fiscal_document_model,
cfi.invoice_num,
cfi.series,
cfi.invoice_date,
cfi.return_cfo_id,
cfit.operation_fiscal_type,
cfi.importation_number,
(NVL(cfi.invoice_amount,0) - NVL(cfi.ipi_amount,0)) value_product,
(cfi.invoice_amount + DECODE(cfi.importation_number,NULL,0,
cfi.importation_expense_func) ) value_total_invoice,
cfi.freight_amount value_freight,
cfi.insurance_amount value_insurance,
DECODE(cfi.importation_number,NULL,
cfi.other_expenses,cfi.importation_expense_func) value_others,
cfi.additional_amount value_charges,
cfi.additional_tax,
ROUND(cfi.dollar_invoice_amount,2) value_dollar_invoice,
cfi.icms_tax,
cfi.icms_amount,
cfi.diff_icms_tax,
cfi.ipi_amount,
cfi.diff_icms_amount,
cfi.iss_tax,
cfi.iss_amount,
cfi.subst_icms_amount,
cfi.icms_type,
cfi.icms_base,
cfi.ir_base,
cfi.iss_base,
cfi.subst_icms_base,
cfi.additional_amount,
cfi.di_date,
cfi.clearance_date,
cfi.inss_base,
cfi.inss_tax,
--BUG 13950239 - Start
/* DECODE(cfbv.inss_substitute_flag,'S', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_autonomous_amount,2), 0) value_hold_inss,*/
DECODE(NVL(cfp.federal_withholding_tax_flag,'C'),'I',
DECODE(NVL(cfit.inss_substitute_flag,'N'),'S', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_autonomous_amount,2), 0),
DECODE(cfbv.inss_substitute_flag,'S', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_autonomous_amount,2), 0) )
value_hold_inss,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
274
/* DECODE(cfbv.inss_substitute_flag,'D', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_amount,2), 0) value_expense_inss,*/
DECODE(NVL(cfp.federal_withholding_tax_flag,'C'),'I',
DECODE(NVL(cfit.inss_substitute_flag,'N'),'D', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_amount,2), 0) ,
DECODE(cfbv.inss_substitute_flag,'D', ROUND(cfi.inss_amount,2),
'A', ROUND(cfi.inss_amount,2), 0) ) value_expense_inss,
/* cfbv.inss_substitute_flag,*/

NVL(DECODE(NVL(cfp.federal_withholding_tax_flag,'C'),'I',cfit.inss_substitute_flag,cfb
v.inss_substitute_flag),'N') inss_substitute_flag,
--BUG 13950239 - End
cfi.inss_autonomous_tax,
cfi.inss_autonomous_amount,
cfi.inss_autonomous_invoiced_total,
cfi.icms_st_amount_recover,
cfi.terms_id,
cfi.terms_date,
cfi.first_payment_date,
cfi.return_amount,
cfi.return_date,
cfi.contract_id,
cfi.description,
cfi.invoice_weight,
rs2.state_code state,
rs2.national_state,
cfit.invoice_type_code,
cfit.invoice_type_id,
cfit.payment_flag,
cfit.return_flag,
cfit.parent_flag,
cfi.invoice_parent_id,
cfit.requisition_type,
cfit.fiscal_flag,
cfit.description invoice_type_description,
cfit.credit_debit_flag,
cfit.include_icms_flag,
cfit.icms_reduction_percent,
cfit.include_ipi_flag,
cfit.freight_flag,
cfit.contab_flag,
cfit.transfer_type,
cfit.cr_code_combination_id,
cfit.icms_code_combination_id,
cfit.ipi_code_combination_id,
cfit.diff_icms_code_combination_id,
cfit.iss_code_combination_id,
cfit.ir_code_combination_id,
cfit.fixed_assets_flag,
cfbv.business_code,
cfbv.highlight_ipi_flag,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
275
cfbv.recover_ipi_percent,
cfbv.icms_contributor_flag,
cfi.ir_categ,
cfi.ir_tax,
cfi.ir_amount,
cffe.entity_type_lookup_code,
cfit.return_customer_flag,
cffe.entity_id,
cffe.vendor_site_id,
cffe.icms_reduction_base_flag,
cfit.price_adjust_flag,
cfit.tax_adjust_flag,
cffe.city_id,
cffe.address_id,
cfi.fiscal_interface_flag,
cfi.fiscal_interface_date,
cfi.gross_total_amount,
cfi.invoice_amount,
cfi.last_updated_by,
cfi.last_update_date,
cfi.attribute1,
cfi.attribute2,
cfi.attribute3,
cfi.attribute4,
cfi.attribute5,
cfi.attribute6,
cfi.attribute7,
cfi.attribute8,
cfi.attribute9,
cfi.attribute10,
cfi.attribute11,
cfi.attribute12,
cfi.attribute13,
cfi.attribute14,
cfi.attribute15,
cfi.attribute16,
cfi.attribute17,
cfi.attribute18,
cfi.attribute19,
cfi.attribute20,
cfi.interface_invoice_id,
cfi.inss_amount,
cfi.inss_additional_amount_1,
cfi.inss_additional_amount_2,
cfi.inss_additional_amount_3,
cfi.funrural_amount,
cfi.sest_senat_amount,
cfi.importation_expense_func,
cfi.iss_city_id,
cfi.income_code,
cfi.cei_number,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
276
cfi.cei_check_digit,
cfi.ship_via_lookup_code,
cfi.siscomex_amount,
cfi.dollar_siscomex_amount,
cfi.pis_cofins_st_base,
cfi.pis_st_amount,
cfi.cofins_st_amount,
cfi.freight_ap_flag,
cfi.pa_interface_flag,
cfi.importation_pis_amount,
cfi.importation_cofins_amount,
rs.state_code source_state,
rs1.state_code destination_state,
cfi.comments,
cfi.vehicle_oper_type,
cfi.vehicle_seller_doc_number,
cfi.vehicle_seller_state_id,
cfi.vehicle_chassi,
cfi.third_party_amount,
cfi.abatement_amount,
cfi.import_document_type,
cfi.eletronic_invoice_key,
cfi.process_indicator,
cfi.process_origin,
cfi.subseries,
cfi.icms_free_service_amount,
cll_f255_utils_pkg.sum_piscofins_ri_lines(cfi.invoice_id, 'PIS') value_pis,
cll_f255_utils_pkg.sum_piscofins_ri_lines(cfi.invoice_id, 'COFINS') value_cofins,
cffe.cust_acct_site_id,
cfeo.receive_date, --BUG 9770017
cfeo.gl_date, --BUG 9770017
cfeo.reversion_flag, --BUG 9770017
cfi.service_execution_date, --ENH 10086617
cfi.pis_withhold_amount, --ENH 10086617
cfi.cofins_withhold_amount, --ENH 10086617
cfi.drawback_granted_act_number, --ENH 10086617
cfi.ref_cte_number, --ENH 10086617
cfi.cte_type, --ENH 10086617
cfi.cte_invoice_id, --ENH 10086617
cfi.cte_invoice_type, --ENH 10086617
cfit.cost_adjust_flag, --ENH 11795659
cfeo.freight_flag operation_freight_flag, --ENH 11795659
NVL(cfp.federal_withholding_tax_flag,'C') federal_withholding_tax_flag, --BUG
13950239
cfi.icms_fcp_amount, --ENH 22959608
cfi.icms_sharing_dest_amount, --ENH 22959608
cfi.icms_sharing_source_amount --ENH 22959608
FROM cll_f189_invoice_types cfit,
cll_f189_states rs2,
cll_f189_entry_operations cfeo,
cll_f189_fiscal_entities_all cffe,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
277
cll_f189_fiscal_entities_all cffe1, --BUG 12976691
cll_f189_business_vendors cfbv,
cll_f189_invoices cfi,
cll_f189_states rs,
cll_f189_states rs1,
-- org_organization_definitions ood, --BUG 9712330
cll_f255_org_definitions_v ood,
hr_all_organization_units hou,
cll_f189_parameters cfp --BUG 13950239
WHERE rs2.state_id = cffe.state_id
AND cffe.entity_id = cfi.entity_id
AND cfeo.operation_id = cfi.operation_id
AND cfeo.organization_id = cfi.organization_id
AND cfbv.business_id = cffe.business_vendor_id
AND cfit.invoice_type_id = cfi.invoice_type_id
AND cfit.organization_id = cfi.organization_id
AND rs.state_id = cfi.source_state_id
AND rs1.state_id = cfi.destination_state_id
AND cfeo.organization_id = ood.organization_id
AND hou.organization_id = ood.operating_unit
AND cffe1.entity_type_lookup_code = 'LOCATION' --BUG 12976691
AND cffe1.location_id = cfeo.location_id --BUG 12976691
AND cfp.organization_id = cfi.organization_id --BUG 13950239

Null /
Column Type of Data Description
Not Null
Operating unit unique
ORG_ID NUMBER identifier

Name of the
NAME NOT NULL VARCHAR2(240)
organization.
VARCHAR2(400 CNPJ of the
OU_CNPJ
0) organization
VARCHAR2(400
OU_IE IE of the organization
0)
Unique internal
Identifier for this
INVOICE_ID NOT NULL NUMBER record. Generated
using a database
sequence
Identifier for project
organization used to
build default
Accounting Flexfield.
ORGANIZATION_ID NOT NULL NUMBER
Foreign key to the
EXPENDITURE_ORG
ANIZATION_ID of
the

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
278
PA_EXPENDITURE_T
YPES
System-generated
LOCATION_ID NOT NULL NUMBER(15,0)
primary key column
OPERATION_ID NOT NULL NUMBER Receiving identifier
OPERATION_TYPE NOT NULL VARCHAR2(30) Operation Type
FISCAL_DOCUMENT_ Fiscal document model
NOT NULL VARCHAR2(30)
MODEL identifier
Invoice number for an
invoice. This number
INVOICE_NUM NOT NULL NUMBER(16,2) entered will be unique
per supplier and
operating unit
SERIES NOT NULL VARCHAR2(30) Series
INVOICE_DATE NOT NULL DATE Invoice date
RETURN_CFO_ID NUMBER Return CFO Id
OPERATION_FISCAL_
VARCHAR2(30) Operation Fiscal Type
TYPE
IMPORTATION_NUM
VARCHAR2(40) Importation Number
BER
VALUE_PRODUCT NUMBER Value Product
VALUE_TOTAL_INVO
NUMBER Value Total Invoice
ICE
VALUE_FREIGHT NUMBER Value Freight
VALUE_INSURANCE NUMBER Value Insurance
VALUE_OTHERS NUMBER Value Others
VALUE_CHARGES NUMBER Value Charges
ADDITIONAL_TAX NUMBER Additional Tax
VALUE_DOLLAR_INV
NUMBER Value Dollar Invoice
OICE
ICMS_TAX NUMBER ICMS Tax
ICMS_AMOUNT NUMBER ICMS Amount
DIFF_ICMS_TAX NUMBER Diff ICMS Tax
IPI_AMOUNT NUMBER IPI Amount
DIFF_ICMS_AMOUNT NUMBER Diff ICMS Amount
ISS_TAX NUMBER ISS Tax
ISS_AMOUNT NUMBER ISS Amount
SUBST_ICMS_AMOU
NUMBER Subst ICMS Amount
NT
ICMS_TYPE VARCHAR2(30) ICMS Type
ICMS_BASE NUMBER ICMS Base
IR_BASE NUMBER IR Base
ISS_BASE NUMBER ISS Base
SUBST_ICMS_BASE NUMBER Subst ICMS Base
ADDITIONAL_AMOU
NUMBER Additional Amount
NT
DI_DATE DATE Di Date
CLEARANCE_DATE DATE Clearance Date
INSS_BASE NUMBER Inss Base

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
279
INSS_TAX NUMBER Inss Tax
VALUE_HOLD_INSS NUMBER Value Hold Inss
VALUE_EXPENSE_IN
NUMBER Value Expense Inss
SS
INSS_SUBSTITUTE_FL
NOT NULL VARCHAR2(1) Inss Substitute Flag
AG
INSS_AUTONOMOUS
NUMBER Inss Autonomous Tax
_TAX
INSS_AUTONOMOUS Inss Autonomous
NUMBER
_AMOUNT Amount
INSS_AUTONOMOUS Inss Autonomous
NUMBER
_INVOICED_TOTAL Invoiced Total
ICMS_ST_AMOUNT_R Icms St Amout
NUMBER
ECOVER Recover
TERMS_ID NUMBER Term identifier
Date used with
payment terms to
calculate scheduled
payment of an invoice.
This date will be
defaulted from one of
TERMS_DATE DATE the following Payables
System Setup option
defined for Term Date
Basis:· System Date·
Goods Received Date·
Invoice Date· Invoice
Received Date
FIRST_PAYMENT_DA
DATE First Payment Date
TE
RETURN_AMOUNT NUMBER Return Amount
RETURN_DATE DATE Return Date
CONTRACT_ID NUMBER Contract Id
DESCRIPTION VARCHAR2(240) Description
INVOICE_WEIGHT NUMBER Invoice Weight
STATE NOT NULL VARCHAR2(30) State
NATIONAL_STATE NOT NULL VARCHAR2(1) National State
INVOICE_TYPE_COD
NOT NULL VARCHAR2(15) Invoice Type Code
E
INVOICE_TYPE_ID NOT NULL NUMBER Invoice Type Id
Flag that indicates if
invoice has been paid
or not. Possible
PAYMENT_FLAG NOT NULL VARCHAR2(1)
Values:· 'N': Not paid·
'Y': Paid· 'P': Partially
Paid
RETURN_FLAG NOT NULL VARCHAR2(1) Return Flag
PARENT_FLAG NOT NULL VARCHAR2(1) Parent Flag
INVOICE_PARENT_ID NUMBER Invoice Parent Id
REQUISITION_TYPE NOT NULL VARCHAR2(30) Requisition Type
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
280
FISCAL_FLAG NOT NULL VARCHAR2(1) Fiscal Flag
INVOICE_TYPE_DESC Invoice Type
VARCHAR2(240)
RIPTION Description
CREDIT_DEBIT_FLAG NOT NULL VARCHAR2(30) Credit Debit Flag
INCLUDE_ICMS_FLA
NOT NULL VARCHAR2(1) Include Icms Flag
G
ICMS_REDUCTION_P Icms Reduction
NOT NULL NUMBER
ERCENT Percent
INCLUDE_IPI_FLAG NOT NULL VARCHAR2(1) Include Ipi Flag
FREIGHT_FLAG NOT NULL VARCHAR2(1) Freight Flag
CONTAB_FLAG NOT NULL VARCHAR2(1) Contab Flag
TRANSFER_TYPE NOT NULL VARCHAR2(30) Transfer Type
CR_CODE_COMBINA Cr Code Combination
NOT NULL NUMBER
TION_ID Id
ICMS_CODE_COMBIN Icms Code
NOT NULL NUMBER
ATION_ID Combination Id
IPI_CODE_COMBINA Ipi Code Combination
NOT NULL NUMBER
TION_ID Id
DIFF_ICMS_CODE_CO Diff Icms Code
NOT NULL NUMBER
MBINATION_ID Combination Id
ISS_CODE_COMBINA Iss Code Combination
NOT NULL NUMBER
TION_ID Id
IR_CODE_COMBINAT Ir Code Combination
NOT NULL NUMBER
ION_ID Id
FIXED_ASSETS_FLAG VARCHAR2(1) Fixed Assets Flag
BUSINESS_CODE NOT NULL VARCHAR2(30) Business Code
HIGHLIGHT_IPI_FLA
NOT NULL VARCHAR2(1) Highlight Ipi Flag
G
RECOVER_IPI_PERCE
NUMBER Recover Ipi Percent
NT
ICMS_CONTRIBUTOR
NOT NULL VARCHAR2(1) Icms Contributor Flag
_FLAG
IR_CATEG VARCHAR2(30) IR Categ
IR_TAX NUMBER IR Tax
IR_AMOUNT NUMBER IR Amount
ENTITY_TYPE_LOOK Entity Type Look Up
NOT NULL VARCHAR2(30)
UP_CODE Code
RETURN_CUSTOMER
VARCHAR2(1) Return Customer Flag
_FLAG
ENTITY_ID NOT NULL NUMBER Entity Id
The unique internal
identifier for the
payment site of the
VENDOR_SITE_ID NUMBER supplier. Foreign key
to the
AP_SUPPLIER_SITES
_ALL table
ICMS_REDUCTION_B Icms Reduction Base
NOT NULL VARCHAR2(1)
ASE_FLAG Flag
PRICE_ADJUST_FLAG NOT NULL VARCHAR2(1) Price Adjust Flag
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
281
TAX_ADJUST_FLAG NOT NULL VARCHAR2(1) Tax Adjust Flag
CITY_ID NUMBER City Id
Customer site
ADDRESS_ID NUMBER(15,0)
identifier
Unique internal
identifier of the
ORG_ID NUMBER Operating Unit to
which the invoice
belongs
FISCAL_INTERFACE_
NOT NULL VARCHAR2(1) Fiscal Interface Flag
FLAG
FISCAL_INTERFACE_
DATE Fiscal Interface Date
DATE
GROSS_TOTAL_AMO
NUMBER Gross Total Amount
UNT
Invoice amount in the
INVOICE_AMOUNT NOT NULL NUMBER
payment currency
Standard who column
- unique internal
identifier user who last
LAST_UPDATED_BY NOT NULL NUMBER updated this row.
Foreign key to the
USER_ID column of
the FND_USER table
LAST_UPDATE_DATE NOT NULL DATE Standard Who column
Descriptive Flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE4 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE12 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
282
Descriptive Flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive Flexfield
ATTRIBUTE20 VARCHAR2(150)
segment
INTERFACE_INVOICE
NUMBER Interface Invoice Id
_ID
INSS_AMOUNT NUMBER INSS Amount
INSS_ADDITIONAL_A INSS Additional
NUMBER
MOUNT_1 Amount 1
INSS_ADDITIONAL_A INSS Additional
NUMBER
MOUNT_2 Amount 2
INSS_ADDITIONAL_A INSS Additional
NUMBER
MOUNT_3 Amount 3
FUNRURAL_AMOUN
NUMBER Funrural Amount
T
SEST_SENAT_AMOU
NUMBER Sest Senat Amount
NT
IMPORTATION_EXPE Importation Expense
NUMBER
NSE_FUNC Func
ISS_CITY_ID NUMBER ISS City Id
INCOME_CODE VARCHAR2(30) Income Code
CEI_NUMBER VARCHAR2(13) CEI Number
CEI_CHECK_DIGIT VARCHAR2(1) CEI Check Digit
SHIP_VIA_LOOKUP_
VARCHAR2(30) Ship Via Lookup Code
CODE
SISCOMEX_AMOUNT NUMBER Siscomex Amount
DOLLAR_SISCOMEX_ Dollar Siscomex
NUMBER
AMOUNT Amount
PIS_COFINS_ST_BASE NUMBER Pis Cofins St Base
PIS_ST_AMOUNT NUMBER Pis St Amount
COFINS_ST_AMOUNT NUMBER Cofins St Amount
FREIGHT_AP_FLAG VARCHAR2(1) Freight Ap Flag
PA_INTERFACE_FLA
VARCHAR2(1) Pa Interface Flag
G
IMPORTATION_PIS_A Importation Pis
NUMBER
MOUNT Amount

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
283
IMPORTATION_COFI Importation Cofins
NUMBER
NS_AMOUNT Amount
SOURCE_STATE NOT NULL VARCHAR2(30) Source State
DESTINATION_STAT
NOT NULL VARCHAR2(30) Destination State
E
COMMENTS CLOB(4000) Comments
VEHICLE_OPER_TYPE VARCHAR2(25) Vehicle Oper Type
VEHICLE_SELLER_D Vehicle Seller Doc
NUMBER
OC_NUMBER Number
VEHICLE_SELLER_ST
NUMBER Vehicle Seller State Id
ATE_ID
VEHICLE_CHASSI VARCHAR2(50) Vehicle Chassi
THIRD_PARTY_AMO
NUMBER Third Party Amount
UNT
ABATEMENT_AMOU
NUMBER Abatement Amount
NT
IMPORT_DOCUMENT Import Document
VARCHAR2(25)
_TYPE Type
ELETRONIC_INVOICE
VARCHAR2(100) Eletronic Invoice Key
_KEY
PROCESS_INDICATO
VARCHAR2(50) Process Indicator
R
PROCESS_ORIGIN VARCHAR2(25) Process Origin
Icms Free Service
SUBSERIES VARCHAR2(25)
Amount
ICMS_FREE_SERVICE ICMS Free Service
NUMBER
_AMOUNT Amount
VALUE_PIS NUMBER Value Pis
VALUE_COFINS NUMBER Value Cofins
ID address of the
CUST_ACCT_SITE_ID NUMBER(15,0)
customer
RECEIVE_DATE DATE Date received
GL_DATE NOT NULL DATE Accounting date
Used in case of reversal
of receipt: R- Fiscal
REVERSION_FLAG VARCHAR2(1) Operation reversed S-
Operation Tax
Reversion
SERVICE_EXECUTIO
DATE Service execution date
N_DATE
PIS_WITHHOLD_AM PIS withhold tax
NUMBER
OUNT amount
COFINS_WITHHOLD_ COFINS withhold tax
NUMBER
AMOUNT amount
DRAWBACK_GRANT Drawback granted act
VARCHAR2(20)
ED_ACT_NUMBER number
REF_CTE_NUMBER VARCHAR2(100) Reference CTe key
CTE_TYPE NUMBER CTe Type
CTE_INVOICE_ID NUMBER CTe Invoice identifier

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
284
CTe Invoice Type
CTE_INVOICE_TYPE VARCHAR2(3)
identifier
Indicates if it is an
COST_ADJUST_FLAG NOT NULL VARCHAR2(1) invoice of cost
adjustments
OPERATION_FREIGH Indicates the freight
VARCHAR2(30)
T_FLAG type
Indicates the table
where taxes setup are
FEDERAL_WITHHOL
VARCHAR2(1) (C = Company Type
DING_TAX_FLAG
Setup / I = Invoice Type
Setup)
ICMS_FCP_AMOUNT NUMBER
ICMS_SHARING_DEST NUMBER
_AMOUNT
ICMS_SHARING_SOUR NUMBER
CE_AMOUNT

CLL_F255_GL_SEG_VAL_HIERARCH_V

Selects the information in the CLL_F255_GL_SEG_VAL_HIERARCH_V view together


with other columns that are referred to

SELECT gs.ledger_id,
fifs.segment_name segment_type,
ffv.flex_value value,
ffvt.description,
DECODE(ffv.summary_flag ,'N','CHILD','Y','PARENT') parent, --BUG 9786894
ffvnh.child_flex_value_low child_low,
ffvnh.child_flex_value_high child_high,
ffv.start_date_active,
ffv.end_date_active,
ffv.enabled_flag,
fifs.application_column_name,
fifs.id_flex_num chart_of_accounts,
ffv.flex_value_set_id,
fl.installed_flag,
fl.language_code,
ffv.hierarchy_level, --BUG 9739258
ffv.last_update_date --BUG 9786894
FROM fnd_flex_values ffv, --lista numeros dos valores de cada segmento
fnd_flex_values_tl ffvt, --recupera descricao do value(segmento)
fnd_id_flex_segments fifs,
( SELECT *
FROM cll_f255_gl_segments_v) gs,
fnd_languages fl,
fnd_flex_value_norm_hierarchy ffvnh
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
285
WHERE fifs.id_flex_code = 'GL#'
AND ffvnh.flex_value_set_id = ffv.flex_value_set_id
AND ffvnh.parent_flex_value = ffv.flex_value
AND fifs.application_column_name = gs.application_column_name
AND fifs.flex_value_set_id = ffv.flex_value_set_id
AND ffvt.flex_value_id = ffv.flex_value_id
AND ffvt.language = fl.language_code
AND ffv.summary_flag = 'Y'
UNION
SELECT gs.ledger_id,
fifs.segment_name segment_type,
ffv.flex_value value,
ffvt.description,
DECODE(ffv.summary_flag ,'N','CHILD','Y','PARENT') parent, --BUG 9786894
NULL child_low,
NULL child_high,
ffv.start_date_active,
ffv.end_date_active,
ffv.enabled_flag,
fifs.application_column_name,
fifs.id_flex_num chart_of_accounts,
ffv.flex_value_set_id,
fl.installed_flag,
fl.language_code,
ffv.hierarchy_level, --BUG 9739258
ffv.last_update_date --BUG 9786894
FROM fnd_flex_values ffv, --lista numeros dos valores de cada segmento
fnd_flex_values_tl ffvt, --recupera descricao do value(segmento)
fnd_id_flex_segments fifs,
( SELECT *
FROM cll_f255_gl_segments_v) gs,
fnd_languages fl
WHERE fifs.id_flex_code = 'GL#'
AND fifs.application_column_name = gs.application_column_name
AND fifs.flex_value_set_id = ffv.flex_value_set_id
AND ffvt.flex_value_id = ffv.flex_value_id
AND ffvt.language = fl.language_code
AND ffv.summary_flag = 'N';

Null /
Column Type of Data Description
Not Null
Ledger defining
LEDGER_ID NUMBER(15,0)
column
SEGMENT_TYPE VARCHAR2(30) Segment name

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
286
Flexfield segment
VALUE VARCHAR2(150)
value
DESCRIPTION VARCHAR2(240) Description
Summary Flag.
PARENT VARCHAR2(6) Values: ‘Y’ = PARENT
‘N’= CHILD
The low value of the
CHILD_LOW VARCHAR2(60)
range of child values
The high value of the
CHILD_HIGH VARCHAR2(60)
range of child values
START_DATE_ACTIV The date the value
DATE
E becomes active
The date the value
END_DATE_ACTIVE DATE
expires
Flag to indicate if the
ENABLED_FLAG VARCHAR2(1) flexfield segment
value is enabled
APPLICATION_COLU
VARCHAR2(30) Flexfield column name
MN_NAME
CHART_OF_ACCOUN Key flexfield structure
NUMBER(15,0)
TS number
Flexfield value set
FLEX_VALUE_SET_ID NUMBER(10,0)
identifier
Flag to indicate if the
INSTALLED_FLAG VARCHAR2(1) language is installed
and available for use
LANGUAGE_CODE VARCHAR2(4) Language code
HIERARCHY_LEVEL VARCHAR2(30) Hierarchy level
LAST_UPDATE_DATE DATE Standard Who column

CLL_F255_OPM_INVENTORY_V

Selects the information in the CLL_F255_OPM_INVENTORY_V view together with other


columns that are referred to

CREATE OR REPLACE VIEW cll_f255_opm_inventory_v (


LEGAL_ENTITY, COST_TYPE_ID, COST_TYPE, COST_MTHD_CODE,
CALENDAR_CODE, PERIOD_CODE,
ESTABLISHMENT_ID, REGISTRATION_NUMBER, COUNT_GROUP,
ORGANIZATION_ID, SUBINVENTORY_CODE,
ITEM_CODE, INVENTORY_ITEM_ID, PRIMARY_QUANTITY, ELEMENT_COST,
UNIT_COST,
FISCAL_CODE, COST_MTHD_DESC, ITEM_TYPE, CLASS_FISCAL, CATEGORY_ID,
FISCAL_CAT,
STOCK_DESCRIPTION, UOM, INVENTORY_DATE, ACCOUNT, RULE)
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
287
AS
SELECT gca.legal_entity_id legal_entity
,gmf.cost_type_id
,cmm.cost_type
,cmm.cost_mthd_code
,gca.calendar_code
,gps.period_code
,etb.establishment_id
,etb.registration_number
,cfse.outside_flag count_group
,gpb.organization_id
,gpb.subinventory_code ---Almoxarifado
,msi.concatenated_segments item_code
,gpb.inventory_item_id
,SUM(NVL(gpb.primary_quantity,0)) primary_quantity --BUG 9646048
,ccd.cost_cmpntcls_id element_cost
,ccd.cmpnt_cost unit_cost
,mc.concatenated_segments fiscal_code
,cmm.cost_mthd_desc --BUG 9646048
,msi.item_type --BUG 9646048
,mc2.SEGMENT1 Class_fiscal --BUG 18718596
,mic.category_id --BUG 9646048
,mic.category_set_id Fiscal_cat
,mc.description stock_description --BUG 9646048
,msi.primary_unit_of_measure uom --BUG 9646048
,trunc(gps.end_date) inventory_date --BUG 9646048
,gcck.concatenated_segments Account --BUG 18060815
,xlc.source_code Rule
FROM --BUG 18060815
xla_conditions xlc
,xla_seg_rule_details xsrd
,xla_line_defn_adr_assgns_f_v xldas
,gl_code_combinations_kfv gcck
--BUG 18060815
,gmf_fiscal_policies gmf
,cm_mthd_mst cmm
,gmf_period_statuses gps
,gmf_period_balances gpb
,gmf_calendar_assignments gca
,cm_cmpt_dtl ccd
,hr_organization_information hoi
,mtl_item_categories mic
,mtl_item_categories mic2 --BUG 18718596
,mtl_category_sets mic2_b --BUG 18718596
,mtl_categories_b_kfv mc
,mtl_categories_b_kfv mc2 --BUG 18718596
,mtl_system_items_b_kfv msi
,mtl_parameters mp
,cll_f032_subinventories_ext cfse
,xle_establishment_v etb
,hr_all_organization_units haou
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
288
,hr_locations_all hl
,org_acct_periods oap
,gl_ledger_le_v gle --BUG 18718596
WHERE gcck.code_combination_id = xsrd.value_code_combination_id --BUG
18060815
AND xsrd.segment_rule_code = xldas.segment_rule_code --BUG 18060815
AND xlc.segment_rule_detail_id = xsrd.segment_rule_detail_id --BUG 18060815
AND xldas.line_definition_owner_code = 'C' --BUG 18060815
AND xldas.accounting_line_code = 'INV' --BUG 18060815
AND xldas.event_class_code = 'DELIVER' --BUG 18060815
and xldas.event_type_code = 'PO_RECEIPT' --BUG 18718596
AND xlc.source_code in ('GL_CAT_CATEGORY_ID', 'COST_CAT_CATEGORY_ID')
--BUG 18060815
AND xldas.application_id = 555 -- Process Manufacturing Financials --BUG
18060815
AND hl.location_id = etb.location_id (+)
AND ( ( cfse.location_id IS NOT NULL
AND cfse.location_id = hl.location_id )
OR ( cfse.location_id IS NULL
AND haou.location_id = hl.location_id ) )
AND haou.organization_id = hoi.organization_id
AND gpb.organization_id = cfse.organization_id (+)
AND gpb.subinventory_code = cfse.secondary_inventory_name (+)
AND mp.process_enabled_flag = 'Y'
AND hoi.organization_id = mp.organization_id
AND gpb.organization_id = msi.organization_id
AND gpb.inventory_item_id = msi.inventory_item_id
AND mic.category_id = mc.category_id (+)
AND mic2.category_id = mc2.category_id (+) --BUG 18718596
AND mic.category_id = TO_NUMBER(xlc.value_constant) --BUG 18718596
AND gpb.organization_id = mic.organization_id(+)
AND gpb.inventory_item_id = mic.inventory_item_id(+)
AND gpb.organization_id = mic2.organization_id(+) --BUG 18718596
AND gpb.inventory_item_id = mic2.inventory_item_id(+)--BUG 18718596
AND mic2_b.category_set_id = mic2.category_set_id --BUG 18718596
AND mic2_b.category_set_name (+)= 'FISCAL_CLASSIFICATION' --BUG 18718596
AND hoi.organization_id = gpb.organization_id
AND hoi.org_information_context = 'Accounting Information'
AND jg_zz_shared_pkg.get_country (hoi.org_information3, NULL, NULL) = 'BR'
AND gca.calendar_code = gps.calendar_code
AND gca.legal_entity_id = gmf.legal_entity_id
AND gmf.legal_entity_id = hoi.org_information2
AND gpb.organization_id = ccd.organization_id
AND gpb.inventory_item_id = ccd.inventory_item_id
AND ccd.period_id = gps.period_id
AND gps.period_status = 'C'
AND gmf.cost_type_id = cmm.cost_type_id
AND cmm.cost_type =1
AND cmm.rmcalc_type =1
AND cmm.prodcalc_type =1
AND gmf.cost_type_id = gca.cost_type_id --BUG 9907951
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
289
AND gps.legal_entity_id = hoi.org_information2 --BUG 9907951
AND oap.organization_id = hoi.organization_id --BUG 9907951
AND oap.schedule_close_date = TRUNC(gps.end_date) --BUG 9907951
AND gpb.acct_period_id = oap.acct_period_id --BUG 9907951
and gpb.organization_id = oap.organization_id --BUG 9907951
and gcck.chart_of_accounts_id = gle.chart_of_accounts_id --BUG 18718596
and gle.legal_entity_id = gps.legal_entity_id --BUG 18718596
and gle.ledger_category_code = 'PRIMARY' --BUG 18718596
GROUP BY gca.legal_entity_id
,gmf.cost_type_id
,cmm.cost_type
,cmm.cost_mthd_code
,gca.calendar_code
,gps.period_code
,etb.establishment_id
,etb.registration_number
,cfse.outside_flag
,gpb.organization_id
,gpb.subinventory_code
,msi.concatenated_segments
,gpb.inventory_item_id
,ccd.cost_cmpntcls_id
,ccd.cmpnt_cost
,mc.concatenated_segments
,cmm.cost_mthd_desc --BUG 9646048
,msi.item_type --BUG 9646048
,msi.inventory_item_id --BUG 9646048
,mc2.SEGMENT1 --BUG 18718596
,mic.category_id --BUG 9646048
,mic.category_set_id
,mc.description --BUG 9646048
,msi.primary_unit_of_measure --BUG 9646048
,trunc(gps.end_date) --BUG 9646048
,gcck.concatenated_segments --BUG 18060815
,xlc.source_code
WITH READ ONLY

Null /
Column Type of Data Description
Not Null
LEGAL_ENTITY NOT NULL NUMBER(15,0) legal entity identifier
COST_TYPE_ID NUMBER(15,0) Cost Type identifier
Cost Type: 0 -
COST_TYPE NOT NULL NUMBER(5,0) Standard; 1 - Actual
Cost; 6 - Lot Cost
Cost method defined
COST_MTHD_CODE NOT NULL VARCHAR2(10)
by the user
CALENDAR_CODE NOT NULL VARCHAR2(10) calendar code
PERIOD_CODE NOT NULL VARCHAR2(10) period code

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
290
Establishment
ESTABLISHMENT_ID NUMBER(15,0)
Identifier
REGISTRATION_NUM
VARCHAR2(30) Registration Number
BER
COUNT_GROUP VARCHAR2(1) Outside Flag
Organization
ORGANIZATION_ID NOT NULL NUMBER(15,0)
Identifier
SUBINVENTORY_CO
VARCHAR2(10) SubInventory
DE
Concatenated
ITEM_CODE VARCHAR2(40)
Segments
INVENTORY_ITEM_I
NOT NULL NUMBER(15,0) Item Identifier
D
Ending Balance in
PRIMARY_QUANTITY NUMBER
Primary UOM
Surrogate for
ELEMENT_COST NOT NULL NUMBER(10,0)
component class
UNIT_COST NOT NULL NUMBER Component cost
Concatenated
FISCAL_CODE VARCHAR2(163)
Segments
Description of the
COST_MTHD_DESC NOT NULL VARCHAR2(40)
method
ITEM_TYPE VARCHAR2(30) User defined item type
Global Descriptive
CLASS_FISCAL VARCHAR2(150)
flexfield segment
CATEGORY_ID NUMBER Category identifier
STOCK_DESCRIPTIO
VARCHAR2(240) Category description
N
Primary stocking unit
UOM VARCHAR2(25) of measure for the
item
INVENTORY_DATE DATE end date
ACCOUNT VARCHAR2(311) Account
RULE VARCHAR2(30) Rule (Source Code)

CLL_F255_ORG_DEFINITIONS_V

Selects the information in the CLL_F255_ORG_DEFINITIONS_V view together with


other columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
291
SELECT hou.organization_id organization_id,
hou.business_group_id,
hou.date_from user_definition_enable_date,
hou.date_to disable_date,
mp.organization_code organization_code,
hou.name organization_name,
lgr.ledger_id set_of_books_id,
lgr.chart_of_accounts_id
chart_of_accounts_id,
hoi1.org_information2
inventory_enabled_flag,
DECODE(hoi2.org_information_context,
'Accounting Information',
TO_NUMBER (hoi2.org_information3),
TO_NUMBER (NULL)
) operating_unit,
DECODE(hoi2.org_information_context,
'Accounting Information',
TO_NUMBER(hoi2.org_information2),
NULL
) legal_entity,
hou1.name operating_unit_name,
hou.type, --BUG 13018410
hou.location_id, --BUG 13018410
hoi1.org_information1 --BUG 13018410
FROM hr_all_organization_units hou,
hr_all_organization_units hou1, --BUG 13018410
hr_organization_information hoi1,
hr_organization_information hoi2,
mtl_parameters mp,
gl_ledgers lgr
WHERE hou.organization_id = hoi1.organization_id
AND hou.organization_id = hoi2.organization_id
AND hou.organization_id = mp.organization_id
AND hoi1.org_information1 = 'INV'
AND hoi1.org_information2 = 'Y'
AND (hoi1.org_information_context || '') = 'CLASS'
AND (hoi2.org_information_context || '') = 'Accounting Information'
AND
TO_NUMBER(DECODE(RTRIM(TRANSLATE(hoi2.org_information1,'0123456789','
')),NULL,hoi2.org_information1,-99999)) = lgr.ledger_id
AND lgr.object_type_code = 'L'
AND NVL (lgr.complete_flag, 'Y') = 'Y'
AND TO_NUMBER(hoi2.org_information3) = hou1.organization_id

Null /
Column Type of Data Description
Not Null
System-generated
ORGANIZATION_ID NOT NULL NUMBER(15,0)
primary key column.
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
292
Foreign key to
BUSINESS_GROUP_ID NOT NULL NUMBER(15,0) HR_ORGANIZATIO
N_UNITS.
USER_DEFINITION_E Start date of the
NOT NULL DATE
NABLE_DATE organization
End date of the
DISABLE_DATE DATE
organization
ORGANIZATION_CO
VARCHAR2(3)
DE
ORGANIZATION_NA Name of the
NOT NULL VARCHAR2(240)
ME organization
Ledger defining
SET_OF_BOOKS_ID NOT NULL NUMBER(15,0)
column
CHART_OF_ACCOUN Key flexfield structure
NOT NULL NUMBER(15,0)
TS_ID defining column
INVENTORY_ENABLE Developer descriptive
VARCHAR2(150)
D_FLAG flexfield column.
OPERATING_UNIT NUMBER Operation Unit
LEGAL_ENTITY NUMBER Legal Entity

CLL_F255_OPM_STOCK_V

Selects the information in the CLL_F255_OPM_STOCK_V view together with other


columns that are referred to

SELECT gca.legal_entity_id legal_entity


-- ,hle.name legal_entity_name --BUG 9646048
,cmm.cost_type_id
,cmm.cost_type
,cmm.cost_mthd_code
,gca.calendar_code
,gps.period_code
,etb.establishment_id
,etb.registration_number
,decode( sign( mmt.primary_quantity ), -1, 'S',
'E' ) type
,decode( mmt.transaction_type_id, 36, 'S',
37, 'S',
'N') returns
,cfse.outside_flag count_group
,mmt.organization_id
,mmt.inventory_item_id
,mmt.transaction_date
,mmt.creation_date
,mmt.transaction_source_id
,mmt.transaction_source_type_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
293
,mmt.transaction_type_id
,mmt.transaction_id
,cal.actrans_id
,mmt.trx_source_line_id
,mmt.trx_source_delivery_id
,mmt.picking_line_id
,mmt.rcv_transaction_id
,msi.item_type
,msi.concatenated_segments item_code
,mmt.subinventory_code
,mc.category_id
,mc.description
category_description
,DECODE( SIGN( mmt.primary_quantity ), -1, mmt.primary_quantity * (-1),
mmt.primary_quantity ) quantity
, NVL( xal.accounted_dr, xal.accounted_cr )
total_cost
,( NVL( xal.accounted_dr, xal.accounted_cr ) /
DECODE( SIGN( mmt.primary_quantity ), -1, mmt.primary_quantity * (-1),
mmt.primary_quantity ) ) unit_cost
FROM cm_mthd_mst cmm
,gmf_period_statuses gps
,cm_acst_led cal
,gmf_fiscal_policies gfp
,gmf_calendar_assignments gca
-- ,hr_legal_entities hle --BUG 9646048
,hr_organization_information hoi
,hr_all_organization_units haou
,mtl_parameters mp
,mtl_material_transactions mmt
,mtl_system_items_kfv msi
,( SELECT mc.category_id,
mc.description,
mic.inventory_item_id,
mic.organization_id
FROM mtl_categories mc
, mtl_item_categories mic
, mtl_default_category_sets mdcs
WHERE mc.category_id = mic.category_id
AND mic.category_set_id = mdcs.category_set_id
AND mdcs.functional_area_id = 5 ) mc
,xla_ae_headers xah
,xla_ae_lines xal
,xla_transaction_entities xte
,cll_f032_subinventories_ext cfse
,hr_locations_all hl
,xle_establishment_v etb
WHERE hl.location_id = etb.location_id (+)
AND ( ( cfse.location_id IS NOT NULL
AND cfse.location_id = hl.location_id )
OR ( cfse.location_id IS NULL
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
294
AND haou.location_id = hl.location_id ) )
AND mmt.organization_id = cfse.organization_id (+)
AND mmt.subinventory_code = cfse.secondary_inventory_name (+)
AND mmt.rcv_transaction_id = cal.transline_id (+)
AND xal.ae_line_num (+) =1
AND xah.ae_header_id = xal.ae_header_id (+)
AND xte.entity_id = xah.entity_id (+)
AND TO_CHAR( mmt.transaction_id ) = xte.transaction_number (+)
AND mmt.organization_id = mc.organization_id(+)
AND mmt.inventory_item_id = mc.inventory_item_id(+)
AND mmt.organization_id = msi.organization_id
AND mmt.inventory_item_id = msi.inventory_item_id
AND EXISTS ( SELECT xte.transaction_number
FROM xla.xla_transaction_entities xte
WHERE xte.legal_entity_id = gca.legal_entity_id
AND xte.transaction_number = TO_CHAR( mmt.transaction_id ) )
AND mmt.transaction_date BETWEEN TRUNC( gps.start_date ) AND
TRUNC( gps.end_date )+.99999
AND mp.organization_id = mmt.organization_id
AND haou.organization_id = hoi.organization_id
AND mp.organization_id = hoi.organization_id
AND mp.process_enabled_flag = 'Y'
AND hoi.org_information_context = 'Accounting Information'
/* AND hoi.org_information2 = hle.organization_id
AND hle.organization_id = gca.legal_entity_id*/ --BUG 9646048
AND gca.legal_entity_id = gfp.legal_entity_id
AND jg_zz_shared_pkg.get_country ( hoi.org_information3, NULL, NULL ) = 'BR'
AND gfp.cost_type_id = cmm.cost_type_id
AND ( ( cal.cost_type_id IS NULL )
OR ( cal.cost_type_id = cmm.cost_type_id ) )
AND gps.period_status = 'C'
AND ( ( cal.period_id IS NULL )
OR ( cal.period_id = gps.period_id ) )
AND cmm.cost_type =1
AND cmm.rmcalc_type =1
AND cmm.prodcalc_type =1

Null /
Column Type of Data Description
Not Null
LEGAL_ENTITY NOT NULL NUMBER(15,0) legal entity identifier
COST_TYPE_ID NUMBER(15,0) cost type identifier
Cost Type: 0 -
COST_TYPE NOT NULL NUMBER(5,0) Standard; 1 - Actual
Cost; 6 - Lot Cost
Cost method defined
COST_MTHD_CODE NOT NULL VARCHAR2(10)
by the user
CALENDAR_CODE NOT NULL VARCHAR2(10) calendar code
PERIOD_CODE NOT NULL VARCHAR2(10) period code

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
295
Establishment
ESTABLISHMENT_ID NUMBER(15,0)
Identifier
REGISTRATION_NUM
VARCHAR2(30) Registration Number
BER
Transaction quantity
in terms of primary
TYPE VARCHAR2(1)
uom of the item.
Values: S or E
Transaction type
RETURNS VARCHAR2(1) identifier. Values: S or
N
COUNT_GROUP VARCHAR2(1)
Organization
ORGANIZATION_ID NOT NULL NUMBER
identifier
INVENTORY_ITEM_I Inventory item
NOT NULL NUMBER
D identifier
TRANSACTION_DAT
NOT NULL DATE Transaction date
E
CREATION_DATE NOT NULL DATE Standard Who column
TRANSACTION_SOU Transaction source
NUMBER
RCE_ID identifier
TRANSACTION_SOU Transaction source
NOT NULL NUMBER
RCE_TYPE_ID type identifier
TRANSACTION_TYPE Transaction type
NOT NULL NUMBER
_ID identifier
TRANSACTION_ID NOT NULL NUMBER Transaction identifier
Surrogate for this
ACTRANS_ID NUMBER(10,0)
ledger transaction row
TRX_SOURCE_LINE_I Line level transaction
NUMBER
D source id
TRX_SOURCE_DELIV Sales order delivery
NUMBER
ERY_ID identifier
PICKING_LINE_ID NUMBER Picking line id
RCV_TRANSACTION_ Receiving transaction
NUMBER
ID cross reference
ITEM_TYPE VARCHAR2(30) Type of item
Concatenated
ITEM_CODE VARCHAR2(40) Segments

SUBINVENTORY_CO Transaction secondary


VARCHAR2(10)
DE inventory
CATEGORY_ID NUMBER Category identifier
Category description.
Translations table
CATEGORY_DESCRIP (MTL_SYSTEM_ITEM
VARCHAR2(240)
TION S_TL) holds item
descriptions in
multiple languages
QUANTITY NUMBER Quantity
TOTAL_COST NUMBER Total Cost
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
296
UNIT_COST NUMBER Unit Cost

CLL_F255_GL_ACCT_HIERARCHY_V

Selects the information in the CLL_F255_GL_ACCT_HIERARCHY_V view together


with other columns that are referred to

SELECT DISTINCT
gsb.set_of_books_id ledger_id,
--emp.registration_number company_code,
--emp.entity_name establishment_code,
glv.segment_value company_code,
fifs.segment_name segment_name,
ffvt.description,
ffv.start_date_active,
ffv.end_date_active,
fifs.application_column_name,
ffv.summary_flag,
--fifs.id_flex_num chart_of_accounts,
gsb.chart_of_accounts_id chart_of_accounts_id,
gsb.name book,
ffv.flex_value_set_id,
fl.installed_flag,
fl.language_code,
ffv.flex_value
FROM ( SELECT *
FROM cll_f255_establishment_v ) emp,
fnd_flex_values ffv,
fnd_flex_values_tl ffvt,
fnd_id_flex_segments fifs,
fnd_languages fl,
gl_sets_of_books gsb,
gl_ledger_norm_seg_vals glv,
gl_ledger_relationships glr
WHERE gsb.chart_of_accounts_id = fifs.id_flex_num
AND glr.source_ledger_id = glv.ledger_id
AND glr.target_ledger_category_code = 'PRIMARY'
AND glv.ledger_id = gsb.set_of_books_id
AND emp.ledger_id = gsb.set_of_books_id
AND emp.entity_name IS NOT NULL
--AND TO_CHAR(emp.location_id) = ffv.flex_value
AND fifs.id_flex_code = 'GL#'
AND fifs.flex_value_set_id = ffv.flex_value_set_id
AND ffvt.flex_value_id = ffv.flex_value_id
AND ffvt.LANGUAGE = fl.language_code

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
297
AND ffvt.LANGUAGE = 'PTB'
AND fifs.application_column_name IN ( SELECT DISTINCT
application_column_name
FROM (SELECT b.set_of_books_id,
b.grafico_de_contas,
a.application_column_name,
c.segment_attribute_type
FROM (SELECT set_of_books_id ,
NAME ,
short_name ,
chart_of_accounts_id grafico_de_contas,
currency_code moeda_funcional,
mrc_sob_type_code tipo_livro
FROM gl_sets_of_books) b, --caibr_gl_sets_of_books_v
fnd_segment_attribute_values c,
fnd_id_flex_segments a
WHERE c.application_id = a.application_id
AND c.id_flex_code = a.id_flex_code
AND c.id_flex_num = a.id_flex_num
AND c.application_column_name =
a.application_column_name
AND c.attribute_value = 'Y'
AND a.application_id = 101
AND segment_attribute_type IN ( 'GL_BALANCING',
'FA_COST_CTR', 'GL_ACCOUNT' )
AND a.id_flex_code = 'GL#'
AND a.enabled_flag = 'Y'
AND b.grafico_de_contas = a.id_flex_num) gl_segment_v);

Null /
Column Type of Data Description
Not Null
LEDGER_ID NOT NULL NUMBER(15,0) Ledger_Id
COMPANY_CODE NOT NULL VARCHAR2(25) Segment value
SEGMENT_NAME NOT NULL VARCHAR2(30) Segment name
DESCRIPTION VARCHAR2(240) Description
START_DATE_ACTIV The date the value
DATE
E becomes active
The date the value
END_DATE_ACTIVE DATE
expires
APPLICATION_COLU
NOT NULL VARCHAR2(30) Flexfield column name
MN_NAME
Flag to indicate if the
SUMMARY_FLAG NOT NULL NOT NULL value is a parent value
with child values
CHART_OF_ACCOUN
NOT NULL NUMBER(15,0) Chart Of Accounts Id
TS_ID
BOOK NOT NULL VARCHAR2(30) Name
FLEX_VALUE_SET_ID NOT NULL NUMBER(10,0) Flex Value Set Id
INSTALLED_FLAG NOT NULL VARCHAR2(1) Installed Flag

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
298
LANGUAGE_CODE NOT NULL VARCHAR2(4) Language Code
Flexfield segment
FLEX_VALUE NOT NULL VARCHAR2(150)
value

CLL_F255_GL_SEGMENTS_V

Selects the information in the CLL_F255_GL_SEGMENTS_V view together with other


columns that are referred to

SELECT gl.ledger_id,
gl.chart_of_accounts_id,
fifs.application_column_name,
fsav.segment_attribute_type,
fifs.segment_name
FROM gl_ledgers gl,
fnd_segment_attribute_values fsav,
fnd_id_flex_segments fifs
WHERE fsav.application_id = fifs.application_id
AND fsav.id_flex_code = fifs.id_flex_code
AND fsav.id_flex_num = fifs.id_flex_num
AND fsav.application_column_name = fifs.application_column_name
AND fsav.attribute_value = 'Y'
AND fifs.application_id = 101
AND fifs.id_flex_code = 'GL#'
AND fifs.enabled_flag = 'Y'
AND gl.chart_of_accounts_id = fifs.id_flex_num;

Null /
Column Type of Data Description
Not Null
Ledger defining
LEDGER_ID NOT NULL NUMBER(15,0)
column
CHART_OF_ACCOUN Key flexfield structure
NOT NULL NUMBER(15,0)
TS_ID defining column
APPLICATION_COLU
NOT NULL VARCHAR2(30) Flexfield column name
MN_NAME
SEGMENT_ATTRIBUT Flexfield segment
NOT NULL VARCHAR2(30)
E_TYPE qualifier
SEGMENT_NAME NOT NULL VARCHAR2(30) Segment name

CLL_F255_CST_INVENTORY_TEMP_V

Selects the information in the CLL_F255_CST_INVENTORY_TEMP_V view together


with other columns that are referred to

SELECT DECODE( qty.subinventory_code, NULL, '2-Intransit', '1-Stock') TYPE


, cost.organization_id
, mp.organization_code
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
299
, cost.cost_type_id
, cct.cost_type
, CLL_F255_CST_INVENTORY_PUB.get_period_id period_id
, CLL_F255_CST_INVENTORY_PUB.get_period_name period_name
, CLL_F255_CST_INVENTORY_PUB.get_inventory_date inventory_date
, TO_CHAR(NULL) count_group
--
, SUBSTR (mc.concatenated_segments, 1, 10) classification_code
, msik.item_type
, msik.concatenated_segments item_code
, qty.subinventory_code
, msik.primary_uom_code uom
, cost.inventory_item_id
, SUM( qty.rollback_qty ) quantity
, ( SUM( qty.rollback_qty ) * ( DECODE( sub.asset_inventory, 1, cost.item_cost, 0 ) ) )
cost_total
, DECODE( sub.asset_inventory, 1, cost.item_cost, 0 ) cost_unit
, mp.material_account account
FROM cst_item_list_temp item
, cst_cg_list_temp cg
, cst_inv_qty_temp qty
, cst_inv_cost_temp cost
-- Additional tables
, mtl_parameters mp
, cst_cost_types cct
, mtl_system_items_kfv msik
, mtl_categories_b_kfv mc
, mtl_item_categories mic
, mtl_secondary_inventories sub
WHERE item.inventory_item_id = qty.inventory_item_id
AND qty.cost_group_id = cg.cost_group_id (+)
AND cost.cost_type_id = qty.cost_type_id
AND cost.organization_id = qty.organization_id
AND cost.inventory_item_id = qty.inventory_item_id
AND cost.cost_group_id = qty.cost_group_id
--
AND cost.organization_id = mp.organization_id
AND cost.cost_type_id = cct.cost_type_id
AND cost.organization_id = msik.organization_id
AND cost.inventory_item_id = msik.inventory_item_id
AND msik.organization_id = mic.organization_id (+)
AND msik.inventory_item_id = mic.inventory_item_id (+)
AND mic.category_set_id (+) = 1100000209
AND mic.category_id = mc.category_id (+)
AND qty.organization_id = sub.organization_id (+)
AND qty.subinventory_code = sub.secondary_inventory_name (+)
GROUP BY qty.subinventory_code
, cost.organization_id
, mp.organization_code
, cost.cost_type_id
, cct.cost_type
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
300
, SUBSTR (mc.concatenated_segments, 1, 10)
, msik.item_type
, msik.concatenated_segments
, qty.subinventory_code
, msik.primary_uom_code
, cost.inventory_item_id
, sub.asset_inventory
, cost.item_cost
, mp.material_account
HAVING SUM( qty.rollback_qty ) <> 0

Null /
Column Type of Data Description
Not Null
TYPE NOT NULL VARCHAR2
ORGANIZATION_ID NOT NULL NUMBER(15,0)
ORGANIZATION_COD NOT NULL VARCHAR2
E
COST_TYPE_ID NOT NULL NUMBER(15,0)
COST_TYPE NOT NULL VARCHAR2
PERIOD_ID NOT NULL NUMBER
PERIOD_NAME NOT NULL VARCHAR2
INVENTORY_DATE NOT NULL DATE
COUNT_GROUP NOT NULL VARCHAR2
CLASSIFICATION_CO NOT NULL VARCHAR2
DE
ITEM_TYPE NOT NULL VARCHAR2
ITEM_CODE NOT NULL VARCHAR2
SUBINVENTORY_COD NOT NULL VARCHAR2
E
UOM NOT NULL VARCHAR2
INVENTORY_ITEM_ID NOT NULL NUMBER(15,0)
QUANTITY NOT NULL NUMBER
COST_TOTAL NOT NULL NUMBER
COST_UNIT NOT NULL NUMBER
ACCOUNT NOT NULL NUMBER

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
301
CLL_F255_RI_RA_CUST_TRX_V

Selects the information in the CLL_F255_RI_RA_CUST_TRX_v view together with other


columns that are referred to

SELECT
cfrct."RA_CUST_TRX_ID",cfrct."INVOICE_ID",cfrct."CUSTOMER_TRX_ID",cfrct."CUST_
ACCT_SITE_ID",cfrct."TRX_NUMBER",cfrct."TRX_DATE",cfrct."CREATION_DATE",cfrc
t."CREATED_BY",cfrct."LAST_UPDATE_DATE",cfrct."LAST_UPDATED_BY",cfrct."LAS
T_UPDATE_LOGIN",cfrct."ATTRIBUTE_CATEGORY",cfrct."ATTRIBUTE1",cfrct."ATTRI
BUTE2",cfrct."ATTRIBUTE3",cfrct."ATTRIBUTE4",cfrct."ATTRIBUTE5",cfrct."ATTRIBUT
E6",cfrct."ATTRIBUTE7",cfrct."ATTRIBUTE8",cfrct."ATTRIBUTE9",cfrct."ATTRIBUTE10",
cfrct."ATTRIBUTE11",cfrct."ATTRIBUTE12",cfrct."ATTRIBUTE13",cfrct."ATTRIBUTE14",
cfrct."ATTRIBUTE15",cfrct."ATTRIBUTE16",cfrct."ATTRIBUTE17",cfrct."ATTRIBUTE18",
cfrct."ATTRIBUTE19",cfrct."ATTRIBUTE20",cfrct."OUTBOUND_FREIGHT",cfrct."INVOI
CE_AMOUNT_FRT"
FROM cll_f189_ra_cust_trx cfrct;

Column Null / Type of Data Description


Not Null
RA_CUST_TRX_ID NOT NULL NUMBER Relation Identifier
between nff AR and RI
INVOICE_ID NOT NULL NUMBER Invoice Id
CUSTOMER_TRX_ID NOT NULL NUMBER Identifier Id AR nff
SITE_USE_ID NOT NULL NUMBER Site use identifier
TRX_NUMBER NOT NULL NUMBER Transaction number
CREATION_DATE NOT NULL DATE Standard Who Column
CREATED_BY NOT NULL NUMBER Standard Who Column
LAST_UPDATE_DATE NOT NULL DATE Standard Who Column
LAST_UPDATED_BY NOT NULL NUMBER Standard Who Column
LAST_UPDATE_LOGI
NUMBER Standard Who Column
N
ATTRIBUTE_CATEGO Descriptive flexfield
VARCHAR2(30)
RY segment
Descriptive flexfield
ATTRIBUTE1 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE2 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE3 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE4 VARCHAR2(150)
segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
302
Descriptive flexfield
ATTRIBUTE5 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE6 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE7 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE8 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE9 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE10 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE11 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE12 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE13 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE14 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE15 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE16 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE17 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE18 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE19 VARCHAR2(150)
segment
Descriptive flexfield
ATTRIBUTE20 VARCHAR2(150)
segment
OUTBOUND_FREIGH
NUMBER
T
INVOICE_AMOUNT_
NUMBER
FRT

CLL_F255_FA_ASSET_FISCALDOC_V

Selects the information in the CLL_F255_FA_ASSET_FISCALDOC_v view together with


other columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
303
SELECT fai.asset_id,
fai.project_id,
fai.task_id,
fai.po_number,
aia.invoice_num,
cfi.invoice_id ri_invoice_id,
cfi.location_id,
aia.description,
cfi.operation_id,
cfi.series,
cfil.invoice_line_id,
cfil.line_location_id,
cfil.cfo_id,
cfil.item_id,
cfil.uom,
cfil.unit_price,
cfil.quantity,
cfil.total_amount,
cfil.organization_id,
aia.invoice_id,
DECODE(fb.life_in_months,
NULL,
fb.basic_rate,
fb.life_in_months / 12) time_life_asset,
fb.date_placed_in_service,
fb.book_type_code,
fai.asset_invoice_id,
fsl.source_line_id,
ail.line_number,
fcb.asset_cost_account_ccid, ---BUG 12627507
fa.asset_number, ---BUG 12627507
fa.description fa_description, ---BUG 12627507
fai.date_effective, ---BUG 12627507
fb.original_cost, ---BUG 12627507
fb.deprn_start_date, ---BUG 12627507
fa.serial_number, ---BUG 12627507
fa.in_use_flag, ---BUG 12627507
fb.adjusted_rate, ---BUG 12627507
fb.deprn_method_code, ---BUG 12627507
fb.period_counter_fully_reserved, ---BUG 12627507
fb.life_in_months, ---BUG 12627507
fb.transaction_header_id_out ---BUG 12627507
FROM fa_additions fa, ---BUG 12627507
fa_book_controls fbc, ---BUG 12627507
fa_category_books fcb, ---BUG 12627507
fa_books fb,
fa_source_lines_v fsl,
fa_asset_invoices fai,
cll_f189_invoice_lines cfil,
ap_invoices_all aia,
cll_f189_invoices cfi,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
304
ap_invoice_lines_all ail
WHERE fa.asset_id = fai.asset_id ---BUG 12627507
AND fbc.book_type_code = fb.book_type_code ---BUG 12627507
AND fcb.category_id = fa.asset_category_id ---BUG 12627507
AND fcb.book_type_code = fb.book_type_code ---BUG 12627507
AND fsl.asset_id = fai.asset_id
AND fai.source_line_id = fsl.source_line_id
AND fsl.asset_invoice_id = fai.asset_invoice_id
AND fai.asset_id = fb.asset_id
AND cfi.invoice_id = cfil.invoice_id
AND cfi.invoice_num_ap = aia.invoice_num
AND aia.invoice_num = fai.invoice_number
AND aia.invoice_id = fai.invoice_id
AND fai.invoice_line_number = ail.line_number
AND aia.invoice_id = ail.invoice_id
AND aia.org_id = ail.org_id
AND ail.reference_key1 = cfil.invoice_line_id;

Column Null / Type of Data Description


Not Null
ASSET_ID NOT NULL NUMBER(15,0) Asset identification
number.
PROJECT_ID NUMBER(15,0) Identifier of the
project from which the
costs are collected,
summarized, and
transferred from
Oracle Projects.
TASK_ID NUMBER(15,0) Identifier of the task
from which costs are
collected,
summarized, and
transferred from
Oracle Projects. This
column is only
populated if the costs
were summarized by
task.
PO_NUMBER VARCHAR2(20) Purchase order
number.
INVOICE_NUM NOT NULL VARCHAR2(50) Invoice number for an
invoice. This number
entered will be unique
per supplier and
operating unit.
RI_INVOICE_ID NOT NULL NUMBER Invoice identifier.
LOCATION_ID NOT NULL NUMBER(15,0) Delivery location
identifier.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
305
DESCRIPTION VARCHAR2(240) Description of the
invoice. This column is
a free form text field in
Invoice workbench.
OPERATION_ID NOT NULL NUMBER Receiving identifier.
SERIES NOT NULL VARCHAR2(30) Invoice series.
INVOICE_LINE_ID NOT NULL NUMBER Invoice line identifier.
LINE_LOCATION_ID NUMBER Location identifier of
the purchase order
line.
CFO_ID NOT NULL NUMBER Operation fiscal code
identifier.
ITEM_ID NUMBER Inventory item
identifier.
UOM VARCHAR2(30) Unit of measure.
UNIT_PRICE NUMBER Unit price of the
invoice line
QUANTITY NUMBER Quantity in the
invoice line.
TOTAL_AMOUNT NUMBER Total value of the
invoice line.
ORGANIZATION_ID NUMBER(15,0) Inventory
organization identifier.
INVOICE_ID NOT NULL NUMBER(15,0) Unique internal
Identifier for this
record. Generated
using a database
sequence.
TIME_LIFE_ASSET NUMBER Life of the asset in
total months.
DATE_PLACED_IN_S NOT NULL DATE Date the asset was
ERVICE placed in service.
BOOK_TYPE_CODE NOT NULL VARCHAR2(15) Book name.
ASSET_INVOICE_ID NUMBER(15,0) Same as
Mass_Addition_id
number for this row.
SOURCE_LINE_ID NOT NULL NUMBER(15,0) Reserved for system
use. Do not use.
LINE_NUMBER NOT NULL NUMBER Invoice line number.
ASSET_COST_ACCOU NOT NULL NUMBER(15,0)
NT_CCID
ASSET_NUMBER NOT NULL VARCHAR2(15) User assigned asset
number.
FA_DESCRIPTION VARCHAR2(80) Asset Description
DATE_EFFECTIVE NOT NULL DATE
ORIGINAL_COST NOT NULL NUMBER Original cost of the
asset.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
306
DEPRN_START_DATE NOT NULL DATE Date the asset started
to depreciate.
SERIAL_NUMBER VARCHAR2(35) Serial number of asset.
IN_USE_FLAG NOT NULL VARCHAR2(3) Indicates whether the
asset is in use.
ADJUSTED_RATE NUMBER Actual rate used to
calculate depreciation
for flat-rate methods.
DEPRN_METHOD_CO NOT NULL VARCHAR2(12) Name of the
DE depreciation method
for the asset.
PERIOD_COUNTER_F NUMBER(15,0) Period that the asset
ULLY_RESERVED became fully reserved.
LIFE_IN_MONTHS NUMBER(4,0) Life of the asset in total
months.
TRANSACTION_HEA NUMBER(15,0) Identifies the
DER_ID_OUT transaction that made
this row ineffective.

CLL_F255_FA_ASSET_INVOICES_V

Selects the information in the CLL_F255_FA_ASSET_INVOICES_v view together with


other columns that are referred to

SELECT fid.po_number
,fid.project_id
,fid.task_id
,fid.asset_id
,fid.date_effective
,pald.set_of_books_id
,pald.task_name
,pald.employee_name
,pald.job_name
,pald.vendor_name
,pald.expenditure_category
,pald.transaction_source
,pald.unit_of_measure_m
,aia.org_id
,aida.invoice_id
,aida.accounting_date
,aida.amount
,aida.request_id
,aia.invoice_num invoice_num_ap
,cfi.invoice_num invoice_num_ri
,cfi.organization_id

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
307
,cfi.operation_id
,cfi.invoice_amount
,cfil.invoice_line_id
,cfil.cfo_id
,fb.date_placed_in_service ---BUG 12627507
,fb.book_type_code ---BUG 12627507
,fcb.asset_cost_account_ccid ---BUG 12627507
,fa.asset_number ---BUG 12627507
,fa.description fa_description ---BUG 12627507
,fb.original_cost ---BUG 12627507
,fb.deprn_start_date ---BUG 12627507
,fa.serial_number ---BUG 12627507
,fa.in_use_flag ---BUG 12627507
,fb.adjusted_rate ---BUG 12627507
,fb.deprn_method_code ---BUG 12627507
,fb.period_counter_fully_reserved ---BUG 12627507
,fb.life_in_months ---BUG 12627507
,fb.transaction_header_id_out ---BUG 12627507
FROM fa_additions fa,
fa_book_controls fbc,
fa_category_books fcb,
fa_books fb,
ap_invoice_lines_all ail,
fa_invoice_details_v fid,
cll_f189_invoices cfi,
cll_f189_invoice_lines cfil,
ap_invoice_distributions_all aida,
pa_asset_line_details_v pald,
pa_expend_items_adjust2_v peia,
ap_invoices_all aia
WHERE fa.asset_id = fid.asset_id
AND fbc.book_type_code = fb.book_type_code
AND fcb.category_id = fa.asset_category_id
AND fcb.book_type_code = fb.book_type_code
AND ail.asset_book_type_code = fb.book_type_code
AND ail.asset_category_id = fcb.category_id
AND fb.asset_id = fid.asset_id
AND ail.invoice_id = aia.invoice_id
AND ail.org_id = aia.org_id
AND cfi.invoice_num_ap = aia.invoice_num
AND ail.reference_key1 = cfil.invoice_line_id
AND cfil.organization_id = cfi.organization_id
AND cfil.invoice_id = cfi.invoice_id
AND aia.invoice_num = cfi.invoice_num_ap
AND aia.invoice_num = fid.po_number
AND aida.invoice_id = aia.invoice_id
AND peia.orig_transaction_reference = aida.request_id
AND peia.project_id = aida.project_id
AND peia.task_id = aida.task_id
AND peia.project_id = fid.project_id
AND peia.task_id = fid.task_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
308
AND peia.document_header_id = fid.invoice_id
AND pald.expenditure_item_id = peia.expenditure_item_id
AND pald.project_id = peia.project_id
AND pald.task_id = peia.task_id
AND pald.orig_transaction_reference = peia.orig_transaction_reference
AND aia.source IN ('CLL F189 INTEGRATED RCV', 'CLL F189 INTEGR RCV PA');

Column Null / Type of Data Description


Not Null
PO_NUMBER VARCHAR2(20) Purchase order
number.
PROJECT_ID NUMBER(15,0) Identifier of the
project from which the
costs are collected,
summarized, and
transferred from
Oracle Projects.
TASK_ID NUMBER(15,0) Identifier of the task
from which costs are
collected, summarized,
and transferred from
Oracle Projects. This
column is only
populated if the costs
were summarized by
task.
ASSET_ID NOT NULL NUMBER(15,0) Asset identification
number.
DATE_EFFECTIVE NOT NULL DATE Date the row became
effective.
SET_OF_BOOKS_ID VARCHAR2 Reporting set of books
identification number
for General Ledger sets
of books.
TASK_NAME NOT NULL VARCHAR2(20) User-defined short
name of the task.
EMPLOYEE_NAME VARCHAR2(240) Full Name: Last, First
Middle.
JOB_NAME VARCHAR2(700) Job name,
concatenated from the
keyflex structure.
VENDOR_NAME VARCHAR2(240) Supplier name.
EXPENDITURE_CATE NOT NULL VARCHAR2(30) The expenditure
GORY category that classifies
the expenditure type
into a cost group.
TRANSACTION_SOU VARCHAR2(80) Only populated for
RCE expenditure items

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
309
created from
transactions imported
into PA from an
external system; used
by PA's expenditure
item adjustment
modules and costing
programs to ensure
the proper processing
on imported items.
UNIT_OF_MEASURE_ NOT NULL VARCHAR2(80)
M
ORG_ID NUMBER(15,0) Organization
identifier.
INVOICE_ID NOT NULL NUMBER(15,0) Invoice identifier.
ACCOUNTING_DATE NOT NULL DATE Accounting date.
AMOUNT NUMBER Invoice distribution
amount.
REQUEST_ID NUMBER(15,0) Concurrent Program
who column -
concurrent request id
of the program that
last updated this row
(foreign key to
FND_CONCURRENT
_REQUESTS.REQUES
T_ID).
INVOICE_NUM_AP NOT NULL VARCHAR2(50) Invoice number.
INVOICE_NUM_RI NOT NULL NUMBER(16,2) Invoice number.
ORGANIZATION_ID NOT NULL NUMBER Inventory
organization
identifier.
OPERATION_ID NOT NULL NUMBER Receiving identifier.
INVOICE_AMOUNT NOT NULL NUMBER Invoice value.
INVOICE_LINE_ID NOT NULL NUMBER Invoice line identifier.
CFO_ID NOT NULL NUMBER Operation fiscal code
identifier.
DATE_PLACED_IN_S NOT NULL DATE Date the asset was
ERVICE placed in service.
BOOK_TYPE_CODE NOT NULL VARCHAR2(15) Book name.
ASSET_COST_ACCOU NOT NULL NUMBER(15,0) Cost account ccid.
NT_CCID
ASSET_NUMBER NOT NULL VARCHAR2(15) User assigned asset
number.
FA_DESCRIPTION VARCHAR2(80) Description.
ORIGINAL_COST NOT NULL NUMBER Original cost of the
asset.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
310
DEPRN_START_DATE NOT NULL DATE Date the asset started
to depreciate.
SERIAL_NUMBER VARCHAR2(35) Serial number of asset.
IN_USE_FLAG NOT NULL VARCHAR2(3) Indicates whether the
asset is in use.
ADJUSTED_RATE NUMBER Actual rate used to
calculate depreciation
for flat-rate methods.
DEPRN_METHOD_CO NOT NULL VARCHAR2(12) Name of the
DE depreciation method
for the asset.
PERIOD_COUNTER_F NUMBER(15,0) Period that the asset
ULLY_RESERVED became fully reserved.
LIFE_IN_MONTHS NUMBER(4,0) Life of the asset in
total months.
TRANSACTION_HEA NUMBER(15,0) Identifies the
DER_ID_OUT transaction that made
this row ineffective.

CLL_F255_WIP_MAT_COMPONENTS_V

Selects the information in the CLL_F255_WIP_MAT_COMPONENTS_v view together


with other columns that are referred to

SELECT
bom.assembly_item_id,
bom.organization_id,
bom.alternate_bom_designator ,
DECODE(LENGTH(fe.registration_number),15,
SUBSTR(fe.registration_number,2,9),
SUBSTR(fe.registration_number,1,8)) company_code,
DECODE(LENGTH(fe.registration_number),15,
SUBSTR(fe.registration_number,10,4),
SUBSTR(fe.registration_number,9,4)) establishment_code,
bom.bill_sequence_id ,
c.component_sequence_id ,
c.component_item_id ,
b.concatenated_segments item_code,
b.primary_uom_code ,
b.item_type ,
b.bom_enabled_flag ,
b.build_in_wip_flag ,
bom.assembly_type ,
msi.concatenated_segments component_item_code,
msi.primary_uom_code component_primary_uom_code,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
311
msi.item_type component_item_type,
msi.bom_enabled_flag component_bom_enabled_flag,
msi.build_in_wip_flag component_build_in_wip_flag,
c.component_quantity ,
c.planning_factor ,
c.component_yield_factor ,
c.effectivity_date ,
c.implementation_date ,
c.disable_date ,
c.quantity_related ,
bom.next_explode_date ,
bom.project_id ,
bom.task_id ,
mtl.material_account ,
c.component_remarks ,
c.attribute_category ,
c.attribute1 ,
c.attribute2 ,
c.attribute3 ,
c.attribute4 ,
c.attribute5 ,
c.attribute6 ,
c.attribute7 ,
c.attribute8 ,
c.attribute9 ,
c.attribute10 ,
c.attribute11 ,
c.attribute12 ,
c.attribute13 ,
c.attribute14 ,
c.attribute15 ,
fe.operating_unit
FROM bom_bill_of_materials bom,
mtl_system_items_b_kfv b,
bom_inventory_components c,
mtl_system_items_b_kfv msi,
cll_f255_establishment_v fe,
mtl_parameters mtl
WHERE fe.inventory_organization_id = bom.organization_id
AND mtl.organization_id = bom.organization_id
AND msi.inventory_item_id = c.component_item_id
AND msi.organization_id = bom.organization_id
AND c.bill_sequence_id = bom.bill_sequence_id
AND b.inventory_item_id = bom.assembly_item_id
AND b.organization_id = bom.organization_id

Column Null / Type of Data Description


Not Null

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
312
ASSEMBLY_ITEM_ID NUMBER Inventory item identifier
of manufactured
assembly
ORGANIZATION_ID NUMBER Organization identifier
ALTERNATE_BOM_DE VARCHAR2(10) Alternate designator code
SIGNATOR
COMPANY_CODE VARCHAR2(27) Company code
ESTABLISHMENT_CO VARCHAR2(12) Establishment code
DE
BILL_SEQUENCE_ID NUMBER Bill of material unique
identifier
COMPONENT_SEQUE NUMBER Component unique
NCE_ID identifier
COMPONENT_ITEM_I NUMBER Component item
D identifier
ITEM_CODE VARCHAR2(40)
PRIMARY_UOM_CODE VARCHAR2(3) Primary unit of measure
code
ITEM_TYPE VARCHAR2(30) User defined item type
BOM_ENABLED_FLAG VARCHAR2(1) Flag indicating item may
appear on a BOM
BUILD_IN_WIP_FLAG VARCHAR2(1) Flag indicating item may
be built in WIP
ASSEMBLY_TYPE NUMBER Assembly type:
1=Manufacturing bill
2=Engineering bil
COMPONENT_ITEM_C VARCHAR2(40) Concatenated segments
ODE
COMPONENT_PRIMAR VARCHAR2(3) Component Primary unit
Y_UOM_CODE of measure code
COMPONENT_ITEM_T VARCHAR2(30) User defined item type of
YPE component
COMPONENT_BOM_E VARCHAR2(1) Flag indicating item may
NABLED_FLAG appear on a BOM
COMPONENT_BUILD_I VARCHAR2(1) Flag indicating item may
N_WIP_FLAG be built in WIP
COMPONENT_QUANTI NUMBER Quantity of component in
TY bill of material
PLANNING_FACTOR NUMBER Factor used to multiply
component quantity with
to obtain planning
quantity
COMPONENT_YIELD_ NUMBER Factor used to multiply
FACTOR component quantity with
to obtain required
component quantity
EFFECTIVITY_DATE DATE Effective date of
component
IMPLEMENTATION_D DATE Date on which
ATE engineering change order
was implemented
DISABLE_DATE DATE Disable date of
component
QUANTITY_RELATED NUMBER Identifier to indicate if
this component has
quantity related reference
designators
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
313
NEXT_EXPLODE_DAT DATE Next date when pre-
E explosion will be
refreshe
PROJECT_ID NUMBER Project Identifier for
Project Manufacturing
TASK_ID NUMBER Task identifier for Project
Manufacturing
MATERIAL_ACCOUNT NUMBER Inventory material
account
COMPONENT_REMAR VARCHAR2(240) Component remarks
KS
ATTRIBUTE_CATEGO VARCHAR2(30) Descriptive flexfield
RY structure defining
column
ATTRIBUTE1 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE2 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE3 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE4 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE5 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE6 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE7 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE8 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE9 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE10 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE11 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE12 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE13 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE14 VARCHAR2(150) Descriptive flexfield
segment
ATTRIBUTE15 VARCHAR2(150) Descriptive flexfield
segment
OPERATING_UNIT NUMBER Operating Unit

CLL_F255_WIP_MATERIALS_V

Selects the information in the CLL_F255_WIP_MATERIALS_V view together with other


columns that are referred to

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
314
SELECT a.wip_entity_id,
a.organization_id,
a.primary_item_id,
a.wip_entity_name,
wdj.date_released,
wdj.date_completed,
wdj.quantity_completed,
wdj.attribute1 wdj_attribute1,
wdj.attribute2 wdj_attribute2,
wdj.attribute3 wdj_attribute3,
wdj.attribute4 wdj_attribute4,
wdj.attribute5 wdj_attribute5,
wdj.attribute6 wdj_attribute6,
wdj.attribute7 wdj_attribute7,
wdj.attribute8 wdj_attribute8,
wdj.attribute9 wdj_attribute9,
wdj.attribute10 wdj_attribute10,
DECODE(LENGTH(fe.registration_number),15, SUBSTR(fe.registration_number,2,9),
SUBSTR(fe.registration_number,1,8)) company_code,
DECODE(LENGTH(fe.registration_number),15,
SUBSTR(fe.registration_number,10,4),SUBSTR(fe.registration_number,9,4))
establishment_code,
b.item_type ,
b.concatenated_segments item_code,
c.last_unit_completion_date ,
b.primary_uom_code ,
w.required_quantity ,
w.quantity_issued ,
w.quantity_per_assembly ,
SUBSTR(w.comments,1,50) comments,
w.supply_subinventory ,
r.inventory_item_id component_item_id,
r.organization_id component_organization_id,
r.item_type component_item_type,
r.concatenated_segments component_item_code,
r.primary_uom_code component_primary_uom_code,
c.operation_yield ,
fe.operating_unit
FROM cll_f255_establishment_v fe,
mtl_system_items_b_kfv b,
mtl_system_items_b_kfv r,
wip_requirement_operations w,
wip_operations c,
wip_entities a,
wip_discrete_jobs wdj
WHERE fe.inventory_organization_id = w.organization_id
AND fe.legislative_cat_code = 'FEDERAL_TAX'
AND r.inventory_item_id = w.inventory_item_id
AND r.organization_id = w.organization_id
AND w.wip_entity_id = c.wip_entity_id
AND w.organization_id = c.organization_id
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
315
AND w.operation_seq_num = c.operation_seq_num
AND c.wip_entity_id = a.wip_entity_id
AND c.organization_id = w.organization_id
AND b.inventory_item_id = a.primary_item_id
AND b.organization_id = a.organization_id
AND w.department_id = c.department_id
AND a.organization_id = wdj.organization_id
AND a.wip_entity_id = wdj.wip_entity_id
AND a.primary_item_id = wdj.primary_item_id

Column Null / Type of Data Description


Not Null
WIP_ENTITY_ID NUMBER Job or schedule Identifier
ORGANIZATION_ID NUMBER Organization identifier
PRIMARY_ITEM_ID NUMBER Inventory item Identifier
for the assembly the job
or schedule creates
WIP_ENTITY_NAME VARCHAR2(240) WIP job or repetitive
assembly name or flow
schedule reference code
DATE_RELEASED DATE Date on which job is
released
DATE_COMPLETED DATE Last unit actual
completion date
QUANTITY_COMPLET NUMBER Current job quantity
ED completed
WDJ_ATTRIBUTE1 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE2 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE3 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE4 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE5 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE6 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE7 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE8 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE9 VARCHAR2(240) Descriptive Flexfield
segment
WDJ_ATTRIBUTE10 VARCHAR2(240) Descriptive Flexfield
segment
COMPANY_CODE VARCHAR2(27) Company Code
ESTABLISHMENT_CO VARCHAR2(12) Establishment Code
DE
ITEM_TYPE VARCHAR2(30) User defined item type
ITEM_CODE VARCHAR2(40) Concatenated segments
LAST_UNIT_COMPLET DATE Last unit scheduled
ION_DATE completion date
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
316
PRIMARY_UOM_CODE VARCHAR2(3) Primary unit of measure
code
REQUIRED_QUANTIT NUMBER Part quantity required
Y
QUANTITY_ISSUED NUMBER Part quantity issued
QUANTITY_PER_ASSE NUMBER Part usage quantity
MBLY
COMMENTS VARCHAR2(150) Component comment
descriptive text
SUPPLY_SUBINVENTO VARCHAR2(10) Subinventory used to
RY supply component to
WIP
COMPONENT_ITEM_I NUMBER Inventory item identifier
D
COMPONENT_ORGANI NUMBER Organization identifier
ZATION_ID
COMPONENT_ITEM_T VARCHAR2(30) User defined item type
YPE
COMPONENT_ITEM_C VARCHAR2(40) Concatenated segments
ODE
COMPONENT_PRIMAR VARCHAR2(3) Primary unit of measure
Y_UOM_CODE code
OPERATION_YIELD NUMBER Operation yield for an
operation
OPERATING_UNIT NUMBER Operating Unit

CLL_F255_WIP_OPERATIONS_V

Selects the information in the CLL_F255_WIP_OPERATIONS_V view together with other


columns that are referred to

SELECT a.wip_entity_id,
c.operation_seq_num,
a.organization_id,
a.primary_item_id ,
DECODE(LENGTH(j.registration_number),15, SUBSTR(j.registration_number,2,9),
SUBSTR(j.registration_number,1,8)) company_code,
DECODE(LENGTH(j.registration_number),15,
SUBSTR(j.registration_number,10,4),SUBSTR(j.registration_number,9,4))
establishment_code,
b.item_type ,
b.concatenated_segments item_code,
c.last_unit_completion_date ,
b.primary_uom_code ,
(c.quantity_completed + nvl(c.quantity_in_queue,0) ) quantity,
c.quantity_scrapped ,
c.quantity_rejected ,
d.completion_subinventory ,
c.description ,
d.material_account ,
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
317
c.operation_yield ,
j.operating_unit
FROM cll_f255_establishment_v j,
mtl_system_items_b_kfv b,
wip_operations c,
wip_discrete_jobs d,
wip_entities a
WHERE j.inventory_organization_id = a.organization_id
AND j.legislative_cat_code = 'FEDERAL_TAX'
AND c.wip_entity_id = a.wip_entity_id
AND c.organization_id = a.organization_id
AND b.inventory_item_id = a.primary_item_id
AND b.organization_id = a.organization_id
AND a.organization_id = d.organization_id
AND a.wip_entity_id = d.wip_entity_id
AND a.primary_item_id = d.primary_item_id

Column Null / Type of Data Description


Not Null
WIP_ENTITY_ID NUMBER Job or schedule Identifier
OPERATION_SEQ_NU NUMBER Operation sequence
M number within a routing
ORGANIZATION_ID NUMBER Organization identifier
PRIMARY_ITEM_ID NUMBER Inventory item Identifier
for the assembly the job
or schedule creates
COMPANY_CODE VARCHAR2(27) Company code
ESTABLISHMENT_CO VARCHAR2(12) Establishment code
DE
ITEM_TYPE VARCHAR2(30) User defined item type
ITEM_CODE VARCHAR2(40) Concatenated segments
LAST_UNIT_COMPLET DATE Last unit scheduled
ION_DATE completion date
PRIMARY_UOM_CODE VARCHAR2(3) Primary unit of measure
code
QUANTITY NUMBER Quantity
QUANTITY_SCRAPPE NUMBER Number of units
D scrapped from the
operation
QUANTITY_REJECTED NUMBER Number of units rejected
from the operation
COMPLETION_SUBIN VARCHAR2(10) Default completion
VENTORY subinventory for
assemblies completed by
the job
DESCRIPTION VARCHAR2(240) Description
MATERIAL_ACCOUNT NUMBER Inventory material
account
OPERATION_YIELD NUMBER Operation yield for an
operation
OPERATING_UNIT NUMBER Operating Unit
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
318
CLL_F255_IND_THIRD_PARTIES_V

SELECT C.TRANSACTION_DATE AS DATE_MANUFECTURED,


A.TRANSACTION_DATE AS DATE_INPUT_CONSUMPTION,
A.WIP_ENTITY_ID,
B.INVENTORY_ITEM_ID AS CODE_ITEM_INPUT,
A.PRIMARY_ITEM_ID AS CODE_ITEM_MANUFECTURED,
(C.TRANSACTION_QUANTITY * B.QUANTITY_PER_ASSEMBLY)
AS AMOUNT_CONSUMED,
C.TRANSACTION_QUANTITY AS AMOUNT_MANUFECTURED
FROM WIP_TRANSACTIONS A,
WIP_REQUIREMENT_OPERATIONS B,
MTL_MATERIAL_TRANSACTIONS C
WHERE B.ORGANIZATION_ID = A.ORGANIZATION_ID
AND B.WIP_ENTITY_ID = A.WIP_ENTITY_ID
AND B.OPERATION_SEQ_NUM = A.OPERATION_SEQ_NUM
AND A.TRANSACTION_TYPE = 3
AND C.ORGANIZATION_ID = A.ORGANIZATION_ID
AND C.TRANSACTION_SOURCE_ID = A.WIP_ENTITY_ID
AND C.OPERATION_SEQ_NUM = A.OPERATION_SEQ_NUM
AND C.TRANSACTION_TYPE_ID IN (43, 44)
AND A.TRANSACTION_ID =
(SELECT MAX (A_B.TRANSACTION_ID)
FROM WIP_TRANSACTIONS A_B
WHERE A_B.ORGANIZATION_ID = A.ORGANIZATION_ID
AND A_B.WIP_ENTITY_ID = A.WIP_ENTITY_ID
)

Column Null / Type of Data Description


Not Null
DATE_MANUFECTUR NOT NULL DATE Data do reconhecimento
ED da produção ocorrida no
terceiro
DATE_INPUT_CONSU NOT NULL DATE Data do reconhecimento
MPTION do consumo do insumo
WIP_ENTITY_ID NOT NULL NUMBER WIP Job ou identificador
de montagem repetitivo
CODE_ITEM_INPUT NOT NULL NUMBER Código do insumo
CODE_ITEM_MANUFE NUMBER Código do item
CTURED produzido
AMOUNT_CONSUMED NUMBER Quantidade de consumo
do insumo
AMOUNT_MANUFECT NOT NULL NUMBER Quantidade produzida
URED

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
319
CLL_F255_GME_MATL_V
SELECT fm_i.formula_id,
fm_i.formulaline_id,
fm_i.line_no,
fm_i.line_type,
decode(fm_i.line_type,1,'product',-1, 'ingredient',3,'byprod','other') line_type_desc,
fm_i.inventory_item_id,
fm_i.qty qty_item,
decode(fm_i.line_type,1,fm_i.qty,(fm_i.qty / aux.qty)) qty_unit,
fm_i.item_um component_uom,
fm_i.scrap_factor,
fm_i.scale_multiple,
fm_i.scale_rounding_variance,
fm_i.attribute1 fm_i_attribute1,
fm_i.attribute2 fm_i_attribute2,
fm_i.attribute3 fm_i_attribute3,
fm_i.attribute4 fm_i_attribute4,
fm_i.attribute5 fm_i_attribute5,
fm_i.attribute6 fm_i_attribute6,
fm_i.attribute7 fm_i_attribute7,
fm_i.attribute8 fm_i_attribute8,
fm_i.attribute9 fm_i_attribute9,
fm_i.attribute10 fm_i_attribute10,
gme_hdr.attribute1 gme_hdr_attribute1,
gme_hdr.attribute2 gme_hdr_attribute2,
gme_hdr.attribute3 gme_hdr_attribute3,
gme_hdr.attribute4 gme_hdr_attribute4,
gme_hdr.attribute5 gme_hdr_attribute5,
gme_hdr.attribute6 gme_hdr_attribute6,
gme_hdr.attribute7 gme_hdr_attribute7,
gme_hdr.attribute8 gme_hdr_attribute8,
gme_hdr.attribute9 gme_hdr_attribute9,
gme_hdr.attribute10 gme_hdr_attribute10,
gme_dtl.attribute1 gme_dtl_attribute1,
gme_dtl.attribute2 gme_dtl_attribute2,
gme_dtl.attribute3 gme_dtl_attribute3,
gme_dtl.attribute4 gme_dtl_attribute4,
gme_dtl.attribute5 gme_dtl_attribute5,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
320
gme_dtl.attribute6 gme_dtl_attribute6,
gme_dtl.attribute7 gme_dtl_attribute7,
gme_dtl.attribute8 gme_dtl_attribute8,
gme_dtl.attribute9 gme_dtl_attribute9,
gme_dtl.attribute10 gme_dtl_attribute10,
gme_hdr.organization_id,
gme_hdr.batch_id,
gme_hdr.batch_no,
gme_hdr.batch_status,
decode(gme_hdr.batch_status,-3,'Converted',-1,'Cancelled', 1, 'Pending', 2, 'WIP', 3,
'Completed', 4, 'Closed') batch_status_desc,
gme_hdr.actual_start_date,
gme_hdr.actual_cmplt_date,
gme_dtl.actual_qty,
mtl_t.transaction_id,
mtl_t.transaction_date,
mtl_t.transaction_quantity,
mtl_t.transaction_type_id,
mtl_t.attribute1 mtl_t_attribute1,
mtl_t.attribute2 mtl_t_attribute2,
mtl_t.attribute3 mtl_t_attribute3,
mtl_t.attribute4 mtl_t_attribute4,
mtl_t.attribute5 mtl_t_attribute5,
mtl_t.attribute6 mtl_t_attribute6,
mtl_t.attribute7 mtl_t_attribute7,
mtl_t.attribute8 mtl_t_attribute8,
mtl_t.attribute9 mtl_t_attribute9,
mtl_t.attribute10 mtl_t_attribute10,
mtl_t.attribute11 mtl_t_attribute11,
mtl_t.attribute12 mtl_t_attribute12,
mtl_t.attribute13 mtl_t_attribute13,
mtl_t.attribute14 mtl_t_attribute14,
mtl_t.attribute15 mtl_t_attribute15,
mtl_tp.transaction_type_name
FROM gme_batch_header gme_hdr,
fm_matl_dtl fm_i,
fm_matl_dtl aux,
gme_material_details gme_dtl
LEFT JOIN
mtl_material_transactions mtl_t
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
321
ON mtl_t.transaction_source_id = gme_dtl.batch_id
AND mtl_t.organization_id = gme_dtl.organization_id
AND mtl_t.inventory_item_id = gme_dtl.inventory_item_id
LEFT JOIN mtl_transaction_types mtl_tp
ON mtl_tp.transaction_type_id = mtl_t.transaction_type_id
WHERE gme_dtl.batch_id = gme_hdr.batch_id
AND fm_i.formula_id = gme_hdr.formula_id
AND fm_i.organization_id = gme_dtl.organization_id
AND fm_i.inventory_item_id = gme_dtl.inventory_item_id
AND fm_i.line_type in (1,-1)
AND aux.formula_id = fm_i.formula_id
AND aux.organization_id = fm_i.organization_id
and aux.line_type = 1

Column Null / Type of Data Description


Not Null
FORMULA_ID NOT NULL NUMBER(10,0) Surrogate key for
the
formula/version
FORMULALINE_ID NOT NULL NUMBER(10,0) Surrogate key for
the formula line
LINE_NO NOT NULL NUMBER(5,0) List order on
screen within a
line_type
LINE_TYPE NOT NULL NUMBER(5,0) 1=product; -
1=ingredient;
2=byprod
LINE_TYPE_DESC VARCHAR2(10 1=product; -
BYTE) 1=ingredient;
2=byprod
INVENTORY_ITEM_ID NOT NULL NUMBER(15,0) Inventory item id
QTY_ITEM NOT NULL NUMBER Item qty produced
or consumed
QTY_UNIT NUMBER
COMPONENT_UOM VARCHAR2(4 Uom of qty
BYTE)
SCRAP_FACTOR NOT NULL NUMBER Scrap factor
decimal used to
calculate required
qty
SCALE_MULTIPLE NUMBER The multiples of
the batch uom used
for scaling in
multiples. ( 0 =
Scaling does not
scale by multiples,
> 0 = Scale by
multiples, value
must be a whole

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
322
number, < 0 =
Invalid value)
NUMBER Percentage + / - of
SCALE_ROUNDING_VARIAN the variance of
CE scale multiple
allowed when
scaling; default is
zero
FM_I_ATTRIBUTE1 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE2 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE3 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE4 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE5 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE6 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE7 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE8 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE9 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
FM_I_ATTRIBUTE10 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE1 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE2 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE3 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE4 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE5 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE6 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE7 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE8 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE9 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_HDR_ATTRIBUTE10 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE1 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE2 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE3 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE4 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE5 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
323
GME_DTL_ATTRIBUTE6 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE7 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE8 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE9 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
GME_DTL_ATTRIBUTE10 VARCHAR2(240 Descriptive
BYTE) Flexfield Segment
ORGANIZATION_ID NUMBER Inventory
organization id
BATCH_ID NOT NULL NUMBER(10,0) Unique Identifier
for batches to FPO
or batch
BATCH_NO NOT NULL VARCHAR2(32 Batch or FPO
BYTE) number
BATCH_STATUS NOT NULL NUMBER(5,0) Batch or FPO
status. -3 =
Converted FPO, -1
= Cancelled, 1 =
Pending, 2 = WIP,
3 = Completed, 4 =
Closed
BATCH_STATUS_DESC VARCHAR2(9
BYTE)
ACTUAL_START_DATE DATE Actual start
date/time for batch.
Entered at the time
the batch is
released, can be
entered by the user
or current system
date
ACTUAL_CMPLT_DATE DATE Actual completion
date. This is
updated at the time
the batch is
certified. The user
can enter the date
or the current
system date is used
ACTUAL_QTY NOT NULL NUMBER Sum (trans_qty) of
completed
transactions for
line, in the batch
UOM
TRANSACTION_ID NUMBER Transaction
identifier
TRANSACTION_DATE DATE Transaction date
TRANSACTION_QUANTITY NUMBER Transaction
quantity
TRANSACTION_TYPE_ID NUMBER Transaction type
identifier
MTL_T_ATTRIBUTE1 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE2 VARCHAR2(150 Descriptive
) flexfield segment

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
324
MTL_T_ATTRIBUTE3 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE4 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE5 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE6 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE7 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE8 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE9 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE10 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE11 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE12 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE13 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE14 VARCHAR2(150 Descriptive
) flexfield segment
MTL_T_ATTRIBUTE15 VARCHAR2(150 Descriptive
) flexfield segment
NOT NULL VARCHAR2(80
TRANSACTION_TYPE_NAME BYTE)

CLL_F255_TPA_RENEWAL_REMIT_V
This view stores information about remittance invoices that require renewal of the legal return
period.
All executions will return outbound invoices who are past due or are about expire according the
setup performed in the CLL F513 Third Party Material Governance(More Information about CLL
F513 Third Party Material Governance can be found in the My Oracle Support Note 2326250.1).

CREATE OR REPLACE VIEW cll_f255_tpa_renewal_remit_v (


org_id,
trx_number,
line_number,
trx_date,
customer_trx_line_id,
renewal_days,
alert_days,
previous_return_date)
AS
SELECT trc.org_id,
trc.trx_number,
rctla.line_number,
TRUNC(trc.trx_date),
trc.customer_trx_line_id,
(trunc(trc.return_date) - trunc(sysdate)) renewal_days,

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
325
cn.alert_days,
TRUNC(trc.return_date) PREVIOUS_RETURN_DATE
FROM cll_f513_tpa_remit_control trc
,cll_f513_cust_network cn
,ra_customer_trx_lines_all rctla
WHERE cn.cust_trx_type_id = trc.cust_trx_type_id
AND nvl(cancel_flag,'N') = 'N'
AND trc.remaining_balance >0
AND (trunc(trc.return_date) - trunc(sysdate) <= cn.alert_days)
AND rctla.customer_trx_line_id = trc.customer_trx_line_id
AND cn.alert_days > 0
ORDER BY 3

Column Null / Type of Data Description


Not Null
ORG_ID NOT NULL NUMBER Operating Unit for
Remittance
Invoice.
TRX_NUMBER NOT NULL VARCHAR2(30) Remittance
Invoice Number
LINE_NUMBER NOT NULL NUMBER Remittance
Invoice Line
Number
TRX_DATE NOT NULL DATE Remittance
Invoice Date
CUSTOMER_TRX_LINE_ID NOT NULL NUMBER Internal Sequence
Remittance Line
ID
RENEWAL_DAYS NOT NULL NUMBER Remittance
Invoice Days for
renewal
ALERT_DAYS NOT NULL NUMBER Remittance
Invoice Days for
Alert
PREVIOUS_RETURN_DATE NOT NULL DATE Remittance
Invoice Previos
Return Date.

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
326
Module Definition

This section provides detailed information about each module in the ISV Integration
Solution application. Use this section to better understand the details of what each module
ISV Integration Solution contains, and how these functionalities are implemented.

General View of the Module

CLLBETAC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AR_CASH_RECEIPTS_T1

CLLBETAE
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_TERMS_T1

CLLBETAI
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_INVOICES_T1

CLLBETAP
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_INV_PAYMENTS_T1

CLLBETAR
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AR_RECEIVEBLE_APPL_T1

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
327
CLLBETAS
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_SUPPLIERS_T1

CLLBETAT
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_TERMS_LINES_T1

CLLBETBD
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_BEN_DEPEN_T1

CLLBETBV
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_BUSINESS_VENDORS_T1

CLLBETCD
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_CONTRACT_DATA_T1

CLLBETEO
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_ENTRY_OPERATIONS_T1

CLLBETER
Description: Object available to the customer for integration
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
328
Type: Trigger
Language: PL*SQL
Name: CLL_F255_ELECTRONIC_RET_T1

CLLBETFC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_FISCAL_CLASS_T1

CLLBETFD
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_FISC_CLASS_DETAILS_T1

CLLBETFI
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_FISCAL_ITEMS_T1

CLLBETFO
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_FISCAL_OPERATIONS_T1

CLLBETFT
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_FND_TERRITORIES_T1

CLLBETHA
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
329
Name: CLL_F255_HZ_CUST_ACCT_SITES_T1

CLLBETHC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_HZ_CUST_ACCOUNTS_T1

CLLBETHI
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_HR_ORG_INFORMATION_T1

CLLBETHL
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_HR_LOCATIONS_T1

CLLBETHO
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_HR_ALL_ORG_UNITS_T1

CLLBETHP
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_HR_ALL_POSITIONS_T1

CLLBETIL
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_INVOICE_LINES_T1

CLLBETIT
Description: Object available to the customer for integration
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
330
Type: Trigger
Language: PL*SQL
Name: CLL_F255_INVOICE_TYPES_T1

CLLBETIU
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_ITEM_UTILIZATIONS_T1

CLLBETMS
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_MTL_SYSTEM_ITEMS_B_T1

CLLBETMT
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_MTL_MAT_TRANS_T1

CLLBETMU
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_MTL_UNITS_MEASURE_T1

CLLBETOE
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_OE_ORDER_HEADERS_T1

CLLBETOL
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_OE_ORDER_LINES_T1

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
331
CLLBETPA
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ADDRESSES_T1

CLLBETPB
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ABSENCE_ATT_T1

CLLBETPC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_RELATIONSHIPS_T1

CLLBETPD
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PERSON_DATA_T1

CLLBETPE
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PO_DISTRIBUTIONS_T1

CLLBETPF
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ALL_PEOPLE_F_T1

CLLBETPG
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ORG_STRUCTURES_T1
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
332
CLLBETPH
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PO_HEADERS_T1

CLLBETPI
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ASSIGNMENTS_T1

CLLBETPJ
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_JOBS_T1

CLLBETPL
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PO_LINE_LOCATIONS_T1

CLLBETPM
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PO_LINES_T1

CLLBETPN
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PERSON_TYPES_T1

CLLBETPO
Description: Object available to the customer for integration
Type: Trigger
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
333
Language: PL*SQL
Name: CLL_F255_PER_STR_ELEMENTS_T1

CLLBETPP
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PHONES_T1

CLLBETPQ
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_QUALIFICATIONS_T1

CLLBETPR
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PO_RELEASES_T1

CLLBETPS
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AR_PAYMENT_SCHED_T1

CLLBETPT
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PERSON_USAGES_T1

CLLBETPU
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PAY_ALL_PAYROLLS_F_T1

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
334
CLLBETPX
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PERIODS_SERV_T1

CLLBETPY
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PAY_PROPOSALS_T1

CLLBETRC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_RA_CUSTOMER_TRX_T1

CLLBETRT
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_RA_TERMS_T1

CLLBETSS
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_AP_SUPPLIER_SITES_T1

CLLBETTA
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_TAX_TYPE_T1

CLLBETTS
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_TRIBUTARY_SIT_T1
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
335
CLLBETWC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_WSH_CARRIERS_T1

CLLBETWN
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_WSH_NEW_DELIVERIES_T1

CLLBETST
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_SYSTEM_ITEMS_TL_T1

CLLBETJG
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_JOB_GROUPS_T1

CLLBETEP
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PAY_BASES_T1

CLLBETEG
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_GRADES_T1

CLLBETAG
Description: Object available to the customer for integration
Type: Trigger
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
336
Language: PL*SQL
Name: CLL_F255_PAY_GRADE_RULES_F_T1

CLLBETEL
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_ROLES_T1

CLLBETES
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_PER_PERSON_ANAL_T1

CLLBETJC
Description: Object available to the customer for integration
Type: Trigger
Language: PL*SQL
Name: CLL_F255_JL_BR_CUSTOMER_TRX_T1

CLLBELKP
Description: Define table for ISV raise business events
Type: Lookup
Language: PL*SQL
Name: CLL_F255_ISV_EVENTS

CLLBELKP
Description: Define SPED blocks for ISV
Type: Lookup
Language: PL*SQL
Name: CLL_F255_ISV_SPED

CLLGBENS/CLLGBENB
Description: Hook to change information in the table
Type: Package
Language: PL*SQL
Name: CLL_F255_NOTIFICATIONS_GRP

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
337
CLLTBEUS/CLLUBEUB
Description: Object responsible for firing event
Type: Package
Language: PL*SQL
Name: CLL_F255_UTILS_PKG

CLLUBEBS/CLLUBEBB
Description: object responsible for firing wf_event
Type: Package
Language: PL*SQL
Name: CLL_F255_BUSINESS_EVENTS_PKG

CLLBESBS/ CLLBESBB
Description: Raise Events for the Partner
Type: Concurrent
Language: PL*SQL
Name: CLL_F255_SYNC_BATCH_EVENTS_PKG

CLLCSTIS/CLLCSTIB
Description: Populate temp view with records from Inventory
Type: Concurrent
Language: PL*SQL
Name: CLL_F255_CST_INVENTORY_PUB

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
338
Lookup Codes

This section provides information for each type of application Lookup Oracle ISV
Integration Solution.

CLL_F255_ISV_EVENTS

The type of lookup CLL_F255_ISV_EVENTS (defined in FND_LOOKUP_VALUES) has


the following codes:

Code Meaning Description Tag From To


Tabela de eventos
MASTERSAF XXISV.XXISV_MASTERSAF_EVENTS BPEL
MASTERSAF
Tabela de eventos
SYNCHRO XXISV.XXISV_SYNCHRO_EVENTS BPEL
SYNCHRO
NSI XXISV.XXISV_NSI_EVENTS Tabela de eventos NSI BPEL
Tabela de eventos
SOFTWAY XXISV.XXISV_SOFTWAY_EVENTS BPEL
SOFYWAY
XRT XXISV.XXISV_XRT_EVENTS Tabela de eventos XRT BPEL
Tabela de eventos
GESPLAN XXISV.XXISV_GESPLAN_EVENTS BPEL
GESPLAN
Tabela de eventos
TECHWARE XXISV.XXISV_TECHWARE_EVENTS BPEL
TECHWARE
Tabela de eventos
SOFTWARE XXISV.XXISV_SOFTWARE_EVENTS BPEL
SOFTWARE
NEXO XXISV.XXISV_NEXO_EVENTS Tabela de eventos NEXO BPEL
TRUST XXISV.XXISV_TRUST_EVENTS Tabela de eventos TRUST BPEL

CLL_F255_ISV_SPED

The type of lookup CLL_F255_ISV_SPED (defined in FND_LOOKUP_VALUES) has the


following codes:

Code Meaning Description Tag From To


Reprocessamento/Reparo 01/01/
K260 Bloco K260 Sped
de Produto/Insumo 1900
Reprocessamento/Reparo -
01/01/
K265 Bloco K265 Sped Mercadorias Consumidas
1900
e/ou Retornadas

Oracle Proprietary, Confidential Information - Use Restricted by Contract


LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
339
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LAD Add-on Localizations Technical Reference Manual
ISV Integration Solution
340

Vous aimerez peut-être aussi