<?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: BW - problem with formula variable (date format) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050451#M1501909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I were you, I'd try two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best way - have the infoprovider changed to have a new key figure for the number of days difference&lt;/P&gt;&lt;P&gt; - to do this with formulae (especially crossing months and years - what about leap years) is hard to maintain and develop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other way - make a virtual key figure - i did this once but I forget how exactly. There's a userexit or BADI somewhere which can be used for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either of these ways allows the calculation to be done in ABAP itself where date1 - date2 gives you the number of days difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way though, this is in the wrong forum. I'd bet if this was in a BI forum, you'd have an answer already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Aug 2010 18:22:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-04T18:22:02Z</dc:date>
    <item>
      <title>BW - problem with formula variable (date format)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050450#M1501908</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;(sorry if I'm using different term than yours.. this is my 2nd query.. still new with BW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create 1 query: Support Message Aging Report.&lt;/P&gt;&lt;P&gt;Basically it will have 5 columns: Not Due, 0 Day, 1 Day, 2-10 Days, &amp;gt;10 Days.&lt;/P&gt;&lt;P&gt;and 1 input selection is: key date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the formula is: number of aging day = key date - due date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no issue on the 1st and 2nd column. For that I just create 1 customer exit.&lt;/P&gt;&lt;P&gt;My problem is on how to separate the over due support message by day (due date &amp;lt; key date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried create 2 formula variable for key date and due date. Then from these 2 vars, I can get the number of days.&lt;/P&gt;&lt;P&gt;Problem comes when the calculation is cross month/year. I suspect maybe because the return from the formula var is in number format and not date... yyyymmdd. Then, I change the dimensions from number to date.. it is working for key date.. dd.mm.yyyy.&lt;/P&gt;&lt;P&gt;but for the due date, I got problem... it keeps give me warning saying: value 'D' invalid for property dimension of element etc.///&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below are details for both formula variable.. please advice which area should I fix or maybe you can suggest any good idea for my query.. thanks so much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ZKEYDATE - customer exit (value  input data) - dimensions date - NO ISSUE (OUTPUT: dd.mm.yyyy)&lt;/P&gt;&lt;P&gt;2. ZDUEDATE - replacement path (ref char ZBW02C08) - replacement rule: infoobject, key - dimension date - GOT WARNING...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;ZBW02C08: contains due date and the type is date: yyyymmdd&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 10:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050450#M1501908</guid>
      <dc:creator>former_member399569</dc:creator>
      <dc:date>2010-07-28T10:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: BW - problem with formula variable (date format)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050451#M1501909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I were you, I'd try two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best way - have the infoprovider changed to have a new key figure for the number of days difference&lt;/P&gt;&lt;P&gt; - to do this with formulae (especially crossing months and years - what about leap years) is hard to maintain and develop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other way - make a virtual key figure - i did this once but I forget how exactly. There's a userexit or BADI somewhere which can be used for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either of these ways allows the calculation to be done in ABAP itself where date1 - date2 gives you the number of days difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way though, this is in the wrong forum. I'd bet if this was in a BI forum, you'd have an answer already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 18:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050451#M1501909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-04T18:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: BW - problem with formula variable (date format)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050452#M1501910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Erik.&lt;/P&gt;&lt;P&gt;for this query, what I did was, I created 5 customer exits for 5 columns. each exit will calculate the start and end date for each column. by doing this, I can get the number of days for each column...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 03:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bw-problem-with-formula-variable-date-format/m-p/7050452#M1501910</guid>
      <dc:creator>former_member399569</dc:creator>
      <dc:date>2010-08-05T03:35:44Z</dc:date>
    </item>
  </channel>
</rss>

