Menu painter is used to create custom GUI with custom buttons, custom toolbar and custom menu for a specific ABAP program.
The t-code for menu painter is SE41, we can create menu using
SET PF-STATUS keyword from ABAP program .
Syntax: SET PF-STATUS '
Create a custom GUI for a SAP ABAP program
Create an ABAP program ZSAPN_MENU_PAINTER in SE38.
Add the below code and double click on menu name to create menu.
SET PF-STATUS 'ZSAPN_MENU'. " Double click on ZSAPN_MENU to create
Click on Yes and provide short description, enter.