SAP BLOG How to perform SUM of Characteristic values from lower level configuration

SAP Blog

Kayıtlı Üye
Katılım
22 Ara 2017
Mesajlar
1,925
Tepki puanı
7
Puanları
6
While setting up your variant configuration model if you come across a need to count the value of a Characteristic which is used in multiple level of configuration so how to count it ?

1.2-2.jpg


We can use built-in function $SUM_PARTS and create an object dependency type procedure to perform this counting. It will produce a sum of the values of a characteristic, across several configurable materials in a configuration structure.

Answer is below.

Let’s build a very small example to make it clearer. Here configurable material PC have 3 more configurable sub-assemblies, so the requirement is to add all the weights of these assemblies and write final weight at top level. As sub-assemblies are configurable for every customer order configuration for these will be different and so do the weight.

2-16.jpg


Parameters to be maintained and changes we may need to carry out.

Characteristic weight is present in class of each configurable material which will hold value presenting weight of that sub-assembly



4-14.jpg


Same characteristic will be present in class for top level

Create a procedure with below syntax and assign to top level material (My-COMPUTER) we created.

Allocate a procedure with the following source code to the BOM item:


$SELF.CHARACTERSTIC = $SUM_PARTS ($PARENT,CHARACTERSTIC)



$SELF.WEIGHT = $SUM_PARTS ($PARENT, WEIGHT)



5-21.jpg




6-15.jpg


So, everything is set now, run your simulation and see the effect.



Result:




8-10.jpg




7-12.jpg


Please post your comments and please do not post question in comment section. If you have doubts or need more details , please open a new thread in forum and you will get a reply from me or other forum members.

Thanks

Ritesh

Okumaya devam et...
 
Üst