BAPIORDERS SAP (View: Order Items for Material) Structure details
Description: View: Order Items for Material
Structure field list including key, data, relationships and ABAP select examples
BAPIORDERS 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 "View: Order Items for Material" 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_BAPIORDERS TYPE BAPIORDERS.
The BAPIORDERS table consists of various fields, each holding specific information or linking keys about View: Order Items for Material data available in SAP. These include ITM_NUMBER (Item number of the SD document), MATERIAL (Material Number), SHORT_TEXT (Short text for sales order item), DOC_TYPE (Sales Document Type).. 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 BAPIORDERS 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 |
SD_DOC | Sales and Distribution Document Number | VBELN | CHAR | 10 | VBUK | ALPHA | VBELN | AUN | |
ITM_NUMBER | Item number of the SD document | POSNR | NUMC | 6 | VBUP | POSNR | |||
MATERIAL | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
SHORT_TEXT | Short text for sales order item | ARKTX | CHAR | 40 | TEXT40 | ||||
DOC_TYPE | Sales Document Type | AUART | CHAR | 4 | TVAK | AUART | AUART | AAT | |
DOC_DATE | Document Date (Date Received/Sent) | AUDAT | DATS | 8 | DATUM | ||||
REQ_QTY | Cumulative Order Quantity in Sales Units | KWMENG | QUAN | 15(3) | MENG15 | ||||
REQ_DATE | Requested delivery date | WLDAT | DATS | 8 | DATUM | ||||
PURCH_NO | Customer purchase order number | BSTNK | CHAR | 20 | BSTNK | ||||
BATCH | Batch Number | CHARG_D | CHAR | 10 | MCHA | CHARG | CHA | ||
VALID_FROM | Quotation or contract valid from | DATAB_VI | DATS | 8 | DATUM | ||||
VALID_TO | Quotation or contract valid to | DATBI_VI | DATS | 8 | DATUM | ||||
BILL_BLOCK | Billing block in SD document | FAKSK | CHAR | 2 | TVFS | FAKSP | |||
DLV_BLOCK | Delivery block (document header) | LIFSK | CHAR | 2 | TVLS | LIFSP | |||
SOLD_TO | Sold-to party | KUNAG | CHAR | 10 | KNA1 | ALPHA | KUNNR | VAG | |
NAME | Name 1 | NAME1_GP | CHAR | 35 | NAME | ||||
EXCHG_RATE | Directly quoted exchange rate for pricing and statistics | KURSK_P | DEC | 9(5) | PKURS | ||||
DLV_QTY | Actual quantity delivered (in sales units) | LFIMG | QUAN | 13(3) | MENG13 | ||||
BASE_UOM | Base Unit of Measure | MEINS | UNIT | 3 | T006 | CUNIT | MEINS | ||
NET_PRICE | Net price | NETPR | CURR | 11(2) | WERTV6 | ||||
COND_P_UNT | Condition pricing unit | KPEIN | DEC | 5 | KPEIN | ||||
COND_UNIT | Condition unit | KMEIN | UNIT | 3 | T006 | CUNIT | MEINS | ||
NET_VAL_HD | Net Value of the Sales Order in Document Currency | NETWR_AK | CURR | 15(2) | WERTV8 | ||||
NET_VALUE | Net Value in Document Currency | NETWR | CURR | 15(2) | WERTV8 | ||||
DIVISION | Division | SPART | CHAR | 2 | TSPA | SPART | SPA | C_SPART | |
DOC_STATUS | Document status | STATS | CHAR | 20 | TEXT20 | ||||
SALES_GRP | Sales Group | VKGRP | CHAR | 3 | TVKGR | VKGRP | VKG | ||
SALES_OFF | Sales Office | VKBUR | CHAR | 4 | TVBUR | VKBUR | VKB | ||
SALES_ORG | Sales Organization | VKORG | CHAR | 4 | TVKO | VKORG | VKO | C_VKORG | |
SALES_UNIT | Sales unit | VRKME | UNIT | 3 | T006 | CUNIT | MEINS | ||
SHIP_POINT | Shipping Point/Receiving Point | VSTEL | CHAR | 4 | TVST | VSTEL | VST | ||
DISTR_CHAN | Distribution Channel | VTWEG | CHAR | 2 | TVTW | VTWEG | VTW | C_VTWEG | |
GI_DATE | Goods Issue Date | WADAT | DATS | 8 | DATUM | ||||
CURRENCY | SD Document Currency | WAERK | CUKY | 5 | TCURC | WAERS | FWS | ||
PLANT | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
STORE_LOC | Storage Location | LGORT_D | CHAR | 4 | T001L | LGORT | LAG | ||
ORD_REASON | Order reason (reason for the business transaction) | AUGRU | CHAR | 3 | TVAU | AUGRU | |||
REASON_REJ | Reason for rejection of quotations and sales orders | ABGRU | CHAR | 2 | ABGRU | ||||
B_UOM_ISO | Base unit of measure in ISO code | MEINS_ISO | CHAR | 3 | T006I | ISOCD_UNIT | |||
CD_UNT_ISO | Condition unit of measure in UoM | KVMEI_ISO | CHAR | 3 | T006I | ISOCD_UNIT | |||
S_UNIT_ISO | Sales unit in ISO code | VRKME_ISO | CHAR | 3 | T006I | ISOCD_UNIT | |||
CURR_ISO | ISO code currency | WAERS_ISO | CHAR | 3 | ISOCD | ||||
PURCH_NO_C | Customer purchase order number | BSTKD | CHAR | 35 | BSTKD | ||||
EXCHG_RATE_V | Indirectly quoted exchange rate for pricing and statistics | KURSK_V | DEC | 9(5) | PKURS | ||||
MAT_EXT | Long Material Number for MATERIAL Field | MGV_MATERIAL_EXTERNAL | CHAR | 40 | MATNR_EXT | ||||
MAT_GUID | External GUID for MATERIAL Field | MGV_MATERIAL_GUID | CHAR | 32 | MATNR_EGUID | ||||
MAT_VERS | Version Number for MATERIAL Field | MGV_MATERIAL_VERSION | CHAR | 10 | MATNW | MATNR_VERS | |||
CREATION_DATE | Date on Which Record Was Created | ERDAT | DATS | 8 | DATUM | ||||
CREATION_TIME | Entry time | ERZET | TIMS | 6 | UZEIT | ||||
STATUS_DOC | Status of the document | STATUS_VB | CHAR | 1 | STATV |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPIORDERS using ABAP code?
As BAPIORDERS 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 BAPIORDERS as there is no data to select.How to access SAP table BAPIORDERS
Within an ECC or HANA version of SAP you can also view further information about BAPIORDERS and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects