SAP RSAN_RT2_DS_QUERY_GET_DATA Function Module for Get Query Data









RSAN_RT2_DS_QUERY_GET_DATA is a standard rsan rt2 ds query get data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Query Data 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 rsan rt2 ds query get data FM, simply by entering the name RSAN_RT2_DS_QUERY_GET_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function RSAN_RT2_DS_QUERY_GET_DATA 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 'RSAN_RT2_DS_QUERY_GET_DATA'"Get Query Data
EXPORTING
I_REPORTID = "Report ID ( I_* init., N_* nav. state, S_* self def.)
* I_VARIANT = "Query Variants
* I_PART_CHARAC = "Characteristic
* IT_PART_SEL = "BAPIREPPROV_FILTERVALUE
IT_AXISMAP = "
IT_CELLMAP = "
* I_TABLENAME = "Control Structure for Testing the Table Name (Apart fr. SAA)

IMPORTING
ET_RETURN = "Return Table
ET_DATA = "

CHANGING
* IT_SEL = "BW Data Manager: Range List

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for RSAN_RT2_DS_QUERY_GET_DATA

I_REPORTID - Report ID ( I_* init., N_* nav. state, S_* self def.)

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

I_VARIANT - Query Variants

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

I_PART_CHARAC - Characteristic

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

IT_PART_SEL - BAPIREPPROV_FILTERVALUE

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

IT_AXISMAP -

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

IT_CELLMAP -

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

I_TABLENAME - Control Structure for Testing the Table Name (Apart fr. SAA)

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

EXPORTING Parameters details for RSAN_RT2_DS_QUERY_GET_DATA

ET_RETURN - Return Table

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

ET_DATA -

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

CHANGING Parameters details for RSAN_RT2_DS_QUERY_GET_DATA

IT_SEL - BW Data Manager: Range List

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

EXCEPTIONS details

ERROR - Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSAN_RT2_DS_QUERY_GET_DATA 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_error  TYPE STRING, "   
lv_it_sel  TYPE RSDRI_T_RANGE, "   
lv_et_return  TYPE BAPIRET2_T, "   
lv_i_reportid  TYPE RSCRMREPUID, "   
lv_et_data  TYPE TABLE, "   
lv_i_variant  TYPE RSCRMVARIANT, "   
lv_i_part_charac  TYPE RSCHANM, "   
lv_it_part_sel  TYPE BAPIREPPROV_FILTERVALUE_T, "   
lv_it_axismap  TYPE RSANR_T_DS_QUERY_AXISMAP, "   
lv_it_cellmap  TYPE RSANR_T_DS_QUERY_CELLMAP, "   
lv_i_tablename  TYPE TTYPENAME. "   

  CALL FUNCTION 'RSAN_RT2_DS_QUERY_GET_DATA'  "Get Query Data
    EXPORTING
         I_REPORTID = lv_i_reportid
         I_VARIANT = lv_i_variant
         I_PART_CHARAC = lv_i_part_charac
         IT_PART_SEL = lv_it_part_sel
         IT_AXISMAP = lv_it_axismap
         IT_CELLMAP = lv_it_cellmap
         I_TABLENAME = lv_i_tablename
    IMPORTING
         ET_RETURN = lv_et_return
         ET_DATA = lv_et_data
    CHANGING
         IT_SEL = lv_it_sel
    EXCEPTIONS
        ERROR = 1
. " RSAN_RT2_DS_QUERY_GET_DATA




ABAP code using 7.40 inline data declarations to call FM RSAN_RT2_DS_QUERY_GET_DATA

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.

 
 
 
 
 
 
 
 
 
 
 


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!