RE:[sap-log-sd] How to add body text when sending output as PDF in email?
Posted by
Admin at
|
Share this post:
|
0 Comments
| | Posted by Jason Barton (Billing Functional Consultant - Team Lead) on Aug 12 at 2:25 PM | |
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
__.____._ 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
Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Related Content
In the Spotlight
White Papers
In the Spotlight
Share Knowledge About SAP Scripting. Join the New Discussion Group
View this thread online
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion
Manage group e-mails
Create an FAQ on this topic
Tell us what you think
Unsubscribe from discussion