SAP MDG: How to hide New Button of Address Section

Table of contents

No heading

No headings in the article.


  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.