on 04-13-2007 10:31 AM
I am using APO DP V5, and have a specific macro related question...
In a planning book view I have a key figure in which the user can enter data.
If a user enters a number nnn in column x I need a macro to populate all columns to the right of column x (ie column x1, column x2, etc) with the number n.
Example, assuming 10 columns in the view:
- initial situation for key figure:
0,0,0,0,0,0,0,0,0,0
- user enters 2 in column 3:
0,0,2,0,0,0,0,0,0,0
- I need macro to produce result of:
0,0,2,2,2,2,2,2,2,2
- user now enters 4 in column 5 and 6 in column 8:
0,0,2,2,4,2,2,6,2,2
- I need macro to produce result of:
0,0,2,2,4,4,4,6,6,6
Any ideas appreciated!
Thanks, Bob Austin
Hello Group APO,
I just want to say that this can roughly be accomplished by using the distribution function (calculator icon) in the Interactive Planning table. The users will need to choose the date themselves though. Let me post again for the macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bob
if you want to use a macro looks like you have to use an auxilliary KF which will be populated using the macro function VALUE_OF_ROW_CHANGED()
VALUE_OF_ROW_CHANGED( X ; Y1 ; ... Yn ) returns 1 if the user has changed one or more key figure values in columns Y1 through Yn of row X in the current planning session since last pressing Enter. In the attributes of the row, enter Row Attributes as the data source
now if you write another macro that checks this auxilliary row and changes the KF you have mentioned
if there is no value it copies from the left cell
if there is a 1 it lets that value be as entered by the user
there is a recent discussion on the macro here
https://forums.sdn.sap.com/click.jspa?searchID=2090795&messageID=3272512
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.