<?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 Select query warning. Please help. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101114#M1972707</link>
    <description>&lt;P&gt;I have written this select statement below,&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;      SELECT a~matnr
        INTO CORRESPONDING FIELDS OF TABLE lt_matnr
        FROM marc AS a
        INNER JOIN t001w AS b ON b~werks = a~werks
        INNER JOIN t001k AS c ON c~bwkey = b~bwkey
        FOR ALL ENTRIES IN lt_low2
        WHERE c~bukrs = lt_low2-low.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But it is giving me this warning and it's fetching blank value and it's showing total number of value fetched. 489 value fetched. &lt;/P&gt;
  &lt;P&gt;I cross checked the table according the satement and that table table showing 489 value with exact value.&lt;/P&gt;
  &lt;P&gt;The warning is:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;The work area does not contain any corresponding errors.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2019 11:06:28 GMT</pubDate>
    <dc:creator>former_member634045</dc:creator>
    <dc:date>2019-10-04T11:06:28Z</dc:date>
    <item>
      <title>Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101114#M1972707</link>
      <description>&lt;P&gt;I have written this select statement below,&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;      SELECT a~matnr
        INTO CORRESPONDING FIELDS OF TABLE lt_matnr
        FROM marc AS a
        INNER JOIN t001w AS b ON b~werks = a~werks
        INNER JOIN t001k AS c ON c~bwkey = b~bwkey
        FOR ALL ENTRIES IN lt_low2
        WHERE c~bukrs = lt_low2-low.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But it is giving me this warning and it's fetching blank value and it's showing total number of value fetched. 489 value fetched. &lt;/P&gt;
  &lt;P&gt;I cross checked the table according the satement and that table table showing 489 value with exact value.&lt;/P&gt;
  &lt;P&gt;The warning is:&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;The work area does not contain any corresponding errors.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101114#M1972707</guid>
      <dc:creator>former_member634045</dc:creator>
      <dc:date>2019-10-04T11:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101115#M1972708</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/870314/mehabubm67.html"&gt;Mehabub Mondal&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you be more specific with the details, Like&lt;/P&gt;&lt;P&gt;What is the structure of lt_matnr and what is the structure of lt_low2&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101115#M1972708</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-10-04T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101116#M1972709</link>
      <description>&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;These are the declaration:&lt;/P&gt;&lt;P&gt;TABLES: marc, t001k. &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF tt_bukrs, &lt;/P&gt;&lt;P&gt;  bukrs TYPE t001k-bukrs, &lt;/P&gt;&lt;P&gt;  END OF tt_bukrs, &lt;/P&gt;&lt;P&gt;      BEGIN OF tt_mat1, &lt;/P&gt;&lt;P&gt;        sign   TYPE c LENGTH 1,&lt;/P&gt;&lt;P&gt;
         option TYPE c LENGTH 2, &lt;/P&gt;&lt;P&gt;        low TYPE matnr,&lt;/P&gt;&lt;P&gt;
         high  TYPE matnr, &lt;/P&gt;&lt;P&gt;    END OF tt_mat1, &lt;/P&gt;&lt;P&gt;    BEGIN OF tt_low,&lt;/P&gt;&lt;P&gt;
      low TYPE matnr, &lt;/P&gt;&lt;P&gt;      END OF tt_low, &lt;/P&gt;&lt;P&gt;          BEGIN OF tt_low2,&lt;/P&gt;&lt;P&gt;
      low TYPE bukrs,&lt;/P&gt;&lt;P&gt;
      END OF tt_low2. &lt;/P&gt;&lt;P&gt;DATA:   BEGIN OF lt_matnr OCCURS 0, &lt;/P&gt;&lt;P&gt;material LIKE marc-matnr, &lt;/P&gt;&lt;P&gt;END OF lt_matnr. &lt;/P&gt;&lt;P&gt;DATA: lt_burks TYPE STANDARD TABLE OF tt_bukrs, &lt;/P&gt;&lt;P&gt;      lwa_burks TYPE tt_bukrs,&lt;/P&gt;&lt;P&gt;
      lwa_mat1 TYPE tt_mat1,&lt;/P&gt;&lt;P&gt;
      lwa_low TYPE tt_low,&lt;/P&gt;&lt;P&gt;
      lv_low TYPE matnr,&lt;/P&gt;&lt;P&gt;
      lt_low TYPE STANDARD TABLE OF tt_low, &lt;/P&gt;&lt;P&gt;      lt_low2 TYPE STANDARD TABLE OF tt_low2.&lt;/P&gt;&lt;P&gt;I hope this will help you!! &lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101116#M1972709</guid>
      <dc:creator>former_member634045</dc:creator>
      <dc:date>2019-10-04T11:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101117#M1972710</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Your code must be as below, the issue is you have named the Field name in structure declaration as &lt;STRONG&gt;MATERIAL &lt;/STRONG&gt;( in lt_matnr declaration) but the in the query you have given MATNR as field selected and given &lt;STRONG&gt;CORRESPONDING FIELDS&lt;/STRONG&gt;, for this statement the target structure should have MATNR field in it. Since you have MATERIAL as the field name system could not find the field.&lt;/P&gt;&lt;P&gt;By changing the field name to MATNR from MATERIAL you will get successful output. below pasted the correct code along with correct declarations.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: marc, t001k.
TYPES: BEGIN OF tt_bukrs,
         bukrs TYPE t001k-bukrs,
       END OF tt_bukrs,


       BEGIN OF tt_mat1,
         sign   TYPE c LENGTH 1,
         option TYPE c LENGTH 2,
         low    TYPE matnr,
         high   TYPE matnr,
       END OF tt_mat1,

       BEGIN OF tt_low,
         low TYPE matnr,
       END OF tt_low,

       BEGIN OF tt_low2,
         low TYPE bukrs,
       END OF tt_low2.


DATA: BEGIN OF lt_matnr OCCURS 0,
       matnr LIKE marc-matnr,
      END OF lt_matnr.

DATA: lt_burks  TYPE STANDARD TABLE OF tt_bukrs,
      lwa_burks TYPE tt_bukrs,
      lwa_mat1  TYPE tt_mat1,
      lwa_low   TYPE tt_low,
      lv_low    TYPE matnr,
      lt_low    TYPE STANDARD TABLE OF tt_low,
      lt_low2   TYPE STANDARD TABLE OF tt_low2.


SELECT a~matnr
INTO CORRESPONDING FIELDS OF TABLE lt_matnr
FROM marc AS a
INNER JOIN t001w AS b ON a~werks = b~werks
INNER JOIN t001k AS c ON b~bwkey = c~bwkey
FOR ALL ENTRIES IN lt_low2
WHERE c~bukrs = lt_low2-low.

Hope it Helps!

Regards&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101117#M1972710</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-10-04T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101118#M1972711</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SELECT a~matnr as material&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;should work.&lt;/P&gt;&lt;P&gt;By the way: OCCURS 0 is depreciated since many years...&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101118#M1972711</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2019-10-04T12:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101119#M1972712</link>
      <description>&lt;P&gt;Thanks Satish. Now it's working and also understood the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101119#M1972712</guid>
      <dc:creator>former_member634045</dc:creator>
      <dc:date>2019-10-04T12:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select query warning. Please help.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101120#M1972713</link>
      <description>&lt;P&gt;Yes, it has also worked! Thank you  &lt;SPAN class="mention-scrubbed"&gt;se38&lt;/SPAN&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-warning-please-help/m-p/12101120#M1972713</guid>
      <dc:creator>former_member634045</dc:creator>
      <dc:date>2019-10-04T12:09:22Z</dc:date>
    </item>
  </channel>
</rss>

