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

Sy-batch not getting set in background

vinotha_m
Participant
0 Likes
2,799

Hi Everyone,

There is an output type we are triggering from VT02n in Background where there is some process taht happens when Sy-batch is X.

but here the system variable does not get set.

Could theer be any reason why.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,521

Hi Vinotha,

Sy-batch will always set to 1 when the program is run in background.

How did you find out if the sy-batch was set to 1 or not.

Probably there must be some other check in the program due to which it is not executing the way it should.

Regards,

Sushil Joshi

Hi Everyone,

There is an output type we are triggering from VT02n in Background where there is some process taht happens when Sy-batch is X.

but here the system variable does not get set.

Could theer be any reason why.

5 REPLIES 5
Read only

Former Member
0 Likes
1,522

Hi Vinotha,

Sy-batch will always set to 1 when the program is run in background.

How did you find out if the sy-batch was set to 1 or not.

Probably there must be some other check in the program due to which it is not executing the way it should.

Regards,

Sushil Joshi

Read only

0 Likes
1,521

Hi Sushil,

When i try doing update debugging that is triggered in the background i know that the varaibale is not gettng set..

or even when I run it normally..I know for sure that a diferent check or validation is being done.

Thanks,

Vinotha M

Read only

0 Likes
1,521

HI,

Could it be becasue its not an Sm30 background job..but an update task..

But ideally even then I thought it should be set..

or is there any otehr way to distinguish..between normal tasks and update tasks.

Thanks,

Vinotha M

Edited by: Vinotha M on Jul 9, 2008 3:42 PM

Read only

0 Likes
1,521

use the function module , to determine whether in update task ..or not..

call function 'TH_IN_UPDATE_TASK'

importing

in_update_task = zutask_mode.

case zutask_mode.

when 1.

........

Read only

Former Member
0 Likes
1,521

Hello Vinetha,

Sushil Joshi is corrcet. Check your program.

Thanks,

Greetson