SAP GENIL_GET_MODEL_SL Function Module for Retrieve current model data









GENIL_GET_MODEL_SL is a standard genil get model sl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve current model data 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 genil get model sl FM, simply by entering the name GENIL_GET_MODEL_SL into the relevant SAP transaction such as SE37 or SE38.

Function Group: GENIL_RFCL
Program Name: SAPLGENIL_RFCL
Main Program: SAPLGENIL_RFCL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function GENIL_GET_MODEL_SL 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 'GENIL_GET_MODEL_SL'"Retrieve current model data
EXPORTING
* IV_COMPONENT = "Filter by Component Name
* IV_COMPONENT_SET = "Filter by Component Set Name
* IV_GLOBAL_MESSAGES_REQ = "Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP
* IV_MESSAGE_TYPE = "Message type: S Success, E Error, W Warning, I Info, A Abort
* IV_MSG_LEVEL = "Message Level
* IV_FOR_DISPLAY = "Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP
* IV_IGNORE_MODEL_ERRORS = ABAP_FALSE "Ignore model errors - return model with incorrect entries removed

TABLES
* ET_OBJECTS = "Properties of GenIL Object
* ET_OBJECT_ATTRS = "Object Attributes with Characteristics
* ET_OBJECT_METHODS = "Structure for Defining Object Methods
* ET_RELATIONS = "Relation Definition
* ET_DQUERY_DEF = "Operators for selection parameter of dynamic query attribute
* ET_DQUERY_ATTR_DEF = "Operators for selection parameter of dynamic query attribute
* ET_DQUERY_OPTIONS = "Operator for selection parameter of dynamic query attribute
* ET_GLOBAL_MESSAGES = "Return Parameter

EXCEPTIONS
ERROR_OCCURED = 1
.



IMPORTING Parameters details for GENIL_GET_MODEL_SL

IV_COMPONENT - Filter by Component Name

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

IV_COMPONENT_SET - Filter by Component Set Name

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

IV_GLOBAL_MESSAGES_REQ - Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP

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

IV_MESSAGE_TYPE - Message type: S Success, E Error, W Warning, I Info, A Abort

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

IV_MSG_LEVEL - Message Level

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

IV_FOR_DISPLAY - Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP

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

IV_IGNORE_MODEL_ERRORS - Ignore model errors - return model with incorrect entries removed

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

TABLES Parameters details for GENIL_GET_MODEL_SL

ET_OBJECTS - Properties of GenIL Object

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

ET_OBJECT_ATTRS - Object Attributes with Characteristics

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

ET_OBJECT_METHODS - Structure for Defining Object Methods

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

ET_RELATIONS - Relation Definition

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

ET_DQUERY_DEF - Operators for selection parameter of dynamic query attribute

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

ET_DQUERY_ATTR_DEF - Operators for selection parameter of dynamic query attribute

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

ET_DQUERY_OPTIONS - Operator for selection parameter of dynamic query attribute

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

ET_GLOBAL_MESSAGES - Return Parameter

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

EXCEPTIONS details

ERROR_OCCURED -

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

Copy and paste ABAP code example for GENIL_GET_MODEL_SL 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:
lt_et_objects  TYPE STANDARD TABLE OF GENILRFCT_OBJ_PROPERTIES, "   
lv_iv_component  TYPE CRMT_COMPONENT_NAME, "   
lv_error_occured  TYPE CRMT_COMPONENT_NAME, "   
lt_et_object_attrs  TYPE STANDARD TABLE OF GENILRFCT_MODEL_ATTR, "   
lv_iv_component_set  TYPE CRMT_GENIL_APPL, "   
lt_et_object_methods  TYPE STANDARD TABLE OF CRMT_GENIL_OBJ_METHOD_DEF, "   
lv_iv_global_messages_req  TYPE CRMT_GENIL_BOOLEAN, "   
lt_et_relations  TYPE STANDARD TABLE OF GENILRFCT_RELATION_DETAIL, "   
lv_iv_message_type  TYPE BAPI_MTYPE, "   
lv_iv_msg_level  TYPE CRMT_GENIL_MSG_LEVEL, "   
lt_et_dquery_def  TYPE STANDARD TABLE OF GENILRFCT_DQUERY_ATTR_DEF, "   
lv_iv_for_display  TYPE CRMT_GENIL_BOOLEAN, "   
lt_et_dquery_attr_def  TYPE STANDARD TABLE OF GENILRFCT_ATTR_OPTION, "   
lt_et_dquery_options  TYPE STANDARD TABLE OF GENILT_OPTION, "   
lv_iv_ignore_model_errors  TYPE CRMT_BOOLEAN, "   ABAP_FALSE
lt_et_global_messages  TYPE STANDARD TABLE OF GENILRFCT_MESSAGE. "   

  CALL FUNCTION 'GENIL_GET_MODEL_SL'  "Retrieve current model data
    EXPORTING
         IV_COMPONENT = lv_iv_component
         IV_COMPONENT_SET = lv_iv_component_set
         IV_GLOBAL_MESSAGES_REQ = lv_iv_global_messages_req
         IV_MESSAGE_TYPE = lv_iv_message_type
         IV_MSG_LEVEL = lv_iv_msg_level
         IV_FOR_DISPLAY = lv_iv_for_display
         IV_IGNORE_MODEL_ERRORS = lv_iv_ignore_model_errors
    TABLES
         ET_OBJECTS = lt_et_objects
         ET_OBJECT_ATTRS = lt_et_object_attrs
         ET_OBJECT_METHODS = lt_et_object_methods
         ET_RELATIONS = lt_et_relations
         ET_DQUERY_DEF = lt_et_dquery_def
         ET_DQUERY_ATTR_DEF = lt_et_dquery_attr_def
         ET_DQUERY_OPTIONS = lt_et_dquery_options
         ET_GLOBAL_MESSAGES = lt_et_global_messages
    EXCEPTIONS
        ERROR_OCCURED = 1
. " GENIL_GET_MODEL_SL




ABAP code using 7.40 inline data declarations to call FM GENIL_GET_MODEL_SL

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_ignore_model_errors) = ABAP_FALSE.
 
 


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!