Fonction SAP C142_WASTECODE - EHS: Check Uniqueness of a Waste Code for the Key Date

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_IDENT ESTRI-IDENT C 132 Identifier to Be Checked

Paramètre Reférence Type Long. Description
E_IDENT ESTRI-IDENT C 132 Correct Identifier
E_IDENTNM ESTRI-IDENTNM C 132 Standardized Identifier
E_MESG C C 0 Error Message text
E_STATUS I I 4 0=OK, 1=Warning, -1=Error

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
X_ADD_PARAMS 0 X Additional Parameters


This function module is used to check the entry of awaste code when you entera specification of thewaste codespecification category.The waste code is entered as an identifier of the identificationcategory NUM and of the identification type WASTECODE. The systemchecks whether the waste code for the key date (= current date) alreadyexists in the system. If it does, an error message is triggered.
It is a prerequisite that thewaste catalog (identifierof the identification category NAM and of the identification typeWASTECOCAT) has been specified beforehand. The identifiers for a wastecode must therefore have been created in the following sequence so thatthe check can take place:
Waste catalog
Waste code
If no waste catalog can be determined because it has not yet beenspecified by the user, an error message is displayed.
If the entry is correct, the waste code identifier is reset to E_IDENT(standardized to E_IDENTNM). Standardization deletes special charactersand converts characters to upper case.
The export parameters E_STATUS and E_MESG return a status (0=OK,1=Warning, -1=Error) and give a suitable warning or error string.