DELETETOKENBATCH
Delete the array of tokens from the token vault.
Import Parameters
From the common parameters, refer to the source code below for exact parameters.
Table Parameters
ROWS_UPDATED - The array that stores the number of rows deleted for each Site (Output parameter).
ERROR_MSG- The message displayed on occurrence of an error for each Site (Output parameter).
SITE_ID - Site ID of the Site on which the deletion has been performed (Output parameter).
STATUS - Status of the operation performed for each Site. Either success or fail (Output parameter).
TOKENS - The array of tokens to be deleted (Input parameter).
Source Code
FUNCTION DELETETOKENBATCH.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(NAEUSER) TYPE STRING
*" VALUE(NAEPASSWORD) TYPE STRING
*" VALUE(DBUSER) TYPE STRING
*" VALUE(DBPASSWORD) TYPE STRING
*" VALUE(TABLENAME) TYPE STRING
*" EXPORTING
*" ROWS_UPDATED STRUCTURE ZSTR_STRUCTURE
*" ERROR_MSG STRUCTURE ZSTR_STRUCTURE OPTINOAL
*" SITE_ID STRUCTURE ZSTR_STRUCTURE OPTINOAL
*" STATUS STRUCTURE ZSTR_STRUCTURE OPTINOAL
*" TOKENS STRUCTURE ZSTR_STRUCTURE
*"----------------------------------------------------------------------
ENDFUNCTION.
Where ZSTR_STRUCTURE
is an array of strings with component named as "VALUES" of type "SLDSTRING". Refer to Step 8 and 9 of the section Getting Started with SAPTM for steps on creating a structure.