<?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/2326579#M511347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is not necessary to sort the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think it will be a performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 10:44:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T10:44:25Z</dc:date>
    <item>
      <title>Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326577#M511345</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 am using the DESCRIBE statement to get the total number of lines in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me if the table needs to be sorted or not before I use the DESCRIBE statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the DESCRIBE statement affect performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326577#M511345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326578#M511346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sandeep , &lt;/P&gt;&lt;P&gt;  There are no such prerequisits to use the describe statement , you can use it directly on an internal table and it does not effect the performance of the program also.&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>Thu, 31 May 2007 10:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326578#M511346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326579#M511347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is not necessary to sort the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think it will be a performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326579#M511347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326580#M511348</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;&amp;lt;b&amp;gt;Describe for field..The gives you attributes of the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FLD(8), &lt;/P&gt;&lt;P&gt;LEN TYPE I. &lt;/P&gt;&lt;P&gt;DESCRIBE FIELD FLD LENGTH LEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Describe for table..This gives you number of rows in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / ' Number of rows in ITAB', SY-TFILL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;u need not sort the table before use of describe.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ravish goyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326580#M511348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326581#M511349</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;No need to sort table befoe using the describe statement. I dont think it has much performace effects but do check the unicode comaptibility of this statement now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Devendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326581#M511349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326582#M511350</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;  There is no need to sort the internal table before using DESCRIBE statement. DESCRIBE statement is used to count the number of lines stored in the internal table, even if u sort or not the number of lines in the internal table will not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It will not affect the performance of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326582#M511350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326583#M511351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;You can use the variants of the statement DESCRIBE listed above to &lt;/P&gt;&lt;P&gt;specify some of the properties that have data objects at runtime&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This statement determines some properties of the internal table itab and &lt;/P&gt;&lt;P&gt;assigns them to the specified variables. The various additions enable &lt;/P&gt;&lt;P&gt;you to determine the table type, the number of currently filled rows &lt;/P&gt;&lt;P&gt;and the initial memory requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, the system fields sy-tfill and sy-tleng are filled with &lt;/P&gt;&lt;P&gt;the current number of table rows and the length of a table row in bytes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;For detailed information about an internal table, you should use &lt;/P&gt;&lt;P&gt;the methods of RTTS of the DESCRIBE TABLE statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the specification of an addition, the statement &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE only sets the system fields sy-tfill and sy-tleng. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Descending sorting of a generically typed internal table in a subprogram. &lt;/P&gt;&lt;P&gt;Since sorted tables cannot be sorted in a descending order,&lt;/P&gt;&lt;P&gt; the table type is checked to avoid an exception that cannot be handled. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS sydes. 
... 
FORM sort_descending CHANGING itab TYPE ANY TABLE. 
  DATA tabkind(1) TYPE c. 
  DESCRIBE TABLE itab KIND tabkind. 
  IF tabkind = sydes_kind-standard OR 
     tabkind = sydes_kind-hashed. 
    SORT itab DESCENDING. 
  ELSEIF tabkind = sydes_kind-sorted. 
    MESSAGE '...' TYPE 'E'. 
  ELSE. 
    MESSAGE '...' TYPE 'E'. 
  ENDIF. 
ENDFORM. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326583#M511351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:49: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/2326584#M511352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandeep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u still have nay problem plz get back to me i can provide u with some more information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326584#M511352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326585#M511353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe statement is used for describing the fields n total lines in a internal table. for that there is no pre-requisit like sorting.  sorting the table is mainly useful in at control statements before using at new, at first, at end of, at last stmnts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and performance wise also describe has no affect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326585#M511353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326586#M511354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ECC 6 you don't need to use DESCRIBE at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L_lines = &amp;lt;b&amp;gt;LINES&amp;lt;/b&amp;gt;( &amp;lt;i&amp;gt;Itab&amp;lt;/i&amp;gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even quicker than DESCRIBE and you don't need to sort the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 10:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326586#M511354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T10:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326587#M511355</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&lt;/P&gt;&lt;P&gt;statement:&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;If you use the LINES parameter, the number of filled lines is written to the variable &amp;lt;lin&amp;gt;. If you&lt;/P&gt;&lt;P&gt;use the OCCURS parameter, the value of the INITIAL SIZE of the table is returned to the&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;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;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;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;DATA: LIN TYPE I,&lt;/P&gt;&lt;P&gt;INI TYPE I,&lt;/P&gt;&lt;P&gt;KND TYPE C.&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;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;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;The output is:&lt;/P&gt;&lt;P&gt;0 10 H&lt;/P&gt;&lt;P&gt;1,000 10 H&lt;/P&gt;&lt;P&gt;Here, a hashed table ITAB is created and filled. The DESCRIBE TABLE statement is&lt;/P&gt;&lt;P&gt;processed before and after the table is filled. The current number of lines changes,&lt;/P&gt;&lt;P&gt;but the number of initial lines cannot change.&lt;/P&gt;&lt;P&gt;&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, 31 May 2007 11:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326587#M511355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Describe Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326588#M511356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; for describe table u need not to sort it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE  itab  LINES l_count.&lt;/P&gt;&lt;P&gt; in l_count u will get the no of lines,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-statement/m-p/2326588#M511356</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-05-31T11:21:25Z</dc:date>
    </item>
  </channel>
</rss>

