SAP MDG: How to hide New Button of Address Section

Suggu SandeepSuggu Sandeep
1 min read

Table of contents


  1. Go to Component Config. of Address Section & Collect the Feeder Class of it.

    CL_BS_BP_GUIBB_ADDRESSES

  2. Create Enhancement, In Enhancement Create Post Exit

    If not aware of Enhancement & Post Exit, check the link

  3. 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,

Suggu Sandeep.

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