I created a screen group 'ZE' in SPRO.
I implemented the BADI CUSTOMER_ADD_DATA_CS andused that in my Screen Filter Group.
In the method GET_TAXI_SCREEN, i have the following code
DATA: c_repid TYPE repid VALUE 'SAPMZPROGRAM_NAME'.
IF sy-tcode = 'XD01' OR
sy-tcode = 'XD02' OR
sy-tcode = 'XD03'.
IF i_taxi_fcode = 'ZE'.
e_screen = '9010'.
e_program = c_repid.
e_headerscreen_layout = 'V'.
ENDIF.
ENDIF.
I see my new button on the customer master screen, but when I click it, I see a blank tab - I checked and my Zprogram is defined as a Subscreen.
However, if I comment out the check on i_taxi_fode like this:
DATA: c_repid TYPE repid VALUE 'SAPMZPROGRAM_NAME'.
IF sy-tcode = 'XD01' OR
sy-tcode = 'XD02' OR
sy-tcode = 'XD03'.
* IF i_taxi_fcode = 'ZE'.
e_screen = '9010'.
e_program = c_repid.
e_headerscreen_layout = 'V'.
* ENDIF.
ENDIF.
I see my fields and everything is working properly. Any ideas why the filter isn't working properly?
thanks in advance,
robert