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

Popup to run Program in Background

Former Member
0 Likes
3,116

Hi,

I have a report which when the user clicks the execute button, a popup should display mentioning it to run the program in background mode.

Please let me know how to achieve it.

Regards

Krish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,120

Hi,

use the FM popup_to_confirm and set the importing parameter,

if the user clicks clicks on yes the value of importing parameter will be set to 1, and if its 1 then write code to execute the job in the background...

else.

continue in the foreground

Regards,

Siddarth

10 REPLIES 10
Read only

amit_khare
Active Contributor
0 Likes
2,120

In START-OF-SELECTION call the FM POPUP_* and when user press ok process further and if choose NO then end the program.

Read only

0 Likes
2,120

Hi,

There are lot of functions related to popup. Can you let me know the appropriate one.

Regards

Krish

Read only

Former Member
0 Likes
2,120

Hi there,

if just need a popup which tells user to run that program in background mode

message i<msg class number> with 'Run IN background'.

Read only

0 Likes
2,120

Hi,

Your method seems to be simple. But when to display this message.

How to capture when the user presses the button.

Read only

Former Member
0 Likes
2,121

Hi,

use the FM popup_to_confirm and set the importing parameter,

if the user clicks clicks on yes the value of importing parameter will be set to 1, and if its 1 then write code to execute the job in the background...

else.

continue in the foreground

Regards,

Siddarth

Read only

0 Likes
2,120

Siddarth,

Can you let me know the code which will run the program in batch,.

Read only

0 Likes
2,120

check the code here

Search the forums before posting ur question

кu03B1ятu03B9к

Read only

0 Likes
2,120

Hi,

First use open_job,

close_job

and then to schedule the job,

use this fm

BP_JOBVARIANT_SCHEDULE

Regards,

Siddarth

Read only

0 Likes
2,120

hi,

at first you are right there are really LOTS of ways to make that popup thing. Which one you take or if you do it manually, doesn play any role, as long as it works.

But well BEFORE throwing that popup on your screen you should check whether the program is already run in background, cause you do NOT want to throw a popup when beeing in background task.

Read only

Former Member
0 Likes
2,120

Hi krish,

Use FM:POPUP_TO_CONFIRM function module,it will have three button yes,no,cancel, you can change yes, no to ur requirement i.e run in back ground,run in foreground, in abap code u have to write code according to ur requirement.

Regards

Arani Bhaskar