i have a non standard transaction that call another two non standard transactions.
i want to run them in background job. so i added to them sy-batch = 'X'.
Before that i used to get the report as an ALV, but when i added the sy-batch i got it as list.
is it enough to just add sy-batch = 'X' in order to run the job in background, and how do i see the results?
do i see it aurtomatically on the screen or in SM37?
also in one of them i put the sy-batch = 'X' in the initialization, and i want it to skeep the selection screen, is it possible?
First of all - you cannot run a transaction that is a modul-pool in background.
Only Reports (started via SA38 or SE38) can be started in background.
If your submitted program is a report you can act as follows:
In your "caller" program you can use then command:
SUBMIT zxyz USER user VIA JOB job NUMBER n
(See online help for that)
Then your Report is beeing executed in Background.
The SY-BATHC is setted by the system. Ther's no use of setting it by yourself in your report.
The Repsults of your,in background executed, report are beeing printed to the device you an define during the JOB-Ceration (see Help for SUBMIT).
Some points would be fine if that helped a bit