<?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: Select Query LQUA Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181828#M1518637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 11:56:22 GMT</pubDate>
    <dc:creator>former_member659396</dc:creator>
    <dc:date>2010-09-08T11:56:22Z</dc:date>
    <item>
      <title>Select Query LQUA Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181824#M1518633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can Any one tell me ,&lt;/P&gt;&lt;P&gt;Is there anything wrong in this select query, As per my knoledge everything is Fine, But Still i am getting SY-SUBRC = 4 for this Query,&lt;/P&gt;&lt;P&gt;Its a Warehouse Management table LQUA i have Used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:mara,lqua.&lt;/P&gt;&lt;P&gt;*Internal Table And Work Area Declearation&lt;/P&gt;&lt;P&gt;DATA: it_lqua1 TYPE TABLE OF lqua WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: wa_tmp_lqua TYPE lqua.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_x TYPE char1 VALUE 'X',&lt;/P&gt;&lt;P&gt;           c_t TYPE char1 VALUE 'Q'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Selection Screen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;PARAMETERS:P_HLDR TYPE lqua-Z_HLDREF1.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:s_matnr FOR mara-matnr,&lt;/P&gt;&lt;P&gt;               s_date  FOR sy-datum DEFAULT sy-datum,&lt;/P&gt;&lt;P&gt;               s_mfgt  FOR sy-uzeit DEFAULT sy-uzeit,&lt;/P&gt;&lt;P&gt;               s_CHARG FOR lqua-CHARG.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Select * from LQUA&lt;/P&gt;&lt;P&gt;            into table IT_LQUA1&lt;/P&gt;&lt;P&gt;            where MATNR in S_MATNR&lt;/P&gt;&lt;P&gt;            and BDATU in S_DATE&lt;/P&gt;&lt;P&gt;            and Z_MFGTIM in S_MFGT&lt;/P&gt;&lt;P&gt;               AND CHARG IN S_CHARG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Debuging Above Query I am Getting SY-SUBRC = 4.&lt;/P&gt;&lt;P&gt;Same data is availabe In LQUA Table For Selection Criteria..&lt;/P&gt;&lt;P&gt;Please help me if anyone has worked on WM LQUA Table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 20:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181824#M1518633</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-08-09T20:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query LQUA Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181825#M1518634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as per your code you are mentioning S_DATE and S_MFGT which is system date and username.&lt;/P&gt;&lt;P&gt;i beleive you do not have data for this user name and this date in your table LQUA. that why you are getting sy-subrc = 4&lt;/P&gt;&lt;P&gt;because all this is in the where condition with AND operator. So all the conditions should be matched otherwise you will not find any data.&lt;/P&gt;&lt;P&gt;so check your table once again for the given values, like your system date and the current user name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 05:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181825#M1518634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T05:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query LQUA Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181826#M1518635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lalit ,&lt;/P&gt;&lt;P&gt;Thanks for the reply, but I am changing SY-UZIT and SY-DATUM On screen as per the table, And Problem is by Field CHARG,&lt;/P&gt;&lt;P&gt;Because of that i am getting SY-SUBRC = 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 06:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181826#M1518635</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-08-10T06:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query LQUA Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181827#M1518636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to pass charg into select-options &lt;STRONG&gt;with&lt;/STRONG&gt; leading zeros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 06:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181827#M1518636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T06:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query LQUA Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181828#M1518637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 11:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-lqua-table/m-p/7181828#M1518637</guid>
      <dc:creator>former_member659396</dc:creator>
      <dc:date>2010-09-08T11:56:22Z</dc:date>
    </item>
  </channel>
</rss>

