BAPIHEADER SAP (Cost Estimate Header) Structure details

Dictionary Type: Structure
Description: Cost Estimate Header




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




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

BAPIHEADER 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 "Cost Estimate Header" 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_BAPIHEADER TYPE BAPIHEADER.

The BAPIHEADER table consists of various fields, each holding specific information or linking keys about Cost Estimate Header data available in SAP. These include PLANT (Plant), VALID_FROM (Costing Date From), VALID_TO (Costing Date To), VLTN_DATE (Valuation Date of a Cost Estimate).. 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 BAPIHEADER 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
MATERIALMaterial Number MATNRCHAR18MARAMATN1MATNRMATS_MAT1
PLANTPlant WERKS_DCHAR4T001WWERKSWRKH_T001W_C
VALID_FROMCosting Date From CK_ABDATDATS8CK_KADATKDA
VALID_TOCosting Date To CK_BIDATDATS8CK_KADATKDB
VLTN_DATEValuation Date of a Cost Estimate CK_BWDATDATS8CK_KADAT
QTYSTRDATEQuantity Structure Date for Costing CK_BRDATDATS8CK_KADAT
CE_STATUSCosting Status CK_FEH_STACHAR2CK_STATUSFEHSTA
LOTSIZELot Size for Product Costing CK_LOSGRQUAN13(3) MENG13
CSTG_VRNTCosting Variant CK_KLVARCHAR4TCK03KLVARKRT
MAT_BOMMaterial with/without BOM CK_MAT_BOMNUMC2CK_MAT_BOM
CURRENCYCurrency Key CURRENCYCUKY5TCURCWAERS
TOTAL_AMTTotal Value of Aggregate Level TOTAL_AMT_HEADDEC23(4) BAPICURR
FIXED_AMTFixed Value of Aggregate Level FIXED_AMT_HEADDEC23(4) BAPICURR
TOTAL_AMT_UPPER_LEVELTotal Value of Upper Level TOTAL_AMT_UPPER_LEVEL_HEADDEC23(4) BAPICURR
FIXED_AMT_UPPER_LEVELFixed Value of Upper Level FIXED_AMT_UPPER_LEVEL_HEADDEC23(4) BAPICURR
TOTAL_AMT_LOWER_LEVELTotal Value of Lower Level TOTAL_AMT_LOWER_LEVEL_HEADDEC23(4) BAPICURR
FIXED_AMT_LOWER_LEVELFixed Value of Lower Level FIXED_AMT_LOWER_LEVEL_HEADDEC23(4) BAPICURR
COST_COMPONENT_LAYOUTCost Component Structure - CGM and Sales/Administr. Costs CK_ELESMHKCHAR2TCKH4CK_ELESMHKEHK
LOTSIZE_UNITUnit of Measure of Lot Size LOTSIZE_UNITUNIT3T006CUNITMEINS
MIXED_COSTINGMixed Costing Indicator CK_MKALKCHAR1XFELD
PROCUREMENT_ALTERNATIVECost Estimate for a Procurement Alternative CK_BALT_FLAGCHAR1XFELD
COSTING_LEVELCosting Level CK_KALSTNUMC4CK_KALST
PROFIT_CTRProfit Center PRCTRCHAR10CEPCALPHAPRCTRPRCPRCTR_EMPTY
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
LOTSIZE_UNIT_ISOISO code for unit of measurement ISOCD_UNITCHAR3Assigned to domainISOCD_UNIT
CURRENCY_ISOISO currency code ISOCDCHAR3ISOCD

Key field Non-key field



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

As BAPIHEADER 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 BAPIHEADER as there is no data to select.

How to access SAP table BAPIHEADER

Within an ECC or HANA version of SAP you can also view further information about BAPIHEADER 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!