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

reports

Former Member
0 Likes
258

can i create a push button on a selection screen in a report? if yes, how?

2 REPLIES 2
Read only

Former Member
0 Likes
236

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

Read only

Former Member
0 Likes
236

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