<?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: e-mailing an attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003645#M408124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to attach a pdf file to my message. I call the function 'CONVERT_OTF' to do it that, and later  call 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send message, but at runtime my program execution finished because when I try to send th mail I receive an error message like this 'You need to invoke and OPEN_FORM or START_FORM', and just before to call those functions I invoke OPEN_FORM, WRITE_FORM, and CLOSE_FORM. I don't know why OPEN_FORM/START_FORM doesn't work, my SAPScript is active.&lt;/P&gt;&lt;P&gt;Regards, Niurka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 14:35:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-21T14:35:02Z</dc:date>
    <item>
      <title>e-mailing an attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003643#M408122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm developing a batch input and I need to send to some people an advice about errors occur during the execution. In SAP 4.6C the application runs in a job perfectly, but now in SAP 4.7.... I have some troubles.&lt;/P&gt;&lt;P&gt;I design a SAPScript and later I transform it. When I invoke the 'OPEN_FORM' function, it shows me the printing dialog box. I want to execute it in background and I don't want this.&lt;/P&gt;&lt;P&gt;My code with OPEN_FORM is:&lt;/P&gt;&lt;P&gt;call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            application = 'TX'&lt;/P&gt;&lt;P&gt;            device      = 'PRINTER'&lt;/P&gt;&lt;P&gt;            dialog      = ' '&lt;/P&gt;&lt;P&gt;            form        = 'Z_REC_PROPIAS'&lt;/P&gt;&lt;P&gt;            language    = sy-langu&lt;/P&gt;&lt;P&gt;            options     = i_itcpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameters 'application' and 'device' have some defined values and I combine all of this and the result is the same.&lt;/P&gt;&lt;P&gt;The i_itcpo has set the 'i_itcpo-tdpreview = 'X'.', 'i_itcpo-tdimmed   = 'X'.' and 'i_itcpo-tdgetotf = 'X'.' parameters.&lt;/P&gt;&lt;P&gt;Please, how do I send the mail without this step (in background I can't show the dialog box)?&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Niurka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 15:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003643#M408122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: e-mailing an attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003644#M408123</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;You can use this function mdoule and code to send email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_OBJECT_SEND'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;New object: General header data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         OBJECT_HD_CHANGE           = R_OBJECT_HD_CHANGE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;New object: Object type&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         OBJECT_TYPE                = 'RAW'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Object should be stored in outbox&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         OUTBOX_FLAG                = SPACE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User responsible for the transmission process&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         OWNER                      = SY-UNAME&lt;/P&gt;&lt;P&gt;         DELETE_FLAG                = 'X'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;         OBJCONT                    = I_OBJCONT      " Messages&lt;/P&gt;&lt;P&gt;         OBJHEAD                    = I_OBJHEAD      " Message Header&lt;/P&gt;&lt;P&gt;         RECEIVERS                  = I_RECEIVERS    " Receivers&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          ACTIVE_USER_NOT_EXIST      = 1&lt;/P&gt;&lt;P&gt;          COMMUNICATION_FAILURE      = 2&lt;/P&gt;&lt;P&gt;          COMPONENT_NOT_AVAILABLE    = 3&lt;/P&gt;&lt;P&gt;          FOLDER_NOT_EXIST           = 4&lt;/P&gt;&lt;P&gt;          FOLDER_NO_AUTHORIZATION    = 5&lt;/P&gt;&lt;P&gt;          FORWARDER_NOT_EXIST        = 6&lt;/P&gt;&lt;P&gt;          NOTE_NOT_EXIST             = 7&lt;/P&gt;&lt;P&gt;          OBJECT_NOT_EXIST           = 8&lt;/P&gt;&lt;P&gt;          OBJECT_NOT_SENT            = 9&lt;/P&gt;&lt;P&gt;          OBJECT_NO_AUTHORIZATION    = 10&lt;/P&gt;&lt;P&gt;          OBJECT_TYPE_NOT_EXIST      = 11&lt;/P&gt;&lt;P&gt;          OPERATION_NO_AUTHORIZATION = 12&lt;/P&gt;&lt;P&gt;          OWNER_NOT_EXIST            = 13&lt;/P&gt;&lt;P&gt;          PARAMETER_ERROR            = 14&lt;/P&gt;&lt;P&gt;          SUBSTITUTE_NOT_ACTIVE      = 15&lt;/P&gt;&lt;P&gt;          SUBSTITUTE_NOT_DEFINED     = 16&lt;/P&gt;&lt;P&gt;          SYSTEM_FAILURE             = 17&lt;/P&gt;&lt;P&gt;          TOO_MUCH_RECEIVERS         = 18&lt;/P&gt;&lt;P&gt;          USER_NOT_EXIST             = 19&lt;/P&gt;&lt;P&gt;          X_ERROR                    = 20&lt;/P&gt;&lt;P&gt;          OTHERS                     = 21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call program rsconn01 starts the SAPconnect send process. You can find&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;detail documentation in the online help&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;under Basis -&amp;gt; Services -&amp;gt; Communication&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit rsconn01&lt;/P&gt;&lt;P&gt;with mode eq 'INT'&lt;/P&gt;&lt;P&gt;and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact me for any further clarifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN PATEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Reward Points if u find this as a useful solution.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003644#M408123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T06:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: e-mailing an attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003645#M408124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to attach a pdf file to my message. I call the function 'CONVERT_OTF' to do it that, and later  call 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send message, but at runtime my program execution finished because when I try to send th mail I receive an error message like this 'You need to invoke and OPEN_FORM or START_FORM', and just before to call those functions I invoke OPEN_FORM, WRITE_FORM, and CLOSE_FORM. I don't know why OPEN_FORM/START_FORM doesn't work, my SAPScript is active.&lt;/P&gt;&lt;P&gt;Regards, Niurka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 14:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003645#M408124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T14:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: e-mailing an attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003646#M408125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Th eoption  &amp;lt;u&amp;gt;dialog = ' '&amp;lt;/u&amp;gt; will switch off the dialog box, and you will not get any dialog box on execution. I think the problem is somewhere else...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2007 17:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/e-mailing-an-attachment/m-p/2003646#M408125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-22T17:50:00Z</dc:date>
    </item>
  </channel>
</rss>

