<?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: Need a generic data type to hold any string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-generic-data-type-to-hold-any-string/m-p/5255300#M1214011</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;if you are interested in generic programming in ABAP then this [presentation|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae] is full of information. There is a class CL_ABAP_STRUCTDESCR with method GET_COMPONENTS. This method returns a list of components of table or structure. So you will be able to loop over every field in the table and convert each field into string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 01:41:05 GMT</pubDate>
    <dc:creator>mvoros</dc:creator>
    <dc:date>2009-02-25T01:41:05Z</dc:date>
    <item>
      <title>Need a generic data type to hold any string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-generic-data-type-to-hold-any-string/m-p/5255299#M1214010</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;  I m trying to write a program which can log data from any table into a Trace Z table.&lt;/P&gt;&lt;P&gt;I have used &lt;/P&gt;&lt;P&gt; FIELD-SYMBOLS: &amp;lt;line&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the line of that table. But now I want to dynamically know what are the field names of this line structure and the data in it. And then write it as a string to the trace Z table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form log_table_data tables rt_any_table&lt;/P&gt;&lt;P&gt;                    using rv_statement type string.&lt;/P&gt;&lt;P&gt;  data: v_line type string,&lt;/P&gt;&lt;P&gt;        v_char_line type char255.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;line&amp;gt;.&lt;/P&gt;&lt;P&gt;  loop at rt_table ASSIGNING &amp;lt;LINE&amp;gt;.&lt;/P&gt;&lt;P&gt;    v_char_line = &amp;lt;LINE&amp;gt;.                                 - Terminating at this statement&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ASSIGN &amp;lt;LINE&amp;gt; to v_line casting type string.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 01:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-generic-data-type-to-hold-any-string/m-p/5255299#M1214010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T01:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a generic data type to hold any string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-generic-data-type-to-hold-any-string/m-p/5255300#M1214011</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;if you are interested in generic programming in ABAP then this [presentation|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae] is full of information. There is a class CL_ABAP_STRUCTDESCR with method GET_COMPONENTS. This method returns a list of components of table or structure. So you will be able to loop over every field in the table and convert each field into string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 01:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-generic-data-type-to-hold-any-string/m-p/5255300#M1214011</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-02-25T01:41:05Z</dc:date>
    </item>
  </channel>
</rss>

