Fonction SAP BAPI_CUSTOMER_CREATEPWREG - Create entry for customer password

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CUSTOMERNO BAPI1007-CUSTOMER C 10 Customer number

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Code

Functionality
In this function module, an entry for the customer is created in table
BAPIUSW01.
The system does not generate a password for the customer.
The following are displayed as return codes:
'00' = ok
'11' = Entry in table BAPIUSW01 already exists

Example
call function 'BAPI_CUSTOMER_CREATEPWREG'
exporting
object_id = customerid
importing
return = rcode.

Notes
Before calling up the function module, check the customer number in thecustomer master record.
If the customer number is not available in the master record, you cannot call up the function module.

Further information
FB 'BAPI_CUSTOMER_INITPASSWORD'
Description
In this structure, the return code for the function module is returned.
Structure
TYPE
Message type: S Success, E Error, W Warning, I Information
CODE
Message code
MESSAGE
Message text
LOG_NO
Applicaton log: log number
LOG_MSG_NO
Application log: current message number
Value range
If no error occurs, the return parameter is blank. Otherwise, thecorresponding error messages are issued with short text.