NACE , Mail title and text - Body of email
Hi Gurus - I want to display text in body of the email along with attachement. I've added the text in NACE in mail title and text, but the body of the email is getting as blank. Is there any solution to customize this?
Jason Barton replied
We do this and it is working. I will do my best to describe sol'n as follows ...
- In our print program (Z program, copy of standard) we have sub routine FORM_CLOSE
- Inside of FORM_CLOSE, we have reference to sub routine SEND_MAIL_WITH_ATTACHM
- In that sub routine, this body of code we have really deals with this requirement
check that internet address is available
READ TABLE l_addr1_complete-adsmtp_tab INTO l_adsmtp_line INDEX 1.
IF sy-subrc EQ 0 AND
NOT l_adsmtp_line-adsmtp-smtp_addr IS INITIAL.
choose message type 'I'nternet and fill email address
gs_finaa-nacha = 'I'.
gs_finaa-intad = l_adsmtp_line-adsmtp-smtp_addr.
gs_finaa-namep = 'Z_SD_EMAIL_INVOICE_TEXT'.
gs_finaa-textf = 'PDF'.
Ultimately we are creating standard text in SO10, and drawing it into the body of the email. Works well, and always produces consistent result. Revert back if questions. Hope this helps or at least gets you going in right direction.