<?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: how to give read statement checking condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128841#M111156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;          READ statement wont have 'AND's in them. Your statement will work fine without having 'AND's. Lets try by omitting 'AND's in ur statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the code as follows.&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;BUZEI = WA_TAB_RBCO-BUZEI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)sort i_resg by belnr gjahr buzei.&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;BUZEI = WA_TAB_RBCO-BUZEI binary search.&lt;/P&gt;&lt;P&gt;The above statement will fetch u particular record faster than the above READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinaykumar Gorrela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2006 14:15:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-25T14:15:27Z</dc:date>
    <item>
      <title>how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128839#M111154</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 trying to give like this, but it throws an error can u tell me how to give a read statement checking two conditions.&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;                                                      AND GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;                                                      AND BUZEI = WA_TAB_RBCO-BUZEI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128839#M111154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128840#M111155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove 'AND'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;thanks for the reward!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128840#M111155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128841#M111156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;          READ statement wont have 'AND's in them. Your statement will work fine without having 'AND's. Lets try by omitting 'AND's in ur statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the code as follows.&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;BUZEI = WA_TAB_RBCO-BUZEI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)sort i_resg by belnr gjahr buzei.&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;BUZEI = WA_TAB_RBCO-BUZEI binary search.&lt;/P&gt;&lt;P&gt;The above statement will fetch u particular record faster than the above READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinaykumar Gorrela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128841#M111156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128842#M111157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pl change it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
sort I_rseg by belnr gjahr buzei.
READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY 
BELNR = WA_TAB_RBCO-BELNR
GJAHR = WA_TAB_RBCO-GJAHR
BUZEI = WA_TAB_RBCO-BUZEI
binary search. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128842#M111157</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-25T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128843#M111158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. AND&lt;/P&gt;&lt;P&gt;   Dont use AND keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128843#M111158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128844#M111159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change the code as shown below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt; GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt; BUZEI = WA_TAB_RBCO-BUZEI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128844#M111159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128845#M111160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;    Do use it like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   READ TABLE I_RSEG &lt;/P&gt;&lt;P&gt;   INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR&lt;/P&gt;&lt;P&gt;                             GJAHR = WA_TAB_RBCO-GJAHR&lt;/P&gt;&lt;P&gt;                             BUZEI = WA_TAB_RBCO-BUZEI. &lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   else.&lt;/P&gt;&lt;P&gt;    &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;JK&lt;/P&gt;&lt;P&gt;PS: Award points if this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128845#M111160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to give read statement checking condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128846#M111161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read table i_rseg into wa_tab_rseg with key belnr =   wa_tab_rbco-belnr&lt;/P&gt;&lt;P&gt;  gjahr = wa_tab_rbco-gjahr&lt;/P&gt;&lt;P&gt;  buzei = wa_tab_rbco-buzei.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 14:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-give-read-statement-checking-condition/m-p/1128846#M111161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T14:21:25Z</dc:date>
    </item>
  </channel>
</rss>

