BAPI_SHP_MATERIAL SAP (Material in Shipment) Structure details

Dictionary Type: Structure
Description: Material in Shipment




ABAP Code to SELECT data from BAPI_SHP_MATERIAL
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
SHNUMBERTD shipment number OIG_SHNUMCHAR10Assigned to domainALPHAOIG_SHNUMOIS
MAT_ITMTD material item sequence number OIG_MATITMNUMC3BUZEI
MATNRMaterial loaded OIG_MATNRCHAR18Assigned to domainMATN1MATNR
WERKSPlant WERKS_DCHAR4Assigned to domainWERKSWRKH_T001W_C
STLTYBOM category STLTYCHAR1STLTY
STLNRBill of material STNUMCHAR8NUMCVSTNUMSTLNR
LGORTStorage Location LGORT_DCHAR4Assigned to domainLGORTLAG
CHARGBatch Number CHARG_DCHAR10Assigned to domainCHARGCHA
BWTARValuation Type BWTAR_DCHAR10Assigned to domainBWTARBWT
TRANSFTD transfer stock indicator OIG_TRANSFCHAR1XFELD
LABSTChar 15 CHAR15CHAR15CHAR15
GLQTYCharacter Field of Length 23 CHAR23CHAR23CHAR23
XBLNRReference Document Number XBLNRCHAR16XBLNR
QTY_ITMTD quantity item number of a shipment/transport OIG_QTYITMNUMC5OIG_POSN5
HPM_ITMSequence number for HPM segments OIG_HPMITMNUMC5OIG_POSN5
XLONGNegative stocks allowed in storage location XLONGCHAR1XFELD
XMCNGNegative stocks allowed in plant XMCNGCHAR1XFELD
MAKTXMaterial Description (Short Text) MAKTXCHAR40TEXT40
BOMMTBOM text CSTEXTCHAR40TEXT40
ITSTDEDescription OIG_DESC40CHAR40TEXT40
BTCHDESBatch description OIG_BTCDESCHAR20TEXT20
OIHANTYPExcise Duty Handling Type OIH_HANTYPCHAR2Assigned to domainOIH_HANTYP
HANTYPLTTD:handling type, bulk shipment load (taxed) OIG_HTLTCHAR2Assigned to domainOIH_HANTYP
HANTYPLUTD: handling type, bulk shipment load (untaxed) OIG_HTLUCHAR2Assigned to domainOIH_HANTYP
HANTYPGNTD handling type bulk shipment gain OIG_HTGNCHAR2Assigned to domainOIH_HANTYP
HANTYPLSTD handling type bulk shipment loss OIG_HTLSCHAR2Assigned to domainOIH_HANTYP
HANTYPRTTD handling type, bulk shipment return (taxed) OIG_HTRTCHAR2Assigned to domainOIH_HANTYP
HANTYPRUTD handling type: bulk shipment return (untaxed) OIG_HTRUCHAR2Assigned to domainOIH_HANTYP
N_SLCTD Fixed in-transit store locations per shipment OIG_N_SLCCHAR1OIG_N_SLC
N_BWTARTD Multiple valuation types on shipment OIG_NBWTARCHAR1CHAR1_X
BWTAR1Valuation Type BWTAR_DCHAR10Assigned to domainBWTARBWT
KOSTLCost Center KOSTLCHAR10Assigned to domainALPHAKOSTLKOS
XCHPFBatch management requirement indicator XCHPFCHAR1XFELD
XCHARBatch management indicator (internal) XCHARCHAR1XFELD
BWTTYValuation Category BWTTY_DCHAR1Assigned to domainBWTTY
MEINS3-Byte field CHAR3CHAR3CHAR3
OIGROUPNAMTD product group OIG_PCGCHAR8Assigned to domainALPHAOIG_PCGOI7
OITAXGRPExcise Duty Group OIH_TAXGRPCHAR2Assigned to domainOIH_TAXGRP
CMETHQuantity Conversion Method OIB_CMETHCHAR1OIB_CMETH
UOMGRUnit of Mearsure Group (Oil, Natural Gas,...) OIB_UOMGRCHAR3Assigned to domainOIB_UOMGR
UMRSLConversion Group (Oil, Natural Gas,..) OIB_UMRSLCHAR4Assigned to domainOIB_UMRSL
UNALL_QTYCharacter Field of Length 23 CHAR23CHAR23CHAR23
LUNALL_QTYCharacter Field of Length 23 CHAR23CHAR23CHAR23
BAL_FLAGSelection/check field for screens OIG_CHECKCHAR1OIG_CHECK
UPDATEFLAGTransaction type TRTYPCHAR1TRTYP
XBLNR_LONGReference Document Number (for Dependencies see Long Text) XBLNR_LONGCHAR35XBLNR_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 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!