<?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: Output format - SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216338#M1206414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viquar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hav already populated OBJCONT  with multipl lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even the beauty, i did like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = 'Hey guys, time for lunch !!!'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = '             '.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = 'Lets get going !'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eventhough its not givin me correct output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 12:57:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T12:57:16Z</dc:date>
    <item>
      <title>Output format - SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216335#M1206411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we use the above foresaid FM with doc type &lt;STRONG&gt;HTM&lt;/STRONG&gt;, v usually get a mail as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Dear Sir,As per our system...This is system generated mail. Please do not reply to this mail....Warm Regards,XXXXX'."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i dont want to get an output in a continuous line, want as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Dear Sir,&lt;/P&gt;&lt;P&gt;As per our system...&lt;/P&gt;&lt;P&gt;This is system generated mail. Please do not reply to this mail....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;XXXXX' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;DosS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 12:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216335#M1206411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T12:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Output format - SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216336#M1206412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gd_subject = p_odescr.&lt;/P&gt;&lt;P&gt;  gd_attachment_desc = p_adescr.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'INVOICE' ' ' INTO gd_attachment_name.&lt;/P&gt;&lt;P&gt;  it_mess_bod = 'This is an automated invoice from SAP.'.&lt;/P&gt;&lt;P&gt;  APPEND it_mess_bod.&lt;/P&gt;&lt;P&gt;  it_mess_bod = 'Please do not reply to this mail id.'.&lt;/P&gt;&lt;P&gt;  APPEND it_mess_bod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no sender specified - default blank&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; p_email1 = sy-uname.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF p_sender EQ space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   gd_sender_type = space.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ELSE.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   gd_sender_type = 'INT'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM send_file_as_email_attachment&lt;/P&gt;&lt;P&gt;                     TABLES it_mess_bod&lt;/P&gt;&lt;P&gt;                            pdf                    "it_mess_att&lt;/P&gt;&lt;P&gt;                      USING p_email1&lt;/P&gt;&lt;P&gt;                            p_odescr&lt;/P&gt;&lt;P&gt;                            'PDF'&lt;/P&gt;&lt;P&gt;                            gd_attachment_name&lt;/P&gt;&lt;P&gt;                            gd_attachment_desc&lt;/P&gt;&lt;P&gt;                            p_sender&lt;/P&gt;&lt;P&gt;                            gd_sender_type&lt;/P&gt;&lt;P&gt;                   CHANGING gd_error&lt;/P&gt;&lt;P&gt;                            gd_reciever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM send_file_as_email_attachment TABLES it_message&lt;/P&gt;&lt;P&gt;                                          it_attach&lt;/P&gt;&lt;P&gt;                                    USING p_email&lt;/P&gt;&lt;P&gt;                                          p_mtitle&lt;/P&gt;&lt;P&gt;                                          p_format&lt;/P&gt;&lt;P&gt;                                          p_filename&lt;/P&gt;&lt;P&gt;                                          p_attdescription&lt;/P&gt;&lt;P&gt;                                          p_sender_address&lt;/P&gt;&lt;P&gt;                                          p_sender_addres_type&lt;/P&gt;&lt;P&gt;                                 CHANGING p_error&lt;/P&gt;&lt;P&gt;                                          p_reciever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;       document_data                    = w_doc_data&lt;/P&gt;&lt;P&gt;       put_in_outbox                    = v_inbox&lt;/P&gt;&lt;P&gt;       sender_address                   = v_email1&lt;/P&gt;&lt;P&gt;       sender_address_type              = space&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    commit_work                      = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       sent_to_all                      =  w_sent_all&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_OBJECT_ID                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SENDER_ID                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        packing_list                     = t_packing_list&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT_HEADER                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       contents_bin                     = t_attachment&lt;/P&gt;&lt;P&gt;       contents_txt                     = it_message&lt;/P&gt;&lt;P&gt;       receivers                        = t_receivers&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       too_many_receivers               = 1&lt;/P&gt;&lt;P&gt;       document_not_sent                = 2&lt;/P&gt;&lt;P&gt;       document_type_not_exist          = 3&lt;/P&gt;&lt;P&gt;       operation_no_authorization       = 4&lt;/P&gt;&lt;P&gt;       parameter_error                  = 5&lt;/P&gt;&lt;P&gt;       x_error                          = 6&lt;/P&gt;&lt;P&gt;       enqueue_error                    = 7&lt;/P&gt;&lt;P&gt;       OTHERS                           = 8&lt;/P&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate zerror return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ld_error = sy-subrc.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate zreceiver return code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT t_receivers.&lt;/P&gt;&lt;P&gt;      ld_receiver = t_receivers-retrn_code.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 12:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216336#M1206412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T12:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Output format - SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216337#M1206413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;In TABLES&lt;/P&gt;&lt;P&gt;   OBJECT_CONTENT = OBJCONT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   OBJCONT = 'Hey guys, time for lunch !!!'.&lt;/P&gt;&lt;P&gt;   APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;   OBJCONT = 'Lets get going !'.&lt;/P&gt;&lt;P&gt;   APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;  append the message to OBJCONT instead of one full line.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Viquar Iqbal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 12:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216337#M1206413</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-12T12:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Output format - SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216338#M1206414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Viquar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hav already populated OBJCONT  with multipl lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even the beauty, i did like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = 'Hey guys, time for lunch !!!'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = '             '.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJCONT = 'Lets get going !'.&lt;/P&gt;&lt;P&gt;APPEND OBJCONT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eventhough its not givin me correct output...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 12:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-format-so-new-document-send-api1/m-p/5216338#M1206414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T12:57:16Z</dc:date>
    </item>
  </channel>
</rss>

