<?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 statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161419#M752023</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 which will returns the no.of entries in your internal table. find the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: N    TYPE I, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the some other usages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DESCRIBE FIELD f. &lt;/P&gt;&lt;P&gt;    this will give the internal length of field f is placed in fieldlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)DESCRIBE DISTANCE BETWEEN f1 AND f2 INTO f3.&lt;/P&gt;&lt;P&gt;Determines the distance between the fields f1 and f2 and places the result (in bytes) in f3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)DESCRIBE LIST NUMBER OF LINES lin. &lt;/P&gt;&lt;P&gt;    Returns the number of lines in the list. &lt;/P&gt;&lt;P&gt;4)DESCRIBE LIST NUMBER OF PAGES n.&lt;/P&gt;&lt;P&gt;Returns the number of pages in the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)DESCRIBE LIST LINE lin PAGE pag.&lt;/P&gt;&lt;P&gt;Returns the number of the page for the line linin the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 13:12:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-27T13:12:30Z</dc:date>
    <item>
      <title>describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161414#M752018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the function of describe statement.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161414#M752018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161415#M752019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just read the help documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161415#M752019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161416#M752020</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;( 1 )  DESCRIBE FIELD f.  :Gets a particular attribute  or allattributes of the field f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( 2 )  DESCRIBE TABLE itab. :Gets the attributes of the internaltable itab. &lt;/P&gt;&lt;P&gt;You must use at least one of the additions listed below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a)))  LINES n  : Places the numebr of filled lines of the table itab into the field n. The value returned to n has typeI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: N    TYPE I, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ITAB TYPE TABLE OF I. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CLEAR ITAB. &lt;/P&gt;&lt;P&gt;APPEND 36 TO ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES N. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: N contains the value 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b))) OCCURS n  : Places the value of the OCCURS or INITIALSIZE parameter from the definition of itab (DATA) into the variable n. The value returned ton has the 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;Example&lt;/P&gt;&lt;P&gt;DATA: N1    TYPE I, &lt;/P&gt;&lt;P&gt;      N2    TYPE I, &lt;/P&gt;&lt;P&gt;      ITAB1 TYPE TABLE OF I INITIAL SIZE 10, &lt;/P&gt;&lt;P&gt;      ITAB2 TYPE I OCCURS 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB1 OCCURS N1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB2 OCCURS N2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: n1 has the value 10, N2 has the value 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c))) KIND k  : Places the table typeof itab into the field k. The value returned to k has the type C. The return value is one of the constantsSYDES_KIND-STANDARD, SYDES_KIND-SORTED, orSYDES_KIND-HASHED from the type group SYDES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: SYDES. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;FORM GENERIC_FORM USING ITAB TYPE ANY TABLE. &lt;/P&gt;&lt;P&gt;  DATA: K TYPE C. &lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE ITAB KIND K. &lt;/P&gt;&lt;P&gt;  CASE K. &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-STANDARD. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-SORTED. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-HASHED. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;  ENDCASE. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( 3 ) DESCRIBE LIST NUMBER OF LINES lin. &lt;/P&gt;&lt;P&gt;     - DESCRIBE LIST NUMBER OF PAGES n. &lt;/P&gt;&lt;P&gt;    -  DESCRIBE LIST LINE lin PAGE pag. &lt;/P&gt;&lt;P&gt;     - DESCRIBE LIST PAGE pag. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;effect:  Returns the attributes of a list. All variants have theaddition ... INDEX idx allowing you to determine the attributesof a particular list level (SY-LSIND = 0,1,2,3,... ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161416#M752020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161417#M752021</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 is used to get the type or the number of lines or the initial size of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. describe table my_table lines lv_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_num will contain the number of lines currently in the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to know more details do F1 help on Desceribe.&lt;/P&gt;&lt;P&gt;You will get to know the meaning in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161417#M752021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161418#M752022</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;See below documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE - Return attributes of an internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic form &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Returns the attributes of the internal table itab. You must use at least one of the additions listed below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The DESCRIBE statement cannot be used for all ABAP types. In connection with ABAP Objects, SAP has introduced a RTTI concept based on system classes to determine type attributes at runtime. This concept applies to all ABAP types and as such covers all the functions of the DESCRIBE TABLE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... LINES n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... OCCURS n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ... KIND   k &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... LINES n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Places the number of filled lines of the table t in the field lin. The value returned to lin has type I. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The number of filled lines of the table itab can also be ascertained using the predefined function lines( itab ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: N    TYPE I, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ITAB TYPE TABLE OF I. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;CLEAR ITAB. &lt;/P&gt;&lt;P&gt;APPEND 36 TO ITAB. &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES N. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: N contains the value 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... OCCURS n &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Passes the size of the OCCURS parameter from the table definition (as defined with DATA) to the variable n. The value returned to n has 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;Example&lt;/P&gt;&lt;P&gt;DATA: N1    TYPE I, &lt;/P&gt;&lt;P&gt;      N2    TYPE I, &lt;/P&gt;&lt;P&gt;      ITAB1 TYPE TABLE OF I INITIAL SIZE 10, &lt;/P&gt;&lt;P&gt;      ITAB2 TYPE I OCCURS 5. &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB1 OCCURS N1. &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB2 OCCURS N2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result: OCC contains the value 10 and N2 the value 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... KIND k &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Writes the table type from itab to the variables n. The value returned to k is of type C. The constants SYDES_KIND-STANDARD, SYDES_KIND-SORTED and SYDES_KIND-HASHED are defined in the type group SYDES for the return values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Generic FORM routine any table type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: SYDES. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;FORM GENERIC_FORM USING ITAB TYPE ANY TABLE. &lt;/P&gt;&lt;P&gt;  DATA: K TYPE C. &lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE ITAB KIND K. &lt;/P&gt;&lt;P&gt;  CASE K. &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-STANDARD. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-SORTED. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;    WHEN SYDES_KIND-HASHED. &lt;/P&gt;&lt;P&gt;      ... &lt;/P&gt;&lt;P&gt;  ENDCASE. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance: The runtime for executing the DESCRIBE TABLE statement is approximately 4 msn (standardized microseconds). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DESCRIBE TABLE statement also passes values to the SY-TFILL and SY-TLENG System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161418#M752022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: describe statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161419#M752023</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 which will returns the no.of entries in your internal table. find the below syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: N    TYPE I, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB LINES N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the some other usages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DESCRIBE FIELD f. &lt;/P&gt;&lt;P&gt;    this will give the internal length of field f is placed in fieldlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)DESCRIBE DISTANCE BETWEEN f1 AND f2 INTO f3.&lt;/P&gt;&lt;P&gt;Determines the distance between the fields f1 and f2 and places the result (in bytes) in f3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)DESCRIBE LIST NUMBER OF LINES lin. &lt;/P&gt;&lt;P&gt;    Returns the number of lines in the list. &lt;/P&gt;&lt;P&gt;4)DESCRIBE LIST NUMBER OF PAGES n.&lt;/P&gt;&lt;P&gt;Returns the number of pages in the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5)DESCRIBE LIST LINE lin PAGE pag.&lt;/P&gt;&lt;P&gt;Returns the number of the page for the line linin the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreeram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 13:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/3161419#M752023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T13:12:30Z</dc:date>
    </item>
  </channel>
</rss>

