<?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: System variable for columns in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671401#M1668435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-TLENG woul be the length of the lines. But I doubt for number of fields, if the records are not a flat structure, what would be the number of column of a deep structure ? Would it be a constant or would it depend on the values of each record. Nevertheless you can CL_ABAP_STRUCTDESCR's methods DESCRIB_BY_* which will return a ref to CL_ABAP_TYPEDESCR. &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2012 13:16:41 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2012-03-15T13:16:41Z</dc:date>
    <item>
      <title>System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671399#M1668433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Does anybody know if there's any system data for know the columns of an internal table? The variable sy-TFILL gives us the number of rows but I'm not sure if there's any other variable for find the columns....can anybody help me please?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards.&lt;BR /&gt;Rebeca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 12:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671399#M1668433</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2012-03-15T12:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671400#M1668434</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;For cloumns refer &lt;EM style=": ; color: #ff0000; font-family: 'book antiqua', palatino;"&gt;Link removed by moderator&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinod Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 13:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671400#M1668434</guid>
      <dc:creator>former_member189779</dc:creator>
      <dc:date>2012-03-15T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671401#M1668435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-TLENG woul be the length of the lines. But I doubt for number of fields, if the records are not a flat structure, what would be the number of column of a deep structure ? Would it be a constant or would it depend on the values of each record. Nevertheless you can CL_ABAP_STRUCTDESCR's methods DESCRIB_BY_* which will return a ref to CL_ABAP_TYPEDESCR. &lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 13:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671401#M1668435</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-03-15T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671402#M1668436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also doubt if there is a system field that holds the number of columns in an internal table. But you can get the column count by working around. Take a look at this thread. &lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/135452" title="http://scn.sap.com/thread/135452"&gt;http://scn.sap.com/thread/135452&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 03:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671402#M1668436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-16T03:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671403#M1668437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;assign the structure to a field symbol and use assign-components ... press F1 help on assign components...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if sy-index = 1.&lt;BR /&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_record&amp;gt; TO &amp;lt;fs_comp&amp;gt;.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;count = count + 1.&lt;BR /&gt;ENDIF.&lt;BR /&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise use the below code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ASSIGN COMPONENT SY-INDEX OF STRUCTURE GWA_ITAB TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTINUE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; G_COLNUMBER = SY-INDEX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now G_COLNUMBER - 1 , will be the no of column.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 04:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671403#M1668437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-16T04:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671404#M1668438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using Type polls Slis you can get index of the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&amp;nbsp; &lt;SPAN class="L1S33"&gt;'&amp;amp;IC1'&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;READ&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; &amp;lt;T_itpac&amp;gt; &lt;SPAN class="L1S52"&gt;ASSIGNING&lt;/SPAN&gt; &amp;lt;W_itpac&amp;gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;INDEX&lt;/SPAN&gt; selfield-tabindex.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 04:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671404#M1668438</guid>
      <dc:creator>aneesh_shamsudeen</dc:creator>
      <dc:date>2012-03-16T04:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671405#M1668439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 05:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671405#M1668439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-16T05:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671406#M1668440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H6&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/H6&gt;&lt;H6&gt;&lt;SPAN style="font-size: 8pt;"&gt;I do not think there is a system field to handle this. You can read the reply from Raymond for more details.&lt;/SPAN&gt;&lt;/H6&gt;&lt;H6&gt;&lt;SPAN style="font-size: 8pt;"&gt;Compared to the other solutions suggested, I would like to add the simplest way to get it.&lt;/SPAN&gt;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;data:lwa_structure type ty,&lt;/P&gt;&lt;P&gt;wa_ltype type c,&lt;/P&gt;&lt;P&gt; itab type table of ty.&lt;/P&gt;&lt;P&gt;DESCRIBE FIELD lwa_structure TYPE&amp;nbsp; wf_ltype COMPONENTS wi_count.&lt;/P&gt;&lt;P&gt;Write wi_count&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 06:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671406#M1668440</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-03-16T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671407#M1668441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anoop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helping others for point's doesn't make you a professional &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 07:04:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671407#M1668441</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-03-16T07:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: System variable for columns in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671408#M1668442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;kesavadas Thekkillath wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anoop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helping others for point's doesn't make you a professional &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Anoops answer removed for that reason. Asking for or offering points it NOT permitted in these forums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 08:52:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-for-columns-in-internal-table/m-p/8671408#M1668442</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2012-03-16T08:52:36Z</dc:date>
    </item>
  </channel>
</rss>

