cancel
Showing results for 
Search instead for 
Did you mean: 

Sy-Batch is not setting in Background Job

RaviSee
Explorer
0 Kudos
246

Hello,

I have created a background job for VL10A (Program: RVV50R10C) using SM36 and I found an issue in the debugging that SY-BATCH is not setting as 'X', am i missing something?

Ryan-Crosby
Active Contributor
0 Kudos
What steps did you take to invoke the debugger?
Ryan-Crosby
Active Contributor
0 Kudos
A simple test would confirm if the indicator is not set. IF sy-batch IS INITIAL. Some message. You could confirm if you are actually experiencing a case where it's not set, but I'm skeptical because I have never once experienced that.
Sandra_Rossi
Active Contributor
0 Kudos
At the very beginning of the job, sy-batch is always 'X' (if not, contact SAP support). The ABAP code may change it but it's highly discouraged (NEVER DO THAT). Add a Watchpoint to stop at the ABAP line of code where its value is changed.

Accepted Solutions (0)

Answers (2)

Answers (2)

RaviSee
Explorer
0 Kudos

Hello Ryan-Crosby,

I have tested it, and it is not setting sy-batch as 'X'.

RaviSee
Explorer
0 Kudos

Hello Ryan-Crosby,

I have created an infinite loop and debugged using SM50.

Sandra_Rossi
Active Contributor
0 Kudos
Please don't post an answer for comments, additional details. Answer is reserved to propose a solution. Instead, use Replies > Comment (on the question or on a proposed answer).