SM30: Add custom button on maintenance view:

SM30: Add custom button on maintenance view_vim

Step by step:


Create DB table: ZLM_TEST_MT


Create maintenance view

SM30: Add custom button on maintenance view_vim_02

SM30: Add custom button on maintenance view_vim_03

Add event:

SM30: Add custom button on maintenance view_vim_04

SM30: Add custom button on maintenance view_vim_05

Form routine name must be SAPL + function group name.

SM30: Add custom button on maintenance view_vim_06

Before press editor you’d better go to sm30 to check status:

SM30: Add custom button on maintenance view_vim_07

SM30: Add custom button on maintenance view_vim_08

Then press editor


Choose status and input EULG. Press copy user interface;

SM30: Add custom button on maintenance view_vim_09


Form program SAPLSVIM (you can check function group SVIM)

SM30: Add custom button on maintenance view_vim_10

SM30: Add custom button on maintenance view_vim_11

After copy EULG. Change -> add custom button

SM30: Add custom button on maintenance view_vim_12

SM30: Add custom button on maintenance view_vim_13

Save and active.


Modify maintenance screen


(you can also go to SE80 to change it)

SM30: Add custom button on maintenance view_vim_14

Double click on the module name and create the include program as shown in below screen shot..

SM30: Add custom button on maintenance view_vim_15

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

SM30: Add custom button on maintenance view_vim_16

SM30: Add custom button on maintenance view_vim_17