Skip to Content
author's profile photo Former Member
Former Member

Obtaining the jobcount number

Hi,

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?.

regards,

Tiny

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Nov 13, 2003 at 06:20 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded