10-19-2018 10:06 AM - edited 02-03-2024 10:57 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.