SAP CHECK_COMBINATION_OF_ADDFIELDS Function Module for









CHECK_COMBINATION_OF_ADDFIELDS is a standard check combination of addfields SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 check combination of addfields FM, simply by entering the name CHECK_COMBINATION_OF_ADDFIELDS into the relevant SAP transaction such as SE37 or SE38.

Function Group: GLIA
Program Name: SAPLGLIA
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHECK_COMBINATION_OF_ADDFIELDS 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 'CHECK_COMBINATION_OF_ADDFIELDS'"
EXPORTING
E_AFTYP = "
E_ITEM = "
E_ADFLD1 = "
* E_ADFLD2 = "
* E_ADFLD3 = "
* E_FLGERR = 'X' "

IMPORTING
I_SUBRC = "

EXCEPTIONS
NOT_ALLOWED = 1
.



IMPORTING Parameters details for CHECK_COMBINATION_OF_ADDFIELDS

E_AFTYP -

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

E_ITEM -

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

E_ADFLD1 -

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

E_ADFLD2 -

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

E_ADFLD3 -

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

E_FLGERR -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CHECK_COMBINATION_OF_ADDFIELDS

I_SUBRC -

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

EXCEPTIONS details

NOT_ALLOWED -

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

Copy and paste ABAP code example for CHECK_COMBINATION_OF_ADDFIELDS 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_e_aftyp  TYPE T85Y-AFTYP, "   
lv_i_subrc  TYPE SY-SUBRC, "   
lv_not_allowed  TYPE SY, "   
lv_e_item  TYPE T854-ITEM, "   
lv_e_adfld1  TYPE T85A-ADFLD1, "   
lv_e_adfld2  TYPE T85B-ADFLD2, "   
lv_e_adfld3  TYPE T85C-ADFLD3, "   
lv_e_flgerr  TYPE C. "   'X'

  CALL FUNCTION 'CHECK_COMBINATION_OF_ADDFIELDS'  "
    EXPORTING
         E_AFTYP = lv_e_aftyp
         E_ITEM = lv_e_item
         E_ADFLD1 = lv_e_adfld1
         E_ADFLD2 = lv_e_adfld2
         E_ADFLD3 = lv_e_adfld3
         E_FLGERR = lv_e_flgerr
    IMPORTING
         I_SUBRC = lv_i_subrc
    EXCEPTIONS
        NOT_ALLOWED = 1
. " CHECK_COMBINATION_OF_ADDFIELDS




ABAP code using 7.40 inline data declarations to call FM CHECK_COMBINATION_OF_ADDFIELDS

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 AFTYP FROM T85Y INTO @DATA(ld_e_aftyp).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_i_subrc).
 
 
"SELECT single ITEM FROM T854 INTO @DATA(ld_e_item).
 
"SELECT single ADFLD1 FROM T85A INTO @DATA(ld_e_adfld1).
 
"SELECT single ADFLD2 FROM T85B INTO @DATA(ld_e_adfld2).
 
"SELECT single ADFLD3 FROM T85C INTO @DATA(ld_e_adfld3).
 
DATA(ld_e_flgerr) = 'X'.
 


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!