SAP Function Modules

RSZ_X_COMPONENT_SET_NEW SAP Function module - Save Component with All Dependent Elements







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

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


Pattern for FM RSZ_X_COMPONENT_SET_NEW - RSZ X COMPONENT SET NEW





CALL FUNCTION 'RSZ_X_COMPONENT_SET_NEW' "Save Component with All Dependent Elements
  EXPORTING
    i_compuid =                 " sysuuid_25    Unique ID
*   i_objvers = 'A'             " rsobjvers     Version (Active, Inactive, ...)
*   i_copy_mode = ' '           " rs_bool       Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
*   i_role =                    " agr_name      Role Name
*   i_node =                    " num10         Counter for Menu ID
*   i_language = SY-LANGU       " sylangu       SAP R/3 System, Current Language
*   i_no_transport = ' '        " rs_bool       Do Not Write Transport Entry
*   i_qd_version = '700'        " char5         Version of Calling QD
  IMPORTING
    e_genuniid =                " sysuuid_25    UUID in Compressed Form
    e_subrc =                   " sysubrc       Return Code
    e_force_message_read =      " rs_bool       inform the frontend about existing messages on server
  TABLES
    c_t_eltdir =                " rsz_x_eltdir  Element List
    c_t_eltprop =               " rsz_x_eltprop
    c_t_eltprio =               " rsz_x_eltprio
*   c_t_eltprio_2 =             " rsz_x_eltprio_2  RFC: Priorities for Element Collisions 2
    c_t_eltattr =               " rsz_x_eltattr
    c_t_eltxref =               " rsz_x_eltxref  Cross References Between Elements
    c_t_compdir =               " rsz_x_compdir  Component List
    c_t_compic =                " rsz_x_compic  Assignments Component - InfoCube
    c_t_select =                " rsz_x_select  Selection Elements
    c_t_range =                 " rsz_x_range   Ranges for Selection Elements
    c_t_calc =                  " rsz_x_calc    Formula Elements
    c_t_cell =                  " rsz_x_cel     RFC: Query Designer: Directory of Cells
*   c_t_var =                   " rsz_x_var     Variables
*   c_t_uid_server =            " rsz_x_uid_server
*   c_t_elttxt =                " rszelttxt     Texts of reporting component elements
    .  "  RSZ_X_COMPONENT_SET_NEW

ABAP code example for Function Module RSZ_X_COMPONENT_SET_NEW





The ABAP code below is a full code listing to execute function module RSZ_X_COMPONENT_SET_NEW 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_genuniid  TYPE SYSUUID_25 ,
ld_e_subrc  TYPE SYSUBRC ,
ld_e_force_message_read  TYPE RS_BOOL ,
it_c_t_eltdir  TYPE STANDARD TABLE OF RSZ_X_ELTDIR,"TABLES PARAM
wa_c_t_eltdir  LIKE LINE OF it_c_t_eltdir ,
it_c_t_eltprop  TYPE STANDARD TABLE OF RSZ_X_ELTPROP,"TABLES PARAM
wa_c_t_eltprop  LIKE LINE OF it_c_t_eltprop ,
it_c_t_eltprio  TYPE STANDARD TABLE OF RSZ_X_ELTPRIO,"TABLES PARAM
wa_c_t_eltprio  LIKE LINE OF it_c_t_eltprio ,
it_c_t_eltprio_2  TYPE STANDARD TABLE OF RSZ_X_ELTPRIO_2,"TABLES PARAM
wa_c_t_eltprio_2  LIKE LINE OF it_c_t_eltprio_2 ,
it_c_t_eltattr  TYPE STANDARD TABLE OF RSZ_X_ELTATTR,"TABLES PARAM
wa_c_t_eltattr  LIKE LINE OF it_c_t_eltattr ,
it_c_t_eltxref  TYPE STANDARD TABLE OF RSZ_X_ELTXREF,"TABLES PARAM
wa_c_t_eltxref  LIKE LINE OF it_c_t_eltxref ,
it_c_t_compdir  TYPE STANDARD TABLE OF RSZ_X_COMPDIR,"TABLES PARAM
wa_c_t_compdir  LIKE LINE OF it_c_t_compdir ,
it_c_t_compic  TYPE STANDARD TABLE OF RSZ_X_COMPIC,"TABLES PARAM
wa_c_t_compic  LIKE LINE OF it_c_t_compic ,
it_c_t_select  TYPE STANDARD TABLE OF RSZ_X_SELECT,"TABLES PARAM
wa_c_t_select  LIKE LINE OF it_c_t_select ,
it_c_t_range  TYPE STANDARD TABLE OF RSZ_X_RANGE,"TABLES PARAM
wa_c_t_range  LIKE LINE OF it_c_t_range ,
it_c_t_calc  TYPE STANDARD TABLE OF RSZ_X_CALC,"TABLES PARAM
wa_c_t_calc  LIKE LINE OF it_c_t_calc ,
it_c_t_cell  TYPE STANDARD TABLE OF RSZ_X_CEL,"TABLES PARAM
wa_c_t_cell  LIKE LINE OF it_c_t_cell ,
it_c_t_var  TYPE STANDARD TABLE OF RSZ_X_VAR,"TABLES PARAM
wa_c_t_var  LIKE LINE OF it_c_t_var ,
it_c_t_uid_server  TYPE STANDARD TABLE OF RSZ_X_UID_SERVER,"TABLES PARAM
wa_c_t_uid_server  LIKE LINE OF it_c_t_uid_server ,
it_c_t_elttxt  TYPE STANDARD TABLE OF RSZELTTXT,"TABLES PARAM
wa_c_t_elttxt  LIKE LINE OF it_c_t_elttxt .

