Application Development 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: 

Batch

Former Member
0 Kudos

Hi,

I need to check whether the changes are online or background. For this, iam using sy-batch to check. if sy-batch eq ' ' --> it is online otherwise it is background.

This is working for online changes but sy-batch is not updating when iam using background. In back ground, sy-batch should update as 'X'. Its not happening thus creating a problem..

Can anyone help me whether is there any other procedure to check whether it is online or background????

2 REPLIES 2

Former Member
0 Kudos

SY-BATCH is the correct field. Put a write statement to print out the value of SY-BATCH to see what value it has. I think something else is causing the problem, not this field.

Srinivas

Former Member
0 Kudos

Hi,

U can check as

IF SY-BATCH = 'X'.

some message u ask to display

ENDIF.

Also check for sy-batch in this link

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

Thanks & Regards,

Judith.