<?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: Converting internal table fields into string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525339#M848056</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;Try like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;lfs_table&amp;gt;,    " Internal table structure&lt;/P&gt;&lt;P&gt;                 &amp;lt;lfs_con&amp;gt;.      " Field Content&lt;/P&gt;&lt;P&gt;  DATA: l_con(50) TYPE c.        " Field Content in character format&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Columns to be tab delimeted&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_extract ASSIGNING &amp;lt;lfs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;lfs_table&amp;gt;&lt;/P&gt;&lt;P&gt;             TO &amp;lt;lfs_con&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      CLEAR: l_con.&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;lfs_con&amp;gt; TO l_con.&lt;/P&gt;&lt;P&gt;      CONDENSE l_con.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      IF sy-index = 1.&lt;/P&gt;&lt;P&gt;         CLEAR: wa_output_file-sline.&lt;/P&gt;&lt;P&gt;         MOVE l_con TO wa_output_file-sline.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;         CONCATENATE wa_output_file-sline l_con INTO wa_output_file-sline&lt;/P&gt;&lt;P&gt;           SEPARATED BY cseparator.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    APPEND wa_output_file TO it_output_file. " Add to output file&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(OR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_repid = sy-repid&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = v_repid&lt;/P&gt;&lt;P&gt;fieldname = 'ITAB'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;components = components.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2008 06:33:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-03T06:33:44Z</dc:date>
    <item>
      <title>Converting internal table fields into string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525337#M848054</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 a internal table where i populate equipment details. The requirement i have to display the columns of these internal table as a string in sap-script. &lt;/P&gt;&lt;P&gt;For eg: I  have to display the values in the internal table it_equip-sernr(serial number)   as &lt;/P&gt;&lt;P&gt;Serial Number : 12345,34567......&lt;/P&gt;&lt;P&gt;Equipment Number :3456, 6789....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a function module to convert the field column to string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice&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;&lt;/P&gt;&lt;P&gt;Subodh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525337#M848054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting internal table fields into string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525338#M848055</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;DATA int_var TYPE i value '1234534567'.&lt;/P&gt;&lt;P&gt;DATA chr_var(15) TYPE c .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write int_var to chr_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525338#M848055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting internal table fields into string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525339#M848056</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;Try like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;lfs_table&amp;gt;,    " Internal table structure&lt;/P&gt;&lt;P&gt;                 &amp;lt;lfs_con&amp;gt;.      " Field Content&lt;/P&gt;&lt;P&gt;  DATA: l_con(50) TYPE c.        " Field Content in character format&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Columns to be tab delimeted&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_extract ASSIGNING &amp;lt;lfs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;lfs_table&amp;gt;&lt;/P&gt;&lt;P&gt;             TO &amp;lt;lfs_con&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      CLEAR: l_con.&lt;/P&gt;&lt;P&gt;      MOVE &amp;lt;lfs_con&amp;gt; TO l_con.&lt;/P&gt;&lt;P&gt;      CONDENSE l_con.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      IF sy-index = 1.&lt;/P&gt;&lt;P&gt;         CLEAR: wa_output_file-sline.&lt;/P&gt;&lt;P&gt;         MOVE l_con TO wa_output_file-sline.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;         CONCATENATE wa_output_file-sline l_con INTO wa_output_file-sline&lt;/P&gt;&lt;P&gt;           SEPARATED BY cseparator.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    APPEND wa_output_file TO it_output_file. " Add to output file&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(OR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_repid = sy-repid&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GET_COMPONENT_LIST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = v_repid&lt;/P&gt;&lt;P&gt;fieldname = 'ITAB'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;components = components.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 06:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-internal-table-fields-into-string/m-p/3525339#M848056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T06:33:44Z</dc:date>
    </item>
  </channel>
</rss>

