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

How to add three account using script Logic

Hello

I would like to ADD three independent accounts, like A0001.35 + A0002.45 + A0003.55 to TOTAL.

*FUNCTION LIST = "A0001.35","A0002.45","A0003.55"

*XDIM_MEMBERSET P_ACCOUNT = %ACCTLIST%

*WHEN DATASRC

*IS INPUT

*WHEN CATEGORY

*IS PLAN,ACTUAL

*WHEN P_ACCOUNT

*IS %ACCTLIST%

*REC(Expression=%VALUE%,P_ACCOUNT="TOTAL")

*ENDWHEN

*ENDWHEN

*ENDWHEN

*COMMIT

Thanks and any help is greatly appreciated.

SAP BPC

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 24, 2012 at 08:36 AM

    Hi

    try:

    *XDIM_MEMBERSET P_ACCOUNT = "A0001.35","A0002.45","A0003.55"

    *XDIM_MEMBERSET CATEGORY = "PLAN","ACTUAL"

    *WHEN DATASRC

    *IS INPUT

    *WHEN P_ACCOUNT

    *IS "A0001.35","A0002.45","A0003.55"

    *REC(Expression=%VALUE%,P_ACCOUNT="TOTAL")

    *ENDWHEN

    *ENDWHEN

    *COMMIT

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 24, 2012 at 03:08 PM

    Hi,

    if A0001.35 + A0002.45 + A0003.55 are children of TOTAL account then you don't need nothing you will have automatically the TOTAL, is sufficient to use the parenth1 property, or you can try

    *XDIM_MEMBERSET P_ACCOUNT = A0001.35,A0002.45,A0003.55

    *XDIM_MEMBERSET CATEGORY = PLAN,ACTUAL

    *XDIM_MEMBERSET DATASRC = INPUT

    *WHEN *

    *IS

    *REC(FACTOR=1,P_ACCOUNT="TOTAL")

    *ENDWHEN

    *COMMIT

    Kind regards

    Roberto

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      try

      *XDIM_MEMBERSET P_ACCOUNT = BAS(TAXSAL)

      *XDIM_MEMBERSET CATEGORY = PLAN,ACTUAL

      *XDIM_MEMBERSET DATASRC = INPUT

      *WHEN *

      *IS *

      *REC(FACTOR=1,P_ACCOUNT="TOTAL")

      *ENDWHEN

      *COMMIT

      if doesn't work try

      *SELECT(%ACC%,"ID","P_ACCOUNT","PARENTH1 = 'TAXSAL'")

      or alternatively *SELECT (%ACC%, "[ID]", "P_ACCOUNT", "id in (select id from ctbldimP_Account where agregat = 'TAXSAL')") //(maybe is called ctbldimAccount instead of ctbldimP_Account)

      or alternatively *SELECT (%ACC%, "[ID]", "P_ACCOUNT", "id in (select id from mbrP_Account where PARENTH1 = 'TAXSAL')")

      *XDIM_MEMBERSET P_ACCOUNT = %ACC%

      *XDIM_MEMBERSET CATEGORY = PLAN,ACTUAL

      *XDIM_MEMBERSET DATASRC = INPUT

      *WHEN *

      *IS *

      *REC(FACTOR=1,P_ACCOUNT="TOTAL")

      *ENDWHEN

      *COMMIT

      Kind regards

      Roberto

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.