‎2007 Jun 27 7:27 AM
can i create a push button on a selection screen in a report? if yes, how?
‎2007 Jun 27 7:30 AM
Hi Nayan,
Yes we can.
Refer this 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 27 7:31 AM
Hi
Yes, You can create
create using it SET PF-STATUS 'AAA'
double click on the AAA
and define your own menu, application tool bar
keep a button on application tool bar and define text and function code for it and use the same fun code (sy-ucomm) in the code
Reward points for useful Answers
Regards
Anji