SAP DD_RANGE_SEL Function Module for Universal range accesses with symbol table.









DD_RANGE_SEL is a standard dd range sel 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 range 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 sel FM, simply by entering the name DD_RANGE_SEL into the relevant SAP transaction such as SE37 or SE38.

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



Function DD_RANGE_SEL 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_SEL'"Universal range accesses with symbol table.
EXPORTING
* DELETE_DUPS = 'X' "
* PAR4 = ' ' "
* PRID = 0 "
* RANGE_SIZE = 64 "
REPID = "
* FROM_INDEX = 0 "First line to be taken into account or 0 (all)
* TO_INDEX = 0 "Last line to be taken into account
* DEVIATION = 0 "
* FORMID = ' ' "
* LENGTH = 10 "
* NO_LIMIT = ' ' "
* OFFSET = 0 "
* PAR1 = ' ' "
* PAR2 = ' ' "
* PAR3 = ' ' "

TABLES
RESULT_TAB = "
SYMBOL_TAB = "

EXCEPTIONS
ILLEGAL_VALUE = 1
.



IMPORTING Parameters details for DD_RANGE_SEL

DELETE_DUPS -

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

PAR4 -

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

PRID -

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

RANGE_SIZE -

Data type: SY-TABIX
Default: 64
Optional: Yes
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 - First line to be taken into account or 0 (all)

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

TO_INDEX - Last line to be taken into account

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

DEVIATION -

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

FORMID -

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

LENGTH -

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

NO_LIMIT -

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

OFFSET -

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

PAR1 -

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

PAR2 -

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

PAR3 -

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

TABLES Parameters details for DD_RANGE_SEL

RESULT_TAB -

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

SYMBOL_TAB -

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

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_SEL 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_result_tab  TYPE STANDARD TABLE OF STRING, "   
lv_delete_dups  TYPE DDREFSTRUC-BOOL, "   'X'
lv_illegal_value  TYPE DDREFSTRUC, "   
lv_par4  TYPE DDREFSTRUC, "   ' '
lv_prid  TYPE SY-TABIX, "   0
lv_range_size  TYPE SY-TABIX, "   64
lv_repid  TYPE SY-REPID, "   
lv_from_index  TYPE SY-TABIX, "   0
lv_to_index  TYPE SY-TABIX, "   0
lv_deviation  TYPE SY-TABIX, "   0
lt_symbol_tab  TYPE STANDARD TABLE OF SY, "   
lv_formid  TYPE DDREFSTRUC-SYMBOL, "   ' '
lv_length  TYPE SY-FDPOS, "   10
lv_no_limit  TYPE DDREFSTRUC-BOOL, "   ' '
lv_offset  TYPE SY-FDPOS, "   0
lv_par1  TYPE SY, "   ' '
lv_par2  TYPE SY, "   ' '
lv_par3  TYPE SY. "   ' '

  CALL FUNCTION 'DD_RANGE_SEL'  "Universal range accesses with symbol table.
    EXPORTING
         DELETE_DUPS = lv_delete_dups
         PAR4 = lv_par4
         PRID = lv_prid
         RANGE_SIZE = lv_range_size
         REPID = lv_repid
         FROM_INDEX = lv_from_index
         TO_INDEX = lv_to_index
         DEVIATION = lv_deviation
         FORMID = lv_formid
         LENGTH = lv_length
         NO_LIMIT = lv_no_limit
         OFFSET = lv_offset
         PAR1 = lv_par1
         PAR2 = lv_par2
         PAR3 = lv_par3
    TABLES
         RESULT_TAB = lt_result_tab
         SYMBOL_TAB = lt_symbol_tab
    EXCEPTIONS
        ILLEGAL_VALUE = 1
. " DD_RANGE_SEL




ABAP code using 7.40 inline data declarations to call FM DD_RANGE_SEL

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 BOOL FROM DDREFSTRUC INTO @DATA(ld_delete_dups).
DATA(ld_delete_dups) = 'X'.
 
 
DATA(ld_par4) = ' '.
 
"SELECT single TABIX FROM SY INTO @DATA(ld_prid).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_range_size).
DATA(ld_range_size) = 64.
 
"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 TABIX FROM SY INTO @DATA(ld_deviation).
 
 
"SELECT single SYMBOL FROM DDREFSTRUC INTO @DATA(ld_formid).
DATA(ld_formid) = ' '.
 
"SELECT single FDPOS FROM SY INTO @DATA(ld_length).
DATA(ld_length) = 10.
 
"SELECT single BOOL FROM DDREFSTRUC INTO @DATA(ld_no_limit).
DATA(ld_no_limit) = ' '.
 
"SELECT single FDPOS FROM SY INTO @DATA(ld_offset).
 
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!