on 12-04-2007 7:22 AM
Hi Experts,
I am new to BPS and I'm facing a FOX formula creation problem so some help is needed. We have a planning layout where users may enter amounts in 5 rows. Lead Column has 'Item' and Data Column has 'Posting period' and 'Version'. We have got 12 columns for each month with key figure ZNETTO, version 'T1' and Posting period '0FISCPER3'. Row totals are in the last column.
I have tried to create a FOX formula to do the following calculation from the user entries: = ({Row1Row2Row3}) - ({Row4 + Row5}).
The calculation function would be placed behind a button on the planning layout.
My latest try was: OPERAND DISPLAY {Key Figure Name,Item,Fiscal year}
but I got always some error stating that 'Item' is not recognized Item or some syntax error.
Now some help would be really valuable; how the code should look like and what should I select for 'Fields to Be Changed' and for 'Fields for Condition' ?
Let's start with this, many thanks for your help in advance!
Best regards,
Riku
Hi,
Fields to be changed should be only those which differ between the columns - only 'month' (posting period) i suppose.
For help regarding your error, please post the error message and your complete code. It would be easier then, to help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, and thanks for your answer!
Here is my latest for code/formula:
Operand Display {Key Figure Name,Item,Fiscal year}
***
{ZNETTO, 890999, 2007} = ({ZNETTO,
359999, 2007} + {ZNETTO, 330058, 2007} + {ZNETTO, 371000, 2007}) - ({ZNETTO, 773000, 2007} + {ZNETTO, 775000, 2007}).
***
'Formula error: Formula element '890999' could not be recognized'
I was thinking that 'Item' (0CS_ITEM) would be enough to differentiate as these 5 plan-enabled rows are each assigned to different Item. Currently I have also row 6 assigned to an Item '890999' under 'Lead Columns'. Net Sales (ZNETTO) is my key figure.
As I understand this, it should be pretty simple calculation but haven't been so far able to make it work.
Hope this helps to spot reveal more about my problem.
Thanks again,
Riku
Hi and thanks again for replying,
I have checked my InfoObject '0CS_ITEM' and this 890999 is present..
To clarify more, below how I need the function to work. 'Total' column calculation is working fine already as it was easy to define in Data Column 'Total' [selection]. Users may enter numbers on rows 1-5 and respectively columns 'Target 1' - 'Target 12'.
-
Target 1 - Target 2 - ... Total
Row1 -
5--
25
Row2 -
5--
25
Row3 -
10--
30
Row4 -
5--
15
Row5 -
5--
10
******
Row6----10
55
Any idea?
Thanks,
Riku
Hi,
I got the formula work by adding 'Cons Chart of Accounts' to the Operand Display:
{Key Figure Name,Cons Chart of Accts,Item}. This was also in the master data so that solved this issue.
Now I have created a button to my layout that uses this function but it doesn't write the data to my infocube for Item 890999 (5 data records were read, 0 of them were changed, 0 generated) . I made row6 (890999) Comparison Row.
So maybe I should differentiate something more in the formula, or?
Many thanks,
Riku
Thanks again guys, but it's not the master data activation issue either (I wish it was!).
When I chose all the characteristics to field to be changed and = 1000. it wrote this then in to the cube. We are still troubleshooting and trying to find the solution so any ides are welcome! Something related to this Consolidation Chart of Accounts + Item combination...
Best regards,
Riku
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.