Skip to Content
author's profile photo Former Member
Former Member

Calender month as key figure

Hi all,

I want to pick calender month from calender day and make it as an entry of data feild of ods.

For that, how can I define the info object as key figure, holding calender month.

I mean to say if it gives me a value of 11.2005 and if i give an offset in variable as 12 then it should return me 11.2004.

So how well can i get this desired output.

One more thing is, if we define an info object key figure of type date and data type DEC, how will it store this value. This is infact to know, how can i code in update routine to get month from it and store.

Regards,

Naveen.A

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 09:32 AM

    Hi,

    I hope, you can use 0CALMONTH Info object for your pupose.

    In the upadte rule of 0CALMONTH you will use couple lines of code to take the first 6 characters from date field(either 0CALDAY of your own date field).

    With rgds,

    Anil Kumar Sharma .P

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      For eaxmple we have one ODS ODS1 and One info cube IC1.

      And assume the objetcs in ODS are:

      Customer,product,region,zcalday,KF1

      And assume the objetcs in Info cube are:

      Customer,product,country,0calday,KF2

      So assume you have taken the fileds in to Multi provider as:

      Customer,product,zcalday,0calday,KF1,kf2

      In idetification you will do like this:

      Customer = ODS1

      = IC1

      product = ODS1

      = IC1

      Zcalday = ODS1

      0calday = IC1

      And let us assume you have records in ODS1 as below:

      Customer,product,region,zcalday,KF1

      C1,P1,R1,1.10.2005,100 INR

      C1,P2,R1,2.10.2005,200 INR

      And let us assume you have records in IC1 as below:

      Customer,product,country,0calday,KF2

      C1,P1,CO1,10.10.2005,10 EACH

      C1,P2,CO1,12.10.2005,20 EACH

      So the records in MP will be

      Customer,product,zcalday,0calday,KF1,kf2

      C1,P1,1.10.2005, ,100 INR,

      C1,P1, ,10.10.2005, ,10 EACH

      C1,P2,2.10.2005, ,200 INR

      C1,P2, ,12.10.2005, ,20 EACH

      So that here in the reports on MP , you will not use the un common characterstics in rows(zcalday,0calday).But you will use them in restriction KF.

      But you can make restriction on KF1 with only zcalday ( not with 0calday)

      Similarly you can make restriction on KF2 with only 0calday ( not with Zcalday).

      I hope, you will get some useful information .

      With rgds,

      Anil Kumar Sharma .P

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.