Each time Delivery is created or processed, the Order Delivery Status is updated at Item level.
You will find in this article an overview of Delivery status then a deep technical dive into sales document delivery status with list of important tables and BAPI to retrieve these status for both header and Items .
Table of Contents
If you want to get the big picture of SAP Order ABAP development check this book: ABAP Development for Sales and Distribution in SAP: Exits, BAdIs, and Enhancements
SAP Order Delivery Status can be checked in VA02/03 transaction.
For header, it can be found in Status Tap and should be will the following:
It is the same for Items level. Under the Status tap, check for Delivery Status
The main tables for Order Delivery Status are:
The keys for these tables are VBELN for Header and VBELN/POSNR for Items .
These tables save not only Delivery Status but also ( among others )
LFSTK ( Delivery Status ) is the header Delivery status of sales document. It indicated if all the items in this document are Delivered, partially delivered or not delivered.
Meanwhile, LFGSK ( Overall delivery status ) represents the Delivery status of only items which should be delivered
The Delivery Status can have the following values:
Delivery Status | Description |
---|---|
Not Relevant for delivery | |
A | Not delivered |
B | Partially delivered |
C | Fully delivered |
you can add a custom Delivery Status.
Actually, the list of values is piloted by the table TVBST (SD Documents: Processing Status: Texts).
The key for Delivery Status is:
You can manage this value or change the texts associated to a status on the maintain view V_TVBST.
The standard BAPI BAPI_SALESORDER_GETSTATUS (Sales Order: Display Status) retrieves the item’s status of SAP SD Orders. The header Status can be calculated from the items Delivery status
The SD ( Sales and Distribution ) Document Number is the input.
The result of the BAPI gives more information on Item line and Status of Items.
It contains for example:
SAP ISU Tables for Technical master data, for Billing Master Data, Billing and invoicing Tables?…
SAP Fiori 3 UX and Design of SAP Fiori Apps for SAP S/4HANA, SAP TechEd…
Dunning is the business practice of informing a customer of past due payment. Dunning letters…
SAP AP Tcodes & SAP AR Tcodes: House Banks Tcodes, Advance Payments or Down Payments,…
What are the main SAP Payment Terms Tables ? What are the related Tables in…
Work center consists of master data related to routing of products. It contains data related…