Skip to Content
avatar image
Former Member

Check batch job status from within ABAP program

Hi!

My program creates and runs (by using RSBDCSUB) a batch input job. Before countinuing the program execution, I would like to <b>check the status of the batch job</b> to see if it has finished processing. Is there any way of doing this?

- Mari Virik

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 11, 2007 at 01:37 PM

    Hi!

    I have the <b>session name</b> for the batch input i created, e.g. Z_MY_BATCH. Is this the same as the <b>JOBNAME</b> in BP_JOB_STATUS_GET? How do I obtain the <b>JOBCOUNT</b>?

    - Mari

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi again,

      1. We can query the table APQI.

      (Input the session name in the field GROUPID)

      2. and get the field QSTATE

      regards,

      amit m.

  • avatar image
    Former Member
    Apr 11, 2007 at 01:30 PM

    Hi mari,

    1. This FM can be useful

    BP_JOB_STATUS_GET

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2007 at 01:32 PM

    Hi,

    BDL_READ_JOB_STATUS

    give job name and job number u will get status

    Job status

    R - Running

    Y - Ready

    P - Scheduled

    S - Released

    A - Aborted

    F - finished

    Z - put_active

    X - unknown state

    Message was edited by:

    Alexander

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2007 at 02:06 PM

    Hi again,

    Do you have the values and descriptions for the possible entries of APQI-QSTATE?

    E.g.

    E = ?

    F = ?

    ...

    - Mari

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2011 at 04:21 PM

    Hi Mari,

    I understand this thread was answered.

    And I need you to help with the answer about you last reply on this question, i.e. The descriptions of possible entries for field APQI - QSTATE.

    Thank you in advance.

    Kind Regards;

    Rebaone

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Mari,

      I managed to get the answer.

      The values in APQI-QSTATE mean the following;

      space - To be processed

      C - Creating

      E - Incorrect

      F - Processed

      R - Processing

      S - Batch

      Thank you.

      Rebaone