sy-batch value when debuggin a background process
I have a quick question. I am working with a background job and I have a doubt about the sy-batch value. I know it set to 1 when the process in run in background but if I turn the debuggin on [ via the infinite loop ] then will the sy-batch value change to SPACE ?
In debugging I see its changed to space but I am wondering is it cause I am debuggin in background or is it because Its an update task ?
can you please advise ?
yes...SY-BATCH will be "X" only when in background work process. when in update task it will be processed in UPDATE wok process. So in your case SY-BATCH will be initial.