<?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 Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010652#M78804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If by query, you mean, an SQ01 query,  then refer to the above post.  It is very easy to include your date into the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If by query, you mean an ABAP report which you are coding in SE38.  All you need to do is to create you selection screen by using the SELECT-OPTIONS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT-OPTIONS: s_datum for sy-datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your where clause of your select statement say...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

WHERE SOME_DATE in s_datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Aug 2005 00:21:06 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-08-06T00:21:06Z</dc:date>
    <item>
      <title>ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010650#M78802</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;Currently my ABAP query is pulling data from the tables EKPO and MARA using JOIN. The requirement is to select rows only within a PARTICULAR date range. The date range I have to enter on the selection screen of the query. &lt;/P&gt;&lt;P&gt;I have to add the date range field on the selection screen also.&lt;/P&gt;&lt;P&gt;Is it possible to do it in the ABAP query? If so how can we do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the great help,&lt;/P&gt;&lt;P&gt;Sobhan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 22:06:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010650#M78802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T22:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010651#M78803</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;YOu mean SAP Query?? i.e. SQ01 transaction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes then create a query in SQ01 and mapp the fields for selection...during mapping you need to select the date which you want on selection screen of query report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2005 22:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010651#M78803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-05T22:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010652#M78804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If by query, you mean, an SQ01 query,  then refer to the above post.  It is very easy to include your date into the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If by query, you mean an ABAP report which you are coding in SE38.  All you need to do is to create you selection screen by using the SELECT-OPTIONS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECT-OPTIONS: s_datum for sy-datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your where clause of your select statement say...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

WHERE SOME_DATE in s_datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2005 00:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010652#M78804</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-06T00:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010653#M78805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sobhan,&lt;/P&gt;&lt;P&gt;You can do that by using select options statement in the ABAP.&lt;/P&gt;&lt;P&gt;For example&amp;#133;&lt;/P&gt;&lt;P&gt;You can use the select options statement for date range as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: v_date for SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the about variable v_date can be used as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;some fields&amp;gt; &lt;/P&gt;&lt;P&gt;FROM (EKKO AS A INNER JOIN EKPO AS B&lt;/P&gt;&lt;P&gt;      ON A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN)&lt;/P&gt;&lt;P&gt;      INNER JOIN EKET AS C&lt;/P&gt;&lt;P&gt;      ON A&lt;SUB&gt;EBELN = C&lt;/SUB&gt;EBELN&lt;/P&gt;&lt;P&gt;      AND B&lt;SUB&gt;EBELP = C&lt;/SUB&gt;EBELP&lt;/P&gt;&lt;P&gt;    INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;    WHERE &amp;lt;date field&amp;gt; in v_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have used inner join to join 3 table. You can use simple join statement to join 2 tables.&lt;/P&gt;&lt;P&gt;Hope it helps&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasasd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2005 10:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010653#M78805</guid>
      <dc:creator>former_member181959</dc:creator>
      <dc:date>2005-08-06T10:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010654#M78806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Balu,&lt;/P&gt;&lt;P&gt;Yes, it is SAP Query. Thanks for the help. Can you point me to some documentation for SAP Query SQ01? As you know this tool is used by functional consultants. I dont know how to map also. I am working on 4.6c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sobhan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2005 12:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010654#M78806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-06T12:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010655#M78807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See this&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_webas610/helpdata/en/d2/cb3f6f455611d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_webas610/helpdata/en/d2/cb3f6f455611d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2005 07:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010655#M78807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-07T07:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010656#M78808</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;Check this link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/ab4query.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/ab4query.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2005 03:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010656#M78808</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-08-08T03:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010657#M78809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ABAPers ,&lt;/P&gt;&lt;P&gt;I am Chandra shekar I newly joined into this SDNetwork,&lt;/P&gt;&lt;P&gt;I am working On Automation employ vendor creation.Means if they create employ in employ master automatically it has to create vendor throw FK01 with same employ number.&lt;/P&gt;&lt;P&gt;I am using Standard tcode PRAA But it is creating using XK01. So plz  can you help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2005 09:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010657#M78809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-19T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010658#M78810</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;In SQ01 change mode you can see the title, format... Press next button (Select Field Group) -&amp;gt; Next (select field ) - &amp;gt; NEXT ( Selection fields ) . In this screen select the data range ( for example select ERSDA - material creation date ) then it will come come automatically to the selection screen.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more method also , in the infoset we can define the date range and the relevant coding in the extras.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2005 10:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1010658#M78810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-19T10:47:04Z</dc:date>
    </item>
  </channel>
</rss>

