SAP RSNDI_MD_ATTRIBUTES_UPDATE Function Module for Update of master data attributes









RSNDI_MD_ATTRIBUTES_UPDATE is a standard rsndi md attributes update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Update of master data attributes processing and below is the pattern details for this FM, 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 rsndi md attributes update FM, simply by entering the name RSNDI_MD_ATTRIBUTES_UPDATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSNDI_MD
Program Name: SAPLRSNDI_MD
Main Program: SAPLRSNDI_MD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RSNDI_MD_ATTRIBUTES_UPDATE 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 'RSNDI_MD_ATTRIBUTES_UPDATE'"Update of master data attributes
EXPORTING
I_IOBJNM = "Name of Infoobject, whose master data shall be changed
* I_UPDATE_ALL_ATTRIBUTES = "Change all attribute values
* I_CLEAR_UNMAPPED_ATTRIBUTES = RS_C_FALSE "Ignore values for attributes, that are not in list of attributes
* I_CHAVL_ENQUEUE = RS_C_TRUE "Request locking of single set
* I_DB_COMMIT = RS_C_TRUE "Execute database-commit after changing
* I_COMMIT_WORK = RS_C_FALSE "Execute COMMIT WORK after changing
* I_PROTOCOL = RS_C_FALSE "Boolean
* I_NO_APPL_LOGGING = RS_C_FALSE "No logging for RSNDI update
* I_ACTIVATE_MD = RS_C_FALSE "master data activation for HANADB

IMPORTING
E_SUBRC = "Return Value

TABLES
* I_T_ATTRIBUTES = "List of Attributes
I_T_DATA = "Data sets to be updated
E_T_MESSAGES = "Messages created during processing
.



IMPORTING Parameters details for RSNDI_MD_ATTRIBUTES_UPDATE

I_IOBJNM - Name of Infoobject, whose master data shall be changed

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

I_UPDATE_ALL_ATTRIBUTES - Change all attribute values

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

I_CLEAR_UNMAPPED_ATTRIBUTES - Ignore values for attributes, that are not in list of attributes

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

I_CHAVL_ENQUEUE - Request locking of single set

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

I_DB_COMMIT - Execute database-commit after changing

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

I_COMMIT_WORK - Execute COMMIT WORK after changing

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

I_PROTOCOL - Boolean

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

I_NO_APPL_LOGGING - No logging for RSNDI update

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

I_ACTIVATE_MD - master data activation for HANADB

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

EXPORTING Parameters details for RSNDI_MD_ATTRIBUTES_UPDATE

E_SUBRC - Return Value

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

TABLES Parameters details for RSNDI_MD_ATTRIBUTES_UPDATE

I_T_ATTRIBUTES - List of Attributes

Data type: RSD_S_IOBJNM
Optional: Yes
Call by Reference: Yes

I_T_DATA - Data sets to be updated

Data type: RSNDI_S_CHAVL
Optional: No
Call by Reference: Yes

E_T_MESSAGES - Messages created during processing

Data type: RSNDI_S_MESSAGE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSNDI_MD_ATTRIBUTES_UPDATE 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:
lv_e_subrc  TYPE SYSUBRC, "   
lv_i_iobjnm  TYPE RSIOBJNM, "   
lt_i_t_attributes  TYPE STANDARD TABLE OF RSD_S_IOBJNM, "   
lt_i_t_data  TYPE STANDARD TABLE OF RSNDI_S_CHAVL, "   
lv_i_update_all_attributes  TYPE RS_BOOL, "   
lt_e_t_messages  TYPE STANDARD TABLE OF RSNDI_S_MESSAGE, "   
lv_i_clear_unmapped_attributes  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_chavl_enqueue  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_db_commit  TYPE RS_BOOL, "   RS_C_TRUE
lv_i_commit_work  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_protocol  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_no_appl_logging  TYPE RS_BOOL, "   RS_C_FALSE
lv_i_activate_md  TYPE RS_BOOL. "   RS_C_FALSE

  CALL FUNCTION 'RSNDI_MD_ATTRIBUTES_UPDATE'  "Update of master data attributes
    EXPORTING
         I_IOBJNM = lv_i_iobjnm
         I_UPDATE_ALL_ATTRIBUTES = lv_i_update_all_attributes
         I_CLEAR_UNMAPPED_ATTRIBUTES = lv_i_clear_unmapped_attributes
         I_CHAVL_ENQUEUE = lv_i_chavl_enqueue
         I_DB_COMMIT = lv_i_db_commit
         I_COMMIT_WORK = lv_i_commit_work
         I_PROTOCOL = lv_i_protocol
         I_NO_APPL_LOGGING = lv_i_no_appl_logging
         I_ACTIVATE_MD = lv_i_activate_md
    IMPORTING
         E_SUBRC = lv_e_subrc
    TABLES
         I_T_ATTRIBUTES = lt_i_t_attributes
         I_T_DATA = lt_i_t_data
         E_T_MESSAGES = lt_e_t_messages
. " RSNDI_MD_ATTRIBUTES_UPDATE




ABAP code using 7.40 inline data declarations to call FM RSNDI_MD_ATTRIBUTES_UPDATE

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.

 
 
 
 
 
 
DATA(ld_i_clear_unmapped_attributes) = RS_C_FALSE.
 
DATA(ld_i_chavl_enqueue) = RS_C_TRUE.
 
DATA(ld_i_db_commit) = RS_C_TRUE.
 
DATA(ld_i_commit_work) = RS_C_FALSE.
 
DATA(ld_i_protocol) = RS_C_FALSE.
 
DATA(ld_i_no_appl_logging) = RS_C_FALSE.
 
DATA(ld_i_activate_md) = RS_C_FALSE.
 


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!