Creating a simple e-mail message
In this recipe, we will see how we can create a simple program that will send an e-mail (SAP Office Mail) to an SAP user AJON1
. There are no attachments involved in this recipe. However, we will want the SAP user AJON1
to see a pop-up express message when the e-mail document is received in his or her inbox.
How to do it...
We will now perform the steps shown as follows:
- Declare two reference variables
sendrequest
andmyrecpient
to the classescl_bcs
andcl_sapuser_bcs
. - We will then declare a variable for specifying the content of the e-mail
email_text
. This is based on the typebcsy_text
. We also declare an object reference ...
Get SAP ABAP Advanced Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.