‎2007 May 24 9:57 AM
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.
‎2007 May 24 10:07 AM
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
‎2007 May 24 10:05 AM
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
‎2007 May 24 10:05 AM
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
‎2007 May 24 10:07 AM
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
‎2007 May 24 10:08 AM
Hi,
Check the following link:
http://www.sapdevelopment.co.uk/reporting/selscr/buthome.htm
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 May 24 10:12 AM
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