SAP GM_OBJECTS_VALIDATE Function Module for Validate Grant Sponsored Objects









GM_OBJECTS_VALIDATE is a standard gm objects validate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Validate Grant Sponsored Objects 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 objects validate FM, simply by entering the name GM_OBJECTS_VALIDATE into the relevant SAP transaction such as SE37 or SE38.

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



Function GM_OBJECTS_VALIDATE 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_OBJECTS_VALIDATE'"Validate Grant Sponsored Objects
EXPORTING
I_CHECK_DATE = "Posting date in the document
* I_BUKRS = "Company Code
I_GRANT_NBR = "Grant
* I_SPONSORED_PROG = "Sponsored Program
* I_SPONSORED_CLASS = "Sponsored Class
* I_GEBER = "Fund
* I_CHECK_COMBINATION = "Check sponsored object combination
* I_SHOW_ERROR = "Checkbox
* I_CHECK_GRANT_ONLY = "Only check Grant
* I_IDCPOST = "Checkbox

EXCEPTIONS
INVALID_OBJECT = 1
.



IMPORTING Parameters details for GM_OBJECTS_VALIDATE

I_CHECK_DATE - Posting date in the document

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

I_BUKRS - Company Code

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

I_GRANT_NBR - Grant

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

I_SPONSORED_PROG - Sponsored Program

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

I_SPONSORED_CLASS - Sponsored Class

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

I_GEBER - Fund

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

I_CHECK_COMBINATION - Check sponsored object combination

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

I_SHOW_ERROR - Checkbox

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

I_CHECK_GRANT_ONLY - Only check Grant

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

I_IDCPOST - Checkbox

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

EXCEPTIONS details

INVALID_OBJECT - Invalid GM posting objects

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

Copy and paste ABAP code example for GM_OBJECTS_VALIDATE 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_check_date  TYPE COBL-BUDAT, "   
lv_invalid_object  TYPE COBL, "   
lv_i_bukrs  TYPE BUKRS, "   
lv_i_grant_nbr  TYPE GMDERIVE-GRANT_NBR, "   
lv_i_sponsored_prog  TYPE GMDERIVE-SPONSORED_PROG, "   
lv_i_sponsored_class  TYPE GMDERIVE-SPONSORED_CLASS, "   
lv_i_geber  TYPE COBL-GEBER, "   
lv_i_check_combination  TYPE XFELD, "   
lv_i_show_error  TYPE XFELD, "   
lv_i_check_grant_only  TYPE XFELD, "   
lv_i_idcpost  TYPE XFELD. "   

  CALL FUNCTION 'GM_OBJECTS_VALIDATE'  "Validate Grant Sponsored Objects
    EXPORTING
         I_CHECK_DATE = lv_i_check_date
         I_BUKRS = lv_i_bukrs
         I_GRANT_NBR = lv_i_grant_nbr
         I_SPONSORED_PROG = lv_i_sponsored_prog
         I_SPONSORED_CLASS = lv_i_sponsored_class
         I_GEBER = lv_i_geber
         I_CHECK_COMBINATION = lv_i_check_combination
         I_SHOW_ERROR = lv_i_show_error
         I_CHECK_GRANT_ONLY = lv_i_check_grant_only
         I_IDCPOST = lv_i_idcpost
    EXCEPTIONS
        INVALID_OBJECT = 1
. " GM_OBJECTS_VALIDATE




ABAP code using 7.40 inline data declarations to call FM GM_OBJECTS_VALIDATE

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 BUDAT FROM COBL INTO @DATA(ld_i_check_date).
 
 
 
"SELECT single GRANT_NBR FROM GMDERIVE INTO @DATA(ld_i_grant_nbr).
 
"SELECT single SPONSORED_PROG FROM GMDERIVE INTO @DATA(ld_i_sponsored_prog).
 
"SELECT single SPONSORED_CLASS FROM GMDERIVE INTO @DATA(ld_i_sponsored_class).
 
"SELECT single GEBER FROM COBL INTO @DATA(ld_i_geber).
 
 
 
 
 


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!