<?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: Difficulty  While reading Table.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335405#M170352</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;First of all i am not sure why you are using the statement &amp;lt;b&amp;gt;ind = sy-tabix&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at struct.&lt;/P&gt;&lt;P&gt;ind = sy-tabix.&lt;/P&gt;&lt;P&gt;read table itabMAST with key matnr = struct-matnr &lt;/P&gt;&lt;P&gt;                              WERKS = company &lt;/P&gt;&lt;P&gt;                              stlan = '5'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move itabMAST-stlnr to struct-stlnr.&lt;/P&gt;&lt;P&gt;modify struct index ind transporting stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lakshminarayanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 07:35:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-01T07:35:45Z</dc:date>
    <item>
      <title>Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335397#M170344</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; i trying to read data from table with multiple condition but it is giving me error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at struct.&lt;/P&gt;&lt;P&gt;  ind = sy-tabix.&lt;/P&gt;&lt;P&gt;  read table itabMAST with key matnr = struct-matnr and WERKS = company and stlan = '5'.&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   move itabMAST-stlnr to struct-stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  modify struct index ind transporting stlnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and error message is giving is &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Unable to interpret "WERKS". Possible causes: incorrect Spelling or Comma error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls Help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks in Advance,&lt;/P&gt;&lt;P&gt; Yunus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335397#M170344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335398#M170345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yunus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use logical conditions in the READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the AND conditions from the READ statement and it will work. READ statement by default takes the condition as AND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335398#M170345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335399#M170346</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;Your problem is the field WERKS is not available in the internal table itabMAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to bring in the werks in the internal table itabMAST and then use the READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also while using read statement there will not be any key word AND used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lakshminarayanan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark helpful answers for points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335399#M170346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335400#M170347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but instead od and what can i use...bcoz i want to read table with multiple condition..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt; yunus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335400#M170347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335401#M170348</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. Chek your itabMAST table, is there WERKS fields ??&lt;/P&gt;&lt;P&gt;2. Remove "AND" statement from your "Read Table" statement.&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, 01 Jun 2006 07:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335401#M170348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335402#M170349</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;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itabMAST with key matnr = struct-matnr 
                             WERKS = company 
                             stlan = '5'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335402#M170349</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-06-01T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335403#M170350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, here is another example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MOVE it_equz-hequi TO it_equz_dum2-hequi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          READ TABLE it_equz_dum1 WITH KEY equnr = it_equz-equnr&lt;/P&gt;&lt;P&gt;                                           hequi = it_equz-hequi&lt;/P&gt;&lt;P&gt;                                           BINARY SEARCH.&lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            SELECT SINGLE anlnr&lt;/P&gt;&lt;P&gt;                          shtxt&lt;/P&gt;&lt;P&gt;                FROM itob&lt;/P&gt;&lt;P&gt;                INTO (it_itob-anlnr, it_itob-shtxt)&lt;/P&gt;&lt;P&gt;               WHERE equnr EQ it_equz_dum1-hequi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              MOVE it_itob-anlnr TO it_finaltab-asset_dum.&lt;/P&gt;&lt;P&gt;              MOVE it_itob-anlnr TO it_finaltab-asset.&lt;/P&gt;&lt;P&gt;              MOVE it_itob-shtxt TO it_finaltab-description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335403#M170350</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-06-01T07:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335404#M170351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yunus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the following programs in SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_ASSIGNING&lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_COMPARING&lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_INDEX    &lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_INDEX_BIN&lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_TRANSPORT&lt;/P&gt;&lt;P&gt;DEMO_INT_TABLES_READ_TRANSP_NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335404#M170351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty  While reading Table....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335405#M170352</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;First of all i am not sure why you are using the statement &amp;lt;b&amp;gt;ind = sy-tabix&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at struct.&lt;/P&gt;&lt;P&gt;ind = sy-tabix.&lt;/P&gt;&lt;P&gt;read table itabMAST with key matnr = struct-matnr &lt;/P&gt;&lt;P&gt;                              WERKS = company &lt;/P&gt;&lt;P&gt;                              stlan = '5'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move itabMAST-stlnr to struct-stlnr.&lt;/P&gt;&lt;P&gt;modify struct index ind transporting stlnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lakshminarayanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 07:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difficulty-while-reading-table/m-p/1335405#M170352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T07:35:45Z</dc:date>
    </item>
  </channel>
</rss>

