SM30: Add custom button on maintenance view:
Step by step:
Create DB table: ZLM_TEST_MT
Create maintenance view
Add event:
Form routine name must be SAPL + function group name.
Before press editor you’d better go to sm30 to check status:
Then press editor
Choose status and input EULG. Press copy user interface;
Form program SAPLSVIM (you can check function group SVIM)
After copy EULG. Change -> add custom button
Save and active.
Modify maintenance screen
(you can also go to SE80 to change it)
Double click on the module name and create the include program as shown in below screen shot.
.
Write the below code in the include :
MODULE MOD_SET_STATUS INPUT.
DATA COUNT_ER TYPE I.
CASE FUNCTION.
WHEN 'POP'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
TITEL = 'Information'
TXT1 = 'HELLOOOOOOOOOO............'
TXT2 = COUNT_ER.
ENDCASE.
ENDMODULE.
SM30
Press pop show: