Application Development 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: 

Popup to run Program in Background

Former Member
0 Kudos

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

Former Member
0 Kudos

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

amit_khare
Active Contributor
0 Kudos

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

0 Kudos

Hi,

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

Regards

Krish

Former Member
0 Kudos

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'.

0 Kudos

Hi,

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

How to capture when the user presses the button.

Former Member
0 Kudos

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

0 Kudos

Siddarth,

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

0 Kudos

check the code here

Search the forums before posting ur question

кu03B1ятu03B9к

0 Kudos

Hi,

First use open_job,

close_job

and then to schedule the job,

use this fm

BP_JOBVARIANT_SCHEDULE

Regards,

Siddarth

0 Kudos

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.

Former Member
0 Kudos

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