SAP GENIL_READ_SL Function Module for Stateless Read call









GENIL_READ_SL is a standard genil read 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 Stateless Read call 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 read sl FM, simply by entering the name GENIL_READ_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_READ_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_READ_SL'"Stateless Read call
EXPORTING
* IV_COMPONENT_SET = "Component Set Name for Generic Interaction Layer
* IV_COMPONENT = "Component Name
* IV_VIEW_NAME = "
* IV_GLOBAL_MESSAGES_REQ = "Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP
* IV_OBJ_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 All, C Abort
* IV_MSG_LEVEL = "Message Level
* IV_FOR_DISPLAY = "Logical Variable, Similar To ABAP_BOOL from Type Pool ABAP

TABLES
IT_REQUESTED_OBJECTS_SPEC = "Header Structure for specifying requested objects
* ET_GLOBAL_MESSAGES = "Return Parameter
* ET_OBJ_MESSAGES_HDR = "Header table for object related messages
* ET_OBJ_MESSAGES = "Return Parameter
IT_REQUEST_ATTRIBUTES = "Dummy structure for RFC
IT_REQUEST_RELATIONS = "Dummy Structure for RFC
ET_DATA_HDR = "
ET_DATA_ATTR = "
ET_DATA_RELS = "
ET_DATA_REL_OBJ = "
IT_PATH_HDR = "
IT_PATH = "

EXCEPTIONS
ERROR_OCCURED = 1
.



IMPORTING Parameters details for GENIL_READ_SL

IV_COMPONENT_SET - Component Set Name for Generic Interaction Layer

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

IV_COMPONENT - Component Name

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

IV_VIEW_NAME -

Data type: CRMT_VIEW_NAME
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_OBJ_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 All, C 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)

TABLES Parameters details for GENIL_READ_SL

IT_REQUESTED_OBJECTS_SPEC - Header Structure for specifying requested objects

Data type: GENILRFCT_REQ_OBJECT
Optional: No
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

ET_OBJ_MESSAGES_HDR - Header table for object related messages

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

ET_OBJ_MESSAGES - Return Parameter

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

IT_REQUEST_ATTRIBUTES - Dummy structure for RFC

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

IT_REQUEST_RELATIONS - Dummy Structure for RFC

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

ET_DATA_HDR -

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

ET_DATA_ATTR -

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

ET_DATA_RELS -

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

ET_DATA_REL_OBJ -

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

IT_PATH_HDR -

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

IT_PATH -

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

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_READ_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:
lv_error_occured  TYPE STRING, "   
lv_iv_component_set  TYPE CRMT_GENIL_APPL, "   
lt_it_requested_objects_spec  TYPE STANDARD TABLE OF GENILRFCT_REQ_OBJECT, "   
lt_et_global_messages  TYPE STANDARD TABLE OF GENILRFCT_MESSAGE, "   
lt_et_obj_messages_hdr  TYPE STANDARD TABLE OF GENILRFCT_OBJ_MESSAGE_HDR, "   
lt_et_obj_messages  TYPE STANDARD TABLE OF GENILRFCT_OBJ_MESSAGE, "   
lv_iv_component  TYPE CRMT_COMPONENT_NAME, "   
lt_it_request_attributes  TYPE STANDARD TABLE OF GENILRFCT_ATTR_NAME, "   
lv_iv_view_name  TYPE CRMT_VIEW_NAME, "   
lt_it_request_relations  TYPE STANDARD TABLE OF GENILRFCT_RELATION_NAME, "   
lt_et_data_hdr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_HDR, "   
lv_iv_global_messages_req  TYPE CRMT_GENIL_BOOLEAN, "   
lt_et_data_attr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_ATTR, "   
lv_iv_obj_messages_req  TYPE CRMT_GENIL_BOOLEAN, "   
lt_et_data_rels  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL, "   
lv_iv_message_type  TYPE BAPI_MTYPE, "   
lv_iv_msg_level  TYPE CRMT_GENIL_MSG_LEVEL, "   
lt_et_data_rel_obj  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL_OBJ, "   
lt_it_path_hdr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_GEN_HDR, "   
lv_iv_for_display  TYPE CRMT_GENIL_BOOLEAN, "   
lt_it_path  TYPE STANDARD TABLE OF CRMT_PATH_RELATION. "   

  CALL FUNCTION 'GENIL_READ_SL'  "Stateless Read call
    EXPORTING
         IV_COMPONENT_SET = lv_iv_component_set
         IV_COMPONENT = lv_iv_component
         IV_VIEW_NAME = lv_iv_view_name
         IV_GLOBAL_MESSAGES_REQ = lv_iv_global_messages_req
         IV_OBJ_MESSAGES_REQ = lv_iv_obj_messages_req
         IV_MESSAGE_TYPE = lv_iv_message_type
         IV_MSG_LEVEL = lv_iv_msg_level
         IV_FOR_DISPLAY = lv_iv_for_display
    TABLES
         IT_REQUESTED_OBJECTS_SPEC = lt_it_requested_objects_spec
         ET_GLOBAL_MESSAGES = lt_et_global_messages
         ET_OBJ_MESSAGES_HDR = lt_et_obj_messages_hdr
         ET_OBJ_MESSAGES = lt_et_obj_messages
         IT_REQUEST_ATTRIBUTES = lt_it_request_attributes
         IT_REQUEST_RELATIONS = lt_it_request_relations
         ET_DATA_HDR = lt_et_data_hdr
         ET_DATA_ATTR = lt_et_data_attr
         ET_DATA_RELS = lt_et_data_rels
         ET_DATA_REL_OBJ = lt_et_data_rel_obj
         IT_PATH_HDR = lt_it_path_hdr
         IT_PATH = lt_it_path
    EXCEPTIONS
        ERROR_OCCURED = 1
. " GENIL_READ_SL




ABAP code using 7.40 inline data declarations to call FM GENIL_READ_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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!