The Order-to-Cash process is an end-to-end process that usually starts when a sales order is created. After that, it is shipped and invoiced to the customer. Finally the process ends with the collection of the payment from the customer.
The Sales management module includes all activities related to:
The Accounts Receivable module includes all activities related to:
With the Oracle JDE Order-to-Cash app template you can create process apps that give insight in how your Order-to-Cash process actually performs. With the Order-to-Cash process app business users can easily monitor the Order-to-Cash process to check the progress and quality of the process on a regular basis. If deviations are detected, you can take action to improve or change the process or parts of the process. In the Order-to-Cash app template, default KPIs are defined, which enable you to keep an overview of the process.
The Oracle JDE modules Sales Management and Accounts Receivable are mandatory. Other tables could be used for master data purposes.
To connect via CData, the user establishing the connection must have appropriate read permissions on each of the objects which are being extracted. All fields included in the input tables must be visible for the user extracting the data.
Below is a description on how to use CData Sync to set up a source connection and load data into a Process Mining Oracle JDE Order-to-Cash process app.
In general, you should follow the steps as described in Loading data using CData Sync (Snowflake) or Loading data using CData Sync (SQL Server) to set up data loading using CData Sync. Since specific settings are required when using Oracle JDE, pay attention to the steps described below.
Define the following settings in the Replicate Options section in the Advanced tab in the Job Settings panel.
Important: Make sure you edit the Pre-job Event.
CData Sync allows the use of environment variables in order to drive specific extraction logic in each query.
Variable | Description | Comment |
---|---|---|
start_extraction_date | Defines first date for which data will be extracted. | Mandatory |
end_extraction_date | Last date for which data will be extracted. |
Be mindful of choosing a start_extraction_date that encompasses the data that you want to capture, as orders are the starting point of the order to cash process.
In order to setup the environment variables:
Step | Action |
---|---|
1 | Go to the JOBS tab and open the extraction job created in 4: Creating the extraction job. |
2 | Go to the Events tab in the Job Settings panel. |
3 | Edit the Pre-Job Event section to add the code displayed below after <!-- Code goes here -- >. |
4 | Click on Save Changes. |
<!-- Modify environment variables here. -->
<!-- Variable start_extraction_date and end_extraction_date must be populated.-->
<!-- The following values are just an example (start being = 01-01-1900 and end being = 01-01-2300).-->
<api:set attr="out.env:start_extraction_date" value= 000001 />
<api:set attr="out.env:end_extraction_date" value= 400001 />
<api:push item="out" />
Important: Do not modify the api:info
details that are shown by default.
In order to modify the environment variables, modify the values within the Events tab. By default, end_extraction_date
will default to today's date. start_extraction_date
must always be populated using JDE julian format. Use the following to calculate the correct value:
To transform 31/12/2021 into a JDE julian format (CYYDDD is an integer):
Once the job is correctly setup, click on Add Custom Query under the Tables tab and paste the following queries (each query needs to maintain the semicolon at the end). Make sure you save all changes.
Default Extraction
The following script is prepared for scenarios where Currency Conversions
and Person Accounts
are not used and are disabled. In case any of these are used, please add the scripts in the Alternative Scenarios section.
REPLICATE [F0005_raw] SELECT [DRKY] AS [drky], [DRRT] AS [drrt], [DRSY] AS [drsy], [DRDL01] AS [drdl01] FROM [JDECTL920].[F0005];
REPLICATE [F0006_raw] SELECT [MCMCU] AS [mcmcu], [MCDL01] AS [mcdl01], [MCRP01] AS [mcrp01] FROM [JDEDATA920].[F0006];
REPLICATE [F0010_raw] SELECT [CCCO] AS [ccco], [CCCRCD] AS [cccrcd], [CCNAME] AS [ccname] FROM [JDEDATA920].[F0010];
REPLICATE [F0014_raw] SELECT [PNPTC] AS [pnptc], [PNPTD] AS [pnptd] FROM [JDEDATA920].[F0014];
REPLICATE [F0015_raw] SELECT [CXAN8] AS [cxan8], [CXCRCD] AS [cxcrcd], [CXCRDC] AS [cxcrdc], [CXRTTYP] AS [cxrttyp], [CXEFT] AS [cxeft], [CXCRR] AS [cxcrr] FROM [JDEDATA920].[F0015] WHERE ([CXEFT] >= '{env:start_extraction_date}') AND ([CXEFT] <= '{env:end_extraction_date}');
REPLICATE [F0092_raw] SELECT [ULAN8] AS [ulan8], [ULUSER] AS [uluser] FROM [JDESY920].[F0092];
REPLICATE [F0101_raw] SELECT [ABAN8] AS [aban8], [ABALPH] AS [abalph], [ABMCU] AS [abmcu], [ABAT1] as [abat1] FROM [JDEDATA920].[F0101];
REPLICATE [F0116_raw] SELECT [ALAN8] AS [alan8], [ALEFTB] AS [aleftb], [ALCTY1] AS [alcty1], [ALCOUN] AS [alcoun], [ALADDS] AS [aladds], [ALCTR] AS [alctr] FROM [JDEDATA920].[F0116];
REPLICATE [F03012_raw] SELECT [AIAN8] AS [aian8], [AICO] AS [aico], [AICPGP] AS [aicpgp], [AIAC11] AS [aiac11] FROM [JDEDATA920].[F03012];
REPLICATE [F4101_raw] SELECT [IMDSC1] AS [imdsc1], [IMLITM] AS [imlitm] FROM [JDEDATA920].[F4101];
REPLICATE [F40203_raw] SELECT [FSDCTO] AS [fsdcto], [FSTRTY] AS [fstrty], [FSSTDS] AS [fsstds], [FSLNTY] AS [fslnty] FROM [JDEDATA920].[F40203];
REPLICATE [F40205_raw] SELECT [LFLNTY] AS [lflnty], [LFLNDS] AS [lflnds] FROM [JDEDATA920].[F40205];
REPLICATE [F03b11_raw] SELECT [RPKCO] AS [rpkco], [RPDOC] AS [rpdoc], [RPDCT] AS [rpdct], [RPDIVJ] AS [rpdivj], [RPDGJ] AS [rpdgj], [RPVDGJ] AS [rpvdgj], [RPPOST] AS [rppost], [RPTORG] AS [rptorg], [RPDICJ] AS [rpdicj], [RPSFX] AS [rpsfx], [RPAAP] AS [rpaap] FROM [JDEDATA920].[F03B11] WHERE ([RPUPMJ] >= '{env:start_extraction_date}') AND ([RPUPMJ] <= '{env:end_extraction_date}');
REPLICATE [F03b14_raw] SELECT [RZPYID] AS [rzpyid], [RZKCO] AS [rzkco], [RZDOC] AS [rzdoc], [RZDCT] AS [rzdct], [RZDCTG] AS [rzdctg], [RZDICJ] AS [rzdicj],[RZUPMJ] AS [rzupmj], [RZTORG] AS [rztorg], [RZRC5] AS [rzrc5] ,[RZSFX] AS [rzsfx], [RZCKNU] AS [rzcknu] FROM [JDEDATA920].[F03B14] WHERE ([RZUPMJ] >= '{env:start_extraction_date}') AND ([RZUPMJ] <= '{env:end_extraction_date}');
REPLICATE [F42199_raw] SELECT [SLEMCU] AS [slemcu], [SLDOCO] AS [sldoco], [SLKCO] AS [slkco], [SLDCT] AS [sldct], [SLDOC] AS [sldoc], [SLLNID] AS [sllnid], [SLKCOO] AS [slkcoo], [SLDCTO] AS [sldcto], [SLLTTR] AS [sllttr], [SLSOBK] AS [slsobk], [SLTORG] AS [sltorg], [SLUSER] AS [sluser], [SLUPMJ] AS [slupmj], [SLTDAY] AS [sltday], [SLNXTR] AS [slnxtr], [SLAN8] AS [slan8], [SLSHAN] AS [slshan], [SLAEXP] AS [slaexp], [SLFEA] AS [slfea], [SLMCU] AS [slmcu], [SLPRP1] AS [slprp1], [SLPRP2] AS [slprp2], [SLCRCD] AS [slcrcd], [SLIVD] AS [slivd], [SLTRDJ] AS [sltrdj], [SLRSDJ] AS [slrsdj], [SLDRQJ] AS [sldrqj], [SLFRTH] AS [slfrth], [SLLNTY] AS [sllnty], [SLLITM] AS [sllitm], [SLSRP1] AS [slsrp1], [SLSRP2] AS [slsrp2], [SLSRP3] AS [slsrp3], [SLSRP4] AS [slsrp4], [SLSRP5] AS [slsrp5], [SLPTC] AS [slptc], [SLPRP4] AS [slprp4], [SLUOM] AS [sluom], [SLUORG] AS [sluorg], [SLLOCN] AS [sllocn] FROM [JDEDATA920].[F42199] WHERE ([SLUPMJ] >= '{env:start_extraction_date}') AND ([SLUPMJ] <= '{env:end_extraction_date}');
Note If it is required to filter by Companies, the REPLICATE queries for tables that contain Company field must be changed.
Below is a list of tables and their Company field.
Table | Company field |
---|---|
F0010 | ccco |
F03B11 | rpkco |
F03B14 | rzco |
F42199 | lscoo |
Add the IN
function to the WHERE
clause and put all companies between brackets.
Below is an example for F0010
table:
REPLICATE [F0010_raw] SELECT [CCCO] AS [ccco], [CCCRCD] AS [cccrcd], [CCNAME] AS [ccname] FROM [JDEDATA920].[F0010] WHERE [CCCO] IN ('Company1', 'Company2');
Make sure you Save all changes.
The following tables include the list of fields per input table, their description, data type to be used when formatting the input and the filter flag to identify those that are being used to filter data.
Below is an overview of the different field types and their default format settings.
Field type | Description |
---|---|
boolean | true , false , 1 , 0 |
date | CYYDDD |
double | Decimal separator: . (dot); thousand separator: none |
integer | Thousand separator: none |
text | N/A |
Notes
Stores user-defined codes and their descriptions.
Field name | Description | Filter | Data type |
---|---|---|---|
drsy | Product Code. It is a category for grouping different types of codes. | text | |
drrt | User Defined Codes. It is the type of code. | text | |
drky | User Defined Code. It is the actual code. | text | |
drdl01 | Description of the code | text |
Stores information about branch, plant, warehouse, and business unit information, such as company, description, and category codes that are assigned to them.
Field name | Description | Filter | Data type |
---|---|---|---|
mcmcu | Business unit | text | |
mcdl01 | Description | text | |
mcrp01 | Division | text |
Stores company definitions, including number and name, fiscal date pattern, and current period.
Field name | Description | Filter | Data type |
---|---|---|---|
ccco | Company | Optional filter when only a set of companies is required | text |
cccrcd | Currency code from. It is the domestic currency for the company | text | |
ccname | Name of the company | text |
Stores standard payment terms.
Field name | Description | Filter | Data type |
---|---|---|---|
pnptc | Payment terms code | text | |
pnptd | Description payment terms | text |
Stores currency exchange rates.
Field name | Description | Filter | Data type |
---|---|---|---|
cxan8 | Address number | Numeric | |
cxcrcd | Currency code from | text | |
cxcrdc | Currency code to | text | |
cxrttyp | Currency rate type | text | |
cxeft | Date effective | time based filter | date |
cxcrr | Currency conversion rate spot rate | double |
Stores information about the user.
Field name | Description | Filter | Data type |
---|---|---|---|
ulan8 | Address number | text | |
uluser | User id | text |
Stores address book information, including employees, companies, suppliers, and customers.
Field name | Description | Filter | Data type |
---|---|---|---|
aban8 | Address number | text | |
abalph | Name | text | |
abmcu | Business unit | text | |
abat1 | Search type. It is the category of the Address number (e.g. Customer, employee) | text |
Stores addresses, address lines, postal codes, and effective dates for address book numbers.
Field name | Description | Filter | Data type |
---|---|---|---|
alan8 | Address number | text | |
aleftb | Date effective | date | |
alcty1 | City | text | |
alcoun | County | text | |
aladds | State | text | |
alctr | Country | text |
Note: This table must not be filtered by dates as addresses could have effective dates from decades ago and still be valid today
The Customer Master by line of Business table stores specific information for each client & company combination.
Field name | Description | Filter | Data type |
---|---|---|---|
aian8 | Address number | text | |
aico | Company | text | |
aicpgp | Customer price group | text | |
aiac11 | Sales region | text |
Stores basic information about each item.
Field name | Description | Filter | Data type |
---|---|---|---|
imdsc1 | Description | text | |
imlitm | 2nd item number | text |
Stores information about order activity rules, such as order type, line type, last status, and next status. This table contains also descriptions for last statuses.
Field name | Description | Filter | Data type |
---|---|---|---|
fsdcto | Order type | text | |
fstrty | Status line | text | |
fsstds | Description status | text | |
fslnty | Line type | text |
The Line type file contains information related to line types and their descriptions.
Field name | Description | Filter | Data type |
---|---|---|---|
lflnty | Line type | text | |
lflnds | Description line type | text |
The Customer Ledger is the transactional table for invoices which stores information at item level.
Field name | Description | Filter | Data type |
---|---|---|---|
rpdicj | Date batch | date | |
rpkco | Document company | Optional filter when only a set of companies is required | text |
rpdoc | Document | text | |
rpsfx | Document pay item | text | |
rpdct | Document type | text | |
rpdgj | Date for GL | date | |
rpvdgj | Void date for GL | date | |
rpaap | Amount open | double | |
rppost | GL posted code | Character | |
rptorg | Transaction originator | text |
Note: the time based filter is done using rpupmj field. The latter is not later used in any logics and that is why is not part of the input file for F03b11
The Receipts Detail is the transactional payments table that stores information at item level.
Field name | Description | Filter | Data type |
---|---|---|---|
rzpyid | Payment ID | text | |
rzrc5 | File line identifier | text | |
rzdicj | Date batch | date | |
rzkco | Document company | Optional filter when only a set of companies is required | text |
rzdoc | Document | text | |
rzsfx | Document pay item | text | |
rzdct | Document type | text | |
rzdctg | Document type Journal Entry | text | |
rzcknu | Receipt number | text | |
rztorg | Transaction originator | text | |
rzupmj | Date updated | time based filter | date |
Historical sales orders table that contains information at item level.
Field name | Description | Filter | Data type |
---|---|---|---|
slupmj | Date updated | time based filter | date |
sldoco | Document | text | |
sllnid | Line number | text | |
slkcoo | Order company | Optional filter when only a set of companies is required | text |
sldcto | Order type | text | |
sltday | Time of day | integer | |
sllitm | 2nd item number | text | |
slan8 | Address number | text | |
slshan | Address number ship to | text | |
slaexp | Amount extended price | double | |
slfea | Amount foreign extended price | double | |
slmcu | Business unit | text | |
slemcu | Business unit header | text | |
slprp1 | Commodity class | text | |
slprp2 | Commodity sub class | text | |
slcrcd | Currency code from | text | |
slivd | Date invoice | date | |
sltrdj | Date order transaction | date | |
slrsdj | Date promised delivery | date | |
sldrqj | Date requested | date | |
slkco | Document company | text | |
sldct | Document type | text | |
sldoc | Document | text | |
slfrth | Freight handling code | text | |
sllnty | Line type | text | |
sllocn | Location | text | |
slprp4 | Master planning family | text | |
slptc | Payment terms code | text | |
slsrp1 | Sales catalog section | text | |
slsrp3 | Sales category code 3 | text | |
slsrp4 | Sales category code 4 | text | |
slsrp5 | Sales category code 5 | text | |
sllttr | Status code last | text | |
slnxtr | Status code next | text | |
slsrp2 | Sub-section | text | |
sltorg | Transaction originator | text | |
sluom | Unit of measure as input | text | |
sluorg | Units order quantity | integer | |
slsobk | Units quantity backordered held | integer | |
sldoc | Document | text | |
sluser | User ID | text |
Entity | Transactional tables | Master data tables |
---|---|---|
Sales orders | F42199 | F0010, F0101, F0005, F0116, F0006, F03012 |
Sales order items | F42199 | F0010, F0006, F0005, F0116, F0014, F4101, F0015, F40205 |
Deliveries | F42199 | 40203 |
Delivery items | F42199 | 40203 |
Invoices | F03b11, F42199 | |
Invoice items | F03b11, F42199 | |
Invoice cancellations | F03b11, F42199 | |
Accounting documents | F03b11 | |
Payments | F03b14 |
Activities generated from a concatenation of the last status of the order and its description from the F40203 table.
*F42199.Status_code_last* + ' - ' + *F40203.Description_status*
Examples:
520 - Enter Sales Order
524 - Approve Sales Order
There are cases where the Status_code_last gets stuck and stops changing with subsequent activities. For these cases, there are specific logics to populate the correct status and, therefore, its activity.
Activities that do not change the status of an order, are named as the concatenation of the last status and 'Same-status Activity'.
*F42199.Status_code_last* + ' - ' + *F40203.Description_status*
Examples:
520 - Same-status Activity
524 - Same-status Activity
The last status and its description are not standard and are mostly customizable for each JDE implementation. Therefore, it is not possible to know the complete list of activities in advance. Also, the same status may mean different activities depending on the order type.
Activities generated by the concatenation of the verb Process
and the document type of the journal entry.
'Process ' + F03b14_input."Document_type_journal_entry"
Example:
Process Cash Receipts
Activities created based on the transactional tables information. Most of these activities apply to the Accounts Receivable module.
Activity | Transactional table | Master data table |
---|---|---|
Enter AR Document | F03b11 | F0005, F0006, F0101, F0092, Setup_automated_users_input, Setup_activities_input |
Void/Reverse AR Document | F03b11 | F0005, Setup_activities |
Process Receipt | F03b14 | F0005 |
Void Receipt | F03b14 | F0005 |
Note on Activity_order attribute
The last_status_code in JDE is used for tracking the activities that have happened to each order item. These statuses are 3-digit numbers that go from 100 to 999. All statuses greater than 900 represent backorders, line splits, cancellations and purges.
Activity orders are set following different logics according to the module where they were generated.
Sales Management activities
For activities from Sales Management module, the last status code is used as the activity order, with the exception of the cases where the activity is a "Same-status Activity". For these cases the logic adds 1 to the activity order.
Examples:
Activity | Activity order |
---|---|
520 - Enter Sales Order | 520 |
520 - Same-status Activity | 521 |
Note that the last status that a record could have in the F42199 historical table is 999 which means 'Ready to Purge'. Based on that information, the Accounts Receivable Module starts with Activity orders equal to '1000' value.
Accounts Receivable activities
Activity | Activity order |
---|---|
Enter AR Document | 1000 |
Process Receipt | 1200 |
Concatenation of 'Process' and < Document type description > | 1200 |
Void Receipt | 1400 |
Void/Reverse AR Document | 1500 |
Seed files can be used for variables that require a list of values. Seed files are available in the seeds
folder of the app transformations. You can edit the seeds files when editing app transformations.
The following seed files are available for Oracle NetSuite Order-to-Cash:
Setup_activities.csv
Field | Type | Description | Example |
---|---|---|---|
Native_activity_name | varchar(50) | The name of the activity that is generated by the system | 520 - Enter Sales Order |
Activity | varchar(50) | The name of the activity that overwrites the Native_activity_name if the analyst chooses to | Create SO item |
Activity_category | varchar(50) | The type of activity that takes place | Change, Set block, Remove block or NULL |
Automated_flag | varchar(1) | 1 or (0 or blank or NULL). If 1 then this activity will be considered automated |
1 |
Setup_order_types.csv
There is no specific entity for deliveries in JDE. Instead, the same sales order item ID is being used for both purposes. There is an automated logic in the connector to split events that belong to deliveries from those for Sales orders. This split is done by selecting the minimum status of an order for which they become statuses that belong to Delivery item entity. If the automated logic does not find the expected value, there is the possibility to manually select that value. This is done by the use of this seed file.
Field | Type | Description | Example |
---|---|---|---|
Order_type | varchar(2) | Order type code. These are defined on each JDE implementation and they can widely vary | SO |
Line type | varchar(2) | Type of line of the order. | S |
Delivery_first_status | varchar(3) | Minimum status code for which all activities are considered part of Delivery item entity | 530 |
Setup_automated_users.csv
There are not always automated flags or ways to use algorithms to find out what activities were made automatically. In this case, you can manually set those users that are deemed automated.
The setup_automated_users.csv
seed file contains the information of all automated users that need to be flagged manually.
Field | Type | Description | Example |
---|---|---|---|
User_ID | varchar(10) | User ID as stored in transactional tables | H_APS-SC |
Variable | Type | Description |
---|---|---|
date_format | string | Configuration to use pm-utils package. It sets the format for date. Valid values are: for SQL Server: 112 and for Snowflake: 'YYYYMMDD' |
display_currency | string | Currency code used for all "value" attributes. All amounts (Values) will be converted to the selected display_currency. It is suggested to select the reporting currency code of the client. |
material_group_field | string | Selection of the most representative category field to populate material_group attribute in Sales order items entity. Available values are: 'Master_planning_family', 'Commodity_class', 'Commodity_sub_class', 'Sales_catalog_section','Sub_section', 'Sales_category_code_3', 'Sales_category_code_4', 'Sales_category_code_5'. |
start_date | Minimum timestamp for values that SQL Server or Snowflake will accept. This variable will be used to validate when a timestamp field has blanks in the Raw files. | |
event_end_time | Time to add to event_end attribute when only dates are available. |
All activities based on F42199 table (Sales Management module) were created using the Status_code_last field. However, there are times where that status gets stuck at a single value. For those cases, there are logics created that will help populate the activity with the right value. But it is required to have at least some information to reconstruct it correctly. When that information is not available, the connector will assign an activity named as the concatenation of Status_code_last
and 'Same-status Activity' text.
All activities coming from Accounts Receivable module do not have a specific timestamp to be used as the event_end. Solutions were set to create the best approximate timestamp but they could potentially not match the exact moment when they happened. This could be seen as activities being shown in the wrong order.