-
Book Overview & Buying
-
Table Of Contents
SAP ABAP Advanced Cookbook
By :
In this recipe, we will see how we can display the body of our e-mail in HTML to our messages body. We will see how text may be displayed in bold, in various colors, for example, red and how to set the background color of the e-mail body. We will copy the program shown in the first recipe and make few changes in it. The detail of HTML coding is beyond the scope of this book. The focus of the recipe will be on how basic HTML code is shown in the e-mail body.
We will now carry out the steps shown as follows;
For the email_text internal table, we will append a number of rows. Each row appended will correspond to the lines of the HTML code. We will specify a background color for the e-mail body. Then on the first line, we will write a text Dear Sir in font size = 2. On the next line, we will write text in red color. Finally, on the last line we write text in bold format, as shown in the following screenshot:

The e-mail text will then be used to create the document...
Change the font size
Change margin width
Change background colour