SAP DD_RANGE_DELETE Function Module for









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

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



Function DD_RANGE_DELETE 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_DELETE'"
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 = "

EXCEPTIONS
ILLEGAL_VALUE = 1
.



IMPORTING Parameters details for DD_RANGE_DELETE

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_DELETE

SYMBOL_TAB -

Data type:
Optional: No
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_DELETE 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, "   
lv_repid  TYPE SY-REPID, "   
lv_from_index  TYPE SY-TABIX, "   0
lv_to_index  TYPE SY-TABIX, "   0
lv_delete_dups  TYPE DDREFSTRUC-BOOL, "   'X'
lv_par1  TYPE DDREFSTRUC, "   ' '
lv_par2  TYPE DDREFSTRUC, "   ' '
lv_par3  TYPE DDREFSTRUC. "   ' '

  CALL FUNCTION 'DD_RANGE_DELETE'  "
    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
    EXCEPTIONS
        ILLEGAL_VALUE = 1
. " DD_RANGE_DELETE




ABAP code using 7.40 inline data declarations to call FM DD_RANGE_DELETE

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!