cancel
Showing results for 
Search instead for 
Did you mean: 

WD_BADI_DOMODIFYVIEW get Configuration ID

kersra
Explorer
0 Kudos

Hello Gurus,

we are using SRM 7 and we want to use badi WD_BADI_DOMODIFYVIEW to hide fields. So far so good.

My problem is that we would like to hide fields in the component WDR_SELECT_OPTIONS, view SELECTION_SCREEN and this only for certain selection screens.

In our case configuration id SH_BBP_BUPA_VENDOR should be manipulated. It is possible to filter in the BADI?

thanks a lot

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

You can filter for you configuration id by code executing the following logic:

DATA: component         TYPE REF TO cl_wdr_component,
     pers_manager
TYPE REF TO if_wd_personalization,
     config_key  
TYPE wdy_config_key.



 
component ?= view->if_wd_controller~get_component( ).

  pers_manager
= component->if_wd_component~get_personalization_manager( ).

 
IF pers_manager IS BOUND.

    pers_manager
->get_state( IMPORTING config_key = config_key ).

          IF config_key-config_id EQ 'SH_BBP_BUPA_VENDOR'.

          ......

          ......

         

          ENDIF.

     ENDIF.

Best Regards.

Answers (0)