SAP COM_ATTRIBUTE_TAB_CREATE_ML Function Module for create one entry in table 'comc_attribute'
COM_ATTRIBUTE_TAB_CREATE_ML is a standard com attribute tab create ml 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 create ml FM, simply by entering the name COM_ATTRIBUTE_TAB_CREATE_ML 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_CREATE_ML 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_CREATE_ML'"create one entry in table 'comc_attribute'.
EXPORTING
IV_ATTR_ID = "Name eines ABAP Dictionary-Objekts
* 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
IS_ATTRIBUTE_ATTR_TEXT = "Attribute Description
IV_ATTR_DATATYPE = "Attributstyp
IV_ATTR_TABNAME = "Tabellenname, 16-stellig
IMPORTING
ET_ATTRIBUTE = "Attribute Table Type
ET_ATTRIBUTE_T = "Tabellentyp für Attributstexte
EV_ATTRIBUTE_GUID = "GUID eines Attributes (16 Stellen)
EXCEPTIONS
INVALID_IMPORT_VALUE = 1
IMPORTING Parameters details for COM_ATTRIBUTE_TAB_CREATE_ML
IV_ATTR_ID - Name eines ABAP Dictionary-Objekts
Data type: DDOBJNAMEOptional: 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
IS_ATTRIBUTE_ATTR_TEXT - Attribute Description
Data type: COMT_ATTRIBUTE_TEXT_TABOptional: No
Call by Reference: Yes
IV_ATTR_DATATYPE - Attributstyp
Data type: COMT_ATTR_DATATYPEOptional: No
Call by Reference: Yes
IV_ATTR_TABNAME - Tabellenname, 16-stellig
Data type: COMT_ATTR_TABNAMEOptional: No
Call by Reference: Yes
EXPORTING Parameters details for COM_ATTRIBUTE_TAB_CREATE_ML
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
EV_ATTRIBUTE_GUID - GUID eines Attributes (16 Stellen)
Data type: COMT_ATTRIBUTE_GUIDOptional: 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_CREATE_ML 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_et_attribute_t | TYPE COMT_ATTRIBUTE_T_EXT_TAB, " | |||
| lv_iv_attr_checkbox | TYPE COMT_CHECKBOX, " SPACE | |||
| lv_ev_attribute_guid | TYPE COMT_ATTRIBUTE_GUID, " | |||
| 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_is_attribute_attr_text | TYPE COMT_ATTRIBUTE_TEXT_TAB, " | |||
| lv_iv_attr_datatype | TYPE COMT_ATTR_DATATYPE, " | |||
| lv_iv_attr_tabname | TYPE COMT_ATTR_TABNAME. " |
|   CALL FUNCTION 'COM_ATTRIBUTE_TAB_CREATE_ML' "create one entry in table 'comc_attribute' |
| EXPORTING | ||
| IV_ATTR_ID | = lv_iv_attr_id | |
| 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 | |
| IS_ATTRIBUTE_ATTR_TEXT | = lv_is_attribute_attr_text | |
| IV_ATTR_DATATYPE | = lv_iv_attr_datatype | |
| IV_ATTR_TABNAME | = lv_iv_attr_tabname | |
| IMPORTING | ||
| ET_ATTRIBUTE | = lv_et_attribute | |
| ET_ATTRIBUTE_T | = lv_et_attribute_t | |
| EV_ATTRIBUTE_GUID | = lv_ev_attribute_guid | |
| EXCEPTIONS | ||
| INVALID_IMPORT_VALUE = 1 | ||
| . " COM_ATTRIBUTE_TAB_CREATE_ML | ||
ABAP code using 7.40 inline data declarations to call FM COM_ATTRIBUTE_TAB_CREATE_ML
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) | = ' '. | |||
Search for further information about these or an SAP related objects