cancel
Showing results for 
Search instead for 
Did you mean: 

Macro - 'VECTOR' function

former_member566355
Participant
0 Kudos

Hi,

I am using vector function but it is not working. Following is the sysntax which is written to copy values of one KF into other KF using vector.

step1 -

vec_layoutvariable_set( 'vec1' ; row : KF1 (frm M 05.2012))

step 2 -

row : KF2 (frm M 05.2012) = vec_layoutvariable( 'vec1)

The values from KF1 are not getting copied to KF2 when I run the macro in interactive planning.

I tried it even with 'Area' instead of 'Row' but it is still not working.

Thanks,

RS

Accepted Solutions (0)

Answers (1)

Answers (1)

rajkj
Active Contributor
0 Kudos

Hi RS,


Pl check the following templates.

Thanks,

Rajesh

former_member566355
Participant
0 Kudos

Hi Rajesh,

I see that you have used a single KF in the code. Where as I would like to copy values of KF1 into KF2.

Could you please clarify what would be the outcome in the template syntax ? 

Regards,

RS

rajkj
Active Contributor
0 Kudos

RS,

The first screenshot shows how to initialize a vector variable with area of KF1 (proportional factor). The second shows how to assign the vector to an area of KF1.

Please note that you can use any key figure in the vector assignment for which key figure data type can support the vector values.

Thx,

Rajesh