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_OBJNM = "Name of the Persistant Staging Area
I_OBJNMVERS = "Version
* I_T_RSFIELDTXT = "
* I_T_DATAPAKID = "List of datapakid
* I_CALLBACK = "Callback class for PSA interface
* I_STATUS = "Status of PSA record

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_OBJNM - Name of the Persistant Staging Area

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

I_OBJNMVERS - Version

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

I_T_RSFIELDTXT -

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

I_T_DATAPAKID - List of datapakid

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

I_CALLBACK - Callback class for PSA interface

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

I_STATUS - Status of PSA record

Data type: RSPSAERROR
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: Yes

C_T_TEXTS -

Data type:
Optional: Yes
Call by Reference: Yes

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_objnm  TYPE RSODSNAME, "   
lv_unknown_structure  TYPE RSODSNAME, "   
lv_i_objnmvers  TYPE RSAVERSION, "   
lv_internal_error  TYPE RSAVERSION, "   
lv_i_t_rsfieldtxt  TYPE RSARC_T_RSFIELDTXT, "   
lv_i_t_datapakid  TYPE RSODS_R_DATAPAKID, "   
lv_i_callback  TYPE STRING, "   
lv_i_status  TYPE RSPSAERROR. "   

  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_OBJNM = lv_i_objnm
         I_OBJNMVERS = lv_i_objnmvers
         I_T_RSFIELDTXT = lv_i_t_rsfieldtxt
         I_T_DATAPAKID = lv_i_t_datapakid
         I_CALLBACK = lv_i_callback
         I_STATUS = lv_i_status
    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!