<?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: convert internal table to file csv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609712#M2011690</link>
    <description>&lt;P&gt; @Mathew &lt;/P&gt; thanks you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:58:17 GMT</pubDate>
    <dc:creator>former_member810309</dc:creator>
    <dc:date>2022-09-16T12:58:17Z</dc:date>
    <item>
      <title>convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609706#M2011684</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;
  &lt;P&gt;plz help.&lt;/P&gt;
  &lt;P&gt;i have an internal table (gt_data_scv) wich contains data separated by ' ; ' like :&lt;/P&gt;
  &lt;P&gt;1 Comp ; NFly ; Date ; Price ; TypePlane&lt;/P&gt;
  &lt;P&gt;2 AA ; 0017 ; 20220121 ; 422.12 ; 747-400&lt;/P&gt;
  &lt;P&gt;3 AA ; 0017 ; 20211230 ; 237 ; A319&lt;/P&gt;
  &lt;P&gt;...................&lt;/P&gt;
  &lt;P&gt;i want to convert this internal table to csv fil without download it, i'm using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' after this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 15:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609706#M2011684</guid>
      <dc:creator>former_member810309</dc:creator>
      <dc:date>2022-09-13T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609707#M2011685</link>
      <description>&lt;P&gt;I feel you, its so hard when you come across something that nobody has ever done before and you cant find anything online. What a pain!&lt;/P&gt;&lt;P&gt;PS: checks &lt;A href="https://letmegooglethat.com/?q=abap+convert+internal+table+to+csv&amp;amp;l=1" target="_blank"&gt;this&lt;/A&gt; out.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 15:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609707#M2011685</guid>
      <dc:creator>Tukutupap</dc:creator>
      <dc:date>2022-09-13T15:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609708#M2011686</link>
      <description>&lt;P&gt;Beside it's a standard ABAP problem, you should better use class to send your mail.&lt;BR /&gt;Here's one example method to send xstring data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD send_xstring_as_mail.&lt;BR /&gt;&lt;BR /&gt;    DATA:&lt;BR /&gt;      r_request      TYPE REF TO cl_bcs,&lt;BR /&gt;      r_document     TYPE REF TO cl_document_bcs,&lt;BR /&gt;      t_file_content TYPE solix_tab,&lt;BR /&gt;      t_att_head     TYPE soli_tab,&lt;BR /&gt;      v_text_line    TYPE soli,&lt;BR /&gt;      v_xstring_size TYPE so_obj_len.&lt;BR /&gt;&lt;BR /&gt;    TRY.&lt;BR /&gt;        r_request     = cl_bcs=&amp;gt;create_persistent( ).&lt;BR /&gt;&lt;BR /&gt;        v_xstring_size     = xstrlen( i_xstring ).&lt;BR /&gt;        t_file_content = cl_document_bcs=&amp;gt;xstring_to_solix( ip_xstring = i_xstring ).&lt;BR /&gt;&lt;BR /&gt;        r_document = cl_document_bcs=&amp;gt;create_document(&lt;BR /&gt;          i_type    = 'RAW'&lt;BR /&gt;          i_subject = |{ sy-sysid }-{ sy-mandt }: { i_subject }|&lt;BR /&gt;          i_text    = it_mail_text&lt;BR /&gt;        ).&lt;BR /&gt;&lt;BR /&gt;        CONCATENATE '&amp;amp;SO_FILENAME=' i_file_name INTO v_text_line.&lt;BR /&gt;        APPEND v_text_line TO t_att_head.&lt;BR /&gt;&lt;BR /&gt;        r_document-&amp;gt;add_attachment(&lt;BR /&gt;          EXPORTING&lt;BR /&gt;            i_attachment_type    = 'BIN'&lt;BR /&gt;            i_attachment_subject = CONV so_obj_des( i_file_name )&lt;BR /&gt;            i_attachment_size    = v_xstring_size&lt;BR /&gt;            i_att_content_hex    = t_file_content&lt;BR /&gt;            i_attachment_header  = t_att_head&lt;BR /&gt;        ).&lt;BR /&gt;&lt;BR /&gt;        r_request-&amp;gt;set_document( r_document ).&lt;BR /&gt;&lt;BR /&gt;*       Get mail recipient&lt;BR /&gt;        DATA(t_receivers) = zcl_bc_util=&amp;gt;get_mail_receivers( i_repid ).&lt;BR /&gt;&lt;BR /&gt;        LOOP AT t_receivers ASSIGNING FIELD-SYMBOL(&amp;lt;fs_receivers&amp;gt;).&lt;BR /&gt;&lt;BR /&gt;          DATA(r_receiver) = cl_cam_address_bcs=&amp;gt;create_internet_address(&lt;BR /&gt;            i_address_string = CONV ad_smtpadr( &amp;lt;fs_receivers&amp;gt;-receiver )&lt;BR /&gt;          ).&lt;BR /&gt;&lt;BR /&gt;          r_request-&amp;gt;add_recipient( i_recipient  = r_receiver ).&lt;BR /&gt;&lt;BR /&gt;        ENDLOOP.&lt;BR /&gt;&lt;BR /&gt;        DATA(v_result) = r_request-&amp;gt;send( ).&lt;BR /&gt;&lt;BR /&gt;        IF i_do_commit EQ abap_true.&lt;BR /&gt;          COMMIT WORK.&lt;BR /&gt;        ENDIF.&lt;BR /&gt;&lt;BR /&gt;      CATCH cx_send_req_bcs&lt;BR /&gt;            cx_document_bcs&lt;BR /&gt;            cx_address_bcs INTO DATA(r_exc).&lt;BR /&gt;&lt;BR /&gt;            MESSAGE r_exc-&amp;gt;get_text( ) TYPE 'E'.&lt;BR /&gt;    ENDTRY.&lt;BR /&gt;&lt;BR /&gt;  ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;    CLASS-METHODS send_xstring_as_mail&lt;BR /&gt;      IMPORTING&lt;BR /&gt;        !i_repid      TYPE repid&lt;BR /&gt;        !i_subject    TYPE so_obj_des&lt;BR /&gt;        !i_file_name  TYPE string&lt;BR /&gt;        !i_xstring    TYPE xstring&lt;BR /&gt;        !i_do_commit  TYPE boole_d DEFAULT abap_true&lt;BR /&gt;        !it_mail_text TYPE bcsy_text.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Sep 2022 15:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609708#M2011686</guid>
      <dc:creator>thkolz</dc:creator>
      <dc:date>2022-09-13T15:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609709#M2011687</link>
      <description>&lt;P&gt;all I find on the net is the conversion with download, my case is different. thank you for your help, glad you're here&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 07:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609709#M2011687</guid>
      <dc:creator>former_member810309</dc:creator>
      <dc:date>2022-09-14T07:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609710#M2011688</link>
      <description>&lt;P&gt;hi, thanks for your help&lt;BR /&gt;can i do it with the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' ? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609710#M2011688</guid>
      <dc:creator>former_member810309</dc:creator>
      <dc:date>2022-09-16T12:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609711#M2011689</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;chkoupi&lt;/SPAN&gt; &lt;BR /&gt;SO_NEW_DOCUMENT_ATT_SEND_API1 is old, limited and hard to get working.&lt;/P&gt;&lt;P&gt;CL_BCS etc. are easy to use and have greater scope.&lt;/P&gt;&lt;P&gt;Use CL_BCS...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609711#M2011689</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-09-16T12:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: convert internal table to file csv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609712#M2011690</link>
      <description>&lt;P&gt; @Mathew &lt;/P&gt; thanks you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-internal-table-to-file-csv/m-p/12609712#M2011690</guid>
      <dc:creator>former_member810309</dc:creator>
      <dc:date>2022-09-16T12:58:17Z</dc:date>
    </item>
  </channel>
</rss>

