SAP DD_RANGE_SELECT Function Module for Universal mass accesses with symbol table









DD_RANGE_SELECT is a standard dd range select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Universal mass accesses with symbol table 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 dd range select FM, simply by entering the name DD_RANGE_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_RANGE_SELECT 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'"Universal mass accesses with symbol table
EXPORTING
* POINTER = 1 "
* PAR4 = ' ' "
* PRID = 0 "Log ID
FORMID = "
REPID = "
* FROM_INDEX = 0 "
* TO_INDEX = 0 "
* DELETE_DUPS = 'X' "
* PAR1 = ' ' "
* PAR2 = ' ' "
* PAR3 = ' ' "

TABLES
SYMBOL_TAB = "
RESULT_TAB = "Results table
* RESULT_TAB2 = "
* RESULT_TAB3 = "
* RESULT_TAB4 = "
* RESULT_TAB5 = "
* RESULT_TAB6 = "

EXCEPTIONS
ILLEGAL_VALUE = 1
.



IMPORTING Parameters details for DD_RANGE_SELECT

POINTER -

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

PAR4 -

Data type:
Default: ' '
Optional: Yes
Call by Reference: Yes

PRID - Log ID

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

FORMID -

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

REPID -

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

FROM_INDEX -

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

TO_INDEX -

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

DELETE_DUPS -

Data type: DDREFSTRUC-BOOL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PAR1 -

Data type:
Default: ' '
Optional: Yes
Call by Reference: Yes

PAR2 -

Data type:
Default: ' '
Optional: Yes
Call by Reference: Yes

PAR3 -

Data type:
Default: ' '
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for DD_RANGE_SELECT

SYMBOL_TAB -

Data type:
Optional: No
Call by Reference: Yes

RESULT_TAB - Results table

Data type:
Optional: No
Call by Reference: Yes

RESULT_TAB2 -

Data type:
Optional: Yes
Call by Reference: Yes

RESULT_TAB3 -

Data type:
Optional: Yes
Call by Reference: Yes

RESULT_TAB4 -

Data type:
Optional: Yes
Call by Reference: Yes

RESULT_TAB5 -

Data type:
Optional: Yes
Call by Reference: Yes

RESULT_TAB6 -

Data type:
Optional: 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 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_pointer  TYPE STRING, "   1
lt_symbol_tab  TYPE STANDARD TABLE OF STRING, "   
lv_illegal_value  TYPE STRING, "   
lv_par4  TYPE STRING, "   ' '
lv_prid  TYPE SY-TABIX, "   0
lv_formid  TYPE DDREFSTRUC-SYMBOL, "   
lt_result_tab  TYPE STANDARD TABLE OF DDREFSTRUC, "   
lv_repid  TYPE SY-REPID, "   
lt_result_tab2  TYPE STANDARD TABLE OF SY, "   
lv_from_index  TYPE SY-TABIX, "   0
lt_result_tab3  TYPE STANDARD TABLE OF SY, "   
lv_to_index  TYPE SY-TABIX, "   0
lt_result_tab4  TYPE STANDARD TABLE OF SY, "   
lv_delete_dups  TYPE DDREFSTRUC-BOOL, "   'X'
lt_result_tab5  TYPE STANDARD TABLE OF DDREFSTRUC, "   
lv_par1  TYPE DDREFSTRUC, "   ' '
lt_result_tab6  TYPE STANDARD TABLE OF DDREFSTRUC, "   
lv_par2  TYPE DDREFSTRUC, "   ' '
lv_par3  TYPE DDREFSTRUC. "   ' '

  CALL FUNCTION 'DD_RANGE_SELECT'  "Universal mass accesses with symbol table
    EXPORTING
         POINTER = lv_pointer
         PAR4 = lv_par4
         PRID = lv_prid
         FORMID = lv_formid
         REPID = lv_repid
         FROM_INDEX = lv_from_index
         TO_INDEX = lv_to_index
         DELETE_DUPS = lv_delete_dups
         PAR1 = lv_par1
         PAR2 = lv_par2
         PAR3 = lv_par3
    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




ABAP code using 7.40 inline data declarations to call FM DD_RANGE_SELECT

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.

DATA(ld_pointer) = 1.
 
 
 
DATA(ld_par4) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_prid).
 
"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'.
 
 
DATA(ld_par1) = ' '.
 
 
DATA(ld_par2) = ' '.
 
DATA(ld_par3) = ' '.
 


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!