Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Macros can Variables be populated by Row cell values?

I am trying to put a value from a Key figure value into a variable to use it in a calculation to populate a different key figure.

This does not seem to work for me.

I can only populate values by a popup box. eg

GET POPUP VALUE

LAYOUTVARIABLE_SET( 'X' ;

NUM_VALUES_INPUT( 'enter_percentage_value' ;

'CAPACITY_PERCENTAGE_TARGET' )

)

And then I can use a MANUALLY entered value, but I cannot populate a number from a key figure into the Variable.

I am actually trying to grab a value from the top SNP screen and use it in the bottom SNP screen.

Is this simply not possible? ie can VARIABLES only be set by a manual popup box?

Thanks!

J

Tags:
Former Member replied

Hi,

Use LAYOUTVARIABLE_SET to assign a value, and LAYOUTVAR_VALUE to recover it (ie. to a kf, popup or to a new value). LAYOUTVARIABLE would work for strings.

This would copy values from the "Delta" KF to the "Original forecast" by saving them first to the variable and then copying. Try something like this.

Thanks

J.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question