SAP Function Modules

RH_SAVE_DATA_FOR_INTEGRATION SAP Function module







RH_SAVE_DATA_FOR_INTEGRATION 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 RH_SAVE_DATA_FOR_INTEGRATION into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RHPI
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RH_SAVE_DATA_FOR_INTEGRATION - RH SAVE DATA FOR INTEGRATION





CALL FUNCTION 'RH_SAVE_DATA_FOR_INTEGRATION' "
* EXPORTING
*   client_spec_off = 'X'       " hrpp0c-test
*   update_t77int = 'X'         " hrpp0c-test
*   dup_pers_popup = 'X'        " hrpp0c-test
*   check_stru_auth = 'X'       " hrrhas-authy
  TABLES
    act_int =                   " t77int
*   err_int =                   " t77int
*   dup_ins =                   " t77int
  EXCEPTIONS
    INSERT_ERROR = 1            "
    MODIFY_ERROR = 2            "
    PERSON_ALREADY_IN_T77INT = 3  "
    EVENT_PROBLEM = 4           "
    .  "  RH_SAVE_DATA_FOR_INTEGRATION

ABAP code example for Function Module RH_SAVE_DATA_FOR_INTEGRATION





The ABAP code below is a full code listing to execute function module RH_SAVE_DATA_FOR_INTEGRATION 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_act_int  TYPE STANDARD TABLE OF T77INT,"TABLES PARAM
wa_act_int  LIKE LINE OF it_act_int ,
it_err_int  TYPE STANDARD TABLE OF T77INT,"TABLES PARAM
wa_err_int  LIKE LINE OF it_err_int ,
it_dup_ins  TYPE STANDARD TABLE OF T77INT,"TABLES PARAM
wa_dup_ins  LIKE LINE OF it_dup_ins .


DATA(ld_client_spec_off) = some text here

DATA(ld_update_t77int) = some text here

DATA(ld_dup_pers_popup) = some text here

DATA(ld_check_stru_auth) = some text here

"populate fields of struture and append to itab
append wa_act_int to it_act_int.

"populate fields of struture and append to itab
append wa_err_int to it_err_int.

"populate fields of struture and append to itab
append wa_dup_ins to it_dup_ins. . CALL FUNCTION 'RH_SAVE_DATA_FOR_INTEGRATION' * EXPORTING * client_spec_off = ld_client_spec_off * update_t77int = ld_update_t77int * dup_pers_popup = ld_dup_pers_popup * check_stru_auth = ld_check_stru_auth TABLES act_int = it_act_int * err_int = it_err_int * dup_ins = it_dup_ins EXCEPTIONS INSERT_ERROR = 1 MODIFY_ERROR = 2 PERSON_ALREADY_IN_T77INT = 3 EVENT_PROBLEM = 4 . " RH_SAVE_DATA_FOR_INTEGRATION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_client_spec_off  TYPE HRPP0C-TEST ,
it_act_int  TYPE STANDARD TABLE OF T77INT ,
wa_act_int  LIKE LINE OF it_act_int,
ld_update_t77int  TYPE HRPP0C-TEST ,
it_err_int  TYPE STANDARD TABLE OF T77INT ,
wa_err_int  LIKE LINE OF it_err_int,
ld_dup_pers_popup  TYPE HRPP0C-TEST ,
it_dup_ins  TYPE STANDARD TABLE OF T77INT ,
wa_dup_ins  LIKE LINE OF it_dup_ins,
ld_check_stru_auth  TYPE HRRHAS-AUTHY .


ld_client_spec_off = some text here

"populate fields of struture and append to itab
append wa_act_int to it_act_int.

ld_update_t77int = some text here

"populate fields of struture and append to itab
append wa_err_int to it_err_int.

ld_dup_pers_popup = some text here

"populate fields of struture and append to itab
append wa_dup_ins to it_dup_ins.

ld_check_stru_auth = some text here

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 RH_SAVE_DATA_FOR_INTEGRATION or its description.