09-05-2014 7:25 PM
Hi,
My program has selection screen. This program should be able to execute in foreground and background manually. When every time execute it in background, the background print parameter screen always pop up to ask you fill in the "Output Device" and need to click the green check etc. My client would like to skip this screen, since output from background will be a file in the server. Can anyone know how to program in order to turn it off?
Thanks,
Meiying
09-05-2014 8:52 PM
Hi,
I am not sure if that can be prevented.
An alternate solution is that you could create a wrapper program with the same selection screen plus a radio button to execute in foreground or background.
And then based on the radio button you could either submit your main program or you could schedule it in background using JOB_OPEN etc function modules.
Regards,
Ankur Parab
09-05-2014 8:45 PM
Firstly you have to identify where in your code, the print dialog is being called, if is being called by function module GET_PRINT_PARAMETERS then you can pass 'X' to import parameter NO_DIALOG.
If it is a smartform the NO_DIALOG option is in the parameter 'control_parameters'.
Regards,
Felipe
09-05-2014 8:59 PM
Hi ,
I think in start-of- selection chech if sy-batch = 'X' .
and thre you can add this code .
09-05-2014 8:51 PM
09-05-2014 8:52 PM
Hi,
I am not sure if that can be prevented.
An alternate solution is that you could create a wrapper program with the same selection screen plus a radio button to execute in foreground or background.
And then based on the radio button you could either submit your main program or you could schedule it in background using JOB_OPEN etc function modules.
Regards,
Ankur Parab
09-05-2014 9:07 PM
Thanks Ankur,
I also did a lot of trying include yours. I think this might be the only way to do it.
Meiying