cancel
Showing results for 
Search instead for 
Did you mean: 

S4HANA Cloud ABAP Enhancement

0 Kudos

There is client’s requirement to make a change for some value in standard transaction. When we tried to use custom logic (BadI), we found that we are able to change the custom field value only.

E.g. we planned to have condition type set, when an order reach the specific condition amount, their total value will get discount and it should be directly change the order value. How to solve this, while on S/4HANA On-Premise we can use this case by enhancement?

Accepted Solutions (1)

Accepted Solutions (1)

MartyMcCormick
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Willianto

Restricted ABAP is released for custom logic in SAP S/4HANA Cloud and as part of this no DB operations except selects from released views is allowed. I think you may be able to write to a custom field in some contexts as well but for your specific scenario of updating the value will not work. Not sure if the custom field would meet your requirements either.

This blog talks in more detail about Restricted ABAP with a link to valid statements: https://blogs.sap.com/2016/03/18/s4hana-extensibility-concept-details-restricted-abap/

Is the value you want to update whitelisted on an API with full CRUD operations? Maybe you could update these values through an extension (side by side or interface on CPI)?

Thanks,

Marty

Answers (0)