<?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: Transfer Dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294265#M500785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey praveena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no direct way to move internal table directly to a file. You will have to loop through each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you dont wanna move records to work area then, define header line for internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tyeps: begin of tys_sample,&lt;/P&gt;&lt;P&gt;a(9),&lt;/P&gt;&lt;P&gt;b(9),&lt;/P&gt;&lt;P&gt;end of tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_sample type standard table of tys_sample &amp;lt;b&amp;gt;WITH HEADER LINE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;gs_sample type tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset gv_file for input in text mode " gv_file contains the file path.&lt;/P&gt;&lt;P&gt;loop at GT_SAMPLE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;transfer gt_sample to gv_file&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 03:11:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T03:11:56Z</dc:date>
    <item>
      <title>Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294260#M500780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared an internal table in the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tyeps: begin of tys_sample,&lt;/P&gt;&lt;P&gt;          a(9),&lt;/P&gt;&lt;P&gt;          b(9),&lt;/P&gt;&lt;P&gt;          end of tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_sample type standard table of tys_sample,&lt;/P&gt;&lt;P&gt;        gs_sample type tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;made some operations on the internal table and appended with data, now I need to transfer this internal table content into a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did in the following way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset gv_file for input in text mode " gv_file contains the file path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;transfer gt_sample to dataset gv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while doing syntax check for this program I am getting an error that GT_sample is not an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can efford to loop the internal table into work area and pass the work are to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know the answer. It is urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mungala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 01:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294260#M500780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T01:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294261#M500781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;decalre one varaibel as string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data v_data type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate gt_sample-fld1 ','  gt_sample-fld2 into v_data.&lt;/P&gt;&lt;P&gt;transfer v_data to dataset gv_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 01:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294261#M500781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T01:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294262#M500782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must loop the internal table into a work area and transfer the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tyeps: begin of tys_sample,
a(9),
b(9),
end of tys_sample.

data: gt_sample type standard table of tys_sample,
gs_sample type tys_sample.

open dataset gv_file for input in text mode " gv_file contains the file path.

loop at gt_sample into gs_sample.
   transfer gs_sample to gv_file.
endloop.

close dataset gv_file.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 01:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294262#M500782</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-31T01:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294263#M500783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Change your syntax like this. &lt;/P&gt;&lt;P&gt;LOOP AT gt_sample INTO gs_sample.&lt;/P&gt;&lt;P&gt;TRANSFER gs_sample TO gv_file.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points to all useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 03:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294263#M500783</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-05-31T03:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294264#M500784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Praveena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; do this way ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tyeps: begin of tys_sample,
        a(9),
        b(9),
end of tys_sample.

data: gt_sample like tys_sample occurs 0 with header line,
      gs_sample type tys_sample.

open dataset gv_file for input in text mode " gv_file contains the file path.

loop at gt_sample into gs_sample.
   transfer gs_sample to gv_file.
endloop.

close dataset gv_file&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 03:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294264#M500784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T03:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294265#M500785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey praveena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no direct way to move internal table directly to a file. You will have to loop through each record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you dont wanna move records to work area then, define header line for internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tyeps: begin of tys_sample,&lt;/P&gt;&lt;P&gt;a(9),&lt;/P&gt;&lt;P&gt;b(9),&lt;/P&gt;&lt;P&gt;end of tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gt_sample type standard table of tys_sample &amp;lt;b&amp;gt;WITH HEADER LINE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;gs_sample type tys_sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset gv_file for input in text mode " gv_file contains the file path.&lt;/P&gt;&lt;P&gt;loop at GT_SAMPLE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;transfer gt_sample to gv_file&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 03:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/2294265#M500785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T03:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/14208984#M2042425</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Yes can transfer whole internal table to dataset without loop&lt;/P&gt;&lt;P&gt;first convert your internal as CSV using method (&lt;!--  StartFragment   --&gt;&lt;SPAN&gt;cl_ilm_stor_mon_csv_converter&lt;/SPAN&gt; ). It will convert multiple column table into single column (CSV separated) row by row it converts.&lt;BR /&gt;Now move csv converted data to internal table (string type). Then concatenate all the lines of CSV to single string and convert as XSTRING with UTF-8. Then Transfer single string to open dataset.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;DATA: lt_csv          TYPE ilm_stor_mon_csv_t_csv_data,
      lt_tab       TYPE TABLE OF string,
      lv_bigstring TYPE string,
      lv_xstr      TYPE xstring.

"internal table to CSV table
    lo_csv-&amp;gt;if_ilm_stor_mon_csv_converter~set_delimiter(
                  EXPORTING
                    iv_delimiter = ',' ).

      lo_csv-&amp;gt;if_ilm_stor_mon_csv_converter~data_to_csv(
                                 EXPORTING
                                   iv_data =  lt_internal_table
                                   iv_header = abap_true
                                 IMPORTING
                                   et_csv = lt_csv ).

"string table
lt_tab = VALUE #( FOR row IN lt_csv ( row-dataline ) ).

      "Concatenate the internal table into one string separated by newline
      CONCATENATE LINES OF lt_tab  INTO lv_bigstring SEPARATED BY cl_abap_char_utilities=&amp;gt;newline.

      "Convert to XSTRING in UTF-8
      lv_xstr = cl_bcs_convert=&amp;gt;string_to_xstring(
                   iv_string   = lv_bigstring
                   iv_codepage = 'UTF-8' ).

      "Write in one shot
      OPEN DATASET lv_txt_file FOR OUTPUT IN BINARY MODE.
      IF sy-subrc = 0.
        TRANSFER lv_xstr TO lv_txt_file.
        CLOSE DATASET lv_txt_file.
      ENDIF.&lt;/LI-CODE&gt;&lt;P&gt;This CONCATENATE will handle 35Lakh lines of internal table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Kalaislevan S.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 16:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/14208984#M2042425</guid>
      <dc:creator>Kalaiselvan_S</dc:creator>
      <dc:date>2025-09-05T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/14211153#M2042439</link>
      <description>&lt;P&gt;Nice find.&amp;nbsp; Of course when I go to use it the constructor has the below.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"==============================================&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&amp;nbsp;As&amp;nbsp;of&amp;nbsp;the&amp;nbsp;release&amp;nbsp;of&amp;nbsp;NetWeaver&amp;nbsp;7.50&amp;nbsp;SPS04&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"&amp;nbsp;is&amp;nbsp;the&amp;nbsp;ILM&amp;nbsp;Store&amp;nbsp;Monitor&amp;nbsp;obsolete&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RAISE&amp;nbsp;EXCEPTION&amp;nbsp;TYPE&amp;nbsp;cx_ilm_stor_mon_runtime&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXPORTING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;textid&amp;nbsp;=&amp;nbsp;cx_ilm_stor_mon_runtime=&amp;gt;obsolete.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"==============================================&lt;BR /&gt;The (as usual) terrible SAP documentation states that it is obsolete w/o suggesting a replacement.&lt;BR /&gt;WTFrig is wrong w/SAP managers that they ship code as such? Sad thing is it appears to work actually.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 17:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfer-dataset/m-p/14211153#M2042439</guid>
      <dc:creator>Maxx2</dc:creator>
      <dc:date>2025-09-08T17:59:17Z</dc:date>
    </item>
  </channel>
</rss>

