<?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: dynamic date in a selection ??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463474#M218506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select VBELN POSNR&lt;/P&gt;&lt;P&gt;into corresponding fields of table ITAB&lt;/P&gt;&lt;P&gt;from VBAP&lt;/P&gt;&lt;P&gt;where AEDAT between 20030722 and 20030723.&lt;/P&gt;&lt;P&gt;3000 records are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check above select code it gives d same as ur 1st selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date has to passed as like yyyymmdd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jul 2006 11:56:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-04T11:56:02Z</dc:date>
    <item>
      <title>dynamic date in a selection ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463471#M218503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all,&lt;/P&gt;&lt;P&gt;i have a program which run follwing variable will have following value&lt;/P&gt;&lt;P&gt;d_date1 = 22072003, d_date2 = 23072003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable are declare like this&lt;/P&gt;&lt;P&gt;d_date1 like vbap-aedat,&lt;/P&gt;&lt;P&gt;d_date2 like vbap-aedat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select is build like this.&lt;/P&gt;&lt;P&gt;Select VBELN POSNR&lt;/P&gt;&lt;P&gt;  into corresponding fields of table ITAB&lt;/P&gt;&lt;P&gt;  from VBAP&lt;/P&gt;&lt;P&gt;  where AEDAT between d_date1 and d_date2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that no value are selected.&lt;/P&gt;&lt;P&gt;therefore&lt;/P&gt;&lt;P&gt;Select VBELN POSNR&lt;/P&gt;&lt;P&gt;  into corresponding fields of table ITAB&lt;/P&gt;&lt;P&gt;  from VBAP&lt;/P&gt;&lt;P&gt;  where AEDAT between 22072003 and 23072003.&lt;/P&gt;&lt;P&gt;3000 records are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why ? what's happen ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2006 11:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463471#M218503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-04T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date in a selection ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463472#M218504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that something is happening with the formatting.  All date fields in the system are stored as YYYYMMDD.  Your dates must be in this format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that this may be a better way to do your selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select-option: s_aedat for vbap-aedat.

Select VBELN POSNR
into corresponding fields of table ITAB
from VBAP
where AEDAT in s_aedat.&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>Tue, 04 Jul 2006 11:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463472#M218504</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-04T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date in a selection ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463473#M218505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi luminy13,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The date format should ALWAYS BE be YYYYMMDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. give like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;date1 = 20030722, d_date2 = 20030723&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and not date1 = 22072003, d_date2 = 23072003)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regard,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2006 11:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463473#M218505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-04T11:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date in a selection ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463474#M218506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select VBELN POSNR&lt;/P&gt;&lt;P&gt;into corresponding fields of table ITAB&lt;/P&gt;&lt;P&gt;from VBAP&lt;/P&gt;&lt;P&gt;where AEDAT between 20030722 and 20030723.&lt;/P&gt;&lt;P&gt;3000 records are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check above select code it gives d same as ur 1st selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date has to passed as like yyyymmdd &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2006 11:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463474#M218506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-04T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date in a selection ???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463475#M218507</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;Case 1:&lt;/P&gt;&lt;P&gt;select-option: s_date for vbap-aedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "s_date" in the select query in the IN clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2:&lt;/P&gt;&lt;P&gt;select-option: s_date for sy-datum.&lt;/P&gt;&lt;P&gt;Use "s_date" in the select query in the IN clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;In case 2, user need to enter the date like 31.12.9999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat Ramanan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Venkat Ramanan Natarajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2006 12:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-date-in-a-selection/m-p/1463475#M218507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-04T12:03:30Z</dc:date>
    </item>
  </channel>
</rss>

