SAP DD_RANGE_SELECT_R Function Module for
DD_RANGE_SELECT_R is a standard dd range select r SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 dd range select r FM, simply by entering the name DD_RANGE_SELECT_R into the relevant SAP transaction such as SE37 or SE38.
Function Group: SDS2
Program Name: SAPLSDS2
Main Program: SAPLSDS2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function DD_RANGE_SELECT_R 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 'DD_RANGE_SELECT_R'".
EXPORTING
FORMID = "
REPID = "
* FROM_INDEX = 0 "
* TO_INDEX = 0 "
RESULT_INFO = "
* DELETE_DUPS = 'X' "
* PRID = 0 "
TABLES
SYMBOL_TAB = "
RESULT_TAB = "
* RESULT_TAB2 = "
* RESULT_TAB3 = "
* RESULT_TAB4 = "
* RESULT_TAB5 = "
* RESULT_TAB6 = "
EXCEPTIONS
ILLEGAL_VALUE = 1
IMPORTING Parameters details for DD_RANGE_SELECT_R
FORMID -
Data type: DDREFSTRUC-SYMBOLOptional: No
Call by Reference: No ( called with pass by value option)
REPID -
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
FROM_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TO_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
RESULT_INFO -
Data type: DDRESINFOOptional: No
Call by Reference: No ( called with pass by value option)
DELETE_DUPS -
Data type: DDREFSTRUC-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRID -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for DD_RANGE_SELECT_R
SYMBOL_TAB -
Data type: DDOBJ_TABOptional: No
Call by Reference: Yes
RESULT_TAB -
Data type: DCGENTB_TABOptional: No
Call by Reference: Yes
RESULT_TAB2 -
Data type: DCDEPTB_TABOptional: Yes
Call by Reference: Yes
RESULT_TAB3 -
Data type: DDOBJ_TABOptional: Yes
Call by Reference: Yes
RESULT_TAB4 -
Data type: DDOBJ_TABOptional: Yes
Call by Reference: Yes
RESULT_TAB5 -
Data type: DDOBJ_TABOptional: Yes
Call by Reference: Yes
RESULT_TAB6 -
Data type: DDOBJ_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ILLEGAL_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DD_RANGE_SELECT_R 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_formid | TYPE DDREFSTRUC-SYMBOL, " | |||
| lt_symbol_tab | TYPE STANDARD TABLE OF DDOBJ_TAB, " | |||
| lv_illegal_value | TYPE DDOBJ_TAB, " | |||
| lv_repid | TYPE SY-REPID, " | |||
| lt_result_tab | TYPE STANDARD TABLE OF DCGENTB_TAB, " | |||
| lv_from_index | TYPE SY-TABIX, " 0 | |||
| lt_result_tab2 | TYPE STANDARD TABLE OF DCDEPTB_TAB, " | |||
| lv_to_index | TYPE SY-TABIX, " 0 | |||
| lt_result_tab3 | TYPE STANDARD TABLE OF DDOBJ_TAB, " | |||
| lv_result_info | TYPE DDRESINFO, " | |||
| lt_result_tab4 | TYPE STANDARD TABLE OF DDOBJ_TAB, " | |||
| lv_delete_dups | TYPE DDREFSTRUC-BOOL, " 'X' | |||
| lt_result_tab5 | TYPE STANDARD TABLE OF DDOBJ_TAB, " | |||
| lv_prid | TYPE SY-TABIX, " 0 | |||
| lt_result_tab6 | TYPE STANDARD TABLE OF DDOBJ_TAB. " |
|   CALL FUNCTION 'DD_RANGE_SELECT_R' " |
| EXPORTING | ||
| FORMID | = lv_formid | |
| REPID | = lv_repid | |
| FROM_INDEX | = lv_from_index | |
| TO_INDEX | = lv_to_index | |
| RESULT_INFO | = lv_result_info | |
| DELETE_DUPS | = lv_delete_dups | |
| PRID | = lv_prid | |
| TABLES | ||
| SYMBOL_TAB | = lt_symbol_tab | |
| RESULT_TAB | = lt_result_tab | |
| RESULT_TAB2 | = lt_result_tab2 | |
| RESULT_TAB3 | = lt_result_tab3 | |
| RESULT_TAB4 | = lt_result_tab4 | |
| RESULT_TAB5 | = lt_result_tab5 | |
| RESULT_TAB6 | = lt_result_tab6 | |
| EXCEPTIONS | ||
| ILLEGAL_VALUE = 1 | ||
| . " DD_RANGE_SELECT_R | ||
ABAP code using 7.40 inline data declarations to call FM DD_RANGE_SELECT_R
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 SYMBOL FROM DDREFSTRUC INTO @DATA(ld_formid). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_repid). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_from_index). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_to_index). | ||||
| "SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_delete_dups). | ||||
| DATA(ld_delete_dups) | = 'X'. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_prid). | ||||
Search for further information about these or an SAP related objects