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:

  1. Declare two reference variables sendrequest and myrecpient to the classes cl_bcs and cl_sapuser_bcs.
    How to do it...
  2. We will then declare a variable for specifying the content of the e-mail email_text. This is based on the type bcsy_text. We also declare an object reference ...

Get SAP ABAP Advanced Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.