Application Development and Automation 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: 
Read only

Data Transfer to Application server in Background

Former Member
0 Likes
722

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.

5 REPLIES 5
Read only

Former Member
0 Likes
663

in report u have to code as such that print option gets checked based on conditions.

Read only

Former Member
0 Likes
663

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.

Read only

Former Member
0 Likes
663

Hi,

use below logic

if sy-batch = "X'.

if sy-primm is initial.

sy-primm = 'X.'.

endif.

Regards

amole

Read only

Former Member
0 Likes
663

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.

Read only

Clemenss
Active Contributor
0 Likes
663

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