You are on page 1of 2

User and System Statuses in

Sales Orders
created by Navaneetha Krishnan on Jan 4, 2013 11:29 AM, last modified by
Krishnan on Jan 4, 2013 11:33 AM

Navaneetha

Version 1
inShare

PROCESS
Sales transactions are the most omnipresent transactions happening everywhere at any point of time
earning revenue for the organisation. To streamline and prevent the undesirable chain of intractable
transactions they need to be aligned in proper sequence with judicial controls. One such tool which
helps to achieve this objective is the statuses used in the sales transaction at header or item levels.
Order header and item statuses I refer here differ from the normal completion status we are used to.
These statuses are classified into system status and user status. While the system status
automatically controls the sequence of transactions and comes packaged in SAP, the user statuses are
customizable to the business requirement. These statuses are sequenced and tagged to either the
execution or prevention of various transactions. This bunch of controls is encapsulated inside a status
profile. Finally the status profile is linked either to the document type or item category.
Though it is efficient and effective to manage the process through status profiles, it is not possible to
extract reports based on the status of the sales orders or their items. This is due to lack of knowledge
on the database tables behind the process and also limited usage of this functionality in a stand alone
sales scenario.
This document tries to break this myth and helps to create a simple quick view query to know the
status of sales orders or to find the orders of a specific status.

TECHNICAL INFORMATION
The repository of information related to statuses is controlled mainly by the field object
number which is updated in every transaction in each possible level. For example this field
called object number is available in VBAK for the sales order header and VBAP for the items of the
sales order. The field OBJNR in VBAK and VBAP is the key field used to further mine the details of
the user and system status.
If the sales order header or item or both are enabled with a status profile, then the VBAKOBJNR and VBAP-OBJNR will be updated with an automatically generated object number. The value
of this field will be used in all further searches to get the desired status of the orders.
The next important table is the table JEST. This table also contains the field OBJNR and thus links
either VBAK or VBAP with JEST. For the given object number, the table JEST will give the present user
status and system status. The status codes are presented in the field JEST- STAT. The user statuses
always start with E and the system status starts with I. The status codes used in this table will need to
be used to further extract the correct status as the user sees. The status codes shown in JEST are only
the technical names of the statuses created.
There is also another table called JCDS which also contains the field OBJNR and this table will give the
list of status changes the document had gone through. It should be remembered that it is easy to
approach this table instead of CDHDR or CDPOS for any status related change documents.
The table JEST has the system and the user status of the document in technical terms. To know the
correct description for them, two different tables should be used.

If the user status and its description need to be found out, the table TJ30T should be made use of. This
table has got the status profile and the status codes. The status profile is indicated in the
field TJ30T- STSMA and the status code is represented by the field TJ30T- ESTAT. As the combination
of status profile and the status code are unique keys, both the values need to be provided to get the
actual status. As we already know, the status profile is either configured in the sales document type in
table TVAK or at the item category level in the tableTVAP. By giving the status profile in the
field TJ30T-STSMA and the status in TJ30T-ESTAT the field TJ30T- TXT04 represents the correct user
status and TJ30T- TXT30 indicates the description of the status.
If the system status has to be found out, the status codes from JEST-STAT starting with I should be
provided as an input in the table TJ02T- ISTAT along with the language key as EN for example in the
field SPRAS. The resultant TJ02T- TXT04 and TJ02T- TXT30 gives the status and its description
respectively.

You might also like