on ‎2023 Dec 04 1:32 PM
Is there an option where we could ignore hard coding in custom app - CUSTOM LOGIC just like TVARVC within S4 HANA CLOUD.
Request clarification before answering.
Hi, the possible solution is to avoid hardcode in Custom Logic using custom constant interface. It`s using will be not avaiable in the app initially, so you need to release the interface at first to make it avaiable for using. Follow such steps:
Click on green '+' icon on the Use System-Internally (Contract C1) tab.
Select Use in Key User Apps checkbox and click on Next until the end of a dialogue.
That`s all, now you are able to use the interface in the Custom Logic App.
It will work for custom classes as well, so you also can create some kind of singletone buffer-class to store dynamic values. That`s up to your needs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shashank
I am not sure the question is clear -could you provide some clarification?
We are assuming you have a custom logic implemented in Badi extension point via the Custom Logic app.
In that case, why do you have hard coding you want to ignore?
If you have hard coding that is optional, you should add some if/then or order logic to check for the conditions that should ignore it and then exit the badi before the hard coding executes.
OR- check for the conditions that should have the hard coding and the do the hard coding only in that case.
Thank you
Jerry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sergei_gook
Looks like we missed the comments until recently.
To be honest I am not very familiar with the TVARVC table or those transactions.
But I can say we don't have the table exposed in SAP S/4HANA Cloud Public Edition.
If I understood the use case, you would like to, for example, develop a BAdI in Custom Logic to look up a value for a storage location, however if that SL changes in the future, you don't want to change the code, you want to just update a table.
In this type of case, looking up a value mapping for example, it sounds like the perfect use case for a Custom Business Object
There are lots of blogs and posts in the extensibility community about CBOs as well.
I hope this helps
Jerry
| User | Count |
|---|---|
| 33 | |
| 18 | |
| 14 | |
| 13 | |
| 9 | |
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.