<?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: Read stmt problem in ECC 6.0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349150#M1035714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aparna Sekahar and Karthavaya THANK S FOR YOUR TIMELY REPLY.....!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2008 21:50:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-26T21:50:01Z</dc:date>
    <item>
      <title>Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349143#M1035707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My read stmt is not working in ECC 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE gt_zadi_matnr_conv WITH KEY&lt;/P&gt;&lt;P&gt; mandt = sy-mandt zadi_key_type = 'WERKS'&lt;/P&gt;&lt;P&gt; zadi_key_value = gs_zadi_m_2017_gm02-plant BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:45:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349143#M1035707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T20:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349144#M1035708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure you don't need the MANDT in there, but not sure that is causing your problem.  Do you mean you are getting a syntax error?  What is the error? Or is it simply not returning anything?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE gt_zadi_matnr_conv WITH KEY
                         zadi_key_type  = 'WERKS'      "&amp;lt;--- is this value correct?
                         zadi_key_value = gs_zadi_m_2017_gm02-plant
                                                        BINARY SEARCH.
if sy-subrc = 0.
...
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349144#M1035708</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-26T20:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349145#M1035709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting sy-subrc = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349145#M1035709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T20:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349146#M1035710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is gs_zadi_m_2017_gm02 a table with Header line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code for the entire loop where you are performing this read?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349146#M1035710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T20:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349147#M1035711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SORT gt_zadi_matnr_conv BY zadi_key_value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT gt_zadi_m_2017_gm02 INTO gs_zadi_m_2017_gm02.&lt;/P&gt;&lt;P&gt;    READ TABLE gt_zadi_matnr_conv WITH KEY zadi_key_type = 'WERKS'&lt;/P&gt;&lt;P&gt;     zadi_key_value = gs_zadi_m_2017_gm02-plant BINARY SEARCH.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;      gv_reebok_monitor = 'X'.&lt;/P&gt;&lt;P&gt;      PERFORM convert_number_rbk_vs_adi USING gs_zadi_m_2017_gm02-plant&lt;/P&gt;&lt;P&gt;                                           gs_zadi_m_2017_gm02-material&lt;/P&gt;&lt;P&gt;                                  CHANGING gs_zadi_m_2017_gm02-material.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ihave commented  sort stmt like&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SORT gt_zadi_matnr_conv BY zadi_key_value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my code is working ..&lt;/P&gt;&lt;P&gt;Now my doubt is Can I comment my sort ?????????&lt;/P&gt;&lt;P&gt;Or is there any issu ue?&lt;/P&gt;&lt;P&gt;If so please suggest me what to do  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 20:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349147#M1035711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T20:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349148#M1035712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For using binnary search option you have to sort the table first with the same key. Did you try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SORT gt_zadi_matnr_conv BY zadi_key_type zadi_key_value. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 21:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349148#M1035712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349149#M1035713</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;If you are using BINARY SEARCH, then please use SORT on the fields which are getting used in the READ STATEMENT WITH KEY, else it will be huge performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT will sought out your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kartavya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 21:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349149#M1035713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T21:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read stmt problem in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349150#M1035714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aparna Sekahar and Karthavaya THANK S FOR YOUR TIMELY REPLY.....!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 21:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-stmt-problem-in-ecc-6-0/m-p/4349150#M1035714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T21:50:01Z</dc:date>
    </item>
  </channel>
</rss>

