cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

in BPC script logic multiply values from 2 member set and write to a third

Former Member
0 Kudos
539

Hi,

I am struggling to do the following:

Retrieve EBT value and multiply with the tax rate applicable for that time. The tax rate is stored in the same application. On a specific datasource : ADJ_Tax and account = "Perc_tax".

The rate should have the same TIME. The result needs to be written to account A_97010

I tried the below logic and the result that is written is 0 on each intersection.

I actually started with option 3. Which did not work and then i tried 1 and 2 as well, without luck.

(a second problem i have, is that i get an error on, if i use the code:

*xdim_memberset Account= bas(A_EBT))

Help would be highly appreciated.

//=============================================

*lookup Legalapp

*dim Company= company.id

*dim DataSrc= "ADJ_TAX"

*dim TPER: Account= "PERC_TAX"

*dim Time = %Time_Set%

*Endlookup

*select(%PLaccounts%,"ID","ACCOUNT","[Group]='PL' AND [ID] <> 'A_97010'")

*xdim_memberset PROFIT_center=<ALL>

*xdim_memberset Currency=LC

*xdim_memberset Cost_Center=<ALL>

*xdim_memberset DataSrc=<ALL>

*xdim_memberset Category = Actual

*xdim_memberset Account= %PLaccounts%

*xdim_memberset Time = %Time_Set%

*xdim_memberset GROUPS=GSTAR

*calculate_difference=0

*WHEN *

*IS "*"

// option 1

*rec(expression=(%value%*GET(ACCOUNT = "PERC_TAX"),DataSrc= ADJ_TAX,Account= A_97010 , PROFIT_center=PC_NONE,Cost_Center=CC_NONE,Productgroup=PG_NONE, INTCO=I_NONE)

// option 2

//*rec(expression=(GET(ACCOUNT = "PERC_TAX"),DataSrc= ADJ_TAX,Account= A_97010 , PROFIT_center=PC_NONE,Cost_Center=CC_NONE)

// option 3

// *rec(expression=(*lookup(TPER)),DataSrc= ADJ_TAX,Account= A_97010 , PROFIT_center=PC_NONE,Cost_Center=CC_NONE)

*ENDWHEN

*COMMIT

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member186338
Active Contributor
0 Kudos

Why not to correctly use LOOKUP:

*rec(expression=%value%*lookup(TPER),...

Former Member
0 Kudos

Hi,

It should be BPC MS platform. Thanks.

Regards,

Philip

former_member186338
Active Contributor
0 Kudos

First - edit your question to remove incorrect tag!

Second: "P.S. And use your real name - I will not answer to unknown users, violating forum rules!"

https://www.sap.com/community/about/rules-of-engagement.html

Former Member
0 Kudos

Sorry I am new to the forum. Tag removed. Profile name changed. However, it is not refreshed in the forum.

former_member186338
Active Contributor
0 Kudos

Sorry, but you can't use both tags:

SAP Business Planning and Consolidation, version for the Microsoft platform

SAP Business Planning and Consolidation, version for SAP NetWeaver

Please select the correct one and I will try to answer!

P.S. And use your real name - I will not answer to unknown users, violating forum rules!