<?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: query does not retrieves the correct values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045644#M720926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;DATA WA type VBEP.&lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR MAX( ETENR ) FROM vbep INTO WA&lt;/P&gt;&lt;P&gt;WHERE vbeln = tvbdpl-vgbel&lt;/P&gt;&lt;P&gt;AND posnr = wl_posnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;clear vbep.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM vbep "R02&lt;/P&gt;&lt;P&gt;WHERE vbeln = WA-VBELN "R02&lt;/P&gt;&lt;P&gt;AND posnr = WA-POSNR "R02&lt;/P&gt;&lt;P&gt;AND etenr = WA-ETENR.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trythis,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 10:46:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-06T10:46:27Z</dc:date>
    <item>
      <title>query does not retrieves the correct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045641#M720923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;pls look into the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; clear: wf_etenr,&lt;/P&gt;&lt;P&gt;         vbep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the Scheduled Loading date and Scheduled Arrival Date.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT MAX( etenr ) FROM  vbep INTO wf_etenr&lt;/P&gt;&lt;P&gt;                        WHERE vbeln = tvbdpl-vgbel&lt;/P&gt;&lt;P&gt;                        AND   posnr = wl_posnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      clear vbep.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM vbep         "R02&lt;/P&gt;&lt;P&gt;             WHERE vbeln = tvbdpl-vgbel "R02&lt;/P&gt;&lt;P&gt;              AND posnr = tvbdpl-vgpos  "R02&lt;/P&gt;&lt;P&gt;              AND etenr = wf_etenr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i see the values at dictionary level using the same wher conditions are mismatching with the query excution result in the program.&lt;/P&gt;&lt;P&gt;here in the second query ( SELECT SINGLE * ) it giving the wrong results .&lt;/P&gt;&lt;P&gt;if i compare the results at table level ,some of the field values are missing after excuting the above second query.&lt;/P&gt;&lt;P&gt;pls can any one give me ur suggestion on this !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;sanjay reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045641#M720923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: query does not retrieves the correct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045642#M720924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;are these the same?&lt;/P&gt;&lt;P&gt;wl_posnr and tvbdpl-vgpos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM vbep&lt;/P&gt;&lt;P&gt;WHERE vbeln = tvbdpl-vgbel&lt;/P&gt;&lt;P&gt;AND posnr = wl_posnr &lt;/P&gt;&lt;P&gt;AND etenr = wf_etenr.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make somewhat consistent querys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Zlatko&lt;/P&gt;&lt;P&gt;        Zlatko Stracenski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045642#M720924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: query does not retrieves the correct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045643#M720925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;declare the workarea similar to vbep and do the select single from vbep into wa_vbep and give the conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas for first query select that field without max function and then sotr it accordingly and get the first record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045643#M720925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: query does not retrieves the correct values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045644#M720926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;DATA WA type VBEP.&lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR MAX( ETENR ) FROM vbep INTO WA&lt;/P&gt;&lt;P&gt;WHERE vbeln = tvbdpl-vgbel&lt;/P&gt;&lt;P&gt;AND posnr = wl_posnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;clear vbep.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM vbep "R02&lt;/P&gt;&lt;P&gt;WHERE vbeln = WA-VBELN "R02&lt;/P&gt;&lt;P&gt;AND posnr = WA-POSNR "R02&lt;/P&gt;&lt;P&gt;AND etenr = WA-ETENR.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trythis,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-does-not-retrieves-the-correct-values/m-p/3045644#M720926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:46:27Z</dc:date>
    </item>
  </channel>
</rss>

