‎2009 Feb 17 10:26 AM
Hello,
I have a program, named Z_WTF_BEPALING.
I put a button on a screen.
I want to start the program if I click on this button.
How can I do that ?
‎2009 Feb 17 10:34 AM
hi,
display a button on the screen and write all the code of the program in the case statement.
parameter pushbutton ....
case sy-ucomm.
when 'ENT'. ----> "user-command of the button
write the program.
endcase.regards
sarves
‎2009 Feb 17 10:36 AM
Hi Akin,
First you create a transaction code for the program you have writtten.
Then you can pass this transaction code in the function code of the screen. When you press the button it directly executes the program.
I hope that i have answered your query.
Kindly let me know if you have any clarifications.
Abdur
‎2009 Feb 17 10:38 AM
Hi,
For this, you need to create a dialog program(SE80) with a single screen, On the screen create a button,
In the PAI of the screen,
case sy-ucomm.
when 'BUTTON',
call your report transaction
endcase.
Regardss
Shiva
‎2009 Feb 17 10:40 AM
Hi,
You can start the program on click on button .if you create the button on the screen on first display.
and on click on tht you can call screen and can process your program.
Like.
case sy-ucomm. " check the f-code of button
when 'BUTTON f-code'. ----> "user-command of the button
"you can call screen like
*call screen '9001'.*
"or
start to execute the functionalites of your code .
endcase
Hopw it will help you.
Thanks
Arun
‎2009 Feb 17 10:57 AM
Hi,
This can be done using user command event..
just do like this in u r program...
at user-command.
case sy-ucomm.
when 'BUTTON'.
perform startprogram.
endcase.
Regards
Kiran
‎2009 Feb 17 11:25 AM
hi,
do this
case sy-ucomm.
when 'ENT'. -
> "user-command of the button
write logic.
endcase.
Regards
‎2009 Feb 17 11:28 AM
Hi,
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'BUTTON'.
program logic.
ENDCASE.