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

creating push button on Selection screen application toolbar

Former Member
0 Likes
1,357

Hi Friends,

this is a HR-ABAP report. I have to create a push button on Selection screen. when user clicks on that push button 'MODAL DIALOG BOX' has to be displayed containing some data.

plz kindly give some sample code to do this.

Regards,

Radhika Dasharatha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
918

Hi,

1)Use SELECTION-SCREEN PUSHBUTTON /10(20) PUSH USER-

COMMAND 'ABC'. in selection screen.

2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.

3) At selection screen.

if sy-ucomm eq 'ABC'.

call FM HR_BE_GE_MODAL_DIALOG

endif.

Thanks

Sandeep

Reward if useful

5 REPLIES 5
Read only

rahulkavuri
Active Contributor
0 Likes
918

1) create a gui status using Se51 and assign Function code

2) now in application toolbar create a button

Now in the AT USER-COMMAND event you can insert the code to popup a dialog box

Read only

Former Member
0 Likes
918

Hi

Check this link

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/content.htm">Pushbuttons in the Application Toolbar</a>

Regards

Raj

Read only

Former Member
0 Likes
919

Hi,

1)Use SELECTION-SCREEN PUSHBUTTON /10(20) PUSH USER-

COMMAND 'ABC'. in selection screen.

2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.

3) At selection screen.

if sy-ucomm eq 'ABC'.

call FM HR_BE_GE_MODAL_DIALOG

endif.

Thanks

Sandeep

Reward if useful

Read only

Former Member
0 Likes
918

Hi,

Check the following link:

http://www.sapdevelopment.co.uk/reporting/selscr/buthome.htm

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
918

Hi

TABLES: SSCRFIELDS.

SELECTION-SCREEN: FUNCTION KEY 1.

INITIALIZATION.

SSCRFIELDS-FUNCTXT_01 = 'MY BUTTOM'.

AT SELECTION-SCREEN.

   CASE SSCRFIELDS-UCOMM.
     WHEN 'FC01'. " Do something
   ENDCASE.

Max