<?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 Determine dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945583#M389778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize if this sounds confusing but I will try my best at explaining my question.  I have a structure z45days that will hold shipped quantities for a material for 45 consecutive days.  I have a select-options defined to input the date range (s_budat).  I need to take the low (s_budat-low) and high (s_budat-high) and reduce each date to a single integer, which will correspond to a row in the structure.  I will then need to translate a table index (row number) back to a date that will be in the date range (it will end up being the highest shipping day).  Can anybody help me determine the best way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2007 15:42:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-22T15:42:38Z</dc:date>
    <item>
      <title>Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945583#M389778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize if this sounds confusing but I will try my best at explaining my question.  I have a structure z45days that will hold shipped quantities for a material for 45 consecutive days.  I have a select-options defined to input the date range (s_budat).  I need to take the low (s_budat-low) and high (s_budat-high) and reduce each date to a single integer, which will correspond to a row in the structure.  I will then need to translate a table index (row number) back to a date that will be in the date range (it will end up being the highest shipping day).  Can anybody help me determine the best way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 15:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945583#M389778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945584#M389779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest MESSAGE-ID 00.

TABLES bkpf.

SELECT-OPTIONS: date FOR bkpf-budat OBLIGATORY.

DATA: low_int TYPE i,
      high_int TYPE i.

low_int  = '00000000' + date-low.
high_int = '00000000' + date-high.

WRITE: /001 date-low, low_int,
       /001 date-high, high_int.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 15:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945584#M389779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T15:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945585#M389780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does sound confusing... First of all, &amp;lt;b&amp;gt;structures&amp;lt;/b&amp;gt; do not have rows (structure is basically just a group of fields), you must be confusing it with a&amp;lt;b&amp;gt; table&amp;lt;/b&amp;gt;. Second, why do you need to convert the date into integer? And I din't get the whole thing about the relation between the range and the rows at all. What on earth are you trying to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can move the fields of type C into type I simply by using MOVE or '='. The row number is usually stored in sy-tabix field when you are reading the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:00:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945585#M389780</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-02-22T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945586#M389781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, I see this structure as a table (yes I know they are different) so when I said row I mean field because the structure is 45 fields all of the same type (1 for each day).  I need to convert the date to an integer so I can determine what field the quantity needs to be stored in.  I am determining the RLT (replenishment lead time) for each SKU.  They will input a date range (among other things) and I need to determine which date corresponds with which field in the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945586#M389781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945587#M389782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, thanks for the reply.  I am playing with the code you posted to see if I can work with that.  Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945587#M389782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945588#M389783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started with '00000000', but you can use a different date. You can also subtract an earlier arbitrary date from these dates. But my code should work in all cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945588#M389783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945589#M389784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, thanks for the replies.  I played around with what you posted and I got it to do exactly what I needed.  I was also wondering how you make a parameter required and your code showed me that as well.  Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Davis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945589#M389784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Determine dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945590#M389785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is also a function module SELECT_OPTIONS_RESTRICT that you can use to restrict the select-options. I assume you need exactly one low and one high date with no ranges. This FM should help. It's not simple to use, but it's well documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 16:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-dates/m-p/1945590#M389785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T16:23:19Z</dc:date>
    </item>
  </channel>
</rss>

