Hierarchy
⤷
⤷
IMG Activity
| ID | ERP_WEC_USER_MGMT | BAdI: Definition of User Checks in ERP |
| Transaction Code | S_EB5_05000660 | (empty) |
| Created on | 20100204 | |
| Customizing Attributes | ERP_WEC_USER_MGMT | BAdI: Definition of User Checks in ERP |
| Customizing Activity | ERP_WEC_USER_MGMT | BAdI: Definition of User Checks in ERP |
Document
| Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
| Document Name | ERP_WEC_USER_MGMT |
Use
This Business Add-In (BAdI) is used in the User Management (WEC-APP-UM) component. The BAdI belongs to enhancement spot ERP_WEC_USER_MGMT_CHECK.
You can use the BAdI to check additional user details during logon and registration. In the standard system, when a user logs on to the Web shop, the system checks if the user name and e-mail address are valid. If you want to check against additional fields, like the first name or last name, before authenticating a user, you have to implement this BAdI.
You cannot modify the given data in the BAdI. You are only allowed to check the values given by the user management and to set the return code. An exception is the method CHECK_LOGIN where - besides the status - the R3 user name must be returned.
The BAdI contains interface IF_ERP_WEC_UM_CHECK_BADI. This interface has the following methods:
- Method
CHECK_LOGIN, which checks user details during logon. This method has the following parameters: - Importing Parameters:
TECHNICAL_IDR3_USERNAME- Exporting Parameters:
RETURNCODEMESSAGES- Result:
- It should return
ET_BUPA_KEYkey as a result if the user is found by using the technical ID. In other cases, null should be returned. ES_BUPA_KEYis currently not used.RETURNCODEshould be:- Null, if no error occurs the given technical ID is valid
- 99, if an error occurs (MESSAGES must contain an appropriate error message)
MESSAGEScontain only error messages.- Method
CHECK_REGISTRATION, which checks user details during registration. It is called before the user and the corresponding business partner are created. If the method returns any other return value than null, the user creation stops and neither user nor the corresponding business partner are created. This method has the following parameters: - Importing Parameters:
TECHNICAL_IDIV_IUSERNAMEIV_USERALIASIV_CUSTOMERDATAIV_CUSTOMERDATA_X- Exporting Parameters:
RETURNCODEMESSAGES- Result:
RETURNCODEshould be:- Null, if no error occurs the given technical ID is valid
- 99, if an error occurs (
MESSAGESmust contain an appropriate error message) MESSAGEScontain only error messages.- Method
POST_REGISTRATION, which checks user details after registration. It is called after the user and the corresponding business partner have been created and the transaction has been committed. You can only create an error message if an error occurs. This method has the following parameters: - Importing Parameters:
TECHNICAL_IDR3_USERNAMECUSTOMERIDCONTACTID- Exporting Parameters:
RETURNCODEMESSAGES- Result:
RETURNCODEshould be:- Null, if no error occurs the given technical ID is valid
- 99, if an error occurs (
MESSAGESmust contain a appropriate error message) MESSAGEScontain only error messages.
Requirements
This BAdI is a prerequisite if you use the technical ID as logon type in the Web shop.
Standard settings
In the standard system, there is no activated BAdI implementation. Therefore, a logon with technical ID is not possible by default.
Activities
Information about the implementation of BAdIs in the context of the enhancement concept is available in the SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.
Example
Business Attributes
| ASAP Roadmap ID | 204 | Establish Functions and Processes |
| Mandatory / Optional | 2 | Optional activity |
| Critical / Non-Critical | 1 | Critical |
| Country-Dependency | A | Valid for all countries |
Assigned Application Components
| Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
|---|---|---|---|---|
| SIMG | ERP_WEC_USER_MGMT | 0 | EB50000096 | Web Channel UM ERP aspects |
Maintenance Objects
| Maintenance object type | E | Business Add-In - Definition |
History
| Last changed by/on | SAP | 20100204 |
| SAP Release Created in | 605 |