BAPI_ORDER_ITEM SAP (Order Item) Structure details

Dictionary Type: Structure
Description: Order Item




ABAP Code to SELECT data from BAPI_ORDER_ITEM
Related tables to BAPI_ORDER_ITEM
Access table BAPI_ORDER_ITEM




Structure field list including key, data, relationships and ABAP select examples

BAPI_ORDER_ITEM is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Order Item" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_BAPI_ORDER_ITEM TYPE BAPI_ORDER_ITEM.

The BAPI_ORDER_ITEM table consists of various fields, each holding specific information or linking keys about Order Item data available in SAP. These include ORDER_ITEM_NUMBER (Order Item Number), SALES_ORDER (Sales order number), SALES_ORDER_ITEM (Sales order item), SCRAP (Scrap quantity in item).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP BAPI_ORDER_ITEM structure fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
ORDER_NUMBEROrder Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
ORDER_ITEM_NUMBEROrder Item Number CO_POSNRNUMC4CO_POSNR
SALES_ORDERSales order number CO_KDAUFCHAR10Assigned to domainALPHAVBELNAUN
SALES_ORDER_ITEMSales order item CO_KDPOSNUMC6Assigned to domainPOSNRAUP
SCRAPScrap quantity in item CO_PSAMGQUAN13(3) MENG13
QUANTITYOrder item quantity CO_PSMNGQUAN13(3) MENG13
DELIVERED_QUANTITYQuantity of goods received for the order item CO_WEMNGQUAN13(3) MENG13
BASE_UNITBase Unit of Measure LAGMEUNIT3Assigned to domainCUNITMEINS
BASE_UNIT_ISOISO code for unit of measurement ISOCD_UNITCHAR3Assigned to domainISOCD_UNIT
MATERIALMaterial Number for Order CO_MATNRCHAR18Assigned to domainMATN1MATNRMAT
ACTUAL_DELIVERY_DATEActual delivery/finish date CO_LTRMIDATS8DATUM
PLANNED_DELIVERY_DATEDelivery date from planned order CO_LTRMPDATS8DATUM
PLAN_PLANTPlanning plant for the order CO_PWERKCHAR4Assigned to domainWERKS
STORAGE_LOCATIONStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
DELIVERY_COMPL'Delivery Completed' Indicator ELIKZCHAR1XFELD
PRODUCTION_VERSIONProduction Version VERIDCHAR4Assigned to domainVERIDVER
PROD_PLANTPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
ORDER_TYPEOrder Type AUFARTCHAR4Assigned to domainAUFARTAAT
FINISH_DATEBasic finish date CO_GLTRPDATS8DATUM
PRODUCTION_FINISH_DATEScheduled finish CO_GLTRSDATS8DATUM
BATCHBatch Number CHARG_DCHAR10Assigned to domainCHARGCHA
DELETION_FLAGDeletion flag AUFLOEKZCHAR1XFELD
MRP_AREAMRP Area BERIDCHAR10Assigned to domainBERIDBERID
MATERIAL_TEXTMaterial description CO_MATXTCHAR40TEXT40
MATERIAL_EXTERNALLong Material Number for MATERIAL Field MGV_MATERIAL_EXTERNALCHAR40MATNR_EXT
MATERIAL_GUIDExternal GUID for MATERIAL Field MGV_MATERIAL_GUIDCHAR32MATNR_EGUID
MATERIAL_VERSIONVersion Number for MATERIAL Field MGV_MATERIAL_VERSIONCHAR10MATNWMATNR_VERS

Key field Non-key field



How do I retrieve data from SAP structure BAPI_ORDER_ITEM using ABAP code?

As BAPI_ORDER_ITEM is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on BAPI_ORDER_ITEM as there is no data to select.

How to access SAP table BAPI_ORDER_ITEM

Within an ECC or HANA version of SAP you can also view further information about BAPI_ORDER_ITEM and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!