Functionality This function module can be used to delete a distribution list. Import parameters DLI_NAME Default = ' '. Name of the distribution list to be deleted. The name is unique for theshared folders or for each set of private folders. If the name and theID of the distribution list are passed, the name is used fordetermination. DLI_ID Default = ' '. Object ID of the distribution list to be deleted. If the name and theID of the distribution list are passed, the name is used fordetermination. SHARED_DLI Default = ' '. If this flag is set ('X'), the distribution list to be deleted is ashared distribution list. Exceptions DLI_NOT_EXIST The specified distribution list does not exist. An incorrect ID wasprobably passed or the relevant distribution list has been deleted. OPERATION_NO_AUTHORIZATION It was not possible to delete the distribution list. This may bebecause the distribution list is another user's private distributionlist or because it is a shared distribution list for which the activeuser does not have a delete authorization. PARAMETER_ERROR An invalid combination of parameter values was passed to the functionmodule. It may be that neither the name nor the ID of the distributionlist to be deleted was specified. X_ERROR An internal error or a database inconsistency occurred. ENQUEUE_ERROR The distribution list or the folder in which it is located could not belocked. Processing is probably being carried out by another user. Example Deleting a shared distribution list. CALL FUNCTION 'SO_DLI_DELETE_API1' EXPORTING DLI_NAME = 'KURSE 1994' SHARED_DLI = 'X' EXCEPTIONS DLI_NOT_EXIST = 1 OPERATION_NO_AUTHORIZATION = 2 ENQUEUE_ERROR = 5 OTHERS = 99. CASE SY-SUBRC. WHEN 0. WRITE: / 'Distribution list was deleted !'. WHEN 1. WRITE: / 'Distribution list does not exist !'. WHEN 2. WRITE: / 'No authorization to delete distribution list !'. WHEN 5. WRITE: / 'Distribution list is being edited !'. WHEN OTHERS. WRITE: / 'Unknown error occurred !'. ENDCASE. Notes To delete folders or documents, the function modulesSO_FOLDER_DELETE_API1 or SO_DOCUMENT_DELETE_API1 must be used. |