03-11-2009 12:11 PM
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
03-11-2009 12:18 PM
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
03-11-2009 12:13 PM
In START-OF-SELECTION call the FM POPUP_* and when user press ok process further and if choose NO then end the program.
03-11-2009 12:20 PM
Hi,
There are lot of functions related to popup. Can you let me know the appropriate one.
Regards
Krish
03-11-2009 12:14 PM
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'.
03-11-2009 12:22 PM
Hi,
Your method seems to be simple. But when to display this message.
How to capture when the user presses the button.
03-11-2009 12:18 PM
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
03-11-2009 12:25 PM
Siddarth,
Can you let me know the code which will run the program in batch,.
03-11-2009 12:29 PM
03-11-2009 12:31 PM
Hi,
First use open_job,
close_job
and then to schedule the job,
use this fm
BP_JOBVARIANT_SCHEDULE
Regards,
Siddarth
03-11-2009 12:38 PM
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.
03-11-2009 2:04 PM
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