SAP RSAR_ODS_NAME_GET Function Module for output ODS name and technical description









RSAR_ODS_NAME_GET is a standard rsar ods name get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for output ODS name and technical description 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 ods name get FM, simply by entering the name RSAR_ODS_NAME_GET 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_ODS_NAME_GET 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_ODS_NAME_GET'"output ODS name and technical description
EXPORTING
I_LOGSYS = "Source System
I_ISOURCE = "OLTPSource (ab 2.0A!)
* I_ISTYPE = "--- OBSOLET ---
* I_DATE = SY-DATUM "Date
* I_VERSION = "ODS-Version
* I_SELTYPE = 'D' "Selektion über Datum (D) oder Version (V)
* I_SEGMENT_ID = "Segment ID

IMPORTING
E_ODSNAME = "Name des ODS
E_ODSNAME_DB = "Technischer ODS-Name auf der Datenbank
E_ODS_TABTYPE = "Name des ODS-Tabellentyps
E_S_ODS = "Beschreibungen zum ODS
E_T_ODSFIELDS = "Felder des ODS
E_PARTITIONED = "PSA-Tabelle ist partitioniert

EXCEPTIONS
PARAMETER_FAILURE = 1 NO_ODS_FOUND = 2 NO_FIELDS_TO_ODS = 3
.



IMPORTING Parameters details for RSAR_ODS_NAME_GET

I_LOGSYS - Source System

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

I_ISOURCE - OLTPSource (ab 2.0A!)

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

I_ISTYPE - --- OBSOLET ---

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

I_DATE - Date

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

I_VERSION - ODS-Version

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

I_SELTYPE - Selektion über Datum (D) oder Version (V)

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

I_SEGMENT_ID - Segment ID

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

EXPORTING Parameters details for RSAR_ODS_NAME_GET

E_ODSNAME - Name des ODS

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

E_ODSNAME_DB - Technischer ODS-Name auf der Datenbank

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

E_ODS_TABTYPE - Name des ODS-Tabellentyps

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

E_S_ODS - Beschreibungen zum ODS

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

E_T_ODSFIELDS - Felder des ODS

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

E_PARTITIONED - PSA-Tabelle ist partitioniert

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

EXCEPTIONS details

PARAMETER_FAILURE - Missing or Incorrect Parameter

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

NO_ODS_FOUND - Kein ODS gefunden

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

NO_FIELDS_TO_ODS - Keine Felder zum ODS gefunden

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSAR_ODS_NAME_GET 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_i_logsys  TYPE RSA_LOGSYS, "   
lv_e_odsname  TYPE RSA_ODSNAME, "   
lv_parameter_failure  TYPE RSA_ODSNAME, "   
lv_i_isource  TYPE RSA_ISOURCE, "   
lv_e_odsname_db  TYPE RSA_ODSDBNAME, "   
lv_no_ods_found  TYPE RSA_ODSDBNAME, "   
lv_i_istype  TYPE RSA_ISTYPE, "   
lv_e_ods_tabtype  TYPE TTYPENAME, "   
lv_no_fields_to_ods  TYPE TTYPENAME, "   
lv_i_date  TYPE SY-DATUM, "   SY-DATUM
lv_e_s_ods  TYPE RSODS_S_ODSLIST, "   
lv_i_version  TYPE RSA_ODSVERSION, "   
lv_e_t_odsfields  TYPE RSARC_T_RSFIELD, "   
lv_i_seltype  TYPE RS_CHAR1, "   'D'
lv_e_partitioned  TYPE RS_BOOL, "   
lv_i_segment_id  TYPE RSSEGID. "   

  CALL FUNCTION 'RSAR_ODS_NAME_GET'  "output ODS name and technical description
    EXPORTING
         I_LOGSYS = lv_i_logsys
         I_ISOURCE = lv_i_isource
         I_ISTYPE = lv_i_istype
         I_DATE = lv_i_date
         I_VERSION = lv_i_version
         I_SELTYPE = lv_i_seltype
         I_SEGMENT_ID = lv_i_segment_id
    IMPORTING
         E_ODSNAME = lv_e_odsname
         E_ODSNAME_DB = lv_e_odsname_db
         E_ODS_TABTYPE = lv_e_ods_tabtype
         E_S_ODS = lv_e_s_ods
         E_T_ODSFIELDS = lv_e_t_odsfields
         E_PARTITIONED = lv_e_partitioned
    EXCEPTIONS
        PARAMETER_FAILURE = 1
        NO_ODS_FOUND = 2
        NO_FIELDS_TO_ODS = 3
. " RSAR_ODS_NAME_GET




ABAP code using 7.40 inline data declarations to call FM RSAR_ODS_NAME_GET

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 DATUM FROM SY INTO @DATA(ld_i_date).
DATA(ld_i_date) = SY-DATUM.
 
 
 
 
DATA(ld_i_seltype) = 'D'.
 
 
 


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!