BAPI_CTY SAP (Commodity ID structure) Structure details
Description: Commodity ID structure
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_ID | Commodity ID | TRCO_COMM_ID | CHAR | 18 | TPM_CTY_ID | COMMODITY_ID | F4_CTY_ID_CORE | ||
COMMODITY_CAT | Commodity Category | TPM_CTY_CAT | CHAR | 3 | Assigned to domain | ALPHA | TPM_CTY_CAT | ||
COMMODITY_TYPE | Type of Commodity | TPM_CTY_TYPE | CHAR | 3 | Assigned to domain | ALPHA | TPM_CTY_TYPE | F4_CTY_TYPE | |
COMMODITY_NAME | Name of the Commodity | TPM_CTY_NAME | CHAR | 40 | TPM_CTY_NAME | ||||
COMMODITY_UOM | Unit of Measure for the Commodity | TPM_CTY_UOM | UNIT | 3 | Assigned to domain | CUNIT | MEINS | ||
DEFAULT_CURRENCY | Currency for the Commodity Deal | TPM_CTY_CURR | CUKY | 5 | Assigned to domain | WAERS | |||
ACTIVE | Indicates whether the commodity is active | TPM_CTY_ACTIVE | CHAR | 1 | BOOLE | ||||
GROUP1 | Commodity Group1 | TPM_CTY_GP1 | CHAR | 3 | ALPHA | TPM_CTY_GP1 | F4_CTY_GROUP1 | ||
GROUP2 | Commodity Group2 | TPM_CTY_GP2 | CHAR | 3 | ALPHA | TPM_CTY_GP2 | F4_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 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