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

Batch foreground processing is ok but

Former Member
0 Likes
519

Hi,

i have a batch program in isu module, batch using eg32 trans.

And have problem in this batch program.

The problem is that program is running in foreground ok, without any problem and does what it is expexted.

However when it is run in background it process and consumes time but do not do the necessary job.

And again when i tried to run the program in foreground with the same items of the one run at background, it does what is expected.

I did not understand this issue?

What could be the problem, why running in foreground and not running in background?

Thanks for your valueable helps.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
472

In background, how are you providing the selection screen input values?

3 REPLIES 3
Read only

Former Member
0 Likes
473

In background, how are you providing the selection screen input values?

Read only

former_member203501
Active Contributor
0 Likes
472

Hi ,

there are two things to do i hope, first one is you can debug the back ground job using the command JDBG .

second one is you can place messages in the back ground using sy-batch and check the program status in the job.

if sy-batch = 'X'.

message s000 with 'Records extraction started from the table '', v_table.

endif.

select.........

if sy-batch = 'X'.

message s000 with 'the number of records extracted is '', v_tabix.

endif.

Read only

Subhankar
Active Contributor
0 Likes
472

Hi,

This may happend for many reason. Here I'm giving a few which may help you.

1. If your program uploading/ downloading files from Application server then check you have the read authorization. Then you can check this program with other user id.

2. If you are working with doing some BDC or call transaction then screen may comes if different way. Then you need to do recordingly.

3. Ther may some function module which is working in differentway for background.

If all the above are not a problem then you can parallely run the same program in two session, in one session make SY_BATCH as X. Thenm you can check difference.

Thanks

Subhankar