We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-log-sd] How to add body text when sending output as PDF in email?

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Jason Barton (Billing Functional Consultant - Team Lead)
on Aug 12 at 2:25 PM
Mark this reply as helpfulMark as helpful
Sree,
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'.
ELSE.
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.
Thanks,
Jay
__.____._
Copyright © 2009 CEB Toolbox, Inc. and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251

0 comments:

Post a Comment

T r a n s l a t e to your language