BAPI_SHP_MATERIAL SAP (Material in Shipment) Structure details
Description: Material in Shipment
Related tables to BAPI_SHP_MATERIAL
Access table BAPI_SHP_MATERIAL
Structure field list including key, data, relationships and ABAP select examples
BAPI_SHP_MATERIAL 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 "Material in Shipment" 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_SHP_MATERIAL TYPE BAPI_SHP_MATERIAL.
The BAPI_SHP_MATERIAL table consists of various fields, each holding specific information or linking keys about Material in Shipment data available in SAP. These include MAT_ITM (TD material item sequence number), MATNR (Material loaded), WERKS (Plant), STLTY (BOM category).. 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: Cannot Be Enhanced
SAP BAPI_SHP_MATERIAL 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 |
SHNUMBER | TD shipment number | OIG_SHNUM | CHAR | 10 | Assigned to domain | ALPHA | OIG_SHNUM | OIS | |
MAT_ITM | TD material item sequence number | OIG_MATITM | NUMC | 3 | BUZEI | ||||
MATNR | Material loaded | OIG_MATNR | CHAR | 18 | Assigned to domain | MATN1 | MATNR | ||
WERKS | Plant | WERKS_D | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W_C | |
STLTY | BOM category | STLTY | CHAR | 1 | STLTY | ||||
STLNR | Bill of material | STNUM | CHAR | 8 | NUMCV | STNUM | STLNR | ||
LGORT | Storage Location | LGORT_D | CHAR | 4 | Assigned to domain | LGORT | LAG | ||
CHARG | Batch Number | CHARG_D | CHAR | 10 | Assigned to domain | CHARG | CHA | ||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
TRANSF | TD transfer stock indicator | OIG_TRANSF | CHAR | 1 | XFELD | ||||
LABST | Char 15 | CHAR15 | CHAR | 15 | CHAR15 | ||||
GLQTY | Character Field of Length 23 | CHAR23 | CHAR | 23 | CHAR23 | ||||
XBLNR | Reference Document Number | XBLNR | CHAR | 16 | XBLNR | ||||
QTY_ITM | TD quantity item number of a shipment/transport | OIG_QTYITM | NUMC | 5 | OIG_POSN5 | ||||
HPM_ITM | Sequence number for HPM segments | OIG_HPMITM | NUMC | 5 | OIG_POSN5 | ||||
XLONG | Negative stocks allowed in storage location | XLONG | CHAR | 1 | XFELD | ||||
XMCNG | Negative stocks allowed in plant | XMCNG | CHAR | 1 | XFELD | ||||
MAKTX | Material Description (Short Text) | MAKTX | CHAR | 40 | TEXT40 | ||||
BOMMT | BOM text | CSTEXT | CHAR | 40 | TEXT40 | ||||
ITSTDE | Description | OIG_DESC40 | CHAR | 40 | TEXT40 | ||||
BTCHDES | Batch description | OIG_BTCDES | CHAR | 20 | TEXT20 | ||||
OIHANTYP | Excise Duty Handling Type | OIH_HANTYP | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPLT | TD:handling type, bulk shipment load (taxed) | OIG_HTLT | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPLU | TD: handling type, bulk shipment load (untaxed) | OIG_HTLU | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPGN | TD handling type bulk shipment gain | OIG_HTGN | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPLS | TD handling type bulk shipment loss | OIG_HTLS | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPRT | TD handling type, bulk shipment return (taxed) | OIG_HTRT | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
HANTYPRU | TD handling type: bulk shipment return (untaxed) | OIG_HTRU | CHAR | 2 | Assigned to domain | OIH_HANTYP | |||
N_SLC | TD Fixed in-transit store locations per shipment | OIG_N_SLC | CHAR | 1 | OIG_N_SLC | ||||
N_BWTAR | TD Multiple valuation types on shipment | OIG_NBWTAR | CHAR | 1 | CHAR1_X | ||||
BWTAR1 | Valuation Type | BWTAR_D | CHAR | 10 | Assigned to domain | BWTAR | BWT | ||
KOSTL | Cost Center | KOSTL | CHAR | 10 | Assigned to domain | ALPHA | KOSTL | KOS | |
XCHPF | Batch management requirement indicator | XCHPF | CHAR | 1 | XFELD | ||||
XCHAR | Batch management indicator (internal) | XCHAR | CHAR | 1 | XFELD | ||||
BWTTY | Valuation Category | BWTTY_D | CHAR | 1 | Assigned to domain | BWTTY | |||
MEINS | 3-Byte field | CHAR3 | CHAR | 3 | CHAR3 | ||||
OIGROUPNAM | TD product group | OIG_PCG | CHAR | 8 | Assigned to domain | ALPHA | OIG_PCG | OI7 | |
OITAXGRP | Excise Duty Group | OIH_TAXGRP | CHAR | 2 | Assigned to domain | OIH_TAXGRP | |||
CMETH | Quantity Conversion Method | OIB_CMETH | CHAR | 1 | OIB_CMETH | ||||
UOMGR | Unit of Mearsure Group (Oil, Natural Gas,...) | OIB_UOMGR | CHAR | 3 | Assigned to domain | OIB_UOMGR | |||
UMRSL | Conversion Group (Oil, Natural Gas,..) | OIB_UMRSL | CHAR | 4 | Assigned to domain | OIB_UMRSL | |||
UNALL_QTY | Character Field of Length 23 | CHAR23 | CHAR | 23 | CHAR23 | ||||
LUNALL_QTY | Character Field of Length 23 | CHAR23 | CHAR | 23 | CHAR23 | ||||
BAL_FLAG | Selection/check field for screens | OIG_CHECK | CHAR | 1 | OIG_CHECK | ||||
UPDATEFLAG | Transaction type | TRTYP | CHAR | 1 | TRTYP | ||||
XBLNR_LONG | Reference Document Number (for Dependencies see Long Text) | XBLNR_LONG | CHAR | 35 | XBLNR_LONG |
Key field | Non-key field |
How do I retrieve data from SAP structure BAPI_SHP_MATERIAL using ABAP code?
As BAPI_SHP_MATERIAL 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_SHP_MATERIAL as there is no data to select.How to access SAP table BAPI_SHP_MATERIAL
Within an ECC or HANA version of SAP you can also view further information about BAPI_SHP_MATERIAL 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