SAP ATTRIBUTE_DELETE_INDEX Function Module for Delete indexes entered for attributes









ATTRIBUTE_DELETE_INDEX is a standard attribute delete index 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 indexes entered for attributes 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 attribute delete index FM, simply by entering the name ATTRIBUTE_DELETE_INDEX into the relevant SAP transaction such as SE37 or SE38.

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



Function ATTRIBUTE_DELETE_INDEX 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 'ATTRIBUTE_DELETE_INDEX'"Delete indexes entered for attributes
EXPORTING
CLASS = "Information class
* LANGUAGE = 'D' "Language indicator
POINTER = "Pointer of the document

IMPORTING
NUMBER_OF_ATTRIBUTES = "Number of the edited attributes

TABLES
ATTRIBUTES_OLD = "Original values already indexed

EXCEPTIONS
POINTER_EXPORT_FAILED = 1 TABLE_ERROR = 2
.



IMPORTING Parameters details for ATTRIBUTE_DELETE_INDEX

CLASS - Information class

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

LANGUAGE - Language indicator

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

POINTER - Pointer of the document

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

EXPORTING Parameters details for ATTRIBUTE_DELETE_INDEX

NUMBER_OF_ATTRIBUTES - Number of the edited attributes

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

TABLES Parameters details for ATTRIBUTE_DELETE_INDEX

ATTRIBUTES_OLD - Original values already indexed

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

EXCEPTIONS details

POINTER_EXPORT_FAILED - Error in storing the pointers.

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

TABLE_ERROR - General table error (internal).

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

Copy and paste ABAP code example for ATTRIBUTE_DELETE_INDEX 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_class  TYPE TFIC-CLASS, "   
lt_attributes_old  TYPE STANDARD TABLE OF ATVAL, "   
lv_number_of_attributes  TYPE FIST-HITS, "   
lv_pointer_export_failed  TYPE FIST, "   
lv_language  TYPE SY-LANGU, "   'D'
lv_table_error  TYPE SY, "   
lv_pointer  TYPE PTAB-POINTER. "   

  CALL FUNCTION 'ATTRIBUTE_DELETE_INDEX'  "Delete indexes entered for attributes
    EXPORTING
         CLASS = lv_class
         LANGUAGE = lv_language
         POINTER = lv_pointer
    IMPORTING
         NUMBER_OF_ATTRIBUTES = lv_number_of_attributes
    TABLES
         ATTRIBUTES_OLD = lt_attributes_old
    EXCEPTIONS
        POINTER_EXPORT_FAILED = 1
        TABLE_ERROR = 2
. " ATTRIBUTE_DELETE_INDEX




ABAP code using 7.40 inline data declarations to call FM ATTRIBUTE_DELETE_INDEX

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 CLASS FROM TFIC INTO @DATA(ld_class).
 
 
"SELECT single HITS FROM FIST INTO @DATA(ld_number_of_attributes).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = 'D'.
 
 
"SELECT single POINTER FROM PTAB INTO @DATA(ld_pointer).
 


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!