SAP MDG: How to hide New Button of Address Section

1 min read
Table of contents
Go to Component Config. of Address Section & Collect the Feeder Class of it.
CL_BS_BP_GUIBB_ADDRESSES
Create Enhancement, In Enhancement Create Post Exit
If not aware of Enhancement & Post Exit, check the link
Post Exit Code
LOOP AT ct_field_usage ASSIGNING FIELD-SYMBOL(<fs_sel_line>).
READ TABLE ct_action_usage ASSIGNING FIELD-SYMBOL(<fs_act_usg>) WITH KEY id = '_CREA_'.
IF <fs_sel_line>-name = 'STANDARDADDRESS' AND <fs_sel_line>-visibility = '02'.
<fs_act_usg>-enabled = abap_true.
<fs_act_usg>-visible = '01'.
ENDIF.
ENDLOOP.
Thanks & Regards,
0
Subscribe to my newsletter
Read articles from Suggu Sandeep directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Suggu Sandeep
Suggu Sandeep
Connect: Let's Discuss https://topmate.io/suggu_sandeep