KOMKD0 SAP (Substitution - Header (SAP standard)) Structure details
Description: Substitution - Header (SAP standard)
Structure field list including key, data, relationships and ABAP select examples
KOMKD0 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 "Substitution - Header (SAP standard)" 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_KOMKD0 TYPE KOMKD0.
The KOMKD0 table consists of various fields, each holding specific information or linking keys about Substitution - Header (SAP standard) data available in SAP. These include VTWEG (Distribution Channel), SPART (Division), KDGRP (Customer group), ALAND (Departure country (country from which the goods are sent)).. 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: Can be enhanced (character-type)
SAP KOMKD0 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 |
VKORG | Sales Organization | VKORG | CHAR | 4 | TVKO | VKORG | VKO | C_VKORG | |
VTWEG | Distribution Channel | VTWEG | CHAR | 2 | TVTW | VTWEG | VTW | C_VTWEG | |
SPART | Division | SPART | CHAR | 2 | TSPA | SPART | SPA | C_SPART | |
KDGRP | Customer group | KDGRP | CHAR | 2 | T151 | KDGRP | VKD | ||
ALAND | Departure country (country from which the goods are sent) | ALAND | CHAR | 3 | T005 | LAND1 | VAL | ||
WKREG | Region in which plant is located | WKREG | CHAR | 3 | T005S | REGIO | |||
WKCOU | County in which plant is located | WKCOU | CHAR | 3 | CHAR3 | ||||
WKCTY | City in which plant is located | WKCTY | CHAR | 4 | CHAR4 | ||||
BUKRS | Company Code | BUKRS | CHAR | 4 | T001 | BUKRS | BUK | C_T001 | |
KUNNR | Customer number | KUNNR_V | CHAR | 10 | KNA1 | ALPHA | KUNNR | KUN | |
KNRZE | Payer | KUNRG | CHAR | 10 | KNA1 | ALPHA | KUNNR | ||
LIFNR | Account Number of Vendor or Creditor | LIFNR | CHAR | 10 | LFA1 | ALPHA | LIFNR | LIF | KRED_C |
INCO1 | Incoterms (Part 1) | INCO1 | CHAR | 3 | TINC | INCO1 | |||
INCO2 | Incoterms (Part 2) | INCO2 | CHAR | 28 | INCO2 | ||||
LAND1 | Country of Destination | LLAND | CHAR | 3 | T005 | LAND1 | VLL | ||
REGIO | STATE (State, Province, County) | REGIO | CHAR | 3 | T005S | REGIO | |||
COUNC | County Code | COUNC | CHAR | 3 | T005E | COUNC | |||
CITYC | City Code | CITYC | CHAR | 4 | T005G | CITYC | |||
AUART | Sales Document Type | AUART | CHAR | 4 | TVAK | AUART | AUART | AAT | |
EKORG | Purchasing Organization | EKORG | CHAR | 4 | T024E | EKORG | EKO | ||
LIFRE | Different Invoicing Party | LIFRE | CHAR | 10 | LFA1 | ALPHA | LIFNR | LRE | |
VBTYP | SD document category | VBTYP | CHAR | 1 | VBTYP | ||||
KUNAG | Sold-to party | KUNAG | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | VAG | |
KUNWE | Ship-to party | KUNWE | CHAR | 10 | Assigned to domain | ALPHA | KUNNR | ||
SPDNR | Forwarding agent | SPDNR | CHAR | 10 | Assigned to domain | ALPHA | LIFNR | ||
VRTNR | Sales employee | VRTNR | NUMC | 8 | PERNR | PREMV |
Key field | Non-key field |
How do I retrieve data from SAP structure KOMKD0 using ABAP code?
As KOMKD0 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 KOMKD0 as there is no data to select.How to access SAP table KOMKD0
Within an ECC or HANA version of SAP you can also view further information about KOMKD0 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