Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAdI XRXSS_PER_SUBTYPE

stefan_hntemann
Explorer
0 Kudos
141

I have implemented the BAdI XRXSS_PER_SUBTYPE. If I assign the field "displ_only" with 'X', the button "Edit" is hidden. Obviously, the button "Create" can only be hidden if the field "usecase" in table T7XSSPERSUBTYPE is changed to e.g. 'A2'. However, I cannot manage to hide the "Delete"-button.

Coding of BAdI:

METHOD if_ex_hrxss_per_subtype~modify_subtypes.

DATA: wa_subty TYPE hrxss_per_subtype_info.
IF molga EQ '01' AND " Deutschland
infty EQ '0021'. " Familienemitglieder
LOOP AT subtypes INTO wa_subty.
wa_subty-disp_only = 'X'. " Bearbeiten
wa_subty-cre_button = '-'. " Anlegen
wa_subty-del_button = '-'. " Löschen
MODIFY subtypes FROM wa_subty.
ENDLOOP.
ENDIF.
ENDMETHOD.

Any ideas?

Regards

Stefan

0 REPLIES 0