SAP Function Modules

RSDG_IOBJ_MULTI_SAVE SAP Function module - Data Basis: Saves a Range of InfoObjects (with Commits)







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

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


Pattern for FM RSDG_IOBJ_MULTI_SAVE - RSDG IOBJ MULTI SAVE





CALL FUNCTION 'RSDG_IOBJ_MULTI_SAVE' "Data Basis: Saves a Range of InfoObjects (with Commits)
* EXPORTING
*   i_with_enqueue = RS_C_FALSE  " rs_bool      Lock InfoObjects (Indicator)
*   i_write_protocol = RS_C_TRUE  " rs_bool     Write Log (Indicator)
*   i_set_time_stamp = RS_C_TRUE  " rs_bool     Write Time Stamp? (Indicator)
*   i_t_iobjt =                 " rsd_t_iobjt   Additional Texts (Overwrites Texts in C_T_VIOBJ)
*   i_t_atrnavt =               " rsd_t_atrnavt  Additional Navigation Texts
*   i_langu = SY-LANGU          " sy-langu      Language of Texts in C_T_VIOBJ
*   i_infoobjcat =              " rsd_infoobjcat  InfoObject Catalog for New InfoObjects
*   i_t_rsarout =               " rsaa_t_arout  Transfer Routines of InfoObjects (via IOBJROUT)
*   i_t_rsaroutt =              " rsaa_t_aroutt  Transfer Routine Texts
*   i_t_rsaabap =               " rsaa_t_aabap  ABAP of Transfer Routines
  IMPORTING
    e_subrc =                   " sy-subrc      Return Code = 4: Error
    e_t_msg =                   " rs_t_msg      Messages
  CHANGING
    c_t_viobj =                 " rsd_t_viobj   InfoObjects (Incorrect IOs Are Marked)
*   c_t_iobj_cmp =              " rsd_t_iobj_cmp  Compounding of InfoObjects
*   c_t_atr =                   " rsd_t_atr     Master Data Attributes (Basic Characteristic Level)
*   c_t_atr_nav =               " rsd_t_atr_nav  Navigation Attributes (Characteristic Level)
*   c_t_hana_attr =             " rsd_t_iprov_mapping  TTyp: Mapping of INfoProvider fields to HANA/ODP fields
    .  "  RSDG_IOBJ_MULTI_SAVE

ABAP code example for Function Module RSDG_IOBJ_MULTI_SAVE





The ABAP code below is a full code listing to execute function module RSDG_IOBJ_MULTI_SAVE 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:
ld_e_subrc  TYPE SY-SUBRC ,
ld_e_t_msg  TYPE RS_T_MSG .

DATA(ld_c_t_viobj) = 'Check type of data required'.
DATA(ld_c_t_iobj_cmp) = 'Check type of data required'.
DATA(ld_c_t_atr) = 'Check type of data required'.
DATA(ld_c_t_atr_nav) = 'Check type of data required'.
DATA(ld_c_t_hana_attr) = 'Check type of data required'.
DATA(ld_i_with_enqueue) = 'Check type of data required'.
DATA(ld_i_write_protocol) = 'Check type of data required'.
DATA(ld_i_set_time_stamp) = 'Check type of data required'.
DATA(ld_i_t_iobjt) = 'Check type of data required'.
DATA(ld_i_t_atrnavt) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_infoobjcat) = 'Check type of data required'.
DATA(ld_i_t_rsarout) = 'Check type of data required'.
DATA(ld_i_t_rsaroutt) = 'Check type of data required'.
DATA(ld_i_t_rsaabap) = 'Check type of data required'. . CALL FUNCTION 'RSDG_IOBJ_MULTI_SAVE' * EXPORTING * i_with_enqueue = ld_i_with_enqueue * i_write_protocol = ld_i_write_protocol * i_set_time_stamp = ld_i_set_time_stamp * i_t_iobjt = ld_i_t_iobjt * i_t_atrnavt = ld_i_t_atrnavt * i_langu = ld_i_langu * i_infoobjcat = ld_i_infoobjcat * i_t_rsarout = ld_i_t_rsarout * i_t_rsaroutt = ld_i_t_rsaroutt * i_t_rsaabap = ld_i_t_rsaabap IMPORTING e_subrc = ld_e_subrc e_t_msg = ld_e_t_msg CHANGING c_t_viobj = ld_c_t_viobj * c_t_iobj_cmp = ld_c_t_iobj_cmp * c_t_atr = ld_c_t_atr * c_t_atr_nav = ld_c_t_atr_nav * c_t_hana_attr = ld_c_t_hana_attr . " RSDG_IOBJ_MULTI_SAVE
IF SY-SUBRC EQ 0. "All OK 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_c_t_viobj  TYPE RSD_T_VIOBJ ,
ld_e_subrc  TYPE SY-SUBRC ,
ld_i_with_enqueue  TYPE RS_BOOL ,
ld_c_t_iobj_cmp  TYPE RSD_T_IOBJ_CMP ,
ld_e_t_msg  TYPE RS_T_MSG ,
ld_i_write_protocol  TYPE RS_BOOL ,
ld_c_t_atr  TYPE RSD_T_ATR ,
ld_i_set_time_stamp  TYPE RS_BOOL ,
ld_c_t_atr_nav  TYPE RSD_T_ATR_NAV ,
ld_i_t_iobjt  TYPE RSD_T_IOBJT ,
ld_c_t_hana_attr  TYPE RSD_T_IPROV_MAPPING ,
ld_i_t_atrnavt  TYPE RSD_T_ATRNAVT ,
ld_i_langu  TYPE SY-LANGU ,
ld_i_infoobjcat  TYPE RSD_INFOOBJCAT ,
ld_i_t_rsarout  TYPE RSAA_T_AROUT ,
ld_i_t_rsaroutt  TYPE RSAA_T_AROUTT ,
ld_i_t_rsaabap  TYPE RSAA_T_AABAP .

ld_c_t_viobj = 'Check type of data required'.
ld_i_with_enqueue = 'Check type of data required'.
ld_c_t_iobj_cmp = 'Check type of data required'.
ld_i_write_protocol = 'Check type of data required'.
ld_c_t_atr = 'Check type of data required'.
ld_i_set_time_stamp = 'Check type of data required'.
ld_c_t_atr_nav = 'Check type of data required'.
ld_i_t_iobjt = 'Check type of data required'.
ld_c_t_hana_attr = 'Check type of data required'.
ld_i_t_atrnavt = 'Check type of data required'.
ld_i_langu = 'Check type of data required'.
ld_i_infoobjcat = 'Check type of data required'.
ld_i_t_rsarout = 'Check type of data required'.
ld_i_t_rsaroutt = 'Check type of data required'.
ld_i_t_rsaabap = 'Check type of data required'.

SAP Documentation for FM RSDG_IOBJ_MULTI_SAVE


This function module saves multiple InfoObjects. The InfoObjects are saved sequentially. A "Commit Work" is performed after an InfoObject is ...See here for full SAP fm documentation

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