DATA(ld_i_compuid) = 'Check type of data required'.
DATA(ld_i_objvers) = 'Check type of data required'.
DATA(ld_i_copy_mode) = 'Check type of data required'.
DATA(ld_i_role) = 'Check type of data required'.
DATA(ld_i_node) = 'Check type of data required'.
DATA(ld_i_language) = 'Check type of data required'.
DATA(ld_i_no_transport) = 'Check type of data required'.
DATA(ld_i_qd_version) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltdir to it_c_t_eltdir.

"populate fields of struture and append to itab
append wa_c_t_eltprop to it_c_t_eltprop.

"populate fields of struture and append to itab
append wa_c_t_eltprio to it_c_t_eltprio.

"populate fields of struture and append to itab
append wa_c_t_eltprio_2 to it_c_t_eltprio_2.

"populate fields of struture and append to itab
append wa_c_t_eltattr to it_c_t_eltattr.

"populate fields of struture and append to itab
append wa_c_t_eltxref to it_c_t_eltxref.

"populate fields of struture and append to itab
append wa_c_t_compdir to it_c_t_compdir.

"populate fields of struture and append to itab
append wa_c_t_compic to it_c_t_compic.

"populate fields of struture and append to itab
append wa_c_t_select to it_c_t_select.

"populate fields of struture and append to itab
append wa_c_t_range to it_c_t_range.

"populate fields of struture and append to itab
append wa_c_t_calc to it_c_t_calc.

"populate fields of struture and append to itab
append wa_c_t_cell to it_c_t_cell.

"populate fields of struture and append to itab
append wa_c_t_var to it_c_t_var.

"populate fields of struture and append to itab
append wa_c_t_uid_server to it_c_t_uid_server.

