cancel
Showing results for 
Search instead for 
Did you mean: 

BADI or Enhancement spot to set config keys dynamically

sumeet_gehlot
Contributor
0 Kudos

Hello SAP Experts,

I am looking for a  BADI to set role config key based on some conditions.

Requirement is to set configs and work generically for transactions and master data.

Please help.

Regards,

Sumeet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sumeet,

The config keys are attributes of view so you wont find a single BADI using which you can dynamically set keys of any view. You have following option

Redefine DO_CONFIG_DETERMINATION of view implementation class of every view where you want dnynamic determination of view configuration.

         CALL METHOD me->set_config_keys

            EXPORTING

              iv_object_type          = 'object_type'

              iv_object_sub_type      = 'sub_obj_type'

              iv_propagate_2_children = abap_false.

SAP has given us a BADI COMPONENT_LOADING using which we can dynamically set the enhancement set of a component. I am not sure if you will be able to use this.