BAPIHEADER SAP (Cost Estimate Header) Structure details
Description: Cost Estimate Header
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 |
MATERIAL | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
PLANT | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
VALID_FROM | Costing Date From | CK_ABDAT | DATS | 8 | CK_KADAT | KDA | |||
VALID_TO | Costing Date To | CK_BIDAT | DATS | 8 | CK_KADAT | KDB | |||
VLTN_DATE | Valuation Date of a Cost Estimate | CK_BWDAT | DATS | 8 | CK_KADAT | ||||
QTYSTRDATE | Quantity Structure Date for Costing | CK_BRDAT | DATS | 8 | CK_KADAT | ||||
CE_STATUS | Costing Status | CK_FEH_STA | CHAR | 2 | CK_STATUS | FEHSTA | |||
LOTSIZE | Lot Size for Product Costing | CK_LOSGR | QUAN | 13(3) | MENG13 | ||||
CSTG_VRNT | Costing Variant | CK_KLVAR | CHAR | 4 | TCK03 | KLVAR | KRT | ||
MAT_BOM | Material with/without BOM | CK_MAT_BOM | NUMC | 2 | CK_MAT_BOM | ||||
CURRENCY | Currency Key | CURRENCY | CUKY | 5 | TCURC | WAERS | |||
TOTAL_AMT | Total Value of Aggregate Level | TOTAL_AMT_HEAD | DEC | 23(4) | BAPICURR | ||||
FIXED_AMT | Fixed Value of Aggregate Level | FIXED_AMT_HEAD | DEC | 23(4) | BAPICURR | ||||
TOTAL_AMT_UPPER_LEVEL | Total Value of Upper Level | TOTAL_AMT_UPPER_LEVEL_HEAD | DEC | 23(4) | BAPICURR | ||||
FIXED_AMT_UPPER_LEVEL | Fixed Value of Upper Level | FIXED_AMT_UPPER_LEVEL_HEAD | DEC | 23(4) | BAPICURR | ||||
TOTAL_AMT_LOWER_LEVEL | Total Value of Lower Level | TOTAL_AMT_LOWER_LEVEL_HEAD | DEC | 23(4) | BAPICURR | ||||
FIXED_AMT_LOWER_LEVEL | Fixed Value of Lower Level | FIXED_AMT_LOWER_LEVEL_HEAD | DEC | 23(4) | BAPICURR | ||||
COST_COMPONENT_LAYOUT | Cost Component Structure - CGM and Sales/Administr. Costs | CK_ELESMHK | CHAR | 2 | TCKH4 | CK_ELESMHK | EHK | ||
LOTSIZE_UNIT | Unit of Measure of Lot Size | LOTSIZE_UNIT | UNIT | 3 | T006 | CUNIT | MEINS | ||
MIXED_COSTING | Mixed Costing Indicator | CK_MKALK | CHAR | 1 | XFELD | ||||
PROCUREMENT_ALTERNATIVE | Cost Estimate for a Procurement Alternative | CK_BALT_FLAG | CHAR | 1 | XFELD | ||||
COSTING_LEVEL | Costing Level | CK_KALST | NUMC | 4 | CK_KALST | ||||
PROFIT_CTR | Profit Center | PRCTR | CHAR | 10 | CEPC | ALPHA | PRCTR | PRC | PRCTR_EMPTY |
MATERIAL_EXTERNAL | Long Material Number for MATERIAL Field | MGV_MATERIAL_EXTERNAL | CHAR | 40 | MATNR_EXT | ||||
MATERIAL_GUID | External GUID for MATERIAL Field | MGV_MATERIAL_GUID | CHAR | 32 | MATNR_EGUID | ||||
MATERIAL_VERSION | Version Number for MATERIAL Field | MGV_MATERIAL_VERSION | CHAR | 10 | MATNW | MATNR_VERS | |||
LOTSIZE_UNIT_ISO | ISO code for unit of measurement | ISOCD_UNIT | CHAR | 3 | Assigned to domain | ISOCD_UNIT | |||
CURRENCY_ISO | ISO currency code | ISOCD | CHAR | 3 | ISOCD |
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 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