<?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: move reference table data to flat file on application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203459#M1982038</link>
    <description>&lt;P&gt;Hi Puja try as i have done below, concatenate it as sandra suggested.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; clear wa_filedata.&lt;BR /&gt; concatenate text-005 text-021 text-009 text-006 text-014 text-016 text-015 text-013 into wa_filedata separated by ','.&lt;BR /&gt; transfer wa_filedata to p_file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; loop at it_p2002 into wa_p2002.&lt;BR /&gt; concatenate wa_p2002-pernr&lt;BR /&gt; wa_p2002-nxdfl&lt;BR /&gt; wa_p2002-begda&lt;BR /&gt; wa_p2002-endda&lt;BR /&gt; wa_p2002-awart&lt;BR /&gt; wa_p2002-beguz&lt;BR /&gt; wa_p2002-enduz&lt;BR /&gt; lv_stdaz_temp&lt;BR /&gt; into wa_filedata separated by ','.&lt;BR /&gt; transfer wa_filedata to p_file.&lt;BR /&gt; clear: wa_p2002, lv_stdaz_temp.&lt;BR /&gt; endloop.&lt;BR /&gt; endif.&lt;BR /&gt; close dataset p_file.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 08:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-02-28T08:40:30Z</dc:date>
    <item>
      <title>move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203456#M1982035</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I have requirement to move data from reference table to a flat file on application server in CSV format.&lt;/P&gt;
  &lt;P&gt;Please help me with some example code&lt;/P&gt;
  &lt;P&gt;My code:&lt;/P&gt;
  &lt;P&gt; DATA : lr_pay_data TYPE REF TO data.&lt;/P&gt;
  &lt;P&gt; FIELD-SYMBOLS : &amp;lt;gt_pay_data&amp;gt; TYPE ANY TABLE,&lt;/P&gt;
  &lt;P&gt; &amp;lt;ls_itab&amp;gt; TYPE ANY.&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;cl_salv_bs_runtime_info=&amp;gt;set(&lt;BR /&gt; EXPORTING&lt;BR /&gt; display = abap_false&lt;BR /&gt; metadata = abap_false&lt;BR /&gt; data = abap_true&lt;BR /&gt; ).&lt;BR /&gt; &lt;BR /&gt; SUBMIT (&amp;lt;lv_repid&amp;gt;)&lt;BR /&gt; USING SELECTION-SET p_slset&lt;BR /&gt; AND RETURN.&lt;/P&gt;
  &lt;P&gt;TRY.&lt;BR /&gt; cl_salv_bs_runtime_info=&amp;gt;get_data_ref(&lt;BR /&gt; IMPORTING r_data = lr_pay_data ).&lt;BR /&gt; ASSIGN lr_pay_data-&amp;gt;* TO &amp;lt;gt_pay_data&amp;gt;.&lt;BR /&gt; &lt;BR /&gt; CATCH cx_salv_bs_sc_runtime_info.&lt;BR /&gt; MESSAGE `Unable to retrieve ALV data` TYPE 'E'.&lt;BR /&gt; ENDTRY.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; OPEN DATASET p_srvfl FOR OUTPUT IN TEXT MODE ENCODING DEFAULT MESSAGE gv_mess.&lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; MESSAGE gv_mess TYPE gcv_e.&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt; LOOP AT &amp;lt;gt_pay_data&amp;gt; ASSIGNING &amp;lt;ls_itab&amp;gt;.&lt;BR /&gt; &lt;STRONG&gt;TRANSFER &amp;lt;ls_itab&amp;gt; TO p_srvfl. --------------------------------------&amp;gt; getting dump here&lt;/STRONG&gt;&lt;BR /&gt; ENDLOOP.&lt;BR /&gt;&lt;BR /&gt; CLOSE DATASET p_srvfl.&lt;/P&gt;
  &lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 09:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203456#M1982035</guid>
      <dc:creator>pujavjaiswal</dc:creator>
      <dc:date>2020-02-27T09:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203457#M1982036</link>
      <description>&lt;P&gt;Could you please share the ABAP dump which you are getting?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203457#M1982036</guid>
      <dc:creator>Velu</dc:creator>
      <dc:date>2020-02-28T08:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203458#M1982037</link>
      <description>&lt;P&gt;You are transferring a structure which probably contains a mix of characters and non-characters fields, and eventually STRING/XSTRING fields which are considered like reference variables, so they can't be transferred via its structure too. You should convert all these non-character fields to character fields, concatenate them, and then TRANSFER the concatenated string.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203458#M1982037</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-28T08:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203459#M1982038</link>
      <description>&lt;P&gt;Hi Puja try as i have done below, concatenate it as sandra suggested.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; clear wa_filedata.&lt;BR /&gt; concatenate text-005 text-021 text-009 text-006 text-014 text-016 text-015 text-013 into wa_filedata separated by ','.&lt;BR /&gt; transfer wa_filedata to p_file.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; loop at it_p2002 into wa_p2002.&lt;BR /&gt; concatenate wa_p2002-pernr&lt;BR /&gt; wa_p2002-nxdfl&lt;BR /&gt; wa_p2002-begda&lt;BR /&gt; wa_p2002-endda&lt;BR /&gt; wa_p2002-awart&lt;BR /&gt; wa_p2002-beguz&lt;BR /&gt; wa_p2002-enduz&lt;BR /&gt; lv_stdaz_temp&lt;BR /&gt; into wa_filedata separated by ','.&lt;BR /&gt; transfer wa_filedata to p_file.&lt;BR /&gt; clear: wa_p2002, lv_stdaz_temp.&lt;BR /&gt; endloop.&lt;BR /&gt; endif.&lt;BR /&gt; close dataset p_file.&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203459#M1982038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-28T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203460#M1982039</link>
      <description>&lt;P&gt;The structure is dynamic .. so can not convert and concatenate on basis of field.&lt;/P&gt;&lt;P&gt;ABAP dump I am getting is of Type conflict..&lt;/P&gt;&lt;P&gt;Is there any way we can generate spool of this submit report and upload spool in application server &lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 09:35:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203460#M1982039</guid>
      <dc:creator>pujavjaiswal</dc:creator>
      <dc:date>2020-02-28T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: move reference table data to flat file on application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203461#M1982040</link>
      <description>&lt;P&gt;You can access fields dynamically:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(line) = ||.
DO.
  ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;ls_itab&amp;gt; TO FIELD-SYMBOL(&amp;lt;field&amp;gt;).
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  IF line = ||.
    line = |{ &amp;lt;field&amp;gt; }|. " convert field to text
  ELSE.
    line = |{ line };{ &amp;lt;field&amp;gt; }|.
  ENDIF.
ENDDO.
TRANSFER line TO p_srvfl.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 10:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-reference-table-data-to-flat-file-on-application-server/m-p/12203461#M1982040</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-28T10:40:38Z</dc:date>
    </item>
  </channel>
</rss>

