1. You can get job information by calling function "BP_JOB_READ".
If you pass the value btc_read_jobhead_only defined in LBTCHDEF, it will only return the job header info into the export parameter JOB_READ_JOBHEAD.
The job status is set in JOB_READ_JOBHEAD-STATUS.
2. Alternatively, you can just lookup table TBTCO, the status is in TBTCO-STATUS.
The values in STATUS are defined in LBTCHDEF as follows;
DATA:
BTC_RUNNING LIKE TBTCO-STATUS VALUE 'R',
BTC_READY LIKE TBTCO-STATUS VALUE 'Y',
BTC_SCHEDULED LIKE TBTCO-STATUS VALUE 'P',
BTC_RELEASED LIKE TBTCO-STATUS VALUE 'S',
BTC_ABORTED LIKE TBTCO-STATUS VALUE 'A',
BTC_FINISHED LIKE TBTCO-STATUS VALUE 'F',
BTC_PUT_ACTIVE LIKE TBTCO-STATUS VALUE 'Z',
BTC_UNKNOWN_STATE LIKE TBTCO-STATUS VALUE 'X'.