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

exec button

Former Member
0 Likes
788

Hi,

I have 4 select options.After entering the data iam presssing the execute button at top left.Iam getting output.In the output screen i want to crete one 'EXEC' button.(I have 4 check boxes in the output.any of them i wll 'check'.After checking i want to execute the report).

How can i create EXEC button in the output screen?

cheers

kaki

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
761

Hi Kaki,

Using Set-pf status 'STAT'.

you can add EXEC button to your report, and handle that in at user command event.

regards

vijay

6 REPLIES 6
Read only

Former Member
0 Likes
762

Hi Kaki,

Using Set-pf status 'STAT'.

you can add EXEC button to your report, and handle that in at user command event.

regards

vijay

Read only

0 Likes
761

you have to create a GUI status and add it to your report after start-of-selection as Vijays suggested

start-of-selection .

<b>set PF-STATUS '<GUI STATUS U CREATED>' .</b>

then within the report

<b>at user-command</b> event you can check for the function code (sy-ucomm) of the button clicked and do appropriate processing.

Regards

Raja

Read only

0 Likes
761

Hi vijay & durairaj,

Iam not able to get the EXEC button.Can you give me any example to get EXEC button or step by step process please..!!! In the selection default iam gettng EXEC button.But in the output iam not able to get.

cheers

kaki

Read only

0 Likes
761

check out the follwoing link for step by step procedure for creating GUI status

http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801d43454211d189710000e8322d00/frameset.htm

Regards

Raja

Read only

0 Likes
761
REPORT TEST.

initialization.
set pf-status 'ABC'. "click on this and try to add "
"execute button and give focde 'EXEC' and icon as
"<b>ICON_EXECUTE_OBJECT</b>

parameters: a type sy-datum.

start-of-selection.
"do collect some data...
at selection-screen.
if sy-ucomm = 'EXEC'.
**do what ever you want here..
endif.

good luck...

regards

vijay

Message was edited by: Vijay Babu Dudla

Read only

0 Likes
761

Thank u vijay and durai,

Points alloted

cheers

kaki