SAP G_COMBINATIONS_BUILD Function Module for









G_COMBINATIONS_BUILD is a standard g combinations build 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 g combinations build FM, simply by entering the name G_COMBINATIONS_BUILD into the relevant SAP transaction such as SE37 or SE38.

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



Function G_COMBINATIONS_BUILD 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 'G_COMBINATIONS_BUILD'"
EXPORTING
* ACTIVITY = ' ' "Transaction (authorization check)
CHECK_TYP = "desired data type (1=actual, 2=plan,...)
* MULTI_SET = ' ' "not yet used
RECORD_KEY = "Record key for searching for the a
* T800D_TABLE = ' ' "
TABLE = "Table which is to be processed
* ALLOW_INITVALUE_WITHOUT_CHECK = ' ' "

TABLES
COMB_FIELDS = "Table with field name and field values
PERIOD = "valid period intervals/date interv

EXCEPTIONS
FROM_GT_TO_VALUE = 1 MORE_THAN_15 = 2 NO_COMB = 3 NO_ENTRY_IN_T800D = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLGUMD_001 Master Data User Exits for Reading Text
EXIT_SAPLGUMD_002 User exits for master data - check value
EXIT_SAPLGUMD_003 Master data user exits for reading value set
EXIT_SAPLGUMD_004 Master data user exits - FREE internally used tables
EXIT_SAPLGUMD_005 User exits for master data - REFRESH internally used tables
EXIT_SAPLGUMD_006 User exits for master data - add record with period-dependent add. info.
EXIT_SAPLGUMD_007 User Exits for Master Data - Derive Record with Period-Independent Info.

IMPORTING Parameters details for G_COMBINATIONS_BUILD

ACTIVITY - Transaction (authorization check)

Data type: RGUMD-VORGANG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHECK_TYP - desired data type (1=actual, 2=plan,...)

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

MULTI_SET - not yet used

Data type: RGSBS-SETNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RECORD_KEY - Record key for searching for the a

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

T800D_TABLE -

Data type: RGUMD-TABLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLE - Table which is to be processed

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

ALLOW_INITVALUE_WITHOUT_CHECK -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for G_COMBINATIONS_BUILD

COMB_FIELDS - Table with field name and field values

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

PERIOD - valid period intervals/date interv

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

EXCEPTIONS details

FROM_GT_TO_VALUE - G/L account number

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

MORE_THAN_15 - More than 10 fields in combination

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

NO_COMB - no valid combination found

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

NO_ENTRY_IN_T800D - G/L account number

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

Copy and paste ABAP code example for G_COMBINATIONS_BUILD 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_activity  TYPE RGUMD-VORGANG, "   SPACE
lt_comb_fields  TYPE STANDARD TABLE OF GMD02, "   
lv_from_gt_to_value  TYPE GMD02, "   
lt_period  TYPE STANDARD TABLE OF PERIODS, "   
lv_check_typ  TYPE RGUMD-CHECK_TYP, "   
lv_more_than_15  TYPE RGUMD, "   
lv_no_comb  TYPE RGUMD, "   
lv_multi_set  TYPE RGSBS-SETNR, "   SPACE
lv_record_key  TYPE ANY, "   
lv_no_entry_in_t800d  TYPE ANY, "   
lv_t800d_table  TYPE RGUMD-TABLE, "   SPACE
lv_table  TYPE RGUMD-TABLE, "   
lv_allow_initvalue_without_check  TYPE BOOLE-BOOLE. "   SPACE

  CALL FUNCTION 'G_COMBINATIONS_BUILD'  "
    EXPORTING
         ACTIVITY = lv_activity
         CHECK_TYP = lv_check_typ
         MULTI_SET = lv_multi_set
         RECORD_KEY = lv_record_key
         T800D_TABLE = lv_t800d_table
         TABLE = lv_table
         ALLOW_INITVALUE_WITHOUT_CHECK = lv_allow_initvalue_without_check
    TABLES
         COMB_FIELDS = lt_comb_fields
         PERIOD = lt_period
    EXCEPTIONS
        FROM_GT_TO_VALUE = 1
        MORE_THAN_15 = 2
        NO_COMB = 3
        NO_ENTRY_IN_T800D = 4
. " G_COMBINATIONS_BUILD




ABAP code using 7.40 inline data declarations to call FM G_COMBINATIONS_BUILD

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 VORGANG FROM RGUMD INTO @DATA(ld_activity).
DATA(ld_activity) = ' '.
 
 
 
 
"SELECT single CHECK_TYP FROM RGUMD INTO @DATA(ld_check_typ).
 
 
 
"SELECT single SETNR FROM RGSBS INTO @DATA(ld_multi_set).
DATA(ld_multi_set) = ' '.
 
 
 
"SELECT single TABLE FROM RGUMD INTO @DATA(ld_t800d_table).
DATA(ld_t800d_table) = ' '.
 
"SELECT single TABLE FROM RGUMD INTO @DATA(ld_table).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_allow_initvalue_without_check).
DATA(ld_allow_initvalue_without_check) = ' '.
 


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!