SAP DD_RANGE_DEL Function Module for Delete ranges operation









DD_RANGE_DEL is a standard dd range del SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Delete ranges operation 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 del FM, simply by entering the name DD_RANGE_DEL 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_DEL 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_DEL'"Delete ranges operation
EXPORTING
* DELETE_DUPS = 'X' "
* PRID = 0 "
* RANGE_SIZE = 64 "
* REPID = ' ' "
* FORMID = ' ' "
* LENGTH = 0 "
* NO_LIMIT = ' ' "
* OFFSET = 0 "
* PAR1 = ' ' "
* PAR2 = ' ' "
* PAR3 = ' ' "
* PAR4 = ' ' "

TABLES
SYMBOL_TAB = "

EXCEPTIONS
ILLEGAL_VALUE = 1
.



IMPORTING Parameters details for DD_RANGE_DEL

DELETE_DUPS -

Data type: DDREFSTRUC-BOOL
Default: 'X'
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
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FORMID -

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

LENGTH -

Data type: SY-FDPOS
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)

PAR4 -

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

TABLES Parameters details for DD_RANGE_DEL

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_DEL 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_symbol_tab  TYPE STANDARD TABLE OF STRING, "   
lv_delete_dups  TYPE DDREFSTRUC-BOOL, "   'X'
lv_illegal_value  TYPE DDREFSTRUC, "   
lv_prid  TYPE SY-TABIX, "   0
lv_range_size  TYPE SY-TABIX, "   64
lv_repid  TYPE SY-REPID, "   ' '
lv_formid  TYPE DDSYMTAB-NAME, "   ' '
lv_length  TYPE SY-FDPOS, "   0
lv_no_limit  TYPE DDREFSTRUC-BOOL, "   ' '
lv_offset  TYPE SY-FDPOS, "   0
lv_par1  TYPE SY, "   ' '
lv_par2  TYPE SY, "   ' '
lv_par3  TYPE SY, "   ' '
lv_par4  TYPE SY. "   ' '

  CALL FUNCTION 'DD_RANGE_DEL'  "Delete ranges operation
    EXPORTING
         DELETE_DUPS = lv_delete_dups
         PRID = lv_prid
         RANGE_SIZE = lv_range_size
         REPID = lv_repid
         FORMID = lv_formid
         LENGTH = lv_length
         NO_LIMIT = lv_no_limit
         OFFSET = lv_offset
         PAR1 = lv_par1
         PAR2 = lv_par2
         PAR3 = lv_par3
         PAR4 = lv_par4
    TABLES
         SYMBOL_TAB = lt_symbol_tab
    EXCEPTIONS
        ILLEGAL_VALUE = 1
. " DD_RANGE_DEL




ABAP code using 7.40 inline data declarations to call FM DD_RANGE_DEL

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'.
 
 
"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).
DATA(ld_repid) = ' '.
 
"SELECT single NAME FROM DDSYMTAB INTO @DATA(ld_formid).
DATA(ld_formid) = ' '.
 
"SELECT single FDPOS FROM SY INTO @DATA(ld_length).
 
"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) = ' '.
 
DATA(ld_par4) = ' '.
 


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!