<?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: SAP SCRIPT to Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357877#M1399951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;convert your spool request to PDF and &lt;/P&gt;&lt;P&gt;send it&lt;/P&gt;&lt;P&gt;This function will convert the Script into pdf.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transfer the 132-long strings to 255-long strings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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" Give the 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;hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Tanmaya Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2009 11:26:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-23T11:26:56Z</dc:date>
    <item>
      <title>SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357871#M1399945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through Report program a offical letter is displayed mentioning the amount payed till now and  the due amount with due date&lt;/P&gt;&lt;P&gt;in SAP SCRIPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want this SAP SCRIPT to be sent to some officials to their Outlook...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the SAP SCRIPT output contents with header into my internal table???&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;So as to trigger the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Jagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 10:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357871#M1399945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357872#M1399946</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 directly use the spool request and send it as an attachment . You need not to bother about font, it will consider automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Veeresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 10:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357872#M1399946</guid>
      <dc:creator>former_member673464</dc:creator>
      <dc:date>2009-11-23T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357873#M1399947</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;Correct me if i am wrong.&lt;/P&gt;&lt;P&gt;I think you want to send output of sap-script through mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can covert sap-script spool to pdf and send PDF as an attachment to mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 10:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357873#M1399947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357874#M1399948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to create PDF of script and send it through mail, Use the following functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To convert script to PDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ask user to save pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;then u can go for email attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357874#M1399948</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-23T11:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357875#M1399949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies...&lt;/P&gt;&lt;P&gt;But i am new to this concept of mail triggering and creating a spool...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know..&lt;/P&gt;&lt;P&gt;What procedure should i follow for this??&lt;/P&gt;&lt;P&gt;means.. is there a function module which is going to perform all of these steps, what you have said?&lt;/P&gt;&lt;P&gt;or is there any configurations to be made for this??&lt;/P&gt;&lt;P&gt;or is there any standard coding available to refer????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357875#M1399949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357876#M1399950</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;Please check this demo program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCS_EXAMPLE_6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357876#M1399950</guid>
      <dc:creator>Rocky1</dc:creator>
      <dc:date>2009-11-23T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357877#M1399951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;convert your spool request to PDF and &lt;/P&gt;&lt;P&gt;send it&lt;/P&gt;&lt;P&gt;This function will convert the Script into pdf.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Transfer the 132-long strings to 255-long strings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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" Give the 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;hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Tanmaya Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357877#M1399951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T11:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357878#M1399952</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;Go through these links below:&lt;/P&gt;&lt;P&gt;&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;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="299884"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 11:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357878#M1399952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT to Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357879#M1399953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me...&lt;/P&gt;&lt;P&gt;Awarded points...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2009 06:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-to-internal-table/m-p/6357879#M1399953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-24T06:51:06Z</dc:date>
    </item>
  </channel>
</rss>

