Loading Data and Reprocessing Documents
This chapter contains information about loading the transaction and balances data from your source system into SLT Replication Server.
Configuring SAP S/4HANA for Data Load
During the configuration, map the master data in Transaction with the data in insightsoftware using SAP MDG:
Important: insightsoftware recommends that you use MDG to map the data in Transaction with the data in SAP S/4HANA. Use MSC_Lookup_Data.xlsx to map the data if there are limitations in MDG, such as character length mismatch between the source data and the data in SAP S/4HANA.
- Configure the MDG business mappings in Central Finance/MDG for the following objects:
- Company Code
- General Ledger Account
- Cost Center
- Profit Center
- Customer
- Vendor
- Material Number
- Document Type
- Tax Code
- Withholding Tax Code
For example, perform the following steps to configure the customer mapping:
- To upload customer mappings into SAP S/4HANA, log on to SAP S/4HANA, and type the transaction code FINS_CFIN_MAP_MANAGE.
- Perform the following steps in the Central Finance: Manage Mappings window:
- In Mapping Entity, select ERP customer number (ERP).
- Select a source system identifier.
- In the User Action area, select Upload Mappings.
- In the File Selection area, browse to the mapping file (.csv) location, and select the mapping to upload.
- Select Run. The customer mapping is uploaded to the system successfully.
- Create a master data file with the name
MSC_Lookup_Data.xlsxto map the objects that are not mapped using MDG. Populate the lookup data in the file for objects, such as journal types, document type, tax code, withholding tax code, and logical system, using the sample format specified in theSample_MSC_Lookup_Data.xlsxfile at<SetupFolder>\<SourceSystem>\Sample_MSC_Lookup_Data.Note: Do not change the data in the
SourceandLookup_Codecolumns. - Define time periods for opening balances, such as customer, vendor, and general ledger account balances.
- Use the transaction code BD54 to create an external logical source system to represent your source system. The length of the logical source system name cannot be greater than 10 characters.
- If applicable, finalize the format as Universal file format to load data from a legacy system. Make sure that the details, such as the number of systems, companies, document types, frequency of receiving files, historical load, and opening balances, are taken into consideration.
- Identify the fields that are not captured by the interface and need extension in the SLT Replication Server interface.
- In SAP S/4HANA, for each company code, make sure that the necessary configurations are complete.
Some of the configurations are as follows:
- Accounting Period is Open
- Number Ranges for Different Document Types
- Tax Configuration
- Extended Withholding Tax
- Account Definition
- Reconciliation Accounts
- Clearing Accounts
Prerequisite Tasks for Loading NetSuite Data into SLT Replication Server
Before loading the data from your NetSuite instance to SLT Replication Server, you must load the data into the tables that you created in the source Oracle database during the installation of Transaction. For information about the tables, see "Install Source System-Specific Objects for Transaction" in the SAP Central Finance Transaction Replication by insightsoftware Installation and Configuration Guide.
To load the data from your NetSuite instance into Oracle database
- Open SAP Data Services Designer as an administrator, and connect to your repository.
- Run the
NetSuite_%jobs in theNetSuite_DataLoadproject. An initial load of transaction data is performed. -
Run the
cdc_NetSuite_%jobs. The incremental data load process is run. -
Run the
NSCDC_Set_Status_Onjob. The changed data is captured for transaction data. -
Run the
NetSuite_trx_CDCjob. The incremental transaction data is captured. -
When required, run the
NetSuiteCDC_Set_Status_Offjob to stop the incremental data load process.
Prerequisites for Loading Dynamics 365 Finance and Operations Data into SLT Replication Server
You must perform the following tasks before initiating the data load from your Dynamics 365 Finance and Operations Cloud instance to SLT Replication Server:
Import the following custom entities into the Azure SQL database using the Export option in Data Management Framework by referring to the links provided:
Note: You must import the custom entities before deploying the templates using Management Console.
- ISWAccountingDistribution
- ISWCompanyInfo
- ISWCustConfirmJour
- ISWCustInvoiceJour
- ISWCustInvoiceTrans
- ISWCustLedgerAccounts
- ISWCustPackingSlipJour
- ISWCustPackingSlipTrans
- ISWCustSettlement
- ISWCustTable
- ISWCustTrans
- ISWDimensionAttribute
- ISWDimensionAttributeValue
- ISWDimensionAttributeValueCombination
- ISWDimensionAttributeValueSet
- ISWDimensionFinancialTag
- ISWDimensionFocusBalance
- ISWDirPartyPostalAddress
- ISWDirPartyTable
- ISWDirPersonName
- ISWEcoResProduct
- ISWEcoResProductTranslation
- ISWFiscalCalendarPeriod
- ISWFiscalCalendarYear
- ISWGeneralJournalAccountEntry
- ISWGeneralJournalEntry
- ISWHierarchyLinkTable
- ISWHierarchyTreeTable
- ISWInventDim
- ISWInventItemInventSetup
- ISWInventPosting
- ISWInventTable
- ISWInventTableModule
- ISWLedger
- ISWLedgerEntry
- ISWLedgerEntryJournal
- ISWLedgerEntryJournalizing
- ISWLedgerJournalTable
- ISWLedgerJournalTrans
- ISWLogisticsElectronicAddress
- ISWMainAccount
- ISWMainAccountCategory
- ISWMarkupTrans
- ISWProjTable
- ISWPurchLine
- ISWPurchParmLine
- ISWPurchParmTable
- ISWPurchTable
- ISWSalesLine
- ISWSalesParmLine
- ISWSalesParmTable
- ISWSalesTable
- ISWSmmActivities
- ISWSubledgerJournalAccountEntry
- ISWSubledgerJournalAccountEntryDistribution
- ISWSubledgerVoucherGeneralJournalEntry
- ISWTaxTrans
- ISWTaxTransGeneralJournalAccountEntry
- ISWTransactionLog
- ISWTransactionReversalTrans
- ISWUnitOfMeasureConversion
- ISWVendInvoiceJour
- ISWVendInvoiceTrans
- ISWVendLedgerAccounts
- ISWVendPackingSlipJour
- ISWVendPackingSlipTrans
- ISWVendPurchOrderJour
- ISWVendSettlement
- ISWVendTable
- ISWVendTrans
Refer to the Prerequisite Tasks for Dynamics 365 Finance and Operations as source system section in the SAP Central Finance Master Data Replication by insightsoftware Installation and Configuration Guide and perform the steps.
Reference Fields for Reconciliation Objects
The following reference fields are added to the reconciliation objects such as the tables, views, and procedures. These reference fields are in addition to the already existing reference fields in the reconciliation reports. You can use these fields for your custom columns that are not available in the standard report by default.
-
25 Dimensions:
GLOBAL_REFERENCE_1toGLOBAL_REFERENCE_25 -
5 Measures:
GLOBAL_REFERENCE_26toGLOBAL_REFERENCE_30
For Level 1 to Level 5 tables, views, balance reports, and reconciliation reports, the following additional columns are added for the source and target fields:
- For source:
-
Dimensions:
SOURCE_REFERENCE_1toSOURCE_REFERENCE_25 -
Measures:
SOURCE_REFERENCE_26toSOURCE_REFERENCE_30
-
Dimensions:
- For target:
-
Dimensions:
TARGET_REFERENCE_1toTARGET_REFERENCE_25 -
Measures:
TARGET_REFERENCE_26toTARGET_REFERENCE_30
-
Dimensions:
-
For the exception views, only for source:
-
Dimensions:
GLOBAL_REFERENCE_1toGLOBAL_REFERENCE_25 -
Measures:
GLOBAL_REFERENCE_26toGLOBAL_REFERENCE_30
-
Dimensions:
To use the custom columns for the reconciliation related flows, you must modify the data flows having additional columns and map them to the dimensions and measures reference fields.
The following example explains how to use the custom columns.
To use the custom columns with the reference fields
- The following screenshot depicts the MAGNITUDE_STG_ONE data flow. The data flow is from the UFF_STG_TEMP table to the MAGNITUDE_STG_ONE table.
- Add
TAX_RATEandTRANSLATION_DATEas the custom columns to the MAGNITUDE_STG_ONE table. - The following view is in use for reconciliation support. Map the custom columns by loading the source
TRANSLATION_DATEdata in to theGLOBAL_REFERENCE_1field and the sourceTAX_RATEdata in to theGLOBAL_REFERENCE_26field.
For updating column names for the reference fields in SAP Fiori, refer to Comparison Reports for Third-Party Systems Guide.
Load Data into SLT Replication Server
To load the data into SLT Replication Server, you will first load and map the master data using SAP MDG. Then, you will perform the historical transaction data load followed by the incremental data load.
To load the data into SLT
-
Copy the
MSC_Lookup_Data.xlsxfile that you created during the configuration of SAP S/4HANA at the following location to your computer:\\SourceConnect\MasterMappingNote: For information about the configuration, see Configuring SAP S/4HANA for Data Load.
- In SAP Data Services Designer, connect to your repository, open the
Master_Lookup_Loadjob pertaining to your source system, and perform the following:- In the
MSC_MDFILE_CHKscript file of the job, in thewait_for_filefunction, update the location of theMSC_Lookup_Data.xlsxfile as\\SourceConnect\MasterMapping. - For
MSC_MDFILE_EX, update the root directory as\\SourceConnect\Log&Reprocess\Login which the log files must be generated.
- In the
- Update the values of the applicable global variables for the jobs pertaining to your source system before running the jobs. For information about the list of applicable global variables, see Global Variables in Appendix B.
- Run the
Master_Lookup_Loadjob. The cache file for theMSC_MASTER_LOOKUPtable is created. - To load the customer, vendor, and general ledger account balances data into SLT Replication
Server, run the
<SourceSystem>_%_BalancesorSC_Balancesjob. - To load the historical data into SLT Replication Server:
- Run the
<SourceSystem>_Journals_OTor<SourceSystem>_JournalsorSC_Journalsjob as applicable.
Important: For JD Edwards EnterpriseOne, before you run the job, run the
R7404003andR7403B001reports in your source system in detail mode so that theF74412worktable is populated with the customer and vendor balances data.Note: For information about running the job in parallel for multiple source systems, see Parallel Loading, Reprocessing of Flat File Data.
- Run the
- For the incremental data load:
- Run the
<SourceSystem>_CDC_Set_Status_OnorSC_CDC_Set_Status_Onjob as applicable. The incremental data load is enabled for the<SourceSystem>_Journals_CDCandSC_Journalsjob respectively. - Run the
<SourceSystem>_Journals_CDCorSC_Journalsjob as applicable. The incremental data load is performed for journals that are posted in the source system. - When required, run the
<SourceSystem>_CDC_Set_Status_OfforSC_CDC_Set_Status_Offjob as applicable. The incremental data load is stopped for the<SourceSystem>_Journals_CDCandSC_Journalsjob respectively. - Verify the error log files that are generated at
\\SourceConnect\Log&Reprocess\Logduring the data load, and then, run the<SourceSystem>_Reprocess_JournalsorSC_Reprocessjob as applicable to reload the failed transactions. For more information, see Error Handling .
Load Reconciliation Data into Staging Database
After loading the transaction data into SLT Replication Server, you can load the Reconciliation data pertaining to your transactions into the staging database for Reconciliation reporting.
To load the Reconciliation data into the staging database
- Open SAP Data Services Designer as an administrator and connect to your repository.
- Update the values of the applicable global variables for the Reconciliation jobs pertaining to your source system. For the list of applicable global variables, see Global Variables in Appendix B.
- Run the following jobs in the
<SourceSystem>_RECON_L1_L5project:Note: If the staging database is SAP HANA, the
<SourceSystem>_S4_FIN_Dataloadand<SourceSystem>_S4_FIN_Dataload_CDCjobs are not applicable. -
One-time data load
-
<SourceSystem>_S4_FIN_Dataload: The historical journal information based on the specified start date is loaded from SAP S/4HANA into theS4_FIN_TRX_STGtable in the staging schema. -
<SourceSystem>_Source_Doc_Info: The historical journal information is loaded from the source table in the source schema into theSOURCE_DOC_INFOtable in the staging schema. -
<SourceSystem>_Period_Balances_OT: The account balances data is loaded from the balances table in your source system into the<SourceSystem>_SOURCE_BALANCEStables in the staging schema.
-
-
<SourceSystem>_Account_Reconjob- Run the job. The account balances data is loaded from the source system and SAP S/4HANA into the
LEVEL5_RECON_GLBAL_STGtable in the staging schema.
- Run the job. The account balances data is loaded from the source system and SAP S/4HANA into the
-
Incremental data load
-
<SourceSystem>_S4_FIN_Dataload_CDC: The journal information is incrementally loaded from SAP S/4HANA into theS4_FIN_TRX_STGtable in the staging schema. -
<SourceSystem>_SRCDOC_Set_Status_On: The incremental data load is enabled for the<SourceSystem>_Source_Doc_Info_CDCjob. -
<SourceSystem>_Source_Doc_Info_CDC: The journal information is incrementally loaded from the source table in the source schema to theSOURCE_DOC_INFOtable in the staging schema. -
<SourceSystem>CDC_PERIOD_Bal_Set_Status_On: The incremental data load is enabled for the<SourceSystem>_Period_Balances_CDCjob. -
<SourceSystem>_Period_Balances_CDC: The account balances data is incrementally loaded from the balances table in your source system into the<SourceSystem>_SOURCE_BALANCEStables in the staging schema. -
<SourceSystem>_SRCDOC_Set_Status_Off: If required, run this job to stop the incremental data load for the<SourceSystem>_Source_Doc_Info_CDCjob. -
<SourceSystem>CDC_PERIOD_Bal_Set_Status_Off: If required, run this job to stop the incremental data load for the<SourceSystem>_Period_Balances_CDCjob.
-
- Run the following jobs in the
RECON_STGproject:Note: If the staging database is SAP HANA , the
SLT_FIN_STGandSLT_FIN_STG_CDCjobs are not applicable. -
One-time data load
-
SLT_FIN_STG: The historical data is loaded from the SLT tables into theSLT_DATAtable in the staging schema. -
Recon_OT: The historical data is loaded into theLEVEL<1|2|3|4|5>_RECON%_STGtables in the staging schema.
Important: Before running the
Recon_OTjob, make sure that theMSC_CONFIGtable contains the logical system and source system data in the following pattern:
If the source is Oracle E-Business Suite and logical system is EBSPRD, enter the following:CONFIG_NAME: LOGSYSNAME
CONFIG_VALUE: EBSPRD
SOURCE_SYSTEM: EBS
The value ofCONFIG_NAMEremains constant. -
- Incremental data load
-
SLT_FIN_STG_CDC: The data is incrementally loaded from the SLT tables into theSLT_DATAtable in the staging schema. -
RECONCDC_Set_Status_On: The incremental data load is enabled for theRECON_CDCjob. -
RECON_CDC: The data is incrementally loaded into theLEVEL<1|2|3|4|5>_RECON%_STGtables in the staging schema. -
RECONCDC_Set_Status_Off: If required, run this job to stop the incremental data load for theRECON_CDCjob. -
RECON_DEL_HIST- Run the job. The historical data is deleted in the
LEVEL<1|2|3|4|5>_RECON%_STGtables based on the values provided for the Company, Fiscal Year, and/or Fiscal Period parameters during the job run.
- Run the job. The historical data is deleted in the
- For Oracle E-Business Suite, Oracle PeopleSoft, JD Edwards EnterpriseOne, MS Dynamics 365 Business Central (on-premises and cloud), MS Dynamics 365 Finance & Operations (cloud), MS Dynamics NAV, MS Dynamics AX, Infor LN (on-premises), and Flat file/Universal Connector:
-
RECON_L1_L3: Loads L1-L3 reconciliation reports simultaneously, with the flexibility to refresh specific levels of reports as needed. -
RECON_L4_L5: Loads L4 and L5 reconciliation reports simultaneously, with the flexibility to refresh specific levels of reports as needed.
-
After you initiate the job runs, depending on the delay specified in the G_SLEEP variable of the RECON_CDC job and the run duration of the jobs, the Reconciliation information will be available in the Reconciliation reports.
Additionally, for information on the documents that are not posted into SAP S/4HANA due to data load-related issues in the staging database, you can see the Exception report. For information on this report and other Reconciliation reports, see Comparison Reports for Third-Party Systems Guide.
Load Transaction Data into SAP S/4HANA for Drilldown Reporting
You can load the detailed information about transactions from your source system into SAP S/4HANA for Drilldown reporting.
To load the transaction data for Drilldown reporting
- Open SAP Data Services Designer as an administrator, and connect to your repository.
- Run the following jobs depending on your data load requirements:
-
One-time data load
- Run the
<SourceSystem>_OT%jobs pertaining to your source system. The historical data is loaded for the Drilldown user that you created during the setup of Drilldown.
- Run the
-
Incremental data load
- Run the
<SourceSystem>_CDC_Set_Status_Onjob by specifying the<SourceSystem>_CDC%job name in the$G_SUBSCRIPTIONglobal variable. The incremental data load is enabled for the specified job. - Run the
<SourceSystem>_CDC%job. The incremental data load is performed for journals that are posted in the source system. - When required, run the
<SourceSystem>_CDC_Set_Status_Offjob by specifying the<SourceSystem>_CDC%job name in the$G_SUBSCRIPTIONglobal variable. The incremental data load process is stopped for the specified job.
- Run the
Load Data Using SyncBack
After importing the jobs and updating the data store settings in the SAP Data Services repository, SyncBack enables you to load the payments and receipts data from SAP S/4HANA into the following source systems:
- Oracle E-Business Suite
- JD Edwards EnterpriseOne
- Microsoft Dynamics AX
Microsoft Dynamics 365 NAV
Microsoft Dynamics 365 Business Central (On-Premises)
- QAD
- 1C:Enterprise
- Flat file
To load the data from SAP S/4HANA into the source system
- Open SAP Data Services Designer as an administrator, and connect to your repository.
- For all staging databases except SAP HANA, perform the following data loads depending on your requirements:
-
One-time data load
- Run the
S4_<SourceSystem>_AP_Payment_Trxjob. The historical payments data in SAP S/4HANA is loaded into theAP_FIN_PYMT_TRXtable in the staging database. - Run the
S4_<SourceSystem>_AR_Payment_Trxjob. The historical receipts data in SAP S/4HANA is loaded into theAR_FIN_PYMT_TRXtable in the staging database.
- Run the
-
Incremental data load
- Run the
S4_<SourceSystem>STG_Set_Status_Onjob by specifying theS4_<SourceSystem>_AP|AR_Payment_Trx_CDCjob name in the$G_SUBSCRIPTIONglobal variable. The incremental data load is enabled for the specified job. - Run the
S4_<SourceSystem>_AP_Payment_Trx_CDCjob. The payments data in SAP S/4HANA is incrementally loaded into theAP_FIN_PYMT_TRXtable in the staging database. - Run the
S4_<SourceSystem>_AR_Payment_Trx_CDCjob. The receipts data in SAP S/4HANA is incrementally loaded into theAR_FIN_PYMT_TRXtable in the staging database. - When required, run the
S4_<SourceSystem>STG_Set_Status_Offjob by specifying theS4_<SourceSystem>_AP|AR_Payment_Trx_CDCjob name in the$G_SUBSCRIPTIONglobal variable. The incremental data load process is stopped for the specified job.
- Run the
-
One-time data load
- For the staging database as SAP S/4HANA:
- Run the
S4_<SourceSystem>_AP_Payment_Trx_HANAandS4_<SourceSystem>_AP_Payment_Trx_HANAjobs for one-time data load. - Run the
S4_<SourceSystem>_AR_Payment_Trx_CDC_HANAandS4_<SourceSystem>_AR_Payment_Trx_CDC_HANAjobs for the incremental data load.
- Run the
- In the
$SAP_COMPANYglobal variable of theS4%OTandS4%CDCjobs, specify the company code through which the payment or receipt details of the company must be extracted. - In the
$LOGICAL_SYSTEMglobal variable, specify the logical system value such asUFFPRDorEBSPRD. - Then, run the following jobs depending on your data load requirements:
-
One-time data load
- Run the
S4_<SourceSystem>_AP_Payment_OTjob. The historical payments data in SAP S/4HANA is loaded into the vendor payment-specific table in the source database or a file. - For both one-time and incremental data loads, the historical payments data in the
S4_AP_Payment_Infoview is loaded into the vendor payment-specific table in the source database or a file.
- Run the
S4_<SourceSystem>_AR_Payment_OTjob. The historical payments data in SAP S/4HANA is loaded into the customer receipt-specific table in the source database or a file. For both one-time and incremental data loads, the historical payments data in theS4_AR_Receipt_Infoview is loaded into the customer receipt-specific table in the source database or a file.
- Run the
- Incremental data load
- Run the
S4_<SourceSystem>CDC_Set_Status_Onjob by specifying theS4_<SourceSystem>_AP|AR_Payment_CDCjob name in the$G_SUBSCRIPTIONglobal variable. The incremental data load is enabled for the specified job. - Run the
S4_<SourceSystem>_AP_Payment_CDCjob. The payments data in SAP S/4HANA is incrementally loaded into the vendor payment-specific table in the source database or a file. - Run the
S4_<SourceSystem>_AR_Payment_CDCjob. The receipts data in SAP S/4HANA is incrementally loaded into the customer receipt-specific table in the source database or a file. - When required, run the
S4_<SourceSystem>CDC_Set_Status_Offjob by specifying theS4_<SourceSystem>_AP|AR_Payment_CDCjob name in the$G_SUBSCRIPTIONglobal variable. The incremental data load process is stopped for the specified job. - (For Microsoft Dynamics 365 NAV and Business Central On-Premises) Run the following jobs in the
SC_Syncbackproject:-
S4_AP_PAYMENT_TRX: The historical payments data in the staging database is loaded into the vendor payment-specific table in the source database or a file. -
S4_AR_PAYMENT_TRX: The historical payments data in the staging database is loaded into the customer receipt-specific table in the source database or a file. -
S4_SET_STATUS_ON: The incremental data load is enabled for the AP/AR job. -
S4_SET_STATUS_OFF: The incremental data load process is stopped for the AP/AR job.
-
- Schedule and run the SyncBack APIs that were registered during the installation of SyncBack. The payments are created and the corresponding invoices are cleared in the source system.
MSC_LOOKUP_DATA Entries for Additional Payment Scenarios
For Oracle E-Business Suite, make sure that the MSC_LOOKUP_DATA Excel workbook is updated with the accurate source-to-target mappings by referring to the following screenshots.
Note: These mappings are required for the data to flow back from SAP S/4HANA to the source system during SyncBack.
The following mappings for Transaction Replication contain the Source_Value1 field which indicates the payment type in the source system and the Target_Value1 field which indicates the payment type in SAP S/4HANA .
The following mappings for Syncback contain the Source_Value1 field which indicates the payment type in SAP S/4HANA and the Target_Value1 field which indicates the payment type in the source system.
Error Handling
After you run the jobs for loading the transaction data, Transaction validates and logs errors for documents that cannot be loaded into SLT Replication Server. The objective of error handling and reprocessing is to reprocess the documents that failed during the transaction replication process. The document can fail in the following scenarios:
- Due to non-extraction
- Due to validation failure
- Due to pre-AIF validation failure
- Due to failure in AIF
Reprocessing Failed Documents
This section contains information about reprocessing the failed documents that are identified through the error handling process. The data reprocessing framework includes the following two jobs:
- Reprocess
- Clean up
The data reprocessing framework is applicable for the following source systems:
- Oracle E-Business Suite
- JD Edwards EnterpriseOne
- Oracle PeopleSoft
- UC/Flat file
- Microsoft Dynamics AX
- Microsoft Dynamics NAV
- Microsoft Dynamics GP
- Microsoft Dynamics 365 Finance and Operations
- Microsoft Dynamics 365 Business Central (on-premises and cloud)
- Infor LN (on-premises)
Prerequisites
You must have access to the following job and .csv file for reprocessing the failed documents:
-
<SourceSystem>_Reprocess_Journalsjob-
$G_PROCESS_MISSING_DOCS: Enter Y to reprocess the documents that were missed during extraction. It is supposed that the missing document details are entered in the.csvfile located in the shared location. -
$G_PROCESS_VALIDATION_ERRORS: Enter Y to reprocess all theUNIQUE_IDfields that failed during insightsoftware validation process and now exist in the<SOURCE SYSTEM>_STG_ERROR_LOGtable. -
$G_PROCESS_AIF_UIDs: Enter Y to process all theUnique_IDfields placed in the.csvfile. It is supposed that all the documents having failed Unique_IDs in the AIF are placed in the.csvfile. -
$GARCH_FLAG: Enter Y to archive the data ofMagnitude_STG_OneandFIN%tables before deletion. -
$G_USE_AUTO_INPUT: Enter Y to automatically reprocess all the documents in the stage error logs and AIF tables (whichever is applicable). -
$G_USE_EXCEL_INPUT: Enter Y to select the documents to reprocess using Excel input parameters.
The selection parameters for the reprocessing job are as follows:
Note: For the
Process_Missing_DocsandProcess_AIF_UIDsoptions to function accurately, you must enter theJE_HEADER_IDfield for the applicable tables. For JD Edwards EnterpriseOne, enter theDOC_BATCHandDOC_NUMBERfields. -
-
SC_Reprocessjob for Oracle E-Business Suite, JD Edwards EnterpriseOne, Oracle PeopleSoft, Microsoft Dynamics GP, Microsoft 365 Dynamics Finance & Operations, Microsoft Dynamics 365 Business Central (on-premises and cloud), Infor LN (on-premises), and Flat file. Refer to the global variables in Appendix B of the SAP Central Finance Transaction Replication by insightsoftware Administrator Guide for related information. -
<SourceSystem>_REPROCESS_FILE.csvfile -
<SourceSystem>_JOURNALS_OTjob -
SC_Journalsjob for Oracle E-Business Suite, JD Edwards EnterpriseOne, and Flat file.
To reprocess documents
- Make sure that the failed documents are corrected and ready for reprocessing.
- Select the
<SOURCE SYSTEM>_Reprocess_JournalsorSC_Reprocessjob in <SourceSystem> Journals and go to the Execution Properties tab. - Toggle the required global variable to ‘Y’ considering the scenario in which the documents have failed
- Stage and FIN validation failure, Custom Validation failure -
$G_Process_Validation_Errors (‘Y’/’N’)–‘Y’ - AIF failure at CFIN -
$G_Process_AIF_UIDs (‘Y’/’N’)–‘Y’ - Documents missing during extraction from Source -
$G_Process_Missing_Docs (‘Y’/’N’)–‘Y’
The documents are picked for reprocessing in one of the following ways:
-
Automated document capture: Setting
$G_USE_AUTO_INPUTas Y will automatically reprocess all the documents in the stage error logs and AIF tables (whichever is applicable). -
Manual document capture: Setting
$G_USE_EXCEL_INPUTas Y will allow you to choose the documents to reprocess using Excel input parameters. You must update and save the Excel template in the designated path so that the<SourceSystem>_Reprocess_Journalsjob can utilize it.
- Stage and FIN validation failure, Custom Validation failure -
- Run the
<SourceSystem>_Reprocess_JournalsorSC_Reprocessjob after selecting the appropriate toggles.
As a result:
- All the documents picked up by the
<SourceSystem>_Reprocess_Journalsjob will be cleaned up automatically, ensuring that there is no occurrence of unique constraint error. - All the cleaned up documents will be archived for reference.
- No manual clean up is required at the Stage, FIN, or SLT levels.
- Selected records will be moved to Records to reprocess table post which, the documents get reprocessed.
Cleaning up Documents
In transaction replication, the cleanup job is essential for maintaining the efficiency and performance of the replication process. You can choose between a manual or automated cleanup process.
Automated cleanup process:
- Enter the global variables for the
SCT_CLEANUPjob. For details on the global variables, refer to Appendix B.Important: Only records that meet all input parameter criteria will be selected for deletion during the automated cleanup.
Note: You can enter multiple values for Company Code and Posting Period at the global variable level, separated by commas. The maximum number of values is set to 30, which can be adjusted if needed.
Trigger the
SCT_CLEANUPjob.
Manual cleanup process:
- Download the FF_SC_CLEANUP.csv file located at SCT/Common_Mappings/SCT_CLEANUP.
- Fill in the columns with the required information: SOURCE_SYSTEM, BATCH, COMPANY_CODE, FISCAL_YEAR_DOC_TYPE, FROM_POSTED_DATE, TO_POSTED _DATE, and RUN_ID.
- Upload the CSV file containing the documents to be deleted.
- Trigger the
SCT_CLEANUPjob.
Upon completion, the data in SCT_STG_ARCHIVE is automatically backed up. You can access this backup using the generated .csv file located at the path specified in the ARCHIVE_FILEPATH variable.
Implementing Custom Validations
You can add custom validations to FIN% tables for early error detection in AIF, facilitating timely reprocessing. The custom validations are applicable for the following source systems:
- Oracle E-Business Suite
- JD Edwards EnterpriseOne
- Oracle PeopleSoft
- UC/Flat file
- Microsoft Dynamics AX
- Microsoft Dynamics NAV
- Microsoft Dynamics GP
- Dynamics 365 Business Central (on-premises and cloud)
- Dynamics 365 Finance and Operations
- Infor LN (on-premises)
To reprocess failed documents
- Based on the category of failure, the system reprocesses the documents based on either the document or the unique identifier for the identified category of failure.
-
For the documents that were created in the source system but missed the extraction, the system:
- populates the reprocessing file,
<SOURCE SYSTEM>_REPROCESS_FILE.csvlocated at\\SourceConnect\Log&Reprocess\Reprocess. - uses the Level 1 Reconciliation Report and searches for the documents that were missed during extraction
- populates the
<SOURCE SYSTEM>_Reprocess_file.csvspreadsheet placed in the shared folder with the details as shown in the following screenshot:
- populates the reprocessing file,
- For the documents that failed in the stage validations, you must resolve the issues that caused the validation failure and then select this option. For this process, you do not have to populate the
.csvfile because the system fetches the information from the staging table. - For the documents that failed at the pre-AIF validation stage, you must perform the following steps:
- Download the
Custom AIF-FIN simulator.xlsfile located at <SetupFolder>\<SourceSystem. - The Excel file consists of the following three sheets:
- Instructions
- Editable_Default_validations
- Custom Validations
- A set of common AIF validations are placed in the Editable_Default_Validations sheet. As a part of the current release:
- Fields in yellow are editable.
- ‘Check’ and ‘condition’ columns are non-editable.
- Enter the required fields in the Editable_Default_Validations sheet. For example, if a document with BUSINESS_ACTIVITY has field value other than ‘RTGE’, ‘TRFG’, it is assumed to fail in SAP S/4HANA.
- Enter the appropriate FIN table, Column, Field Values, and select Enabled as Status.
- Go to Custom Validations sheet and edit the yellow customisable fields by entering the customized values.
- After entering all the validations, place the updated file in the designated path (to be updated).
- Before running the
<SOURCE SYSTEM>_JOURNALS_OTorSC_Journalsjob, select ‘Yes’ in the custom validation section of the run parameters. The documents failing at the pre-AIF validation will be recorded in the error logs, which can be reprocessed using the reprocess or one-time job post error handling.
- Download the
- For the documents that failed during the AIF process, the system reprocesses the data in the source system, and:
- populates the reprocessing file,
<SOURCE SYSTEM>_REPROCESS_FILE.csvlocated at\\SourceConnect\Log&Reprocess\Reprocess. - uses the Level 1 Reconciliation Report and searches for the documents that were missed during extraction
- populates the
<SOURCE SYSTEM>_Reprocess_file.csvspreadsheet placed in the shared folder with the details as shown in the following screenshot:
- populates the reprocessing file,
-
- As reprocessing is performed from the source system, the system performs a data cleanup and deletes the data from the following tables :
- MAGNITUDE_STG_ONE Table
-
FIN%tables - SLT tables
The data cleanup is done based on the data in the
RECORDS_TO_ REPROCESS_STGtable data and loads the data into this table. The data is deleted from SLT tables followed by MAGNITUDE_STG_ONE andFIN%tables. The deletion of MAGNITUDE_STG_ONE and FIN% table data also includes archiving the data into archive tables.Note: Archiving the data is an optional step and it depends on the user selection while running the reprocessing job.
The system loads the data by running the
POP_REPROCESS_DATAprocedure to fetch the data from the staging table and load it into the source table of the corresponding module. TheRecords_reprocess_srctable contains data related to all the reprocessing documents.
To implement custom validations for JD Edwards EnterpriseOne and Flat file sources
- Download the
file located at <SetupFolder>\<SourceSystem.Custom AIF-FIN simulator.xls - The Excel file consists of the following three sheets:
- Instructions
- Editable_Default_validations
- Custom Validations
- A set of common AIF validations are placed in the Editable_Default_Validations sheet. As a part of the current release:
- Fields in yellow are editable.
- ‘Check’ and ‘condition’ columns are non-editable.
- Enter the required fields in the Editable_Default_Validations sheet. For example, if a document with BUSINESS_ACTIVITY has field value other than ‘RTGE’, ‘TRFG’, it is assumed to fail in SAP S/4HANA.
- Enter the appropriate FIN table, Column, Field Values, and select Enabled as Status.
- Go to Custom Validations sheet and edit the yellow customisable fields by entering the customized values.
- After entering all the validations, place the updated file in the designated path (to be updated).
- Before running the
<SourceSystem>_JOURNALS_OTorSC_Journalsjob, select ‘Yes’ in the custom validation section of the run parameters. The documents failing at the pre-AIF validation will be recorded in the error logs, which can be reprocessed using the reprocess or one-time job post error handling.
To reprocess failed documents at regular intervals
The failed documents identified through the error handling process are reprocessed by running the EBS_Reprocess_Journals job. To reprocess the documents at regular intervals, perform the following steps:
- Open SAP Data Services Designer as an administrator and select the relevant batch.
- Select the Batch Job Configuration tab and locate the
EBS_Reprocess_Journalsjob. - As a prerequisite before scheduling the reprocessing job, ensure that there is no existing one-time job currently being run.
- Select Add to add a new schedule for the
EBS_Reprocess_Journalsjob as shown in the following screenshot: - Enter an appropriate name and provide other necessary details for the required schedule as shown in the following screenshot:
- Configure the global variables and select Apply to save the scheduler details. The schedule is created, however, it is not activated.
- Go to Batch > Batch Job Schedules and check that the newly added schedule is in an inactive state.
- Select the schedule and select Activate. The schedule is activated.
- Check the admin console to monitor the schedule.
- The job is triggered at the scheduled time and run as per the set configurations.
The documents are reprocessed at regular intervals.
To run the AIF error validation in SAP Data Services
Set the value of the global variable
$G_VALIDATE_AIFas 'Y' if you want to run the AIF validation. By default, the validation is run for the module selected to process one-time job as the global variable is reused here.The object key and header ID are taken from the staging tables based on the
Custom FIN-AIF Validator.xlsxlocated at \TransactionReplication.zip\SCT\<SourceSystem>\Oracle_Source for Oracle E-Business Suite and JD Edwards EnterpriseOne. For the Flat file source, the location is \TransactionReplication.zip\SCT\UFF. There are pre -defined validations set on columns which can either be enabled or disabled by the user.A procedure named
AIF_VALIDATION_PROCis used to validate the data on the stage tables.The failed records are logged in to
<SourceSystem>_STG_ERROR_LOG.txt.The SAP Data Services job automatically generates the report with the record details and error reason.
To download error report at the staging level
The SAP Central Finance Master Data Replication by insightsoftware for SAP S/4HANA has inbuilt capabilities to generate an error log report for the records that failed at the stage level.
For example, when you run a one-time job, if there are any failures during validation process, they are captured in a table, and then downloaded as a report in the directory.
The flow which generates the error report:
The following code generates the name of the error report file.
The location of the file is maintained at \SourceConnect\Log&Reprocess\Log.
As the job completes running, the log is generated at the designated location along with the timestamp.
Following is a sample report with details.
The .txt report contains all the major fields required to uniquely identify a record and along with it comes the description due to which the record failed.
Import the .txt error log file from the \SourceConnect\Log&Reprocess\Log folder for analysis.