‎2007 Jun 28 2:33 AM
hi,
what's the screen for showing the content of ' write' statement, and i want to add a button on this screen, how ?
thanks
‎2007 Jun 28 2:39 AM
YOu can use the statement
set pf-status:
refer the demo program:
demo_list_menu_painter
YOu have to create a pf-status by double clinking on the name of the pf-status.
Regards,
ravi
‎2007 Jun 28 2:39 AM
YOu can use the statement
set pf-status:
refer the demo program:
demo_list_menu_painter
YOu have to create a pf-status by double clinking on the name of the pf-status.
Regards,
ravi
‎2007 Jun 28 2:45 AM
Hi Zhang,
Please refer this code from help.sap.com
TABLES sscrfields.
TYPE-POOLS icon.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE title,
PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
PUSHBUTTON 12(30) but2 USER-COMMAND cli2
VISIBLE LENGTH 10,
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE sscrfields.
WHEN 'CLI1'.
...
WHEN 'CLI2'.
...
ENDCASE.
START-OF-SELECTION.
title = 'Push button'.
but1 = 'Button 1'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = icon_information
text = 'Button 2'
info = 'My Quickinfo'
IMPORTING
RESULT = but2
EXCEPTIONS
OTHERS = 0.
CALL SELECTION-SCREEN '0500' STARTING AT 10 10.
Reward points if useful.
Regards,
Atish
‎2007 Jun 28 2:46 AM
you can use at pf key command.
while writing use set pf-status '1000'. -> double click on 1000 -> it will take you SE41 Transaction -> here you can keep what ever button you need.
Thanks
Seshu