Ofi GST O2c Datamodel
Ofi GST O2c Datamodel
Change Record
2
5
Reviewers
Name Position
Jai Thakkar Sr. Manager, GST Team
Pavan Raparla Team Lead
Audience
Name Position
12.1 & 12.2 Implementation team
12.1 & 12.2 Customers
Objective ...................................................................................................................................................... 4
Scope ........................................................................................................................................................... 4
Introduction.................................................................................................................................................. 5
This exclusive data model deliverable will help the users and the implementation partners to
understand in detail, the total Order to Cash architecture so the users can also make use to
these details for building any custom solution if it is required.
Scope
The OFI GST functionality can be classified into following four major categories:
Configuration
Transaction flow
Settlement
Accounting
Reporting
Under each of these 4 major functional areas, the expected data model deliverables should
comprise of the data flow details, flow charts wherever applicable, the details of the triggering
points, if any, important column references and the details of the frequently encountered issues
and troubleshooting tips.
1. Forms
2. Reports
This document provides the information on Data model/Technical flow of the GST
processing applied on the O2C transactions i.e. Sales Orders & AR Invoices.
Tables/Views Package
JAI_TAX_DOC_SEQS JAI_TAX_DOC_SEQS_PKG
JAI_TAX_DOC_SEQ_ASSIGNMENTS
JAI_TAX_DOC_SEQ_ASGMT_V
JAI_TAX_DOC_SEQS_V
4. Important Validations
Duplicate Assignment for the same transaction type with Org & Location
Combination is not allowed.
5. References : N/A
6. Technical Flow:
i) (N) Oracle Financials for India > Tax Configuration > Define Document
Sequencing
ii) open the document sequence form and define the document sequence for
transaction type to generate the ‘India Tax Invoice’ Number
iii) JAI_TAX_DOC_SEQS_PKG.CHECK_SEQS_UNIQUE (+) is called to validate
whether provided document sequence is valid or not.
=> The Form JAINTAXU.fmb is used as Object Group in “India Tax Details” form
=> When the SO is saved the below processes would be triggered and JAI tax tables
would be populated.
=> The Processing would be invoked from the E-Business tax events that are triggered
from base. ZV_SRVC_TYP_PKG. calculate_tax()
=> Checks if the India Localization exists and JAI AD events are set
=> The insert_line_det_factors() calls various procedures which derives the defaulting
setup information and populates taxes for SO lines.
=> Once saving the Sales Order, Navigate to India Tax Details form.
1. Enable India Tax Details Tools Menu: Enables India Tax Details option on the Tools menu
2. Invoke O2C Common UI: When user clicks on the India Tax Details, then below function call
would invoke the form
Personalization Actions:
With this, the India Tax Details – Order to Cash form would be opened.
There are three sections in this form as shown in the below Screen shot.
1. Transaction Header
2. Transaction Lines
Header:
It depicts the transaction Header details. In the example case, the SO # 40 is source
document on which the taxes are to be attached.
The Update/Modify section is being used to update the Tax Category on the Lines.
1. All lines – The Tax Category would be updated all the lines.
2. Lines with no Value – Tax category would be populated on the lines where there
is NO tax Category is attached.
3. Modify – When this option is selected then From & To would become
mandatory. This is used for the change of “Intended Use”
Lines:
It provides details of the transaction lines. The details would be like, SO line, item,
Quantity, Tax Category, Organization, Location etc..
Tax Lines:
This provides the details like what taxes are applied on the line, precedence, tax rate,
tax amount that is calculated, etc…
Once user clicks on Apply, the taxes would be calculated.
This menu option is enabled using the Function level form personalization the Sales Order
form
Function: ONT_OEXOEORD
Form name: OEXOEORD
When the option “India Tax Details” is selected then the Common India Localization Taxes form
would be open.
Function Name: JAINTXOC_FUN
Function Parameters:
TRX_TYPE = ‘OE’
TRX_ID = :ORDER.HEADER_ID
FORM_USAGE_MODE = ‘GL_DRILLDOWN’
For Information on how the taxes are processed or saved, please refer the section “India Tax
Details Form”
Once the shipping is confirmed, the India Localization taxes are recalculated
based on the Determination factor and TPB (Tax Point Basis), and migrate taxes
on to the shipment. In this process, the India Tax Invoice would be generated
which is used for the Freight of goods or supplies.
Also the Accounting entries created in the system based the TPB that is used.
The GL Interface entries would be created which the users have to import the
journals to the core GL.
2. DB Sources
Tables Packages
JAI_TAX_DET_FACTORS JAI_OM_WDD_PROCESSING_PKG
WSH_DELIVERY_ASSIGNMENTS JAI_WSH_TAX_DET_PKG
WSH_DELIVERY_DETAILS JAI_INV_NUM_GEN_PKG
JAI_TAX_LINES JAI_TAX_DETERMINATION_PKG
JAI_RGM_RECOVERY_LINES
JAI_TAX_JOURNAL_ENTRIES
ii. jai_wsh_tax_det_pkg.process_tax_lines()
Parameters:
p_trx_id=> SO Header Id
p_trx_line_id=> SO Line ID
The PROCESS_TAX_LINES would create the Tax Lines for the shipment and
also populates the accounting entries in the GL_INTERFACE.
Once the determination factors are created and tax lines are processed then the
below call is made to generate the India Tax Invoice. Procedure :
JAI_INV_NUM_GEN_PKG.PROCESS_GENERATION()
JAI_TAX_DET_FACTORS JAI_OM_WDD_PROCESSING_PKG
WSH_DELIVERY_ASSIGNMENTS JAI_WSH_TAX_DET_PKG
WSH_DELIVERY_DETAILS JAI_WSH_TAX_DET_PKG
JAI_TAX_LINES JAI_INV_NUM_GEN_PKG
JAI_TAX_DETERMINATION_PKG
This section describes on how the taxes are flown from SO to AR Invoice.
2. DB Sources:
Tables Packages
JAI_TAX_DET_FACTORS JAI_OM_WDD_PROCESSING_PKG
JAI_TAX_LINES JAI_WSH_TAX_DET_PKG
RA_CUST_TRX_LINE_GL_DIST_ALL JAI_WSH_TAX_DET_PKG
JAI_INV_NUM_GEN_PKG
JAI_TAX_DETERMINATION_PKG
3. Technical Flow:
JAI integration call would be invoked from the
“ZX_SRVC_TYP_PKG.IMPORT”
CHECK_JAI_EXISTS_IN_ZX() would validate if the GST tax is implemented
and setup is available for further processing
JAI_TAX_PROCESSING_PKG.import_document_with_tax() in invoke to
process the SO taxes onto the AR invoice generated through the Auto
Invoice process.
The actual taxes importing process would be triggered by the
“JAI_AR_TAX_DET_PAKG.insert_ar_trx()”.This function copy the taxes
from delivery and import to AR Invoice
The Tax Determination factors would be initialized and populated using the
“JAI_TAX_DETERMINATION_PKG.insert_line_det_factors()”
This triggers/invokes the “JAI_TAX_DETERMINATION_PKG.
determine_tax()” which perform the below processing
Checks Inventory org & location and validate the same.
Procedure call: “check_io_location()”
The JAI_TAX_DET_FACTORS would be further updated by deriving the
tax determination details based on the RULE basis.
Procedure call:determine_tax_by_tax_rule()
Prepare tax line tbl as input parameter for calculate tax.
Procedure call: prepare_tax_lines_tbl()
Calculate tax for every transaction line /shipment line which taxes are
attached. Calculate recoverable /non-recoverable tax amount.
Procedure call: JAI_TAX_DETERMINATION_PKG.calculate_tax()
Delete the tax lines if any already exists.
Procedure call: JAI_TAX_DETERMINATION_PKG.delete_tax_lines()
Populate the tax lines. Procedure call: populate_tax_lines()
o Populates the JAI_TAX_LINES with the taxes information against the
tax determination factor Id
o “jai_populate_tax_dist_ar()” which populates the
“RA_CUST_TRX_LINE_GL_DIST_ALL” with the taxes derived using
“prepare_tax_lines_tbl()”. This is being achieved through procedure
call : jai_insert_ra_trx_line_gl_dist()
NOTE: The same process flow is applicable for both Credit Memo and Debit Memo invoices
DB Sources:
Tables Packages
JAI_TAX_LINES_ALL JAI_TAX_DETERMINATION_PKG
JAI_RGM_RECOVERY_LINES JAI_TAX_PROCESSING_PKG
JAI_AR_TAX_DET_PKG
JAI_TAX_ACCOUNTING_PKG
JAI_RGM_RECOVERY_PKG
ZX_SRVC_TYP_PKG
Technical Flow: