Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Push buttons

Former Member
0 Likes
999

Hi all,

Can anyone tell me how to create a push button in a report program.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
935

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

7 REPLIES 7
Read only

Former Member
0 Likes
935

Where you want the push buttons..??

Note: use meaningful subject for your future questions

Read only

Former Member
0 Likes
935

Hi,

Please read the F1 help for SELECTION-SCREEN. Creation of SELECTION-SCREEN PUSHBUTTON is clearly mentioned there.

Thanks,

Renjith

Read only

Former Member
0 Likes
935

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

Read only

Former Member
0 Likes
935

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

Read only

Former Member
0 Likes
935

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.

Read only

former_member556412
Active Participant
0 Likes
935

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

Read only

Former Member
0 Likes
936

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