"populate fields of struture and append to itab
append wa_c_t_elttxt to it_c_t_elttxt. . CALL FUNCTION 'RSZ_X_COMPONENT_SET_NEW' EXPORTING i_compuid = ld_i_compuid * i_objvers = ld_i_objvers * i_copy_mode = ld_i_copy_mode * i_role = ld_i_role * i_node = ld_i_node * i_language = ld_i_language * i_no_transport = ld_i_no_transport * i_qd_version = ld_i_qd_version IMPORTING e_genuniid = ld_e_genuniid e_subrc = ld_e_subrc e_force_message_read = ld_e_force_message_read TABLES c_t_eltdir = it_c_t_eltdir c_t_eltprop = it_c_t_eltprop c_t_eltprio = it_c_t_eltprio * c_t_eltprio_2 = it_c_t_eltprio_2 c_t_eltattr = it_c_t_eltattr c_t_eltxref = it_c_t_eltxref c_t_compdir = it_c_t_compdir c_t_compic = it_c_t_compic c_t_select = it_c_t_select c_t_range = it_c_t_range c_t_calc = it_c_t_calc c_t_cell = it_c_t_cell * c_t_var = it_c_t_var * c_t_uid_server = it_c_t_uid_server * c_t_elttxt = it_c_t_elttxt . " RSZ_X_COMPONENT_SET_NEW
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_e_genuniid  TYPE SYSUUID_25 ,
it_c_t_eltdir  TYPE STANDARD TABLE OF RSZ_X_ELTDIR ,
wa_c_t_eltdir  LIKE LINE OF it_c_t_eltdir,
ld_i_compuid  TYPE SYSUUID_25 ,
it_c_t_eltprop  TYPE STANDARD TABLE OF RSZ_X_ELTPROP ,
wa_c_t_eltprop  LIKE LINE OF it_c_t_eltprop,
ld_i_objvers  TYPE RSOBJVERS ,
ld_e_subrc  TYPE SYSUBRC ,
ld_i_copy_mode  TYPE RS_BOOL ,
ld_e_force_message_read  TYPE RS_BOOL ,
it_c_t_eltprio  TYPE STANDARD TABLE OF RSZ_X_ELTPRIO ,
wa_c_t_eltprio  LIKE LINE OF it_c_t_eltprio,
ld_i_role  TYPE AGR_NAME ,
it_c_t_eltprio_2  TYPE STANDARD TABLE OF RSZ_X_ELTPRIO_2 ,
wa_c_t_eltprio_2  LIKE LINE OF it_c_t_eltprio_2,
ld_i_node  TYPE NUM10 ,
it_c_t_eltattr  TYPE STANDARD TABLE OF RSZ_X_ELTATTR ,
wa_c_t_eltattr  LIKE LINE OF it_c_t_eltattr,
ld_i_language  TYPE SYLANGU ,
it_c_t_eltxref  TYPE STANDARD TABLE OF RSZ_X_ELTXREF ,
wa_c_t_eltxref  LIKE LINE OF it_c_t_eltxref,
ld_i_no_transport  TYPE RS_BOOL ,
it_c_t_compdir  TYPE STANDARD TABLE OF RSZ_X_COMPDIR ,
wa_c_t_compdir  LIKE LINE OF it_c_t_compdir,
ld_i_qd_version  TYPE CHAR5 ,
it_c_t_compic  TYPE STANDARD TABLE OF RSZ_X_COMPIC ,
wa_c_t_compic  LIKE LINE OF it_c_t_compic,
it_c_t_select  TYPE STANDARD TABLE OF RSZ_X_SELECT ,
wa_c_t_select  LIKE LINE OF it_c_t_select,
it_c_t_range  TYPE STANDARD TABLE OF RSZ_X_RANGE ,
wa_c_t_range  LIKE LINE OF it_c_t_range,
it_c_t_calc  TYPE STANDARD TABLE OF RSZ_X_CALC ,
wa_c_t_calc  LIKE LINE OF it_c_t_calc,
it_c_t_cell  TYPE STANDARD TABLE OF RSZ_X_CEL ,
wa_c_t_cell  LIKE LINE OF it_c_t_cell,
it_c_t_var  TYPE STANDARD TABLE OF RSZ_X_VAR ,
wa_c_t_var  LIKE LINE OF it_c_t_var,
it_c_t_uid_server  TYPE STANDARD TABLE OF RSZ_X_UID_SERVER ,
wa_c_t_uid_server  LIKE LINE OF it_c_t_uid_server,
it_c_t_elttxt  TYPE STANDARD TABLE OF RSZELTTXT ,
wa_c_t_elttxt  LIKE LINE OF it_c_t_elttxt.


"populate fields of struture and append to itab
append wa_c_t_eltdir to it_c_t_eltdir.
ld_i_compuid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltprop to it_c_t_eltprop.
ld_i_objvers = 'Check type of data required'.
ld_i_copy_mode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltprio to it_c_t_eltprio.
ld_i_role = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltprio_2 to it_c_t_eltprio_2.
ld_i_node = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltattr to it_c_t_eltattr.
ld_i_language = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_eltxref to it_c_t_eltxref.
ld_i_no_transport = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_compdir to it_c_t_compdir.
ld_i_qd_version = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_c_t_compic to it_c_t_compic.

"populate fields of struture and append to itab
append wa_c_t_select to it_c_t_select.

"populate fields of struture and append to itab
append wa_c_t_range to it_c_t_range.

"populate fields of struture and append to itab
append wa_c_t_calc to it_c_t_calc.

"populate fields of struture and append to itab
append wa_c_t_cell to it_c_t_cell.

"populate fields of struture and append to itab
append wa_c_t_var to it_c_t_var.

"populate fields of struture and append to itab
append wa_c_t_uid_server to it_c_t_uid_server.

"populate fields of struture and append to itab
append wa_c_t_elttxt to it_c_t_elttxt.

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