Quantcast
Channel: SCN : Blog List - All Communities
Viewing all articles
Browse latest Browse all 2548

Built in Function $COUNT_PARTS with an example model

$
0
0

Hello Friends,

 

In this blog, I am going to share an example model on how to use Built in Function $COUNT_PARTS.

 

I used LAPTOP as class and few characteristics associated with it.

 

Before getting started, please read below SAP help documentation.


Built-In Function $COUNT_PARTS - Variant Configuration (LO-VC) - SAP Library

 

Steps to be followed:

1. Create Configurable Materials

          i) LAPTOP,

          ii) LP_DUMMY (this is dummy material)

 

2. Create Variant Classes i) LAPTOP, ii) LP_DMY and assign required characteristics.

          i) LAPTOP class

class.png

        ii) DUMMY Class (only with QUANTITY Characteristic to assign the count parts value)

class1.png

 

3. Create configuration profile for both materials.

          i) LAPTOP material configuration profile.

L1.png

 

          ii) DUMMY material configuration profile

L2.png


     Check Multi-level BoM explosion for both config. Profiles.


4. Maintain BoM for Material LAPTOP.

L3.png

     At the end of the BoM assign the Dummy material.

 

5. Write Procedure for the $COUNT_PARTS at configuration profile level of Dummy material.

     I used T-code - PMEVC

L4.png

 

6. Write Constraint at Main material configuration profile to transfer the value from dummy material to Main material.

L5.png

OBJECTS: HEAD IS_A (300)LAPTOP,

         DUMMY IS_A (300)LP_DMY

 

RESTRICTIONS:

        HEAD.L_QUANTITY = DUMMY.L_QUANTITY

 

     Make sure that classes and dependencies are in release status before simulation.


7. Simulation for LAPTOP

     Test the configuration Model by entering the characteristics values.

     L7.png

    Now Component Quantity value is empty.


    Click on “Result” button highlighted above to simulate the BoM for the given combination.


L8.png

     BoM got exploded.


     Click on Characteristics button to check the QUANTITY char value.

L9.png

        Now, QUANTITY char updated with Count of the BoM materials.


In the above example after checking the result,

COUNT_PARTS procedure will check Number of Materials in the resultant BoM and assigns it to dummy material Quantity characteristic.


Constraint at Main material will fetch the value from dummy material qty char and assigns it to Main material Quantity characteristic.


This will be help full in scenarios, where requirement is to count the resultant Bill of materials components.



Viewing all articles
Browse latest Browse all 2548

Trending Articles



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