2023 Jun 29 3:12 PM
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