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

Monthly Carryforward - Logic

Dear All,

I'm creating a logic to move beginning balance of January to ending balance of Jan, then carryforward to beginning balance of Feb, and so on.

Appreciate very much if you can show me the logic for this purpose.

I split my logic into 2 parts:

First Part:

*when acctdetail

*is "f0000","f0100","f0101","f0015"

*rec(acctdetail="f0440")

*end when

This is to move the beginning balance ("f0000") to ending balance ("f0440")

Second Part:

*when acctdetail

*is "f0440"

*rec(acctdetail="f0000",time=next)

*endwhen

Both logic works for january and feb, but it does not continue to march and so on.

I have tried to used for/next as well, but it did not work.

Appreciate very much if you could share some ideas how to make it rolls from jan-dec.

Thanks in advance,

Ce Wie

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 08:26 AM

    Hi Ce Wie,

    You should use *CALC_EACH_PERIOD before your *WHEN to get BPC to add the result of each period calculation to the RESULTSET.

    *XDIM_ADD_MEMBERSET TIME=PRIOR

    *CALC_EACH_PERIOD

    *WHEN TIME

    *IS PRIOR

    *WHEN ACCDETAIL

    *IS "F0440"

    *REC(ACCTDETAIL="F0000",TIME=NEXT)

    *IS "F0000","F0100","F0101","F0015"

    *REC(ACCTDETAIL="F0440")

    *REC(ACCTDETAIL="F0000",TIME=NEXT)

    *ENDWHEN

    *ENDWHEN

    *COMMIT

    Regis

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi All,

      I managed to push the system to calculate until Dec.

      I put *xdim_memberset time=%set%,%year%.dec.

      The system then calculates the ending, movement, and beginning balance of next period.

      Even when there is a new movement in the certain period, say August, it will also be calculated for August ending balance, and carried forward to Dec.

      Thanks,

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.