Get SAP Process Order Status

How to?Get SAP Process Order Status ? This post will explain how to retrieve SAP PO user Status including SAP Tables for Status and BAPIs to read SAP PO Status the easiest way.?

SAP Process Order System Status?Values

Let first starts with the different Status the SAP Process Order can have. ( the whole list check the section SAP PO Status table bellowing)

Here a short list of?Status in Process Orders in SAP,

STAT TEXT04 Description
I0001 CRTD Created
I0004 MSPT Material shortage
I0016 PRC Pre-costed
I0028 SETC Settlement rule created
I0055 RELR Release rejected
I0115 CSER Error in cost calculation
I0118 NTUP Dates are not updated
I0215 SSAP Object created
I0340 MACM Material committed
I0361 NEWQ New quantity calculation
I0369 BCRQ Order to be handled in batches
I0383 BNAS Batch not assigned
I0420 MANC Mat.availability not checked

For the whole list of Process Order Status in SAP, check this System Status in Process Orders .

SAP Process Order Status Tables

The main SAP Table for Status is JEST.
For SAP Process Order, the link to SAP JEST Status table is the Object Number (OBJNR).
Check bellowing how to calculate the PO Object Number.
A sample join to retrieve all SAP Process Order Status can be AUFK-OBJNR = JEST-OBJNR.
The Status field is JEST-STAT.

The Descriptions of Status are language-dependent and stored in SAP Table TJ02T.
The join between JEST and TJ02T can be TJ02T-ISTAT = JEST-STAT
The Full Status descripntion is TJ02T-TXT30 and the short Status Text is TJ02T-TXT04.

SAP Process Order Status BAPI

Read SAP PO Status with BAPI STATUS_READ

The Standard BAPI STATUS_READ can retrieve any SAP Transaction Status. It reads Status from JEST table.

The input should the OBJNR of SAP PO.
For SAP Process Order, the Object Number (OBJNR) is the concatenation of ‘OR’ with the SAP PO number (AUFNR).
An alternative way to find the SAP PO Object Number is to query the AUFK table with AFKO-AUFNR = AUFK-AUFNR.

Here an ABAP sample code to read SAP PO Status using the STATUS_READ.