cancel
Showing results for 
Search instead for 
Did you mean: 

Macro to copy KF values from one location to another.

Former Member
0 Kudos

Hi All,

I 'm, looking for a standard macro to peform the following function.

Macro to copy a key figure value from one specific location (1000) to another location (2000) for a specific material.

E.g.

Mat-X, Loc: 1000 , KF1 = 10 Tons --> Mat-X, Loc:2000, KF1 = 10 Tons

(Copy key figure KF1 to Loc 2000 from Loc1000 for Mat-X)

Thanks

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

Just to re-confirm again. This macro is required for SNP planning book.

And the keyfigure KF1 is an order series.

Thanks

Ravi

Former Member
0 Kudos

Hi Ravi,

Can you elaborate on this requiement to comprehend its necessity? It might help in generating alternate ideas.

regards,

biplab

former_member557161
Discoverer
0 Kudos

You may want to try using BAPI to read data out of LC for location / product/ atp cat and write it back to different loc/prod.

I813660
Advisor
Advisor
0 Kudos

Hello,

Use DP realingment functionality.

/SAPAPO/RLGCOPY.

In Create/Change table you choose the fields you want to restrict the copy.

In 'Individual key figures' you choose the key figures you want to realign.

In 'Maintain entries' make settings like 'Delete source', which you do not want as i believe you want to keep source location, you choose location source and destination, and product source and destination. In this case you can keep the same product as source and destination, only changing the locations. Copy factor will define that percentage of each bucket that will be copied. And in Copy logic, if you keep M then data in destination cvc will be overwritten by source values, but if you change to A, then values from source CVC will be added to the values already present in Destination cvcs.

Hope this could help you!.

Luiz Giani

Former Member
0 Kudos

Hi Ravi,

Instead of a macro you can use the copy functionality available at

Advanced Planning and Optimization --> Demand Planning --> Environment -> Data Administration --> /SAPAPO/TSCOPY - Copy/Version Management for the same.

Hope this helps.

Thanks

Mani

Former Member
0 Kudos

Hello,

In copy management(TSCOPY), we only have the selection condition to choose a speicifc Location Product. And it copies the data to a speicific key figure. But the requirement is to pass the data for a different Location for the same SKU.

Regards

Ravi