on 11-19-2012 6:06 AM
Hello Experts,
I have a requirement to fix a cell using a macro by comparing the two key figures A and B and locking the cell of Key Figure C.For example the macro will compare the Key figure A and B and if the values of the Key figure A is greater than Key figure B then the macro should lock the cell of the Key figure C.I have defined the macro as below
Lock
Lock : ( 16 Iterations : M 08.2012; M 11.2013 )
IF
KF A > KF B
Cell: KF A ( M 08.2012 )
>
Cell: KF B ( M 08.2012 )
New action box
FIX_CALC(
Cell: KF C ( M 08.2012 )
)
ENDIF
for the Key figure C I have selected the properties of the Key figure (Data source: Value or Row/Column Attributes) as Z Row Attributes.
But I am unable to lock the cell, I don't know if this is the function which I can use to lock the cell or is there any function I could use to achieve the desired result.
If the above mentioned function FIX_CALC is correct then please let me know the mistake in macro definition.
Thank you,
Venkata Bolisetty
Hi,
if by locking you mean preventing input from users, try CELL_INPUT( 0 ), which sets read-only mode for the cell.
Syntax is :
Row element (row attributes) = CELL_INPUT( 0 )
or
Cell element (row attributes) = CELL_INPUT( 0 )
etc...
thanks,
J.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this two posts for extra information about fixing using a macro:
http://scn.sap.com/thread/729755
http://scn.sap.com/thread/3246761
regards,
J.
User | Count |
---|---|
8 | |
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.