on 2024 Aug 08 7:33 AM
Hello Experts,
How can the delta records be processed in SAP Datasphere?
E.g. I need to create a flag with a value = Y based on the sales order and the customer. So, there are two scenarios.
1. If the sales order is new then the flag is Y. If it is an existing sales order then we clear the flag.
2. If the sales order is an existing one but if the customer is changed, the flag is Y.
Now, in BW I can have the already loaded data into one internal table with the work area and check if the sales order is new/old or if the customer is changed or the same by looping the result_package and reading the internal table within the loop and then accordingly process the delta records with the appropriate flag value.
How do you achieve the same functionality in SAP Datasphere?
Above scenario in table form -
Sales Order | Customer | Date | Flag | |
SO1234 | C1234 | 7-Aug-24 | Y | New Record |
SO1234 | C1234 | 8-Aug-24 | Clear Flag | |
SO1234 | C1234 | 9-Aug-24 | Clear Flag | |
SO4567 | C4567 | 7-Aug-24 | Y | New Record |
SO4567 | C4567 | 8-Aug-24 | Clear Flag | |
SO4567 | C2345 | 9-Aug-24 | Y | Customer Changed so flag is Y |
Thanks!
Regards,
Mandar Damle
Hi Mandar,
I would create new DSP "table" table, for the delta. Load always the new delta into the "delta" table.
Process the table with a SQL views where you join the "delta" table with the "main" table - the view joins the SOs, and the matches will be unflagged. Create a second view with almost the same logic, but you join SOs and Customers. This way you re-flag the second condition.
but, ... why do you need this? You could use ODP and thus have delta generated for you. Depends on the CDS view you are using of course. If it supports delta (generic or CDC)
IF it is full only, you can create generic-like delta in DSP: https://community.sap.com/t5/technology-blogs-by-members/sap-datasphere-delta-extraction/ba-p/136993...
Cheers,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.