Ansicht
Dokumentation

ERP_WEC_EMAIL_TEMPL - BAdI: Definition of E-Mail Format and Scenarios

ERP_WEC_EMAIL_TEMPL - BAdI: Definition of E-Mail Format and Scenarios

General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

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_EMAIL.

You can use this BAdI to define the e-mail format and the various scenarios for which you want to send them. For example, you can define that you want to send all e-mails in a text format. You can then specify that e-mails containing logon information have to be sent to Web shop customers in the consumer scenario once they have completed the registration process.

The BAdI has interface IF_ERP_WEC_UM_EMAIL_BADI, with method SEND_EMAIL, which has the following parameters:

Importing Parameters:

IUSERNAME User name entered by the Web shop customer, during registration.
IUSER_EMAIL E-mail address provided by the Web shop customer during registration. The SEND_EMAIL method sends the e-mail to this address.
IUSER_PASSWORD Password entered by the Web shop customer, during registration.
IUSER_SALUTATION Salutation entered by the Web shop customer, during registration.
IUSER_LANGUAGE Language of communication, as indicated by the Web shop customer, during registration.
EMAIL_SENDER E-mail address of the sender
EMAIL_SENDER_NAME Name of the sender
EMAIL_CAUSE Defines format and content of the e-mail. It can include the following scenarios:
- Confirmation of logon details at the end of a registration process, for Web shops in the consumer scenario
- Forgotten password
- Forgotten user name (this parameter is maintained in the Customizing of the user settings in the Web Shop)
COMMIT_WORK To send e-mails immediately after the BAdI is executed, set this parameter to 'X' . Otherwise, you have to define another commit in the process.
NEW_TASK For parallel processing
IUSER_FIRSTNAME First name entered by the Web shop customer, during registration.
IUSER_LASTNAME Last name entered by the Web shop customer, during registration.
IV_ACT_URL Hyperlink, which is sent to the Web shop customer, in the following scenarios:
- To activate the user at the end of the registration process.
- To continue with the registration process. This happens when the customer provides a customer ID during registration. You confirm if the user information is correct by sending an e-mail (with URL) to the e-mail address that is specified in the consumer data record.

Changing Parameters:

RETURN_STATUS
MESSAGES

In the standard system, the BAdI implementation ERP_WEC_UM_EMAIL_BADI_IMPL is activated. The default code is executed automatically.

It enables e-mails to be sent in a text format, for the following scenarios:

Scenarios Scenario ID
To confirm user details REGISTRATION_URL
To activate user ACTIVATION_URL
To provide the changed password FORGOT_PASSWORD
To provide the changed user name FORGOT_USER

To provide the changed user name

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.

For every scenario provide an appropriate ID. Enter the IDs against the corresponding fields in Web Channel Builder:

  • E-Mail Template for Confirmation of User Details
  • E-Mail Template for User Activation
  • E-Mail Template for Web Shop Customer Validation
  • E-Mail Template for Changed Password
  • E-Mail Template for Changed User Name
To provide the changed user name






General Material Data   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 6165 Date: 20240523 Time: 191207     sap01-206 ( 131 ms )