SAP GM_POPUP_FM_OBJECTS_IN_CLASS Function Module for Popup Selection for FM Obejcts from Sponsored Class









GM_POPUP_FM_OBJECTS_IN_CLASS is a standard gm popup fm objects in class SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Popup Selection for FM Obejcts from Sponsored Class 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 popup fm objects in class FM, simply by entering the name GM_POPUP_FM_OBJECTS_IN_CLASS into the relevant SAP transaction such as SE37 or SE38.

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



Function GM_POPUP_FM_OBJECTS_IN_CLASS 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_POPUP_FM_OBJECTS_IN_CLASS'"Popup Selection for FM Obejcts from Sponsored Class
EXPORTING
I_SPONSORED_CLASS = "Sponsored Class
* I_FM_AREA = "Financial Management Area
* I_FIPEX = "Commitment item (No longer in use -> FM_FIPEX)
* I_POPUP_FIPEX = "Checkbox

IMPORTING
E_FIPEX = "Internal tables, current number of lines
E_GMSPCLASS = "Sponsored Class Master

TABLES
* T_GMSPCLASS_FMBT = "Sponsored class - sponsor specific data
* T_GMSPCLASS_FMBA = "Sponsored Class Master Data - Budget Allowed Object

EXCEPTIONS
CLASS_NOT_FOUND = 1 INVALID_FM_OBJECT = 2
.



IMPORTING Parameters details for GM_POPUP_FM_OBJECTS_IN_CLASS

I_SPONSORED_CLASS - Sponsored Class

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

I_FM_AREA - Financial Management Area

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

I_FIPEX - Commitment item (No longer in use -> FM_FIPEX)

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

I_POPUP_FIPEX - Checkbox

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

EXPORTING Parameters details for GM_POPUP_FM_OBJECTS_IN_CLASS

E_FIPEX - Internal tables, current number of lines

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

E_GMSPCLASS - Sponsored Class Master

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

TABLES Parameters details for GM_POPUP_FM_OBJECTS_IN_CLASS

T_GMSPCLASS_FMBT - Sponsored class - sponsor specific data

Data type: GMSPCLASS_FMBT
Optional: Yes
Call by Reference: Yes

T_GMSPCLASS_FMBA - Sponsored Class Master Data - Budget Allowed Object

Data type: GMSPCLASS_FMBA
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CLASS_NOT_FOUND - Sponsored Class not found

Data type:
Optional: No
Call by Reference: Yes

INVALID_FM_OBJECT - Invalid FM Object

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GM_POPUP_FM_OBJECTS_IN_CLASS 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_fipex  TYPE FM_FIPEX, "   
lv_class_not_found  TYPE FM_FIPEX, "   
lt_t_gmspclass_fmbt  TYPE STANDARD TABLE OF GMSPCLASS_FMBT, "   
lv_i_sponsored_class  TYPE GM_SPONSORED_CLASS, "   
lv_i_fm_area  TYPE FIKRS, "   
lv_e_gmspclass  TYPE GMSPCLASS, "   
lt_t_gmspclass_fmba  TYPE STANDARD TABLE OF GMSPCLASS_FMBA, "   
lv_invalid_fm_object  TYPE GMSPCLASS_FMBA, "   
lv_i_fipex  TYPE FM_FIPEX, "   
lv_i_popup_fipex  TYPE XFELD. "   

  CALL FUNCTION 'GM_POPUP_FM_OBJECTS_IN_CLASS'  "Popup Selection for FM Obejcts from Sponsored Class
    EXPORTING
         I_SPONSORED_CLASS = lv_i_sponsored_class
         I_FM_AREA = lv_i_fm_area
         I_FIPEX = lv_i_fipex
         I_POPUP_FIPEX = lv_i_popup_fipex
    IMPORTING
         E_FIPEX = lv_e_fipex
         E_GMSPCLASS = lv_e_gmspclass
    TABLES
         T_GMSPCLASS_FMBT = lt_t_gmspclass_fmbt
         T_GMSPCLASS_FMBA = lt_t_gmspclass_fmba
    EXCEPTIONS
        CLASS_NOT_FOUND = 1
        INVALID_FM_OBJECT = 2
. " GM_POPUP_FM_OBJECTS_IN_CLASS




ABAP code using 7.40 inline data declarations to call FM GM_POPUP_FM_OBJECTS_IN_CLASS

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.

 
 
 
 
 
 
 
 
 
 


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!