<?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: ABAP select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780139#M2023677</link>
    <description>&lt;P&gt;So, you are recommending the OP to use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       AND BUDAT_MKPF BETWEEN @I_FKDATLOW AND @I_FKDATHIGH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       AND BUDAT_MKPF GE @I_FKDATLOW
       AND BUDAT_MKPF LE @I_FKDATHIGH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's good, but that's not answering the question.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2023 11:26:19 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-08-08T11:26:19Z</dc:date>
    <item>
      <title>ABAP select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780135#M2023673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Is below select query is correct to fetch data from MSEG for MSEG-MATNR = 200000003,&lt;/P&gt;
  &lt;P&gt;After executing the select statement getting zero records, but for same value when I check at table level records exists.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT *&lt;BR /&gt;       FROM MSEG&lt;BR /&gt;       INTO TABLE @DATA(IT_MSEG1)&lt;BR /&gt;       where  WERKS = 'US01'&lt;BR /&gt;       AND BUDAT_MKPF GE @I_FKDATLOW&lt;BR /&gt;       AND BUDAT_MKPF LE @I_FKDATHIGH&lt;BR /&gt;       AND  MATNR = '200000003'&lt;BR /&gt;       AND BWART = '531'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Aug 2023 10:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780135#M2023673</guid>
      <dc:creator>former_member841438</dc:creator>
      <dc:date>2023-08-08T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780136#M2023674</link>
      <description>&lt;P&gt;user conversion exit alpha input to convert matnr from 200000003 to 200000003 preceded with zeroes similar to what you see in se11/se16n. And then you send that data in where condition of select.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 11:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780136#M2023674</guid>
      <dc:creator>Abhishek_10</dc:creator>
      <dc:date>2023-08-08T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780137#M2023675</link>
      <description>&lt;P&gt;I would suggest to check the exact condition on the Table level. Using "BETWEEN" statement in the condition for the date could also be useful for getting the date for the Date range. &lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 11:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780137#M2023675</guid>
      <dc:creator>GuruDuttt_A</dc:creator>
      <dc:date>2023-08-08T11:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780138#M2023676</link>
      <description>&lt;P&gt;You say "when I check at table level records exists."&lt;/P&gt;&lt;P&gt;You need to understand the concept of Conversion Exit at the DDIC Domain (SE11) level = difference between external (display) and internal (database) value. See the conversion exit in the domain MATNR.&lt;/P&gt;&lt;P&gt;Solution is given by Abhishek ("alpha input to convert matnr from 200000003 ...").&lt;/P&gt;&lt;P&gt;See forum and ABAP documentation for more information about Conversion Exits.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 11:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780138#M2023676</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-08T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780139#M2023677</link>
      <description>&lt;P&gt;So, you are recommending the OP to use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       AND BUDAT_MKPF BETWEEN @I_FKDATLOW AND @I_FKDATHIGH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;       AND BUDAT_MKPF GE @I_FKDATLOW
       AND BUDAT_MKPF LE @I_FKDATHIGH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's good, but that's not answering the question.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 11:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-select-query/m-p/12780139#M2023677</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-08-08T11:26:19Z</dc:date>
    </item>
  </channel>
</rss>

