Ansicht
Dokumentation

DDIF_INDX_ACTIVATE - DD: Interface to activate an index

DDIF_INDX_ACTIVATE - DD: Interface to activate an index

ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module activates ABAP Dictionary indexes.

The name of the table for which the index should be activated is passed in parameter NAME and its identification in parameter ID. You must give parameter PRID an ID for the ABAP Dictionary log writer (see Further Sources of Information).

Parameter RC returns the results of the activation. You must distinguish the following values:
RC = 0: The index was successfully activated
RC = 4: The index was activated with warnings
RC > 4: The index could not be activated

If the index is not found or if it cannot be read, the exception NOT_FOUND is triggered. If the index is not successfully written, the exception PUT_FAILURE is triggered.

Example

Notes

Further information

Logging:

This function module always writes a log with the name ACTINDX in database tables DDPRH/DDPRS (where is the name of the table which is possibly brought to a length of 10 with '_' at the end). You can look at this log in the ABAP Dictionary index maintenance transaction.

You can also write the log of the activation which was started to a log which was begun in the calling program. This log must first be closed and then opened again using the ABAP Dictionary log interface. Use the form STDO_OPEN from program RADBTOU0 (Include Version) or RADBTOUT (for external performs) here.
After the function module call, the log of the activation is closed again with the form STDO_CLOSE. This form can also be found in RADBTOU0 or RADBTOUT.

If you do not want to add the activation log to a log which was already begun, you can enter a negative number, e.g. -2, for the log ID PRID.

If PRID = 0, the log for activation is written to all the logs already opened with STDO_OPEN.

Database COMMIT:

The module might perform a COMMIT on the operations which occurred before the call.

Authorization check:

It is assumed that the user has authorization to activate the index. Parameter AUTH_CHK can also be used to define if there should be an authorization check should database operations be necessary.





Parameters

AUTH_CHK
ID
NAME
PRID
RC

Exceptions

NOT_FOUND
PUT_FAILURE

Function Group

SDIF

Vendor Master (General Section)   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 2859 Date: 20240523 Time: 112723     sap01-206 ( 56 ms )