‎2009 Jun 30 6:32 AM
Hi all,
Can anyone tell me how to create a push button in a report program.
Thanks.
‎2009 Jun 30 6:42 AM
See F1 help for SELECTION-SCREEN PUSHBUTTON if you want it in a selection screen.
Give a more meaningful subject line in future. Also explain your problem/requirement clearly.
Regards
Karthik D
‎2009 Jun 30 6:36 AM
Where you want the push buttons..??
Note: use meaningful subject for your future questions
‎2009 Jun 30 6:38 AM
Hi,
Please read the F1 help for SELECTION-SCREEN. Creation of SELECTION-SCREEN PUSHBUTTON is clearly mentioned there.
Thanks,
Renjith
‎2009 Jun 30 6:39 AM
Hi ,
The syntax is like -
SELECTION-SCREEN BEGIN OF LINE.
PUSHBUTTON 5(4) pb1 USER-COMMAND uc1.
END OF LINE .Note in the above syntax pb1 is the push button name and uc1 is the user-command means when
this push button is selected the ucomm field will hold the value 'UC1'.
Check this code - -
SELECTION-SCREEN
BEGIN OF BLOCK b WITH FRAME TITLE text-001.
selection-screen begin of line .
PARAMETERS p_op(32) type c." Parameter
selection-screen end of line .
selection-screen : BEGIN OF LINE ,
PUSHBUTTON 5(4) pb1 USER-COMMAND uc1 , " Push button
PUSHBUTTON 10(4) pb2 USER-COMMAND uc2 , " Push button
PUSHBUTTON 15(4) pb3 USER-COMMAND uc3 , " Push button
END OF LINE .Regards
Pinaki
‎2009 Jun 30 6:39 AM
hi
Using module programming you can do it.
and in Program you can doit on this command.
SELECTION-SCREEN PUSHBUTTON 58(10) text-001 USER-COMMAND usm.
Thanks
‎2009 Jun 30 6:39 AM
Hi Sasikala,
Do you want the Push Button on your selection screen or on the Tool Bar?
1) Push button on selection screen :
Define a selection screen element in the following manner,
SELECTION-SCREEN: PUSHBUTTON 33(15) p_cls_bt USER-COMMAND mat_cls.
Then to handle this Pushbutton write the following code,
AT SELECTION-SCREEN.
CASE sy-ucomm .
WHEN 'MAT_CLS'.
-
-
(write the logic for your Push button processing)
2) Pushbutton on Tool Bar:
For this u need to call SET PF STATUS and then set the Button on tool bar.
‎2009 Jun 30 6:39 AM
Hi,
Do you want to create a push button in selection screen?
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm
Regards,
Bhanu
Edited by: nanduri bhanu on Jun 30, 2009 7:40 AM
‎2009 Jun 30 6:42 AM
See F1 help for SELECTION-SCREEN PUSHBUTTON if you want it in a selection screen.
Give a more meaningful subject line in future. Also explain your problem/requirement clearly.
Regards
Karthik D