on 2025 Apr 11 2:32 PM
Delta (pseudo) upload: Only Current and Previous Months data with CDS view S4HANA to SAC
As of now data import to SAC from S4HANA or ECC systems with delta upload is not supported, so its mandatory to upload whole Fiscal/Cal year data. Filtering on Fiscal/Cal period dynamically is also not possible in import jobs query filters. To handle following scenarios it would be good to reduce number of records during data import to SAC..
To overcome this scenario, I have developed a solution to upload from source only for Current and Previous periods so number of records imported will be reduced which helps to limit rejections also.
Upload for Current and/or Previous periods worked out from S4HANA system with CDS view using the System Date and Factory calendar. Usually in organizations, Fiscal year and Periods with Start and End (closing) Dates are maintained in the system factory calendar as per the Calendar dates especially when companies are doing Financial Closing.
These Start and End (closing) dates with Fiscal Year and Periods are captured in the standard CDS views which reads data from Factory Closing Calendar. One of the CDS view is I_FiscalCalDatePrevFsclPeriod which captures Current/Previous periods and Year with Start and End dates.
As in below example, suppose in a company for the calendar date 12th March 2025, current Fiscal year and Periods are 2025 and 005, Previous Year and Periods are 2025, 004.
If the Fiscal year starts on November 1st week Monday i.e. on 3rd November 2025, then current Fiscal year and Periods are 2025 and 001, Previous Year and Periods are 2024, 012.
Considering above date, year and period entries, I have created following custom CDS view logic using the standard CDS view I_FiscalCalDatePrevFsclPeriod, which can be used to import data from S4HANA table ACDOCA to SAC for Current and Previous periods only.
In the above code 2nd row, system date has been passed to the CDS view with inner Join (Association also can be used), so only one record for the current system date will be read as below.
Used Case command and created following logic with conditions:
The output for the above conditions will be populated as below, for period 4 and 5 curr_period has been populated as Y.
In the third condition, If the system date matches with Calendar Date from I_FiscalCalDatePrevFsclPeriod CDS view and Previous Fiscal Year and Previous Fiscal Period matches with ACDOCA table transaction data Current Fiscal year and Current Fiscal Period then curr_period field will be populated as Y (yes).
CDS view once ready for SAC import then in import job query filter curr_period field needs to be restricted as Y then only 60 rows for period 4 and 5 have been extracted.
Note: Incase all records need to be extracted for whole Fiscal Year 2025 then curr_period field needs to be removed from query filter then all records for whole Fiscal Year 2025 will be extracted as below. There is a clear difference for period 4 and 5 extraction with field restriction curr_period Y which extracted 60 records but whole 2025 Fiscal year 303 records.
This solution is applicable as mentioned in the beginning if the factory calendar is maintained in source systems for the financial closings or any other closings.
Request clarification before answering.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.