cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamically selecting the data elements for all dimension

Former Member
0 Likes
337

Hi Folks ,

I need to write some logic to get the data elements for all the dimension , and I want to use these data elements in the data declaration without hardcoding if , so that I copy the code to another environment it should pick the data element dynamically for the declaration part .

Accepted Solutions (1)

Accepted Solutions (1)

lucas_costa3
Active Contributor
0 Likes

Do a where-used-list for class cl_rsbpco_appl_adapter (embedded) or CL_UJO2_ADMIN (standard).

These classes can be used to retrieve all the dimensions in the model, their types, attribute list...

Answers (1)

Answers (1)

former_member186338
Active Contributor
0 Likes

Sorry, but absolutely not clear what do you want to achieve! Please provide some sample!

Former Member
0 Likes

Hi Vadim ,

Thanks for you reply .

Basic intension is to use the same badi code to two to three environment if we have to achieve same functionality. SO in the badi we define the dimensions in the data declaration part , where we pass the current infoobject data element to create them , and then we use them in the badi . So if I copy the same code into another environment the code wont work since he infoobject tech id will be different , so I want to write some code to make this dynamic.

former_member186338
Active Contributor
0 Likes

Why do you need to use technical names in the badi code? Bad practice!