<?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: Describe table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093820#M435656</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;"DESCRIBE" statement is used for getting simple information about internal tables and I guess you want to acquire information about a database table. So, you can use the FM "DDIF_NAMETAB_GET" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will give technical information about the database table. To acquire the number of records you can use "SELECT COUNT( * ) " statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz award pts if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2007 06:47:59 GMT</pubDate>
    <dc:creator>Vijay</dc:creator>
    <dc:date>2007-04-11T06:47:59Z</dc:date>
    <item>
      <title>Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093816#M435652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the use of DESCRIBE TABLE command&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 10:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093816#M435652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T10:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093817#M435653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it gives you the properties of an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;DATA L_LINES TYPE I.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE LINES L_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now L_LINES contains the number of lines/rows in the internal table filled...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls refer to the following links for more information&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_45b/helpdata/en/34/8e72fc6df74873e10000009b38f9b8/content.htm"&amp;gt;http://help.sap.com/saphelp_45b/helpdata/en/34/8e72fc6df74873e10000009b38f9b8/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&amp;gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[url]http://help.sap.com/saphelp_40b/helpdata/en/fc/eb3798358411d1829f0000e829fbfe/content.htm&lt;/P&gt;&lt;P&gt;[/url]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this info helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;P&gt;**pls reward for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 10:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093817#M435653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T10:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093818#M435654</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;It's to get some characteristics of an internal table as the numbers of records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES V_LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the help for more details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 10:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093818#M435654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T10:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093819#M435655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeya sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To determine the number of rows in an internal table, use the sy-tfill variable. It is set by the describe table statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Syntax for the describe table Statement&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the syntax for the describe table statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it [lines i] [occurs j].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is the name of an internal table. &lt;/P&gt;&lt;P&gt;i and j are numeric variables. &lt;/P&gt;&lt;P&gt;This statement fills the three system variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DESCRIBE TABLE Statement Fills These System Variables&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Variable              Value &lt;/P&gt;&lt;P&gt;sy-tfill            Number of rows  &lt;/P&gt;&lt;P&gt;sy-tleng         Length of a row in bytes  &lt;/P&gt;&lt;P&gt;sy-toccu        Current value of the occurs clause  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following points apply: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the lines i addition is specified, the number of rows is placed in both sy-tfill and i. &lt;/P&gt;&lt;P&gt;If the occurs j addition is specified, the size of the occurs clause is placed in both sy-toccu and j. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 10:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093819#M435655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T10:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093820#M435656</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;"DESCRIBE" statement is used for getting simple information about internal tables and I guess you want to acquire information about a database table. So, you can use the FM "DDIF_NAMETAB_GET" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will give technical information about the database table. To acquire the number of records you can use "SELECT COUNT( * ) " statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz award pts if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 06:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093820#M435656</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-04-11T06:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093821#M435657</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;To find out the attributes of an internal table at runtime that were not available statically, use the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab [LINES lin] [OCCURS n] [KIND knd].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the LINES parameter, the number of filled lines is written to the variable lin. If you use the OCCURS parameter, the value of the INITIAL SIZEof the table is returned to the variable n. If you use the KIND parameter, the table type is returned to the variable knd: &amp;#145;T&amp;#146; for standard table, &amp;#145;S&amp;#146; for sorted table, and &amp;#145;H&amp;#146; for hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_describe_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        col1 TYPE i,&lt;/P&gt;&lt;P&gt;        col2 TYPE i,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE HASHED TABLE OF line WITH UNIQUE KEY col1&lt;/P&gt;&lt;P&gt;                                    INITIAL SIZE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lin    TYPE i,&lt;/P&gt;&lt;P&gt;      ini    TYPE i,&lt;/P&gt;&lt;P&gt;      knd(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 1000 TIMES.&lt;/P&gt;&lt;P&gt;  line-col1 = sy-index.&lt;/P&gt;&lt;P&gt;  line-col2 = sy-index ** 2.&lt;/P&gt;&lt;P&gt;  INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         0         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     1,000         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, a hashed table itab is created and filled. The DESCRIBE TABLE statement is processed before and after the table is filled. The current number of lines changes, but the number of initial lines cannot change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 09:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093821#M435657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T09:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093822#M435658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeya,&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Describe table statement :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describes the attributes of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE [LINES &amp;lt;l&amp;gt;] [OCCURS&amp;lt;n&amp;gt;] [KIND &amp;lt;k&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the additions you use, writes the number of lines occupied, the value specified for the INITIAL SIZE of the table, or the table type into a corresponding variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : w_line type i.&lt;/P&gt;&lt;P&gt;describe table it_tab lines w_line.&lt;/P&gt;&lt;P&gt;if wa_line = 1.&lt;/P&gt;&lt;P&gt;read table it_tab into wa_tab.&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, this code helps to describe each record of the internal table it_tab with referred to w_line, that is, it specifies the record number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 11:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093822#M435658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093823#M435659</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;This determines some properties of the internal table itab and assigns them to the specified variables. The various additions enable you to determine the table type, the number of currently filled rows and the initial memory requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 05:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093823#M435659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093824#M435660</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;Describe statement is useful to know the below things.&lt;/P&gt;&lt;P&gt;1)Return attributes of a field &lt;/P&gt;&lt;P&gt;2)Return attributes of an internal table &lt;/P&gt;&lt;P&gt;3)Determine distance between two fields &lt;/P&gt;&lt;P&gt;4)Return attributes of a list &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to know in detail then click F1 on Describe word and read the entire help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sksingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 10:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093824#M435660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-12T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093825#M435661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  To find out the attributes of an internal table at runtime that were not available statically, use the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE &amp;lt;itab&amp;gt; [LINES &amp;lt;l&amp;gt;] [OCCURS &amp;lt;n&amp;gt;] [KIND &amp;lt;k&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the LINES parameter, the number of filled lines is written to the variable &amp;lt;lin&amp;gt;. If you use the OCCURS parameter, the value of the INITIAL SIZE of the table is returned to the variable &amp;lt;n&amp;gt;. If you use the KIND parameter, the table type is returned to the variable &amp;lt;k&amp;gt;: &amp;#145;T&amp;#146; for standard table, &amp;#145;S&amp;#146; for sorted table, and &amp;#145;H&amp;#146; for hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kiran kumar k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 05:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093825#M435661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T05:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093826#M435662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jeya Shree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use of  describe is to get the number of record/row/line in the intertable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this clear the doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose  a internal table has  5 enteries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lv_lines type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;describe table itab lines lv_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'number of line',lv_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result or out put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this might give u a better idea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward pionts if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 12:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093826#M435662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T12:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093827#M435663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI go through this document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find out the attributes of an internal table at runtime that were not available statically, use the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab [LINES lin] [OCCURS n] [KIND knd].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the LINES parameter, the number of filled lines is written to the variable lin. If you use the OCCURS parameter, the value of the INITIAL SIZEof the table is returned to the variable n. If you use the KIND parameter, the table type is returned to the variable knd: &amp;#145;T&amp;#146; for standard table, &amp;#145;S&amp;#146; for sorted table, and &amp;#145;H&amp;#146; for hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_describe_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        col1 TYPE i,&lt;/P&gt;&lt;P&gt;        col2 TYPE i,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE HASHED TABLE OF line WITH UNIQUE KEY col1&lt;/P&gt;&lt;P&gt;                                    INITIAL SIZE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lin    TYPE i,&lt;/P&gt;&lt;P&gt;      ini    TYPE i,&lt;/P&gt;&lt;P&gt;      knd(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 1000 TIMES.&lt;/P&gt;&lt;P&gt;  line-col1 = sy-index.&lt;/P&gt;&lt;P&gt;  line-col2 = sy-index ** 2.&lt;/P&gt;&lt;P&gt;  INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         0         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     1,000         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, a hashed table itab is created and filled. The DESCRIBE TABLE statement is processed before and after the table is filled. The current number of lines changes, but the number of initial lines cannot change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 12:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093827#M435663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T12:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093828#M435664</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;To find out the attributes of an internal table at runtime that were not available statically, use the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab [LINES lin] [OCCURS n] [KIND knd].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the LINES parameter, the number of filled lines is written to the variable lin. If you use the OCCURS parameter, the value of the INITIAL SIZEof the table is returned to the variable n. If you use the KIND parameter, the table type is returned to the variable knd: &amp;#145;T&amp;#146; for standard table, &amp;#145;S&amp;#146; for sorted table, and &amp;#145;H&amp;#146; for hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_describe_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        col1 TYPE i,&lt;/P&gt;&lt;P&gt;        col2 TYPE i,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE HASHED TABLE OF line WITH UNIQUE KEY col1&lt;/P&gt;&lt;P&gt;                                    INITIAL SIZE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lin    TYPE i,&lt;/P&gt;&lt;P&gt;      ini    TYPE i,&lt;/P&gt;&lt;P&gt;      knd(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 1000 TIMES.&lt;/P&gt;&lt;P&gt;  line-col1 = sy-index.&lt;/P&gt;&lt;P&gt;  line-col2 = sy-index ** 2.&lt;/P&gt;&lt;P&gt;  INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab LINES lin OCCURS ini KIND knd.&lt;/P&gt;&lt;P&gt;WRITE: / lin, ini, knd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         0         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     1,000         10  H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, a hashed table itab is created and filled. The DESCRIBE TABLE statement is processed before and after the table is filled. The current number of lines changes, but the number of initial lines cannot change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093828#M435664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093829#M435665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This statement determines some properties of the internal table itab and assigns them to the specified variables. The various additions enable you to determine the table type, the number of currently filled rows and the initial memory requirement.In addition, the system fields sy-tfill and sy-tleng are filled with the current number&lt;/P&gt;&lt;P&gt;of table rows and the length of a table row in bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Fields of Internal Tables&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current line of an internal table. SY-TABIX is set by the statements below, but only for index tables. The field is either not set or is set to 0 for hashed tables.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;itab&amp;gt; FOR sets SY-TABIX to the index of the table line in which the search string is found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TFILL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the statements &amp;lt;b&amp;gt;DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL&amp;lt;/b&amp;gt; contains the number of lines in the relevant internal table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TLENG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TLENG contains the length of the lines in the relevant internal table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TOCCU &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the statements&amp;lt;b&amp;gt; DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TLENG&amp;lt;/b&amp;gt; contains the initial amount of memory allocated to the relevant internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 13:22:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093829#M435665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T13:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Describe table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093830#M435666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl close this thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 07:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/2093830#M435666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T07:45:51Z</dc:date>
    </item>
  </channel>
</rss>

