SAP CATT_ATTRIBUTE_INSERT Function Module for CATT Test Data Memory









CATT_ATTRIBUTE_INSERT is a standard catt attribute insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CATT Test Data Memory 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 catt attribute insert FM, simply by entering the name CATT_ATTRIBUTE_INSERT into the relevant SAP transaction such as SE37 or SE38.

Function Group: KKC2
Program Name: SAPLKKC2
Main Program: SAPLKKC2
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CATT_ATTRIBUTE_INSERT 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 'CATT_ATTRIBUTE_INSERT'"CATT Test Data Memory
EXPORTING
COBJ_ID = "
* DDMSG4 = "
* MSG4 = "
* DDFLD1 = "
* FLD1 = "
* DDFLD2 = "
* FLD2 = "
* DDFLD3 = "
* FLD3 = "
* DDFLD4 = "
* FLD4 = "
* MSGID = "
* MSGNO = "
* DDMSG1 = "
* MSG1 = "
* DDMSG2 = "
* MSG2 = "
* DDMSG3 = "
* MSG3 = "

IMPORTING
RCODE = "Return Code
.



IMPORTING Parameters details for CATT_ATTRIBUTE_INSERT

COBJ_ID -

Data type: CATDE-COBJ_ID
Optional: No
Call by Reference: No ( called with pass by value option)

DDMSG4 -

Data type: CATDE-DDMSG4
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSG4 -

Data type: CATDE-MSG4
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDFLD1 -

Data type: CATDE-DDFLD1
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLD1 -

Data type: CATDE-FLD1
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDFLD2 -

Data type: CATDE-DDFLD2
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLD2 -

Data type: CATDE-FLD2
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDFLD3 -

Data type: CATDE-DDFLD3
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLD3 -

Data type: CATDE-FLD3
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDFLD4 -

Data type: CATDE-DDFLD4
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLD4 -

Data type: CATDE-FLD4
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSGID -

Data type: CATDE-MSGID
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSGNO -

Data type: CATDE-MSGNO
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDMSG1 -

Data type: CATDE-DDMSG1
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSG1 -

Data type: CATDE-MSG1
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDMSG2 -

Data type: CATDE-DDMSG2
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSG2 -

Data type: CATDE-MSG2
Optional: Yes
Call by Reference: No ( called with pass by value option)

DDMSG3 -

Data type: CATDE-DDMSG3
Optional: Yes
Call by Reference: No ( called with pass by value option)

MSG3 -

Data type: CATDE-MSG3
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CATT_ATTRIBUTE_INSERT

RCODE - Return Code

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CATT_ATTRIBUTE_INSERT 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_rcode  TYPE SY-SUBRC, "   
lv_cobj_id  TYPE CATDE-COBJ_ID, "   
lv_ddmsg4  TYPE CATDE-DDMSG4, "   
lv_msg4  TYPE CATDE-MSG4, "   
lv_ddfld1  TYPE CATDE-DDFLD1, "   
lv_fld1  TYPE CATDE-FLD1, "   
lv_ddfld2  TYPE CATDE-DDFLD2, "   
lv_fld2  TYPE CATDE-FLD2, "   
lv_ddfld3  TYPE CATDE-DDFLD3, "   
lv_fld3  TYPE CATDE-FLD3, "   
lv_ddfld4  TYPE CATDE-DDFLD4, "   
lv_fld4  TYPE CATDE-FLD4, "   
lv_msgid  TYPE CATDE-MSGID, "   
lv_msgno  TYPE CATDE-MSGNO, "   
lv_ddmsg1  TYPE CATDE-DDMSG1, "   
lv_msg1  TYPE CATDE-MSG1, "   
lv_ddmsg2  TYPE CATDE-DDMSG2, "   
lv_msg2  TYPE CATDE-MSG2, "   
lv_ddmsg3  TYPE CATDE-DDMSG3, "   
lv_msg3  TYPE CATDE-MSG3. "   

  CALL FUNCTION 'CATT_ATTRIBUTE_INSERT'  "CATT Test Data Memory
    EXPORTING
         COBJ_ID = lv_cobj_id
         DDMSG4 = lv_ddmsg4
         MSG4 = lv_msg4
         DDFLD1 = lv_ddfld1
         FLD1 = lv_fld1
         DDFLD2 = lv_ddfld2
         FLD2 = lv_fld2
         DDFLD3 = lv_ddfld3
         FLD3 = lv_fld3
         DDFLD4 = lv_ddfld4
         FLD4 = lv_fld4
         MSGID = lv_msgid
         MSGNO = lv_msgno
         DDMSG1 = lv_ddmsg1
         MSG1 = lv_msg1
         DDMSG2 = lv_ddmsg2
         MSG2 = lv_msg2
         DDMSG3 = lv_ddmsg3
         MSG3 = lv_msg3
    IMPORTING
         RCODE = lv_rcode
. " CATT_ATTRIBUTE_INSERT




ABAP code using 7.40 inline data declarations to call FM CATT_ATTRIBUTE_INSERT

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.

"SELECT single SUBRC FROM SY INTO @DATA(ld_rcode).
 
"SELECT single COBJ_ID FROM CATDE INTO @DATA(ld_cobj_id).
 
"SELECT single DDMSG4 FROM CATDE INTO @DATA(ld_ddmsg4).
 
"SELECT single MSG4 FROM CATDE INTO @DATA(ld_msg4).
 
"SELECT single DDFLD1 FROM CATDE INTO @DATA(ld_ddfld1).
 
"SELECT single FLD1 FROM CATDE INTO @DATA(ld_fld1).
 
"SELECT single DDFLD2 FROM CATDE INTO @DATA(ld_ddfld2).
 
"SELECT single FLD2 FROM CATDE INTO @DATA(ld_fld2).
 
"SELECT single DDFLD3 FROM CATDE INTO @DATA(ld_ddfld3).
 
"SELECT single FLD3 FROM CATDE INTO @DATA(ld_fld3).
 
"SELECT single DDFLD4 FROM CATDE INTO @DATA(ld_ddfld4).
 
"SELECT single FLD4 FROM CATDE INTO @DATA(ld_fld4).
 
"SELECT single MSGID FROM CATDE INTO @DATA(ld_msgid).
 
"SELECT single MSGNO FROM CATDE INTO @DATA(ld_msgno).
 
"SELECT single DDMSG1 FROM CATDE INTO @DATA(ld_ddmsg1).
 
"SELECT single MSG1 FROM CATDE INTO @DATA(ld_msg1).
 
"SELECT single DDMSG2 FROM CATDE INTO @DATA(ld_ddmsg2).
 
"SELECT single MSG2 FROM CATDE INTO @DATA(ld_msg2).
 
"SELECT single DDMSG3 FROM CATDE INTO @DATA(ld_ddmsg3).
 
"SELECT single MSG3 FROM CATDE INTO @DATA(ld_msg3).
 


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!