Showing results for 
Search instead for 
Did you mean: 

Obtaining the jobcount number

Former Member
0 Kudos


I am searching for a method to obtain the jobcount number from with an abap program running in batch mode. Currently my solution scans the tbtco table, but I expect a more direct possibility. Usually the sy-.... variables supply that kind of info, but not in this case. Has anyone a better solution?.



Accepted Solutions (0)

Answers (1)

Answers (1)

Developer Advocate
Developer Advocate
0 Kudos

You might try looking at function module GET_JOB_RUNTIME_INFO.  This allows a program running in batch to get its own Job Info (Job Name, Job Number, Step Count, etc). If you want to get this information from another program you can use the function BP_JOB_SELECT to scan for jobs with different search criterias.