KEKO SAP (Product Costing - Header Data) Table details
Dictionary Type: Table
Description: Product Costing - Header Data
Description: Product Costing - Header Data
Table field list including key, data, relationships and ABAP select examples
KEKO is a standard SAP Table which is used to store Product Costing - Header Data data and is available within R/3 SAP systems depending on the version and release level.
The KEKO table consists of various fields, each holding specific information or linking keys about Product Costing - Header Data data available in SAP. These include BZOBJ (Reference Object), KALNR (Cost Estimate Number - Product Costing), KALKA (Costing Type), KADKY (Costing Date (Key)).. 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: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP KEKO table 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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
BZOBJ | Reference Object | CK_OBJ | CHAR | 1 | Assigned to domain | CK_OBJ | |||
KALNR | Cost Estimate Number - Product Costing | CK_KALNR1 | NUMC | 12 | CKHS | CK_KALNR | KNE | ||
KALKA | Costing Type | CK_KALKA | CHAR | 2 | Assigned to domain | CK_KALKA | KKA | ||
KADKY | Costing Date (Key) | CK_KADKY | DATS | 8 | CK_KADAT | KKK | |||
TVERS | Costing Version | CK_TVERS | NUMC | 2 | CK_VERSION | VSN | |||
BWVAR | Valuation Variant in Costing | CK_BWVAR | CHAR | 3 | TCK05 | CK_BWVAR | BWV | ||
KKZMA | Costs Entered Manually in Additive or Automatic Cost Est. | CK_KKZMA | CHAR | 1 | XFELD | KKM | |||
MATNR | Material Number | MATNR | CHAR | 18 | MARA | MATN1 | MATNR | MAT | S_MAT1 |
WERKS | Plant | WERKS_D | CHAR | 4 | T001W | WERKS | WRK | H_T001W_C | |
BWKEY | Valuation Area | BWKEY | CHAR | 4 | T001K | BWKEY | BWK | ||
BWTAR | Valuation Type | BWTAR_D | CHAR | 10 | T149D | BWTAR | BWT | ||
KOKRS | Controlling Area | KOKRS | CHAR | 4 | TKA01 | CACCD | CAC | ||
KADAT | Costing Date From | CK_ABDAT | DATS | 8 | CK_KADAT | KDA | |||
BIDAT | Costing Date To | CK_BIDAT | DATS | 8 | CK_KADAT | KDB | |||
KADAM | Costing Date From | CK_ABDAT | DATS | 8 | CK_KADAT | KDA | |||
BIDAM | Costing Date To | CK_BIDAT | DATS | 8 | CK_KADAT | KDB | |||
BWDAT | Valuation Date of a Cost Estimate | CK_BWDAT | DATS | 8 | CK_KADAT | ||||
ALDAT | Quantity Structure Date for Costing | CK_BRDAT | DATS | 8 | CK_KADAT | ||||
BEDAT | Requirements Date | CK_BEDAT | DATS | 8 | CK_KADAT | ||||
VERID | Production Version | VERID | CHAR | 4 | Assigned to domain | VERID | VER | ||
STNUM | Bill of material | STNUM | CHAR | 8 | NUMCV | STNUM | STLNR | ||
STLAN | BOM Usage | STLAN | CHAR | 1 | Assigned to domain | STLAN | CSV | ||
STALT | Alternative BOM | STALT | CHAR | 2 | ALPHA | ALTNR | |||
STCNT | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
PLNNR | Key for Task List Group | PLNNR | CHAR | 8 | ALPHA | PLNNR | PLN | PLKS | |
PLNTY | Task List Type | PLNTY | CHAR | 1 | Assigned to domain | PLNTY | PTY | H_TCA01 | |
PLNAL | Group Counter | PLNAL | CHAR | 2 | ALPHA | ALTNR | PAL | ||
PLNCT | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
LOEKZ | Deletion Indicator for Product Costing | CK_LOEKZ | CHAR | 1 | XFELD | ||||
LOSGR | Lot Size for Product Costing | CK_LOSGR | QUAN | 13(3) | MENG13 | ||||
MEINS | Valuation Unit of Measure | CK_MEINH_BEW | UNIT | 3 | T006 | CUNIT | MEINS | ||
ERFNM | Costed by User | CK_KALKUSR | CHAR | 12 | USNAM | ||||
ERFMA | User ID of Person Who Created Additive Cost Estimate | CK_ERFMA | CHAR | 12 | USNAM | ||||
CPUDT | Date on Which Cost Estimate Was Created | CK_CPUDT | DATS | 8 | DATUM | ||||
CPUDM | Date on Which Additive Cost Estimate Was Saved | CK_CPUDM | DATS | 8 | DATUM | ||||
CPUTIME | System Time | SYUZEIT | TIMS | 6 | SYTIME | ||||
FEH_ANZ | No. System Messages in Selection/Qty Structure Determination | CK_FEH_ANZ | INT4 | 10 | CK_INT4 | ||||
FEH_K_ANZ | Number of System Messages in Costing | CK_FEH_ANK | INT4 | 10 | CK_INT4 | ||||
FEH_STA | Costing Status | CK_FEH_STA | CHAR | 2 | CK_STATUS | FEHSTA | |||
MAXMSG | Message Type | SYMSGTY | CHAR | 1 | SYCHAR01 | ||||
FREIG | Release of Standard Cost Estimate | CK_FREIG | CHAR | 1 | XFELD | ||||
MKALK | Mixed Costing Indicator | CK_MKALK | CHAR | 1 | XFELD | ||||
BALTKZ | Cost Estimate for a Procurement Alternative | CK_BALT_FLAG | CHAR | 1 | XFELD | ||||
KALNR_BA | Cost Estimate Number of Procurement Alternative | CKKALNRBA | NUMC | 12 | Assigned to domain | CK_KALNR | |||
BTYP | Process Category | CKML_BTYP | CHAR | 4 | Assigned to domain | CKML_PROZESS_TYP | |||
MISCH_VERH | Mixed Costing: Mixing Ratio | CK_MISCHVERH | DEC | 13(3) | CK_MISCHVERH | ||||
BWVAR_BA | Valuation Variant of Procurement Alternative | CK_BWVAR_BA | CHAR | 3 | Assigned to domain | CK_BWVAR | BWV | ||
PLSCN | Planning Scenario of Long-Term Planning | PLSCN | NUMC | 3 | Assigned to domain | PLSCN | PLS | ||
PLMNG | Production Plan Quantity Transferred to the Cost Estimate | CKI_PLMNG | QUAN | 15(3) | MENGV8 | ||||
SOBSL | Special Procurement Key for the Costing Object | CK_SOBSK | CHAR | 2 | Assigned to domain | SOBSL | |||
SOBES | Special procurement type | SOBES | CHAR | 1 | SOBES | ||||
SOWRK | Special Procurement Plant - Costing | CK_SOWRK | CHAR | 4 | Assigned to domain | WERKS | |||
SOBWT | Valuation Type from Special Procurement | CK_SOBWT | CHAR | 10 | Assigned to domain | BWTAR | |||
SODIR | Indicator for direct production (collective order) | CLCOR | CHAR | 1 | XFELD | ||||
SODUM | Phantom item indicator | DUMPS | CHAR | 1 | XFELD | ||||
KALSM | Costing Sheet for Calculating Overhead | CK_KALSM | CHAR | 6 | T683 | KALSM | |||
AUFZA | Overhead type | AUFZA | CHAR | 1 | AUFZA | OVERHEAD_TYPE | |||
BWSMR | Valuation Strategy for Raw Materials and Purchased Parts | CK_BWSMR | CHAR | 1 | CK_BWSMA | ||||
SUBSTRAT | Substrategy for Material Valuat. with Purchasing Info Record | CK_SUBSTRAT | CHAR | 1 | CK_PSMINF | ||||
KLVAR | Costing Variant | CK_KLVAR | CHAR | 4 | TCK03 | KLVAR | KRT | ||
KOSGR | Costing Overhead Group | CK_KOSGR | CHAR | 10 | TCK14 | CK_KOSGR | |||
ZSCHL | Overhead key | AUFZSCHL | CHAR | 6 | TKZSL | CHAR6 | |||
POPER | Posting period | POPER | NUMC | 3 | POPER | POPR | |||
BDATJ | Posting Date YYYY | BDATJ | NUMC | 4 | GJAHR | GJAHR | BDTJ | ||
STKOZ | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
ZAEHL | Internal counter | CIM_COUNT | NUMC | 8 | CIM_COUNT | ||||
TOPKA | Top Cost Estimate (Point-of-Entry Position) | CK_TOPKA | CHAR | 1 | XFELD | ||||
CMF_NR | Error Management Number | CMF_NR | NUMC | 12 | NUMC12 | ||||
OCS_COUNT | Number of OCS Messages Sent | CMF_OCSCNT | NUMC | 5 | NUMC | ||||
OBJNR | Object number | J_OBJNR | CHAR | 22 | Assigned to domain | J_OBJNR | ONR | ||
ERZKA | Cost Estimate Created with Product Costing | CK_ERZKA | CHAR | 1 | XFELD | ||||
LOSAU | Lot Size Taking Scrap into Account | CK_LOSAU | QUAN | 13(3) | MENG13 | ||||
AUSID | Assembly/Operation Scrap Included | CK_AUSID | CHAR | 1 | CK_AUSID | ||||
AUSSS | Assembly scrap in percent | AUSSS | DEC | 5(2) | DEC3_2 | ||||
SAPRL | Release the document as it was last saved | KK_SAPRL | CHAR | 4 | CHAR4 | ||||
KZROH | Material Component | CK_KZROH | CHAR | 1 | XFELD | ||||
AUFPL | Routing No. for Operations with Non-Order-Related Production | CK_AUFPL | NUMC | 10 | AUFPL | ||||
CUOBJ | Object Number for Conf. Objects | CK_CUOBJ | NUMC | 18 | CUOBJ | ||||
CUOBJID | Indicator for Configurable Objects | CK_CUOBJID | CHAR | 1 | CK_CUOBJID | ||||
TECHS | Parameter Variant/Standard Variant | TECHS | CHAR | 12 | TECHS | ||||
TYPE | Configured Material (Variant) | CK_TYPE | CHAR | 18 | MARA | MATN1 | MATNR | ||
WRKLT | Plant (Variant) | CK_WRKLT | CHAR | 4 | Assigned to domain | WERKS | WRK | H_T001W | |
VORMDAT | Date on Which Cost Estimate Was Marked | CK_VORMDAT | DATS | 8 | DATUM | ||||
VORMUSR | User Who Marked Cost Estimate in Material Master | CK_VORMUSR | CHAR | 12 | USNAM | ||||
FREIDAT | Date on Which Cost Estimate Released in Material Master | CK_FREIDAT | DATS | 8 | DATUM | ||||
FREIUSR | User Who Released Cost Estimate in Material Master Record | CK_FREIUSR | CHAR | 12 | USNAM | ||||
UEBID | Transfer Control | CK_UEBID | CHAR | 4 | Assigned to domain | CK_UEBER | |||
PROZESS | Process Through Which Co-Product Was Costed | CK_PROZESS | CHAR | 18 | Assigned to domain | MATN1 | MATNR | MAT1 | |
PR_VERID | Production Version To Be Costed | CK_VERID | CHAR | 4 | MKAL | VERID | |||
CSPLIT | Apportionment Structure | CSPLIT | CHAR | 4 | Assigned to domain | CSPLIT | |||
KZKUP | Indicator: Material can be co-product | KZKUPMAT | CHAR | 1 | FLAG | ||||
FXPRU | Fixed-Price Co-Product | CK_FIXPRKU | CHAR | 1 | XFELD | ||||
CFXPR | Cost Estimate Contains Fixed-Price Co-Products | CK_CONTFIXPRICE | CHAR | 1 | FLAG | ||||
ZIFFR | Equivalence Number | CK_ZIFFR | DEC | 3 | AEQUI | ||||
SUMZIFFR | Sum of Equivalence Numbers of Co-Products for a Process | CK_SUMZIFFR | DEC | 5 | CK_SUMZIFFR | ||||
AFAKT | Costg.: Apportionment Factor for Itemiz. Line in Joint Prod. | CK_SPLITFAC | FLTP | 16(16) | CK_FLTP | ||||
VBELN | Sales and Distribution Document Number | VBELN | CHAR | 10 | Assigned to domain | ALPHA | VBELN | AUN | |
POSNR | Item number of the SD document | POSNR | NUMC | 6 | Assigned to domain | POSNR | |||
PSPNR | Work Breakdown Structure Element (WBS element) | WB_POSNR | NUMC | 8 | Assigned to domain | ABPSP | PS_POSNR | ||
SBDKZ | Dependent requirements ind. for individual and coll. reqmts | SBDKZ | CHAR | 1 | SBDKZ | ||||
MLMAA | Material ledger activated at material level | CK_ML_MAAC | CHAR | 1 | XFELD | ||||
BESKZ | Procurement Type | BESKZ | CHAR | 1 | BESKZ | MBS | |||
DISST | Low-Level Code | DISST | CHAR | 3 | DISST | ||||
KALST | Costing Level | CK_KALST | NUMC | 4 | CK_KALST | ||||
TEMPLATE | Template | ABC_TEMPL | CHAR | 10 | Assigned to domain | ABC_TEMPL | ABT | ||
PATNR | Partner number for costing | NKPRTN | NUMC | 6 | NUM6 | ||||
PART_VRSN | Partner Version | CK_PARVRSN | NUMC | 2 | NUMC2 | ||||
ELEHK | Cost Component Structure - CGM and Sales/Administr. Costs | CK_ELESMHK | CHAR | 2 | Assigned to domain | CK_ELESMHK | EHK | ||
ELEHKNS | Cost Component Structure for Auxiliary Cost Component Split | CK_ELESMNS | CHAR | 2 | Assigned to domain | CK_ELESMHK | |||
VOCNT | Counter for Marking a Cost Estimate | CK_VOCNT | NUMC | 1 | NUM01 | ||||
GSBER | Business Area | GSBER | CHAR | 4 | Assigned to domain | GSBER | GSB | ||
PRCTR | Profit Center | PRCTR | CHAR | 10 | Assigned to domain | ALPHA | PRCTR | PRC | PRCTR_EMPTY |
TPVAR | Variant for Finding Transfer Price | TPVARIANT | CHAR | 3 | TPVAR1 | ALPHA | TPVARIANT | ||
KURST | Exchange Rate Type | KURST | CHAR | 4 | TCURV | KURST | KUT | ||
MGTYP | Quantity Structure Type | CKML_MGTYP | CHAR | 5 | CKMLMV006 | CKML_MGTYP | CKML_MGTYP | ||
HWAER | Local Currency | HWAER | CUKY | 5 | Assigned to domain | WAERS | |||
FWAER_KPF | Currency Key | WAERS | CUKY | 5 | Assigned to domain | WAERS | FWS | ||
REFID | Reference Variant | CK_REFID | NUMC | 2 | NUMC2 | ||||
MEINH_WS | Batch-specific matl unit of measure (proportion/prod. unit) | LRMEI_WS | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
KZWSO | Units of measure usage | KZWSO | CHAR | 1 | KZWSO | ||||
ASL | Cost Estimate of an Order BOM | CK_ASL | CHAR | 1 | XFELD | ||||
KALAID | Name of Costing Run | CK_KALAID | CHAR | 8 | CHAR8 | KKF | CKKAT | ||
KALADAT | Costing Run Date | CK_KALADAT | DATS | 8 | DATUM | KK1 | |||
OTYP | Object Type | CKML_OTYP | CHAR | 2 | CKML_OTYP | ||||
BAPI_CREATED | Cost Estimate Generated by BAPI | CK_BAPI | CHAR | 1 | XFELD | ||||
.INCLU--AP | 0 | ||||||||
PACKNO | Package number | PACKNO | NUMC | 10 | Assigned to domain | PACKNO | |||
INTROW | Internal line number for limits | INTROW | NUMC | 10 | NUMC10 | ||||
BOSFSHT | Schema for Additions/Deductions | BOSFSHT | CHAR | 4 | CHAR04 | ||||
BOSDVERSION | Version | BOSDVERS | NUMC | 3 | INT3 | ||||
.INCLU--AP | 0 | ||||||||
GRC_COSTING | Goods Receipt Costing | CK_GRC_COSTING | CHAR | 1 | CHAR1 | ||||
.INCLU--AP | 0 | ||||||||
CLINT | Internal Class Number | CLINT | NUMC | 10 | Assigned to domain | CLINT | |||
PPEGUID | Internal Identification for PVS Objects | PVS_GUID | RAW | 16 | SYSUUID | ||||
OTYPE | iPPE Object Type | PVS_OTYPE | CHAR | 1 | PVS_OTYPE | ||||
APPLOBJ_TYPE | Application Object Type for iPPE | PVS_APPLOBJ_TYPE | CHAR | 4 | PVS_APPLOBJ_TYPE | ||||
AENNR | Change Number | AENNR | CHAR | 12 | Assigned to domain | AENNR | AENNR | AEN | |
.INCLU--AP | 0 | ||||||||
IPPE_COSTING | Costing for a Material with iPPE Quantity Structure | CK_IPPE_COSTING | CHAR | 1 | CHAR1 | ||||
CMPEXT_NONCOL | Internal Identification of the Component (Material/Product) | PVS_CMPID | CHAR | 32 | PVS_CHAR32 | ||||
CCODE | Color Supplement Key | PVS_COL_CODE | CHAR | 10 | CHAR10 | ||||
NONCOL_VERID | Production Version | VERID | CHAR | 4 | Assigned to domain | VERID | VER |
Key field | Non-key field |
How do I retrieve data from SAP table KEKO using ABAP code
The following ABAP code Example will allow you to do a basic selection on KEKO to SELECT all data from the tableDATA: WA_KEKO TYPE KEKO.
SELECT SINGLE *
FROM KEKO
INTO CORRESPONDING FIELDS OF WA_KEKO
WHERE...
How to access SAP table KEKO
Within an ECC or HANA version of SAP you can also view further information about KEKO 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