<?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: FAX Sazpscript using      SO_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fax-sazpscript-using-so-document-send-api1/m-p/3684195#M887157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;check this link for all your querries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5132750"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Check this one:&lt;/P&gt;&lt;P&gt;SAP Script-&amp;gt;PDF-&amp;gt;Email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;have alook at this code also&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;src_spoolid = mi_rqident&lt;/P&gt;&lt;P&gt;no_dialog = c_no&lt;/P&gt;&lt;P&gt;dst_device = c_device&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;pdf_bytecount = gd_bytecount&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;pdf = it_pdf_output&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;err_no_abap_spooljob = 1&lt;/P&gt;&lt;P&gt;err_no_spooljob = 2&lt;/P&gt;&lt;P&gt;err_no_permission = 3&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 4&lt;/P&gt;&lt;P&gt;err_bad_destdevice = 5&lt;/P&gt;&lt;P&gt;user_cancelled = 6&lt;/P&gt;&lt;P&gt;err_spoolerror = 7&lt;/P&gt;&lt;P&gt;err_temseerror = 8&lt;/P&gt;&lt;P&gt;err_btcjob_open_failed = 9&lt;/P&gt;&lt;P&gt;err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;err_btcjob_close_failed = 11&lt;/P&gt;&lt;P&gt;others = 12.&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfer the 132-long strings to 255-long strings &lt;/P&gt;&lt;P&gt;loop at it_pdf_output.&lt;/P&gt;&lt;P&gt;translate it_pdf_output using ' ~'.&lt;/P&gt;&lt;P&gt;concatenate gd_buffer it_pdf_output into gd_buffer.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;translate gd_buffer using '~ '.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;it_mess_att = gd_buffer.&lt;/P&gt;&lt;P&gt;append it_mess_att.&lt;/P&gt;&lt;P&gt;shift gd_buffer left by 255 places.&lt;/P&gt;&lt;P&gt;if gd_buffer is initial.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call FM after populating attachment data&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 = 'X'&lt;/P&gt;&lt;P&gt;sender_address = ld_sender_address&lt;/P&gt;&lt;P&gt;sender_address_type = ld_sender_address_type&lt;/P&gt;&lt;P&gt;commit_work = 'X'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;sent_to_all = w_sent_all&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;packing_list = t_packing_list&lt;/P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also u can chk sample programe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the code in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2008 06:49:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-11T06:49:57Z</dc:date>
    <item>
      <title>FAX Sazpscript using      SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fax-sazpscript-using-so-document-send-api1/m-p/3684194#M887156</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;Im using  SO_DOCUMENT_SEND_API1 FM to sned the sapscript thru fax...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just a question about the FROM and TO fields on the cover of the fax...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently my output has no value on the said fileds... I want to put values on those fields... How am I going to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks  a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 06:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fax-sazpscript-using-so-document-send-api1/m-p/3684194#M887156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T06:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: FAX Sazpscript using      SO_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fax-sazpscript-using-so-document-send-api1/m-p/3684195#M887157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;check this link for all your querries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5132750"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Check this one:&lt;/P&gt;&lt;P&gt;SAP Script-&amp;gt;PDF-&amp;gt;Email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;have alook at this code also&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;src_spoolid = mi_rqident&lt;/P&gt;&lt;P&gt;no_dialog = c_no&lt;/P&gt;&lt;P&gt;dst_device = c_device&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;pdf_bytecount = gd_bytecount&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;pdf = it_pdf_output&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;err_no_abap_spooljob = 1&lt;/P&gt;&lt;P&gt;err_no_spooljob = 2&lt;/P&gt;&lt;P&gt;err_no_permission = 3&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 4&lt;/P&gt;&lt;P&gt;err_bad_destdevice = 5&lt;/P&gt;&lt;P&gt;user_cancelled = 6&lt;/P&gt;&lt;P&gt;err_spoolerror = 7&lt;/P&gt;&lt;P&gt;err_temseerror = 8&lt;/P&gt;&lt;P&gt;err_btcjob_open_failed = 9&lt;/P&gt;&lt;P&gt;err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;err_btcjob_close_failed = 11&lt;/P&gt;&lt;P&gt;others = 12.&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transfer the 132-long strings to 255-long strings &lt;/P&gt;&lt;P&gt;loop at it_pdf_output.&lt;/P&gt;&lt;P&gt;translate it_pdf_output using ' ~'.&lt;/P&gt;&lt;P&gt;concatenate gd_buffer it_pdf_output into gd_buffer.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;translate gd_buffer using '~ '.&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;it_mess_att = gd_buffer.&lt;/P&gt;&lt;P&gt;append it_mess_att.&lt;/P&gt;&lt;P&gt;shift gd_buffer left by 255 places.&lt;/P&gt;&lt;P&gt;if gd_buffer is initial.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then call FM after populating attachment data&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 = 'X'&lt;/P&gt;&lt;P&gt;sender_address = ld_sender_address&lt;/P&gt;&lt;P&gt;sender_address_type = ld_sender_address_type&lt;/P&gt;&lt;P&gt;commit_work = 'X'&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;sent_to_all = w_sent_all&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;packing_list = t_packing_list&lt;/P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also u can chk sample programe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the code in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/rep_spooltopdf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do reward if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 06:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fax-sazpscript-using-so-document-send-api1/m-p/3684195#M887157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T06:49:57Z</dc:date>
    </item>
  </channel>
</rss>

