Quantcast
Channel: SCN : Unanswered Discussions - Supply Chain Management (SAP SCM)
Viewing all articles
Browse latest Browse all 5579

Macro to compare results at different aggregation level

$
0
0

Hello Team

 

We have a KF (Planned Production) and another KF (Revised Allocation).

We make changes in the KF Revised Allocation at each 9ALOCNO & 9AMATNR level.

But we want that after performing the changes, a macro should check the cumulative allocation for each 9AMATNR value againt its production.

If the total Production for each 9MATNR < total allocation of all 9ALOCNOs for that 9MATNR , it should change the cell color and also should not save the changed value. We faced two issues -

1) How to build a macro to compare  Production for each 9MATNR with total allocation of all 9ALOCNOs for that 9MATNR?

2) How can we prevent saving of data based on this condition?

 

The macro is built as -

Macro_1.PNG

 

We tried with the "aggregation level" functionality at macro header level but it does not work as we need comparision of result at different aggregation levels.

Macro_2.PNG

 

Please support


Viewing all articles
Browse latest Browse all 5579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>