Adding Custom button on Maintenance View

...Previous

7.     Add one more button.

8.     Now go to the maintenance screen.

9.     Create a module in PAI.

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

11.  Write the below code in the include.

For demo purpose, we would display Hello in pop up window.

*----------------------------------------------------------------------*
***INCLUDE LZSD_CUST_ROFFI01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module SET_PF INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE SET_PF 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. " SET_PF INPUT

12.  Now activate all development including function group. After activating you can see the pushbutton ‘POPUP’.

13.  Click on pushbutton to display popup window.

Please send us your feedback/suggestions at webmaster@SAPTechnical.COM 

HomeContribute About Us Privacy Terms Of Use • Disclaimer • SafeCompanies: Advertise on SAPTechnical.COM | Post JobContact Us  

Graphic Design by Round the Bend Wizards

footer image footer image