BAPI_CTY SAP (Commodity ID structure) Structure details

Dictionary Type: Structure
Description: Commodity ID structure




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




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

BAPI_CTY 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 "Commodity ID structure" 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_BAPI_CTY TYPE BAPI_CTY.

The BAPI_CTY table consists of various fields, each holding specific information or linking keys about Commodity ID structure data available in SAP. These include COMMODITY_CAT (Commodity Category), COMMODITY_TYPE (Type of Commodity), COMMODITY_NAME (Name of the Commodity), COMMODITY_UOM (Unit of Measure for the Commodity).. 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 BAPI_CTY 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
COMMODITY_IDCommodity ID TRCO_COMM_IDCHAR18TPM_CTY_IDCOMMODITY_IDF4_CTY_ID_CORE
COMMODITY_CATCommodity Category TPM_CTY_CATCHAR3Assigned to domainALPHATPM_CTY_CAT
COMMODITY_TYPEType of Commodity TPM_CTY_TYPECHAR3Assigned to domainALPHATPM_CTY_TYPEF4_CTY_TYPE
COMMODITY_NAMEName of the Commodity TPM_CTY_NAMECHAR40TPM_CTY_NAME
COMMODITY_UOMUnit of Measure for the Commodity TPM_CTY_UOMUNIT3Assigned to domainCUNITMEINS
DEFAULT_CURRENCYCurrency for the Commodity Deal TPM_CTY_CURRCUKY5Assigned to domainWAERS
ACTIVEIndicates whether the commodity is active TPM_CTY_ACTIVECHAR1BOOLE
GROUP1Commodity Group1 TPM_CTY_GP1CHAR3ALPHATPM_CTY_GP1F4_CTY_GROUP1
GROUP2Commodity Group2 TPM_CTY_GP2CHAR3ALPHATPM_CTY_GP2F4_CTY_GROUP2

Key field Non-key field



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

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

How to access SAP table BAPI_CTY

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