DD_RANGE_SEL2 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name DD_RANGE_SEL2 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SDS0
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DD_RANGE_SEL2' "Universal mass accesses with symbol table and two result tables
EXPORTING
* delete_dups = 'X' " ddrefstruc-bool
* deviation = 0 " sy-tabix
* formid = ' ' " ddrefstruc-symbol
* length = 10 " sy-fdpos
* no_limit = ' ' " ddrefstruc-bool
* offset = 0 " sy-fdpos
* par1 = ' ' "
* par2 = ' ' "
* par3 = ' ' "
* par4 = ' ' "
* prid = 0 " sy-tabix
* range_size = 64 " sy-tabix
repid = " sy-repid
* from_index = 0 " sy-tabix
* to_index = 0 " sy-tabix
TABLES
result_tab1 = "
result_tab2 = "
result_tab3 = "
symbol_tab = "
EXCEPTIONS
ILLEGAL_VALUE = 1 "
. " DD_RANGE_SEL2
The ABAP code below is a full code listing to execute function module DD_RANGE_SEL2 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_result_tab1 | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_result_tab1 | LIKE LINE OF it_result_tab1 , |
| it_result_tab2 | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_result_tab2 | LIKE LINE OF it_result_tab2 , |
| it_result_tab3 | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_result_tab3 | LIKE LINE OF it_result_tab3 , |
| it_symbol_tab | TYPE STANDARD TABLE OF STRING,"TABLES PARAM |
| wa_symbol_tab | LIKE LINE OF it_symbol_tab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_delete_dups | TYPE DDREFSTRUC-BOOL , |
| it_result_tab1 | TYPE STANDARD TABLE OF STRING , |
| wa_result_tab1 | LIKE LINE OF it_result_tab1, |
| ld_deviation | TYPE SY-TABIX , |
| it_result_tab2 | TYPE STANDARD TABLE OF STRING , |
| wa_result_tab2 | LIKE LINE OF it_result_tab2, |
| ld_formid | TYPE DDREFSTRUC-SYMBOL , |
| it_result_tab3 | TYPE STANDARD TABLE OF STRING , |
| wa_result_tab3 | LIKE LINE OF it_result_tab3, |
| ld_length | TYPE SY-FDPOS , |
| it_symbol_tab | TYPE STANDARD TABLE OF STRING , |
| wa_symbol_tab | LIKE LINE OF it_symbol_tab, |
| ld_no_limit | TYPE DDREFSTRUC-BOOL , |
| ld_offset | TYPE SY-FDPOS , |
| ld_par1 | TYPE STRING , |
| ld_par2 | TYPE STRING , |
| ld_par3 | TYPE STRING , |
| ld_par4 | TYPE STRING , |
| ld_prid | TYPE SY-TABIX , |
| ld_range_size | TYPE SY-TABIX , |
| ld_repid | TYPE SY-REPID , |
| ld_from_index | TYPE SY-TABIX , |
| ld_to_index | TYPE SY-TABIX . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DD_RANGE_SEL2 or its description.
DD_RANGE_SEL2 - Universal mass accesses with symbol table and two result tables DD_RANGE_SEL1 - Universal mass accesses with symbol table and two result tables DD_RANGE_SEL - Universal range accesses with symbol table. DD_RANGE_DELETE - DD_RANGE_DEL2 - Delete ranges operation DD_RANGE_DEL - Delete ranges operation