<?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/3102153#M736157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement  which results sy-subrc ne 0 is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DELETE ADJACENT DUPLICATES FROM I_MAIN COMPARING EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_MAIN1 BY EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE I_MAIN LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execution of Describe statement the Sy-SUBRC still remains 4. Pls tell me the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 10:26:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T10:26:52Z</dc:date>
    <item>
      <title>DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102145#M736149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one explain me the following statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE I_MAIN LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards will be awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murugan Arumugam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102145#M736149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:06: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/3102146#M736150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first statement will return the no.of lines in the internal table to system field sy-tfill...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your internal table is not having records...then the system field sy-subrc will be not equal to zero...then it will throw a error message with the text element 056 and stop the execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102146#M736150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102147#M736151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My internal table contains many records. But still sy-subrc NE 0.  why.. i dont now ? is there any reason. ?&lt;/P&gt;&lt;P&gt;&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;Murugan Arumugam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102147#M736151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102148#M736152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Places the number of filled lines of the table i_main into field sy-tfill.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102148#M736152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102149#M736153</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 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. &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 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;For detailed information about an internal table, you should use the methods of RTTS instead of the statement DESCRIBE TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the specification of an addition, the statement 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;The current number of table rows of the internal table itab is determined and is assigned to the data object lin.The data type i is expected for the data object. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As of release 6.10, the current number of rows of an internal table can also be determined using the in-built function lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102149#M736153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102150#M736154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general you should not write into sy-fields if you don´t really have to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data linecount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table i_main lines linecount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102150#M736154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102151#M736155</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; You can acheive the above said functionality by using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF not i_main[] is initial.&lt;/P&gt;&lt;P&gt;MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:v_line like sy-tabix.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE I_MAIN LINES v_line.&lt;/P&gt;&lt;P&gt;IF v_line &amp;gt; 0.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102151#M736155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:17: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/3102152#M736156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think ur changing the value of sy-tfill, which is invalid leading to the non-execution of the statement succesfully and hence the sy-subrc is not 0.&lt;/P&gt;&lt;P&gt;try giving some other value there, it will surel work&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102152#M736156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102153#M736157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement  which results sy-subrc ne 0 is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DELETE ADJACENT DUPLICATES FROM I_MAIN COMPARING EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statement ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_MAIN1 BY EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE I_MAIN LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After execution of Describe statement the Sy-SUBRC still remains 4. Pls tell me the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102153#M736157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102154#M736158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I see right away:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You sort table I_MAIN1, but delete from table I_MAIN... is that correct???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that you have to sort BEFORE deleting adjacent.&lt;/P&gt;&lt;P&gt;If no entries are deleted, you will receive SY-SUBRC 4 as result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your describe statement does not change the return code, therefore it remains 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still you should NOT describe into SY-TFILL, but use an integer-variable instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102154#M736158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: DESCRIBE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102155#M736159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORT I_MAIN1 BY EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM I_MAIN COMPARING EBELN EBELP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE I_MAIN LINES SY-TFILL.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE E001 WITH TEXT-056.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102155#M736159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:41: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/3102156#M736160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Youre question actually should be answered by now.&lt;/P&gt;&lt;P&gt;Please mark it as answered if so.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 10:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/describe-table/m-p/3102156#M736160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T10:47:50Z</dc:date>
    </item>
  </channel>
</rss>

