cancel
Showing results for 
Search instead for 
Did you mean: 

Ignore Hard coding in S4HANA Cloud

shashankagg
Explorer
0 Kudos
531

Is there an option where we could ignore hard coding in custom app - CUSTOM LOGIC just like TVARVC within S4 HANA CLOUD.

View Entire Topic
k_vadym
Advisor
Advisor

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:

  1. Create and activate a constant interface in your system.
  2. Navigate to it`s propeties and click on API State tab.k_vadym_2-1711012295324.png 
  3. Click on green '+' icon on the Use System-Internally (Contract C1) tab.

  4. Select Use in Key User Apps checkbox and click on Next until the end of a dialogue.

    k_vadym_3-1711012540641.png 
  5. That`s all, now you are able to use the interface in the Custom Logic App. 

    k_vadym_4-1711012861667.png

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.

 

sergei_gook
Discoverer
0 Kudos
This is just hardcode in another place. I need something to change easily in production systems, like stvarv.