Auto mail in sap body text
In SAP, the auto mail feature allows you to automatically send emails to users or groups based on specific conditions or events. Here's an example of how to set up an auto mail in SAP:
Step 1: Create a new auto mail
- Go to the SAP menu:
System
>User Profile
>Auto Mail
- Click on the
Create
button to create a new auto mail - Enter a name for the auto mail, e.g. "Order Confirmation"
Step 2: Define the trigger
- In the
Trigger
tab, select the event that will trigger the auto mail. For example, you can selectDocument
>Order
>Order Confirmation
- Enter the condition for the trigger, e.g. "Order status = 'Confirmed'"
Step 3: Define the recipient
- In the
Recipient
tab, select the user or group that will receive the auto mail - You can also specify a custom recipient, e.g. a specific email address
Step 4: Define the body text
- In the
Body Text
tab, enter the text that will be sent in the auto mail - You can use SAP script variables to insert dynamic data, such as the order number or customer name
- For example:
Dear {CUSTOMER_NAME},
Thank you for your recent order {ORDER_NUMBER}. Your order has been confirmed and is being processed.
Best regards, [Your Company Name]
**Step 5: Save and activate the auto mail**
* Save the auto mail by clicking on the `Save` button
* Activate the auto mail by clicking on the `Activate` button
**Example Body Text**
Here is an example of a body text for an auto mail:
Dear {CUSTOMER_NAME},
Thank you for your recent order {ORDER_NUMBER}. Your order has been confirmed and is being processed.
Best regards, [Your Company Name]
In this example, the body text includes two script variables:
* `{CUSTOMER_NAME}`: This variable will be replaced with the customer's name
* `{ORDER_NUMBER}`: This variable will be replaced with the order number
When the auto mail is triggered, the body text will be sent to the recipient with the customer's name and order number inserted accordingly.