7

SAP Datasphere - How to handle document deletion o... - SAP Community

 7 months ago
source link: https://community.sap.com/t5/technology-q-a/sap-datasphere-how-to-handle-document-deletion-or-reversal-in-s-4hana-cds/qaq-p/13590743
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

SAP Datasphere - How to handle document deletion or reversal in S/4HANA CDS view?

Hello Experts,

We have created a custom CDS view equivalent to SAP BW datasource 2LIS_11_VAKON.

This data source has a delta process type as ABR, which also captures deletion.

S0019234052_0-1706782837574.png

We have an existing logic as below -
      IF SOURCE_FIELDS-ROCANCEL EQ 'R'
        OR SOURCE_FIELDS-ROCANCEL EQ 'D'.
        RESULT = '-1'.
      ELSE.
        RESULT = '1'.
      ENDIF.

How to achieve this in CDS as ROCANCEL/RECODMODE is not available like BW data source?

Thanks!

Regards,

Mandar

Labels:

Accepted Solutions (0)

Answers (1)

XaviPolo

XaviPolo

Active Contributor

6m ago

Hi @Mandar_Damle 

I think this is more an issue of how you created the CDS. If you have some records that you must identify but DSP does not receive the information that allows you to identify them, there is little you can do.

You will have to implement in the CDS itself some logic that allows you to return that field or similar.

Perhaps in the S4 community, they will be able to help you more in that aspect.

Regards,


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK