<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAPscript: Autotmatically e-mail as PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788760#M39844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colin, thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I posted my original, I saw your earlier posting regarding CONVERT_COMM_TYPE_DATA and have been working with same to email our employee benefit confirmation statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set the subject line using the TDCOVTITLE but when I use the above FM the SAPScript is not filled with variable data. That is, the next step in the program calls FM WRITE_FORM to populate the SAPScript with employee data (name, address, benefit elections, etc.). What I receive in Outlook is a PDF file with the SAPScript text lines but no variable data.&lt;/P&gt;&lt;P&gt;Can you tell me what I need to do to have the SAPScript fill with variable data?&lt;/P&gt;&lt;P&gt;If I comment out the CONVERT_COMM_TYPE_DATA statement and set the SENDER and RECIPIENT via OSS note 357137, I receive the SAPScript via email and it contains both the text and the variable data or displays the same as when printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you have worked this issue before.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2004 15:53:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-10-22T15:53:58Z</dc:date>
    <item>
      <title>SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788756#M39840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to e-mail a report that has been produced via a SAPscript form as a PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using OPEN_FORM, I know you can set the device type to 'MAIL' but there are 3 parameters that I am not too sure what the contents of the fields need to be. These are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIL_SENDER -&amp;gt; Obviously the sender of the mail but what about the other fields on the structure ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT -&amp;gt; Obviously the recipient of the mail but what about the other fields on the structure ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJECT -&amp;gt; not too sure what this should contain at all &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know what these fields should contain ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SMTP port has been configured so any SAPscripts are produced in PDF format so I think these parameters are the only thing stopping this working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The release is 4.7 but do not think this makes any difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Aug 2004 15:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788756#M39840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-13T15:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788757#M39841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have (AFAIK) never sent a mail directly using OPEN_FORM while creating SAPscript output, but you can take the OTF contents returned by CLOSE_FORM and send a mail using the class CL_BCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at class CL_BSP_TUT_MAIL of BSP application BSPTUTORIALMAIL to see an example of how to send a mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you have access to an R/3 system, look at include RFKORI90 which is used in FI correspondence programs, subroutine CLOSE_INTERNET. The documents produced for emailing are sent as PDF on our system, but I don't know to what extent that is because of the configuration in transaction SCOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin Ceronio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2004 08:42:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788757#M39841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-17T08:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788758#M39842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OSS note 357137 describes setting sender and recipient for mailing. The MAIL_APPL_OBJECT is not required to send SAPscipts via email.&lt;/P&gt;&lt;P&gt;We are using this method to email notices to employees unfortunately I have not been able to change the subject line or add anything to the body of the email. The email contains the SAPscript as a PDF file and has the SAPscript header line as the subject line. &lt;/P&gt;&lt;P&gt;If you know of a way to change the subject line and/or add text to the body of the email, please let us know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2004 20:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788758#M39842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-21T20:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788759#M39843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruce,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fix for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you call OPEN_FORM to open the SAPscript you must be calling function CONVERT_COMM_TYPE_DATA to set the sender and recipient information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this function, there is an import structure for PI_SNAST. Set the field TDCOVTITLE on this structure before calling the function and this should set the subject for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to incorporate dates etc into the subject field. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2004 07:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788759#M39843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-22T07:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788760#M39844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Colin, thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I posted my original, I saw your earlier posting regarding CONVERT_COMM_TYPE_DATA and have been working with same to email our employee benefit confirmation statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set the subject line using the TDCOVTITLE but when I use the above FM the SAPScript is not filled with variable data. That is, the next step in the program calls FM WRITE_FORM to populate the SAPScript with employee data (name, address, benefit elections, etc.). What I receive in Outlook is a PDF file with the SAPScript text lines but no variable data.&lt;/P&gt;&lt;P&gt;Can you tell me what I need to do to have the SAPScript fill with variable data?&lt;/P&gt;&lt;P&gt;If I comment out the CONVERT_COMM_TYPE_DATA statement and set the SENDER and RECIPIENT via OSS note 357137, I receive the SAPScript via email and it contains both the text and the variable data or displays the same as when printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you have worked this issue before.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2004 15:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788760#M39844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-22T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788761#M39845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings All,&lt;/P&gt;&lt;P&gt;Just to update this thread for anyone who may be interested in the solution in used, please see OSS note 208271. &lt;/P&gt;&lt;P&gt;Basically, I pulled the SAPScript from the CLOSE_FORM statement in OTF, converted to PDF, and sent the PDF file in an email.&lt;/P&gt;&lt;P&gt;Please see the note for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2004 18:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788761#M39845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-27T18:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788762#M39846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of emailing a sapscript output instead of printing it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the posts in this regard by Colin (Bickell) and Bruce (Schedler). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin had suggested converting the data into OTF and then using OPEN_FORM to send the output to the 'MAIL' device. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Bruce it seems found some problems with that with respect to displaying variable data and used steps similar to OSS note 208271 instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is if I follow a logic similar to OSS note 208271, will both a print output as well as an email be generated? If yes, is there any way I ensure that ONLY the email is generated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the method suggested by Colin would have worked fine, but for the problems pointed out by Bruce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with deciding on a solution please?&lt;/P&gt;&lt;P&gt;My apologies for the lengthy post &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gourav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2004 12:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788762#M39846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-16T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAPscript: Autotmatically e-mail as PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788763#M39847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My solution works fine and I have experienced no problems at all. Would you care to expand the issues Bruce had ? I think the only issue he had was printing a variable subject in the e-mail subject field but I have explained how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the solution I posted before as this will ensure that you receive an e-mail only with a PDF attachment. No printout will occur at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colin &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Colin Bickell&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2004 15:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-autotmatically-e-mail-as-pdf/m-p/788763#M39847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-16T15:51:20Z</dc:date>
    </item>
  </channel>
</rss>

