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

Button on a screen

Former Member
0 Likes
881

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 ?

7 REPLIES 7
Read only

Former Member
0 Likes
856

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

Read only

Former Member
0 Likes
856

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

Read only

Former Member
0 Likes
856

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

Read only

Former Member
0 Likes
856

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

Read only

Former Member
0 Likes
856

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

Read only

Former Member
0 Likes
856

hi,

do this

case sy-ucomm.

when 'ENT'. -


> "user-command of the button

write logic.

endcase.

Regards

Read only

Former Member
0 Likes
856

Hi,

AT USER-COMMAND.

   CASE SY-UCOMM.

    WHEN 'BUTTON'.
    program logic.

   ENDCASE.