KOMKG0 SAP (Material Listing/Material Exclusion - Header (SAP Standard)) Structure details

Dictionary Type: Structure
Description: Material Listing/Material Exclusion - Header (SAP Standard)




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




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

KOMKG0 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 Listing/Material Exclusion - 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_KOMKG0 TYPE KOMKG0.

The KOMKG0 table consists of various fields, each holding specific information or linking keys about Material Listing/Material Exclusion - 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 KOMKG0 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
VKORGSales Organization VKORGCHAR4TVKOVKORGVKOC_VKORG
VTWEGDistribution Channel VTWEGCHAR2TVTWVTWEGVTWC_VTWEG
SPARTDivision SPARTCHAR2TSPASPARTSPAC_SPART
KDGRPCustomer group KDGRPCHAR2T151KDGRPVKD
ALANDDeparture country (country from which the goods are sent) ALANDCHAR3T005LAND1VAL
WKREGRegion in which plant is located WKREGCHAR3T005SREGIO
WKCOUCounty in which plant is located WKCOUCHAR3CHAR3
WKCTYCity in which plant is located WKCTYCHAR4CHAR4
BUKRSCompany Code BUKRSCHAR4T001BUKRSBUKC_T001
KUNNRCustomer number KUNNR_VCHAR10KNA1ALPHAKUNNRKUN
KNRZEPayer KUNRGCHAR10KNA1ALPHAKUNNR
LIFNRAccount Number of Vendor or Creditor LIFNRCHAR10LFA1ALPHALIFNRLIFKRED_C
INCO1Incoterms (Part 1) INCO1CHAR3TINCINCO1
INCO2Incoterms (Part 2) INCO2CHAR28INCO2
LAND1Country of Destination LLANDCHAR3T005LAND1VLL
REGIOSTATE (State, Province, County) REGIOCHAR3T005SREGIO
COUNCCounty Code COUNCCHAR3T005ECOUNC
CITYCCity Code CITYCCHAR4T005GCITYC
AUARTSales Document Type AUARTCHAR4TVAKAUARTAUARTAAT
EKORGPurchasing Organization EKORGCHAR4T024EEKORGEKO
LIFREDifferent Invoicing Party LIFRECHAR10LFA1ALPHALIFNRLRE
VBTYPSD document category VBTYPCHAR1VBTYP
KUNAGSold-to party KUNAGCHAR10KNA1ALPHAKUNNRVAG
KUNWEShip-to party KUNWECHAR10KNA1ALPHAKUNNR
SPDNRForwarding agent SPDNRCHAR10Assigned to domainALPHALIFNR
VRTNRSales employee VRTNRNUMC8PERNRPREMV

Key field Non-key field



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

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

How to access SAP table KOMKG0

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