SAP COM_ATTRIBUTE_TAB_CHANGE Function Module for create one entry in table 'comc_attribute'
COM_ATTRIBUTE_TAB_CHANGE is a standard com attribute tab change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for create one entry in table 'comc_attribute' processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for com attribute tab change FM, simply by entering the name COM_ATTRIBUTE_TAB_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: COM_ATTRIBUTE_TAB
Program Name: SAPLCOM_ATTRIBUTE_TAB
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COM_ATTRIBUTE_TAB_CHANGE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'COM_ATTRIBUTE_TAB_CHANGE'"create one entry in table 'comc_attribute'.
EXPORTING
IV_ATTR_ID = "Name eines ABAP Dictionary-Objekts
IV_ATTR_TABNAME = "Tabellenname, 16-stellig
* IV_ATTR_CHECKBOX = ' ' "Checkbox
* IV_ATTR_MV_POSSIBLE = "Attribut für Mehrwertigkeit vorbereiten
* IV_SAPFLAG = "Attribut wurde von SAP definiert
IV_ATTR_TYPE = "Typ eines Attributes
* IV_LANGU = SY-LANGU "Language key
IV_ATTR_DATATYPE = "Datentyp eines Attributs
IV_ATTR_TEXT = "Attribute Description
IS_ATTRIBUTE_OLD = "Tabelle mit Attribut 16 RAW GUID
IMPORTING
ET_ATTRIBUTE = "Attribute Table Type
ET_ATTRIBUTE_T = "Tabellentyp für Attributstexte
EXCEPTIONS
INVALID_IMPORT_VALUE = 1
IMPORTING Parameters details for COM_ATTRIBUTE_TAB_CHANGE
IV_ATTR_ID - Name eines ABAP Dictionary-Objekts
Data type: DDOBJNAMEOptional: No
Call by Reference: Yes
IV_ATTR_TABNAME - Tabellenname, 16-stellig
Data type: COMT_ATTR_TABNAMEOptional: No
Call by Reference: Yes
IV_ATTR_CHECKBOX - Checkbox
Data type: COMT_CHECKBOXDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_ATTR_MV_POSSIBLE - Attribut für Mehrwertigkeit vorbereiten
Data type: COMT_MULTIVALUE_OPTIONOptional: Yes
Call by Reference: Yes
IV_SAPFLAG - Attribut wurde von SAP definiert
Data type: COMT_ATTR_SAPFLAGOptional: Yes
Call by Reference: Yes
IV_ATTR_TYPE - Typ eines Attributes
Data type: COMT_ATTRIBUTE_TYPEOptional: No
Call by Reference: Yes
IV_LANGU - Language key
Data type: SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: Yes
IV_ATTR_DATATYPE - Datentyp eines Attributs
Data type: COMT_ATTR_DATATYPEOptional: No
Call by Reference: Yes
IV_ATTR_TEXT - Attribute Description
Data type: COMT_ATTR_TEXTOptional: No
Call by Reference: Yes
IS_ATTRIBUTE_OLD - Tabelle mit Attribut 16 RAW GUID
Data type: COMT_ATTRIBUTE_16_LONG_IDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for COM_ATTRIBUTE_TAB_CHANGE
ET_ATTRIBUTE - Attribute Table Type
Data type: COMT_ATTRIBUTE_EXT_TABOptional: No
Call by Reference: Yes
ET_ATTRIBUTE_T - Tabellentyp für Attributstexte
Data type: COMT_ATTRIBUTE_T_EXT_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
INVALID_IMPORT_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for COM_ATTRIBUTE_TAB_CHANGE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_attr_id | TYPE DDOBJNAME, " | |||
| lv_et_attribute | TYPE COMT_ATTRIBUTE_EXT_TAB, " | |||
| lv_invalid_import_value | TYPE COMT_ATTRIBUTE_EXT_TAB, " | |||
| lv_iv_attr_tabname | TYPE COMT_ATTR_TABNAME, " | |||
| lv_et_attribute_t | TYPE COMT_ATTRIBUTE_T_EXT_TAB, " | |||
| lv_iv_attr_checkbox | TYPE COMT_CHECKBOX, " SPACE | |||
| lv_iv_attr_mv_possible | TYPE COMT_MULTIVALUE_OPTION, " | |||
| lv_iv_sapflag | TYPE COMT_ATTR_SAPFLAG, " | |||
| lv_iv_attr_type | TYPE COMT_ATTRIBUTE_TYPE, " | |||
| lv_iv_langu | TYPE SPRAS, " SY-LANGU | |||
| lv_iv_attr_datatype | TYPE COMT_ATTR_DATATYPE, " | |||
| lv_iv_attr_text | TYPE COMT_ATTR_TEXT, " | |||
| lv_is_attribute_old | TYPE COMT_ATTRIBUTE_16_LONG_ID. " |
|   CALL FUNCTION 'COM_ATTRIBUTE_TAB_CHANGE' "create one entry in table 'comc_attribute' |
| EXPORTING | ||
| IV_ATTR_ID | = lv_iv_attr_id | |
| IV_ATTR_TABNAME | = lv_iv_attr_tabname | |
| IV_ATTR_CHECKBOX | = lv_iv_attr_checkbox | |
| IV_ATTR_MV_POSSIBLE | = lv_iv_attr_mv_possible | |
| IV_SAPFLAG | = lv_iv_sapflag | |
| IV_ATTR_TYPE | = lv_iv_attr_type | |
| IV_LANGU | = lv_iv_langu | |
| IV_ATTR_DATATYPE | = lv_iv_attr_datatype | |
| IV_ATTR_TEXT | = lv_iv_attr_text | |
| IS_ATTRIBUTE_OLD | = lv_is_attribute_old | |
| IMPORTING | ||
| ET_ATTRIBUTE | = lv_et_attribute | |
| ET_ATTRIBUTE_T | = lv_et_attribute_t | |
| EXCEPTIONS | ||
| INVALID_IMPORT_VALUE = 1 | ||
| . " COM_ATTRIBUTE_TAB_CHANGE | ||
ABAP code using 7.40 inline data declarations to call FM COM_ATTRIBUTE_TAB_CHANGE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_iv_attr_checkbox) | = ' '. | |||
| DATA(ld_iv_langu) | = SY-LANGU. | |||
Search for further information about these or an SAP related objects