Skip to Content

How to derive time in months from year and month fields in a transformation?

Hi There,

I am on BW 7.3 and I some help in writing a routine that would calculate/derive the total time in months (target DSO) from a date field (format YYYYMM e.g 2008.01) (source DSO), the derivation should be based of course of the sy-datum.

Any inputs in writing this routine in my transformation?

Thanks,

Blaiso

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Dec 31, 2013 at 01:39 PM

    Resolved!!! I did not used a FM, I just defined 2 variables to hold source date and target date and I perform a simple calculation giving the difference between target date and source date.

    Thanks,

    Blaise

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2012 at 05:37 AM

    HI

    What is your required format in target DSO? Do you just need a count of months?

    Regards,

    Suman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2012 at 04:21 PM

    Hi,

    Better use Function Module - FIMA_DAYS_AND_MONTHS_AND_YEARS.

    Input parameters - Date

    Export Paramerts - Variable.

    Pass this variable to RESULT.

    Regards,

    rvc

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 16, 2012 at 02:46 AM

    check following thread of any help

    http://scn.sap.com/thread/1974114

    http://scn.sap.com/thread/2126460

    Thanks and regards

    Kiran

    Add a comment
    10|10000 characters needed characters exceeded

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.