SAP Function Modules

CRM_GENIL_EXEC_BO_METHOD SAP Function module







CRM_GENIL_EXEC_BO_METHOD is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CRM_GENIL_EXEC_BO_METHOD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CRM_GENIL_RFCL
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM CRM_GENIL_EXEC_BO_METHOD - CRM GENIL EXEC BO METHOD





CALL FUNCTION 'CRM_GENIL_EXEC_BO_METHOD' "
  EXPORTING
    iv_object_name =            " crmt_ext_obj_name
    iv_method_name =            " crmt_obj_method_name
    it_parameter_list =         " crmt_name_value_pair_tab
  TABLES
    it_object_list =            " crmt_obj_instance
    et_failed_obj =             " crmt_obj_instance
    et_data_hdr =               " crmt_genil_rfc_data_hdr
    et_data_attr =              " crmt_genil_rfc_data_attr
    et_data_rels =              " crmt_genil_rfc_data_rel
    et_data_rel_obj =           " crmt_genil_rfc_data_rel_obj
    et_changed_obj =            " crmt_obj_instance
  EXCEPTIONS
    ERROR_OCCURED = 1           "
    .  "  CRM_GENIL_EXEC_BO_METHOD

ABAP code example for Function Module CRM_GENIL_EXEC_BO_METHOD





The ABAP code below is a full code listing to execute function module CRM_GENIL_EXEC_BO_METHOD including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_it_object_list  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE,"TABLES PARAM
wa_it_object_list  LIKE LINE OF it_it_object_list ,
it_et_failed_obj  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE,"TABLES PARAM
wa_et_failed_obj  LIKE LINE OF it_et_failed_obj ,
it_et_data_hdr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_HDR,"TABLES PARAM
wa_et_data_hdr  LIKE LINE OF it_et_data_hdr ,
it_et_data_attr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_ATTR,"TABLES PARAM
wa_et_data_attr  LIKE LINE OF it_et_data_attr ,
it_et_data_rels  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL,"TABLES PARAM
wa_et_data_rels  LIKE LINE OF it_et_data_rels ,
it_et_data_rel_obj  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL_OBJ,"TABLES PARAM
wa_et_data_rel_obj  LIKE LINE OF it_et_data_rel_obj ,
it_et_changed_obj  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE,"TABLES PARAM
wa_et_changed_obj  LIKE LINE OF it_et_changed_obj .

DATA(ld_iv_object_name) = 'Check type of data required'.
DATA(ld_iv_method_name) = 'Check type of data required'.
DATA(ld_it_parameter_list) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_object_list to it_it_object_list.

"populate fields of struture and append to itab
append wa_et_failed_obj to it_et_failed_obj.

"populate fields of struture and append to itab
append wa_et_data_hdr to it_et_data_hdr.

"populate fields of struture and append to itab
append wa_et_data_attr to it_et_data_attr.

"populate fields of struture and append to itab
append wa_et_data_rels to it_et_data_rels.

"populate fields of struture and append to itab
append wa_et_data_rel_obj to it_et_data_rel_obj.

"populate fields of struture and append to itab
append wa_et_changed_obj to it_et_changed_obj. . CALL FUNCTION 'CRM_GENIL_EXEC_BO_METHOD' EXPORTING iv_object_name = ld_iv_object_name iv_method_name = ld_iv_method_name it_parameter_list = ld_it_parameter_list TABLES it_object_list = it_it_object_list et_failed_obj = it_et_failed_obj et_data_hdr = it_et_data_hdr et_data_attr = it_et_data_attr et_data_rels = it_et_data_rels et_data_rel_obj = it_et_data_rel_obj et_changed_obj = it_et_changed_obj EXCEPTIONS ERROR_OCCURED = 1 . " CRM_GENIL_EXEC_BO_METHOD
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_iv_object_name  TYPE CRMT_EXT_OBJ_NAME ,
it_it_object_list  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE ,
wa_it_object_list  LIKE LINE OF it_it_object_list,
ld_iv_method_name  TYPE CRMT_OBJ_METHOD_NAME ,
it_et_failed_obj  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE ,
wa_et_failed_obj  LIKE LINE OF it_et_failed_obj,
ld_it_parameter_list  TYPE CRMT_NAME_VALUE_PAIR_TAB ,
it_et_data_hdr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_HDR ,
wa_et_data_hdr  LIKE LINE OF it_et_data_hdr,
it_et_data_attr  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_ATTR ,
wa_et_data_attr  LIKE LINE OF it_et_data_attr,
it_et_data_rels  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL ,
wa_et_data_rels  LIKE LINE OF it_et_data_rels,
it_et_data_rel_obj  TYPE STANDARD TABLE OF CRMT_GENIL_RFC_DATA_REL_OBJ ,
wa_et_data_rel_obj  LIKE LINE OF it_et_data_rel_obj,
it_et_changed_obj  TYPE STANDARD TABLE OF CRMT_OBJ_INSTANCE ,
wa_et_changed_obj  LIKE LINE OF it_et_changed_obj.

ld_iv_object_name = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_object_list to it_it_object_list.
ld_iv_method_name = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_failed_obj to it_et_failed_obj.
ld_it_parameter_list = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_data_hdr to it_et_data_hdr.

"populate fields of struture and append to itab
append wa_et_data_attr to it_et_data_attr.

"populate fields of struture and append to itab
append wa_et_data_rels to it_et_data_rels.

"populate fields of struture and append to itab
append wa_et_data_rel_obj to it_et_data_rel_obj.

"populate fields of struture and append to itab
append wa_et_changed_obj to it_et_changed_obj.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CRM_GENIL_EXEC_BO_METHOD or its description.