SAP RSAR_DATA_MAINTAIN_ Function Module for Display and maintenance of table data of any structure









RSAR_DATA_MAINTAIN_ is a standard rsar data maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display and maintenance of table data of any structure 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 rsar data maintain FM, simply by entering the name RSAR_DATA_MAINTAIN_ into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSAODS
Program Name: SAPLRSAODS
Main Program: SAPLRSAODS
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSAR_DATA_MAINTAIN_ 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 'RSAR_DATA_MAINTAIN_'"Display and maintenance of table data of any structure
EXPORTING
* I_STRUCTURE_NAME = "
* I_T_FIELDCAT_ALV = "
* I_T_RSFIELDTXT = "

IMPORTING
E_TABNAME = "

CHANGING
* C_S_DATA_MAINTAIN = "

TABLES
C_T_TABLE = "
* C_T_TEXTS = "

EXCEPTIONS
MISSING_IMPORT_PARAMETER = 1 MISSING_DATA = 2 UNKNOWN_STRUCTURE = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for RSAR_DATA_MAINTAIN_

I_STRUCTURE_NAME -

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

I_T_FIELDCAT_ALV -

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

I_T_RSFIELDTXT -

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

EXPORTING Parameters details for RSAR_DATA_MAINTAIN_

E_TABNAME -

Data type: RSDDICSTRUCT-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for RSAR_DATA_MAINTAIN_

C_S_DATA_MAINTAIN -

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

TABLES Parameters details for RSAR_DATA_MAINTAIN_

C_T_TABLE -

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

C_T_TEXTS -

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

EXCEPTIONS details

MISSING_IMPORT_PARAMETER -

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

MISSING_DATA -

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

UNKNOWN_STRUCTURE -

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

INTERNAL_ERROR -

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

Copy and paste ABAP code example for RSAR_DATA_MAINTAIN_ 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:
lt_c_t_table  TYPE STANDARD TABLE OF STRING, "   
lv_e_tabname  TYPE RSDDICSTRUCT-TABNAME, "   
lv_i_structure_name  TYPE DD02L-TABNAME, "   
lv_c_s_data_maintain  TYPE RSODS_S_DATA_MAINTAIN, "   
lv_missing_import_parameter  TYPE RSODS_S_DATA_MAINTAIN, "   
lt_c_t_texts  TYPE STANDARD TABLE OF RSODS_S_DATA_MAINTAIN, "   
lv_missing_data  TYPE RSODS_S_DATA_MAINTAIN, "   
lv_i_t_fieldcat_alv  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_i_t_rsfieldtxt  TYPE RSARC_T_RSFIELDTXT, "   
lv_unknown_structure  TYPE RSARC_T_RSFIELDTXT, "   
lv_internal_error  TYPE RSARC_T_RSFIELDTXT. "   

  CALL FUNCTION 'RSAR_DATA_MAINTAIN_'  "Display and maintenance of table data of any structure
    EXPORTING
         I_STRUCTURE_NAME = lv_i_structure_name
         I_T_FIELDCAT_ALV = lv_i_t_fieldcat_alv
         I_T_RSFIELDTXT = lv_i_t_rsfieldtxt
    IMPORTING
         E_TABNAME = lv_e_tabname
    CHANGING
         C_S_DATA_MAINTAIN = lv_c_s_data_maintain
    TABLES
         C_T_TABLE = lt_c_t_table
         C_T_TEXTS = lt_c_t_texts
    EXCEPTIONS
        MISSING_IMPORT_PARAMETER = 1
        MISSING_DATA = 2
        UNKNOWN_STRUCTURE = 3
        INTERNAL_ERROR = 4
. " RSAR_DATA_MAINTAIN_




ABAP code using 7.40 inline data declarations to call FM RSAR_DATA_MAINTAIN_

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.

 
"SELECT single TABNAME FROM RSDDICSTRUCT INTO @DATA(ld_e_tabname).
 
"SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name).
 
 
 
 
 
 
 
 
 


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!