<?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: Problem in Query.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320855#M509503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use select-options like you did in your IF statement.. pl change it to compare with either the low or high date as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF EBAN-BADAT+0(6) = INDATE-high+0(6)
 AND EBAN-LFDAT+0(6) = INDATE-high+0(6).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2007 10:58:47 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2007-05-28T10:58:47Z</dc:date>
    <item>
      <title>Problem in Query..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320854#M509502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take Purchase Req. date from User and then have to calculate, how many of them converted into PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : if i am entered PR date : 31.01.2006 to 10.02.2006&lt;/P&gt;&lt;P&gt;then it will select all the PR in this range and how many converted into PO &lt;/P&gt;&lt;P&gt;Now my problem  begins here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDATE: Select-Option for BADAT ( Req date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**LFDAT is Delivered date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EBAN WHERE STATU = 'B' AND BADAT IN INDATE&lt;/P&gt;&lt;P&gt;                                     AND FRGKZ = 'B'&lt;/P&gt;&lt;P&gt;                                     AND FRGZU = 'XX'&lt;/P&gt;&lt;P&gt;                                     AND MATNR NE ' '&lt;/P&gt;&lt;P&gt;                                     AND BANPR = '05'&lt;/P&gt;&lt;P&gt;                                     AND EBAKZ NE 'X'&lt;/P&gt;&lt;P&gt;                                     AND ( LOEKZ NE 'L' OR LOEKZ NE 'X' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF EBAN-BADAT&lt;EM&gt;0(6) = INDATE&lt;/EM&gt;0(6) AND EBAN-LFDAT&lt;EM&gt;0(6) = INDATE&lt;/EM&gt;0(6).&lt;/P&gt;&lt;P&gt;    ITAB_PR-BANFN = EBAN-BANFN.&lt;/P&gt;&lt;P&gt;    ITAB_PR-MATNR = EBAN-MATNR.&lt;/P&gt;&lt;P&gt;    ITAB_PR-MENGE = EBAN-MENGE.&lt;/P&gt;&lt;P&gt;    ITAB_PR-EBELN = EBAN-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND ITAB_PR.&lt;/P&gt;&lt;P&gt;    CLEAR ITAB_PR.&lt;/P&gt;&lt;P&gt;    CLEAR EBAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this code is not working at all ,its giving dump error   ".Unable to interpret " IBT200" as number .it has some problem in passing Date ..but i am not able to decode the problem...correct the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Subham Arya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320854#M509502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T10:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Query..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320855#M509503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use select-options like you did in your IF statement.. pl change it to compare with either the low or high date as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF EBAN-BADAT+0(6) = INDATE-high+0(6)
 AND EBAN-LFDAT+0(6) = INDATE-high+0(6).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 10:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320855#M509503</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-28T10:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Query..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320856#M509504</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;  This error mainly caused by your selection-condition structure, for select-options, the structure is not the same as parameter, so yoiu should check this kind of structure to code(Ranges structue, yoiu can refer range in your abap editor using F1 key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the range structure, there'are maily four  fields, sign, option, low, and high, so if you want point to your input in the screen , please exactly indicate the low field or high field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 11:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320856#M509504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Query..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320857#M509505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think this is because of your select-option handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default select-option contain the data like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS : S_OP LIKE SY-DATUM.
suppose you have givaen a range 01.01.2006 to 31.03.2006
(1)            (2)           (8)            (8)
SIGN     OPTION     LOW        HIGH
  I             BT        20060101  20060331

SO WHEN YOU ARE WRITTING 
IF EBAN-BADAT+0(6) = INDATE+0(6) AND EBAN-LFDAT+0(6) = INDATE+0(6).
IT IS BY DEFAULT TAKING FIRST 6 CHAR I.E. IBT200 SO YOU HAVE TO REFFER EITHER S_OP-LOW+0(6) OR S_OP-HIGH+0(6).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2007 11:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-query/m-p/2320857#M509505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-28T11:09:19Z</dc:date>
    </item>
  </channel>
</rss>

