SAP GENIL_MODIFY Function Module for









GENIL_MODIFY is a standard genil modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 modify FM, simply by entering the name GENIL_MODIFY 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_MODIFY 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_MODIFY'"
EXPORTING
* 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_DATA_HDR = "
IT_DATA_ATTR = "
IT_DATA_RELS = "
IT_DATA_REL_OBJ = "
* ET_ID_MAPPING = "
* ET_CHANGED_OBJ = "
* ET_GLOBAL_MESSAGES = "Return Parameter
* ET_OBJ_MESSAGES_HDR = "Header table for object related messages
* ET_OBJ_MESSAGES = "Return Parameter

EXCEPTIONS
ERROR_OCCURED = 1
.



IMPORTING Parameters details for GENIL_MODIFY

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_MODIFY

IT_DATA_HDR -

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

IT_DATA_ATTR -

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

IT_DATA_RELS -

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

IT_DATA_REL_OBJ -

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

ET_ID_MAPPING -

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

ET_CHANGED_OBJ -

Data type: CRMT_OBJ_INSTANCE
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

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

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_MODIFY 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_it_data_hdr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_HDR, "   
lv_error_occured  TYPE CRMT_GENIL_RFC_DATA_HDR, "   
lv_iv_global_messages_req  TYPE CRMT_GENIL_BOOLEAN, "   
lt_it_data_attr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_ATTR, "   
lv_iv_obj_messages_req  TYPE CRMT_GENIL_BOOLEAN, "   
lt_it_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_it_data_rel_obj  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL_OBJ, "   
lt_et_id_mapping  TYPE STANDARD TABLE OF CRMT_ID_MAPPING, "   
lv_iv_for_display  TYPE CRMT_GENIL_BOOLEAN, "   
lt_et_changed_obj  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE, "   
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. "   

  CALL FUNCTION 'GENIL_MODIFY'  "
    EXPORTING
         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_DATA_HDR = lt_it_data_hdr
         IT_DATA_ATTR = lt_it_data_attr
         IT_DATA_RELS = lt_it_data_rels
         IT_DATA_REL_OBJ = lt_it_data_rel_obj
         ET_ID_MAPPING = lt_et_id_mapping
         ET_CHANGED_OBJ = lt_et_changed_obj
         ET_GLOBAL_MESSAGES = lt_et_global_messages
         ET_OBJ_MESSAGES_HDR = lt_et_obj_messages_hdr
         ET_OBJ_MESSAGES = lt_et_obj_messages
    EXCEPTIONS
        ERROR_OCCURED = 1
. " GENIL_MODIFY




ABAP code using 7.40 inline data declarations to call FM GENIL_MODIFY

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!