SAP GM_GET_SETTINGS Function Module for Get Grants Management Settings









GM_GET_SETTINGS is a standard gm get settings SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Grants Management Settings 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 gm get settings FM, simply by entering the name GM_GET_SETTINGS into the relevant SAP transaction such as SE37 or SE38.

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



Function GM_GET_SETTINGS 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 'GM_GET_SETTINGS'"Get Grants Management Settings
EXPORTING
I_FROM_DATE = "Valid from date
* I_COMPANY_CODE = "Company code settings
* I_CO_AREA = "Controlling Area

IMPORTING
E_GRANTS_ACTIVE = "Grantee active
E_FM_ACTIVE = "GM-FM Budget integration Indicator
E_FM_BUDGET_INT = "FM Budget integration Ledger
E_PBC_ACTIVE = "GM-PBC Integration Indicator
.



IMPORTING Parameters details for GM_GET_SETTINGS

I_FROM_DATE - Valid from date

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

I_COMPANY_CODE - Company code settings

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

I_CO_AREA - Controlling Area

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

EXPORTING Parameters details for GM_GET_SETTINGS

E_GRANTS_ACTIVE - Grantee active

Data type: GMCCSETTINGS-GRANTEE_ACTIVE
Optional: No
Call by Reference: Yes

E_FM_ACTIVE - GM-FM Budget integration Indicator

Data type: GMCCSETTINGS-FM_ACTIVE
Optional: No
Call by Reference: Yes

E_FM_BUDGET_INT - FM Budget integration Ledger

Data type: GMCCSETTINGS-FM_BUDGET_INT
Optional: No
Call by Reference: Yes

E_PBC_ACTIVE - GM-PBC Integration Indicator

Data type: GMCCSETTINGS-PBC_ACTIVE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GM_GET_SETTINGS 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_i_from_date  TYPE GMCCSETTINGS-FROM_DATE, "   
lv_e_grants_active  TYPE GMCCSETTINGS-GRANTEE_ACTIVE, "   
lv_e_fm_active  TYPE GMCCSETTINGS-FM_ACTIVE, "   
lv_i_company_code  TYPE GMCCSETTINGS-COMPANY_CODE, "   
lv_i_co_area  TYPE KOKRS, "   
lv_e_fm_budget_int  TYPE GMCCSETTINGS-FM_BUDGET_INT, "   
lv_e_pbc_active  TYPE GMCCSETTINGS-PBC_ACTIVE. "   

  CALL FUNCTION 'GM_GET_SETTINGS'  "Get Grants Management Settings
    EXPORTING
         I_FROM_DATE = lv_i_from_date
         I_COMPANY_CODE = lv_i_company_code
         I_CO_AREA = lv_i_co_area
    IMPORTING
         E_GRANTS_ACTIVE = lv_e_grants_active
         E_FM_ACTIVE = lv_e_fm_active
         E_FM_BUDGET_INT = lv_e_fm_budget_int
         E_PBC_ACTIVE = lv_e_pbc_active
. " GM_GET_SETTINGS




ABAP code using 7.40 inline data declarations to call FM GM_GET_SETTINGS

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 FROM_DATE FROM GMCCSETTINGS INTO @DATA(ld_i_from_date).
 
"SELECT single GRANTEE_ACTIVE FROM GMCCSETTINGS INTO @DATA(ld_e_grants_active).
 
"SELECT single FM_ACTIVE FROM GMCCSETTINGS INTO @DATA(ld_e_fm_active).
 
"SELECT single COMPANY_CODE FROM GMCCSETTINGS INTO @DATA(ld_i_company_code).
 
 
"SELECT single FM_BUDGET_INT FROM GMCCSETTINGS INTO @DATA(ld_e_fm_budget_int).
 
"SELECT single PBC_ACTIVE FROM GMCCSETTINGS INTO @DATA(ld_e_pbc_active).
 


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!