‎2006 Dec 04 1:54 PM
Hi,
I tried running a report in background.If I choose "print immediately" option, the required file is written to the application server.But on scheduling the date and time of the job(the print immediate option is not checked), the file is not written to the server.
Please let me know what could be the problem and how to solve it.
Thanks and Regards,
Chaarulatha.
‎2006 Dec 04 2:02 PM
in report u have to code as such that print option gets checked based on conditions.
‎2006 Dec 04 2:03 PM
Hi Chaarulatha,
Instead of checking for 'print Immdiately' you can check whether the program is executed in background... If it is execting in background (sy-batch = 'X') write the data to the application server.
Regards,
Satya.
‎2006 Dec 04 2:12 PM
Hi,
use below logic
if sy-batch = "X'.
if sy-primm is initial.
sy-primm = 'X.'.
endif.
Regards
amole
‎2006 Dec 04 2:26 PM
Hi,
After selecting the variant ,I go to Menu ->Programs where I select Execute In Background and give the date and time over there.
When I execute like this, I am not getting the output file in AL11.When I checked in SM37 it shows the file is generated successfully.
I don't know what would have been the problem in writing the file in Application server.
Kindly suggest.
Regards
Chaarulatha.
‎2006 Dec 04 2:38 PM
Hi don't understand the question:
"print immediately" just means that a print order is created for the spool list created.
This is completelöy independent of the writing of a file. Files are written using open dataset and transfer statements.
Is it this what you want?
Regards,
Clemens