Account Transformation- Other Dimension..
Hi all,
As stated in the many Business Planning and Consolidation reading materials that i have read we can do account transformation on the account, data source, account flow and time dimensions. Is it possible to use account transformation having another dimension rather than the others that i have mentioned above?
More power.
Thanks,
Benniejay
Hi
When i say SQL scripts these are the SQL scripts customised for BPC.
you can just log into BPC for Administration.
Go to manage applications in the explorer which would open the BPC administration screen.
In the help of the administration you can get the SQL Script logic with detailed explanations, and then once you expand application/script logic/default.lgx u get an editor where you need to write the script or call other .lgf or .lgx file.
if you go through the help you would get better information.
Thanks and regards
harish b ki
Similar Messages
-
Error while running Account Transformation...
Hi Experts,
I'm trying to run Account Transformation using the script logic below but unfortunately nothing gets calculated. When I check the package, it status is mark "CANCELED" though I did not cancel the execution of the package. Checking the detail of the status it only show the below info:
Script Logic:
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
CURRENCY = %CURRENCY_SET%
TID_RA = %TIME_SET%
OTHER = [COMPANY=%COMPANY_SET%]
CALC = CALC_RE
*ENDRUN_PROGRAM
Package Detail Log:
/CPMB/MODIFY completed in 0 seconds
[Selection]
(Member Selection)
COMPANY: 1403
CATEGORY: ACTUAL
CURRENCY: LC
TIME: 2005.JAN
[Messages]
Application: CONSOL Package status: SUCCESS
By the way, I used the process chain for ALLOCATION, I put the code for Account Transformation in the ALLOCATION.LGF since it's the logic being called by the said process chain. Checking further using the TCODE ST22 it gives the following error:
Runtime Errors: GETWA_NOT_ASSIGNED
Short Text: Field symbol has not been assigned.
What happened: Error in ABAP Application Program. The current ABAP program "CL_UJK_UTIL================CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
Cheking "Information on where terminated" code is terminated here...
READ TABLE <lt_mem> ASSIGNING <l_member> INDEX 1.
ASSIGN COMPONENT 'TIMEID' OF STRUCTURE <l_member> TO <l_timeid>.
MODIFY ct_timeid FROM <l_timeid>.
"ASSIGN COMPONENT 'TIMEID' OF STRUCTURE <l_member> TO <l_string>.
I checked the properties and the TIMEID property is existent. Was there anything wrong with my syntax? Any idea regarding this kind of error?
Thanks,
MarvinAfter checking all the dimension and using TCODE RSA1 to check the server side, I found that INTCO property is existent in the member worksheet but not in the server so I maintain the dimension properties and re-add INTCO property in the Entity dimension. After that package runs successfully.
-
BPC NW - Error in Business Rule for Account transformation rule table
hi
I have given the Account transformation Rule to move Amount from Account A to Account B and then I have given the following script logic in the default script
**RUN_PROGRAM CALC_ACCOUNT*
*CATEGORY = Category*
*CURRENCY = RptCurrency*
*TID_RA = %TIME_SET%*
*CALC=A*
*OTHER = ENTITY=C1000*
**ENDRUN_PROGRAM*
But when I try to load data through Input schedule in Account A and expect amount to transfer to Account B, I m getting an error
Book Name:Book4
Application : PLANNING*
Status : Failed*
Submitted Count : 1*
Accepted Count : 1*
Rejected Count : 0*
- Error Message -*
Error running default logic (Business rules are not available)
- Rejected record list -*
Error converting records: The root element is missing.
Can someone please advice me what to do ....hi Marcel,
Lot of thanks for your answer.
But I have used your logic after removing GROUPS as I dont have GROUPS dimension in my application.
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
TID_RA = %TIME_SET%
CALC=FX
OTHER = [ENTITY=%ENTITY_SET%]
*ENDRUN_PROGRAM
This is the error I m getting
Book Name:Book3
Application : PLANNING
Status : Failed
Submitted Count : 1
Accepted Count : 1
Rejected Count : 0
- Error Message -
Error running default logic (Business rules are not available)
- Rejected record list -
Error converting records: The root element is missing.
Can you please advice
a) Does it mean some issue with my client installation as I dont see these LGF files. I even dont see the data folder in which lgf files are supposed to be present
b) Where to find information for this interface CALC_ACCOUNT? How did you decide to use 'FX' and how do you know which dimensions to use. Like I dont have GROUPS.
Please give me your comments.
regards
Gaurav -
Business rules: Account transformation
Hi everyone.
I am trying to populate my cash flow statement using the Account Transformation. E.g For the changes in my inventories: I want the difference between the closing balance of DEC (of the previous year) and the closing balance of the current month.
I thought I could use "Source Period" and "Source Year" in the account transformation. Any idea how they can be used? I want to use a property: u201CPrevious yearu201D to make the time dynamic. Is that possible?
Thanks for your help
EstherI would suggest using the dimension Account library functions and a dimension calculations or script logic calculations to create the value from the cube values, rather than during the data load process.Script Logic might look something like the following:
INCLUDE SYSTEM_CONSTANTS.LGL
*SYSLIB CONSOLIDATION_LIBRARY.LGL
// MOVE INCOME STATEMENT ITEMS TO CASH FLOW STATEMENT
RUNSUMMARIZE(ThisApp,CF_SUMM,%CATEGORY_SET%,%LC_RPT_CURR%)
//CALCULATE BALANCE SHEET MOVEMENTS AND POST TO CASH FLOW STATEMENT
*SELECT(%FROM_ACCOUNT%, "[ID]", "ACCOUNT", "[CF_TO_ACCT] <> ''")
*XDIM_MEMBERSET ACCOUNT = %FROM_ACCOUNT%
*XDIM_ADDMEMBERSET TIME = PRIOR
*XDIM_MEMBERSET RPTCURRENCY=%LC_RPT_CURR%
*WHEN TIME
*IS %TIME_SET%
*REC(ACCOUNT=ACCOUNT.CF_TO_ACCT)
*IS PRIOR
*REC(FACTOR=-1,ACCOUNT=ACCOUNT.CF_TO_ACCT,TIME=NEXT)
*ENDWHEN
*COMMIT
But this will require a few properties on the accounts members to support the calculations. The idea for cash flow is to have the basic values in the accounts, and then provide the calculations to place values into another set of accounts that build the CAshFLow statement. The most difficult part will be dealing with the exceptions, changes to the Cash Flow statement process a customer will need to work with each reporting period. But Script logic generally works the best. -
Account Transformation Business Rules: Apply to YTD is not working
Hello Friends,
I am using Account Transformation Rules for Re-classification of Accounts in MS version of BPC. And i am trying to use Apply to YTD. But it is not working and i am getting the same periodic values in YTD column also. For example if i am running a report for Dec 2009, i am getting the only Dec 2009 values under YTD also.
I appreciate any ideas on resolving the issue.
Regards,
MohanHi Nilanjan,
I observed the following:
1. If I check the Apply to YTD in Account Transformation rules, it is always showing YTD only irrespective of what i choose in in Measures in CV.
2. If i do not check the Apply to YTD in Account Transformation rules, it is showing only monthly values irrespectinve of what i choose in Measures in CV.
YTD is working fine in the same Appset for other dimension members eg not used in the Account Transformation Rules.(for other reports).
Thank you,
Mohan -
Account Transformations with wildcards
Hi Forum,
I was wondering if anyone knew if the 'source account' field within account transformations accepts wildcards or a property from the account dimension. Basically I have a number of accounts which classify as 'additions' and I want to transpose them from their account code into a member in a subtable dimension (Additions) but I don;t want to name each source account code explicitly as my account transformation table would become very big ( I need to do this for disposals, charges etc...). Can anyone suggest the best approach ?
Thanks,
BrianHi Brain,
All the business rules run SQL stored procedures which use the values passes in the business rules table. As the SQL syntax is different when you pass the excat string and wild characters, I dont think it will accept wild chars.
But you can use the values of properties in Business rules. You can define a property named DIMLIST(or DIMLISTn - n is number) or TYPELIM(typelim is only for transformation rules), in your case for account dimension and filter on the values of the properties by selecting the property tab in the pop up you get to select account dimension in business rules table and you can use this property values only for source account dimension.
Hope this helps,
Kranthi -
Account transformation accumulating values
Hi Forum,
A quick question is there an option for account transformations not to 'add' to values that exist in the bpc database already. I want to overwrite values in existing accounts but the account transformation seems to be accumulating the value.
Thanks,
BrianHi..
I'm working on CAPEX application. My problem is :- 1st time data loading, opening and closing are correct but the subsequent data uploading, opening and closing figure will accumulate. Please advice what coding should I include in my script logic.
In my testing,
1) I'll upload - Jan'2006 opening, Jan'2006 to Dec'2006 Movement
2) use account transformation to calculate "opening + movement = closing"
3) use script logic for carry-forward monthly opening
Account Transformation business rule:
Transf group Source Acc Source flow Source d/source Destination acc
A 1410220 FA_ExistDepr_OPE 1410220
A 1410220 FA_ExistDepr 1410220
A 1410220 FA_AddDepr_OPE 1410220
A 1410220 FA_AdditionsDepr 1410220
A 1410220 FA_ADepr_OPE 1410220
A 1410220 FA_ADepr 1410220
A 1410220 FA_DispDepr_OPE 1410220
A 1410220 FA_DisposalDepr 1410220
A 1410220 FA_TranInDepr_OPE 1410220
A 1410220 FA_TransferInDepr 1410220
A 1410220 FA_TranOut_OPE 1410220
A 1410220 FA_TransferOutDepr 1410220
Dest. flow Dest. d/source Rev sign Source Period AppytoYTD Remark LEVEL
FA_ExistDepr_CLO Y
FA_ExistDepr_CLO Y
FA_AddDepr_CLO Y
FA_AddDepr_CLO Y
FA_ADepr_CLO Y
FA_ADepr_CLO Y
FA_DispDepr_CLO Y
FA_DispDepr_CLO Y
FA_TranInDepr_CLO Y
FA_TranInDepr_CLO Y
FA_TranOutDepr_CLO Y
FA_TranOutDepr_CLO Y
Default.lgf Script logic:
*INCLUDE SYSTEM_CONSTANTS.LGL
*SYSLIB SYSTEM_LIBRARY.LGL
// Default base level logic - applies to all base members in all dimensions
//Move Net Income to Balance Sheet
//ROLLTOBS( CYNI, CALCNI, FINSTMT, PL, DEC )
// Perform Currency translation
*INCLUDE FXTrans
Perform ACCOUNT TRANFORMATION
*RUN_STORED_PROCEDURE = SPRUNCALCACCOUNT([CAPEX],[%CATEGORY_SET%],[LC],'%SCOPETABLE%','%LOGTABLE%', 'A')
*COMMIT
//-- ACCOUNT TRANFORMATION END--
TO CALCULATE MONTH OPENING
*SELECT(%AccountList%, "ID", "CapAccount", "[Group] = 'Test1'")
*xdim_memberset CapAccount= %AccountList%
*xdim_memberset CapAcctDetail = FA_ExistDepr_OPE,FA_ExistDepr_CLO,FA_AddDepr_OPE,FA_AddDepr_CLO,FA_ADepr_OPE,FA_ADepr_CLO,FA_DispDepr_OPE,FA_DispDepr_CLO,FA_TranInDepr_OPE,FA_TranInDepr_CLO,FA_TranOutDepr_OPE,FA_TranOutDepr_CLO
*When CapAcctDetail
*IS FA_ExistDepr_CLO
*REC(CapAcctDetail=FA_ExistDepr_OPE,TIME=NEXT)
*IS FA_AddDepr_CLO
*REC(CapAcctDetail=FA_AddDepr_OPE,TIME=NEXT)
*IS FA_ADepr_CLO
*REC(CapAcctDetail=FA_ADepr_OPE,TIME=NEXT)
*IS FA_DispDepr_CLO
*REC(CapAcctDetail=FA_DispDepr_OPE,TIME=NEXT)
*IS FA_TranInDepr_CLO
*REC(CapAcctDetail=FA_TranInDepr_OPE,TIME=NEXT)
*IS FA_TranOutDepr_CLO
*REC(CapAcctDetail=FA_TranOutDepr_OPE,TIME=NEXT)
*EndWhen
*COMMIT
Please advice. Thanks.
Regards,
Clarissa Chung -
Use one dimension to feed 2 other dimensions
Is there a way to use one dimension to push data into two other dimensions using push logic? The client has one dimension in App1 that is a combination of 2 dimensions in App2 ie the Costcenter dimension in App1 is a combination of Plant and Account in App2.
Now they want to push data from App1 into App2 using the Costcenter dimension to populate the Plant and Account.
I have Plant and Acct properties in the Costcenter dimension for mapping.
I tried to use *Rename_dim CC= CC.Plant and *Rename_dim CC=CC.Acct but would get errors when validating the logic script.
Any help would be greatly appreciated.Parameters
COSTCENTER: 70101014
When I test the logic using the logic debugger, I get the error:
Validate member failed:
70101014
70101014
70101014
70101014 on COSTCENTER dimension
When I run the logic thru data manager, the package is successful but the end of the detail status log is 'No records to process'
The push logic should ideally take the Costcenter 70101014 from App1 and take the first 4 char (7010) and record to the Plant dimension in App2 then take the last 4 char (1014) and record to the Account dimension in App2
Logic script:
*DESTINATION_APP= APP2
*RENAME_DIM CC = ACCOUNT
*RENAME_DIM CC= PLANT
*WHEN CATEGORY
*IS "AOP"
*REC(CC=CC.RPT_A,CC=CC.PLANT,CATEGORY=AOP)
*ENDWHEN
*COMMIT -
BPC NW - Account Transformation
Hello,
I have defined the account transformation in the legal application, and copied the script logic given in the SAP documentation, which is validated OK.
However, when running the package (based on process chain /CPMB/RUNCALCACCOUNT), it is giving an error saying that no business rules have been defined.
Has anyone encountered the same problem?
Thanks&Regards
BegoniaHI Begonia,
As you said that if you have done Modify Appl-->Selecting Business Rules..it should refelect in your application then you go the Those Rules and give the parameters then it will work..
If the rules are not reflecting in your application then you should think you hav't had Rules and problem continues..
Regards,
Naresh.K -
Account transformation business rule
Hi experts,
I hace defined Account Transformation rule in the default.lgf file. and I have defined source and destionation account in the corresponding table.
Now I am running the rule from Data manager package - Default formula.It is running successfully.
But when I see Package log it is not executing SPRUNCALCACCOUNT at all.
Would be great help if anyone can give some guidance.Can you post the exact logic script?
Maybe a stupid guess, but did you put a *COMMIT directly after the *RUN_STORED_PROCEDURE logic statement?
Regards,
Joost -
Sibling count calculation ignoring filtering from other dimensions.
Hi.
I have an issue whereby including my calculated measure in a pivot returns more rows that I've filtered by.
So within my Account dimension I have a few attributes, one being a 'Parent Acct Id' and another the 'Child Acct Id'. I have setup the hierarchy accordingly and then created my measure as below
[Measures].[Linked Accounts] AS COUNT([Account].[My Hierarchy].CURRENTMEMBER.SIBLINGS)
Then if I select my 'Child Acct Id' on rows then my calculated measure does correctly show the number of siblings. However the problem arises when I want to reduce the result set by an attribute from another dimension (e.g. a country name from a 'Country'
dimension) - doing this has no affect on the rows returned.
I should mention that if I filter on another attribute within the 'Account' dimension then that DOES filter as required. So it's behaving that my calculated measure only works
with selections from within the slice that I'm doing the sibling count on.
So I don't understand why the CURRENTMEMBER function doesn't work as it should.
Any ideas?
Thanks
DaveHi Dave,
You can't filter Dimension_1 members by selecting Dimension_2 members. It's normal cube behavior.
Try use nonempty function with measure. For example:
[Measures].[CalcMember] AS nonempty([Employee].[Employees].currentmember.siblings,[Measures].[Reseller Sales Amount])
So you can count nonempty siblings using other dimensions in filter. I hope that is you need.
Best regards. -
Business Rules for Account Transformation - Execute a Transformation Group
Hello,
when executing a package for account transformation, I want to select a specific transformation group
only.
The transformation group is the first column in the definitions.
My question:
Can I pass this to script logic as a parameter?
What is it like?
I think this should have a performance effect when using account transformation in default logic.
Thanks for an answer
JochenHi Jochen,
Your best bet is the documentation at [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/2b/8f059920de465b88be2893e2117fbe/frameset.htm], however in this case it does not do a very good job of explaining what is happening. Fortunately the CALC= property is just about the only one that you have control over for the account transformation business rules.
The other option (and the only way to truly know what is going on) is to investigate the ABAP programs that actually execute the business rule logic in BW. You can find these programs in SE80, under the UJ package, in the UJP sub-package. You will be most interested in the classes available there. There tends to be one class per business rule group, as well as classes for allocations and validations.
Cheers,
Ethan -
Account Transformation CALCACCOUNT.LGF returns 0 records
Hi,
Account transformation through CALCACCOUNT.LGF returning 0 records.
Created a Account Transformation Business rule as follows -
Transformation group Name - AST
Source Account - CASH
Category - ACTUAL
Source Flow - NONE
Source DatsSrc - SYSTEM
Similarly maintained values for -
Destination Account - D_CASH
Destination Category - ACTUAL
Destination Source Flow - ENDBAL
Destination DatsSrc - SYSTEM
Source period = -1
all other values like Source Year,Apply to YTD,Remark,Level, Forced into Member are left blank.
Scrip Logic -
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY = %CATEGORY_SET%
CURRENCY = %RPTCURRENCY_SET%
TID_RA = %TIME_SET%
ENTITY=%ENTITY_SET%
CALC=AST
*ENDRUN_PROGRAM
Script runs succesfully, however returns 0 records.
RUN CALC_ACCOUNT
0 SUBMITTED, 0 SUCCESS, 0 FAIL.
SCRIPT RUNNING TIME IN TOTAL:1.94 s.
LOG END TIME:2011-06-28 01:38:25
Can some one please advise on the "checks" to be performed to run the script succesfully.
I know out of experience even if a simple property is not set, script does not run.
Inputs appreciated.
Thanks.With this, one thing to be aware of is that if you have run an account transformation rule on a data set already, and you a re-running it yet the data has not changed - there will be 0 records generated.
I recommend changing the data - do a simple zero and input data then save - then re-run, check if that works.
Nick -
Is there a limit for the Account Transformation Table?
Hi Gurus,
I am anxious to know is there a limit for the or any particular number for maintaing Account Transformation table. 2) If many rules are existing in the Table, will it cause any performance issue.
Regards,
KumarMGHello Kumar,
I endorse the view expressed by Lokesh. Yes, there is no limit to the number of Account Transformation Rules that you can maintain in the Transformation Table. One way to limit this number is to use carefully maintained hierarchies instead of specifying individual accounts in the Rule. However, this is not always possible - but will help limit the number of entries in the Account Transformation Table. To create Cash Flow Satatement, you have to anyway use the Account Transformation Rule and surely this would stretch the number of entries in the table. For a complex requirement, these might extend to a few hundred entries. Performance will be an issue, no doubt.
Chakrapani -
Calcaccount procedure - account transformation business rules
Hi I have a question concerning the calcaccount procedure.
I already made some Cashflow accounts
I already filled in some lines in the account transformation business rules
But now I was wondering how to run these business rules:
I have made the following calcaccount logic, but when I run it I get nothing for the moment
*XDIM_MEMBERSET INTCO=GLTOT
*XDIM_MEMBERSET GROUPS=C_WDP
*XDIM_MEMBERSET ENTITY=E_TOTAL
*IGNORE_STATUS
*RUN_STORED_PROCEDURE = SPRUNCALCACCOUNT([FINANCE],[%CATEGORY_SET%],[C_WDP],[%SCOPETABLE%],[%LOGTABLE%],[CF])
*COMMIT
I don't have a clue if this logic is even correct or not
Please help meHi Alwin,
I tried this but it doesnt work
*XDIM_MEMBERSET INTCO=GLTOT
*XDIM_MEMBERSET GROUPS=C_WDP
*XDIM_MEMBERSET ENTITY=E_TOTAL
*IGNORE_STATUS
*RUN_STORED_PROCEDURE = SPRUNCALCACCOUNT([FINANCE],[%CATEGORY_SET%],[C_WDP],[%SCOPETABLE%],[%LOGTABLE%])
*COMMIT
I have the following in the formula log:
Start time --->3:36:33 PM - Date:9/24/2008 (build code:254)
User:WDP\Administrator
Appset:WDP_ONTWIKKELING
App:FINANCE
Logic mode:1
Logic by:
Scope by:
Data File:
Debug File:D:\BPC\Data\Webfolders\WDP_ONTWIKKELING\FINANCE\PrivatePublications\Administrator\TempFiles
DebugLogic_7_.Log
Logic File:D:\BPC\Data\WebFolders\WDP_ONTWIKKELING\FINANCE
..\AdminApp\FINANCE\Calcaccount.lgx
Selection:D:\BPC\Data\WebFolders\WDP_ONTWIKKELING\FINANCE\PrivatePublications\Administrator\TempFiles\FROM_7_.TMP
Run mode:1
Query size:0
Delim:,
Query type:0
Simulation:0
Calc diff.:0
Formula script:
Max Members:
Test mode:0
Is Modelling:1
Number of logic calls:1
Call no. 1, logic:D:\BPC\Data\WebFolders\WDP_ONTWIKKELING\FINANCE
..\AdminApp\FINANCE\Calcaccount.lgx
signeddata is YTD
Building sub-query 1
Query Type:0
Max members:
Executing SPRUNCALCACCOUNT [FINANCE],[ACTUAL],[C_WDP],[SPSCOPE_312035],[SPLOG_394894]
SPRunCalcAccount Version 2.06
2 Rows Calculated
2 Rows Updated
Time to run stored procedure:26.5 sec.
call 1 completed and data posted in 26.7 sec.
Run completed in 27.3 sec.
End time --->3:36:59 PM - Date:9/24/2008
As you can see he doenst post records to the cashflowaccounts..
Do you know what is wrong?
Maybe you are looking for
-
New MBP, is it ok?
Hi there, I recently sold my iMac 24" and my MacBook and bought a MBP. Im so happy with it, even though Ive been a Mac user for years, I am still really impressed with it, its the first 'Pro' Mac I've had and I love it! Im concerned that a couple thi
-
Several weeks back I was advised in a post ..: "For non .mac slideshow you need to include the photo page's .js file in the page that you want to jump from." I asked for clarifications, but got no response. Now, recovering from file corruptions and a
-
Error Message"ERP adapter is called" for CRM sales order replicate to ERP
Hi All: In our implemenation project, we use CRM7.0 stanard sales order type TA for sales order creation. And we did all the right configuration for sales order at CRM side. CRM sales order can be saved correctly. But this CRM sales order couldn't be
-
Synchronize folder not working in Lightroom 5.7
When I synchronize a folder in Lightroom 5.7 it shows 'Task completed', but nothing happens and Lightroom does not respond anymore. Any advice? Running on Windows 8.1..
-
{PC CC2014} Blending modes REFUSES to export
Hi there, I'm not exactly the strongest when it comes to Illustrator, so hopefully this isn't some stupid preference issue on my part, but... I'm having an issue with my blending modes. Basically I have 3 stars, larger to smaller, top to bottom. I ha