cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation Mode not working when Transferring BOM Quantity Values to Superior Item

former_member196521
Active Participant
0 Kudos

Hello All,

I have created the following characteristic and assigned the same to class

The character has the following values

Bills of material have been created for the superior configurable item.

The object dependency has been written in cu03 transaction code to transfer the quantity in the bills of material to the characteristic values of the superior item

The object dependency code has been assigned to the configuration profile

However when I check the  result in simulation mode. The value 3 is not coming automatically which needs to be set in the characteristic value of the superior item (summation of the qty of the bills of material created in cs03)

Please advice if I am missing any configurations.

Kind Regards

Atul

Accepted Solutions (1)

Accepted Solutions (1)

Flavio
Active Contributor
0 Kudos

Hello Atul,

my understanding reading the SAP Help LO-VC documentation is that a dummy material must be created and be part of the BOM components.

The characteristic QUANTITY shall be assigned to the dummy material.

The procedure using $COUNT_PARTS shall be allocated to the BOM item.

Here the extract for the doc:

Hope this could be of any help.

Thanks and regards,

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

I had some issues in changing the BOM hence I created the following

Main Material is PC6

Dummy Material is PC7 which is also configurable

Attaching the screen shot of the BOM

The object dependency is assigned to the BOM

The characteristic is assigned to the dummy material using the configurable profile

The main material which is PC6 is also assigned to the configurable profile in cu42 transaction code

However no luck in simulation. The value 3 should appear automatically in the characteristic value if the superior configurable material. Please advice further.

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

well, I have to say I never used this built-in function before, but according to the doc it seems it should work after the BOM explosion.Could you please try to get the configuration result (BOM) and see if the characteristic gets populated?

Thanks and good luck!

Flavio

ravi_kumar204
Active Participant
0 Kudos

Dear Atul,

 

$SELF is characteristic QUANTITY of the BOM item that has the procedure. $COUNT_PARTS adds together the quantities of all components of the BOM of superior material $PARENT, to infer a value for this characteristic.


You use a constraint to transfer this value to the superior characteristic.

As per the standard functionality, you have to use a constraint to tranfer the quantity to the superior material characteristic.

You use a constraint to transfer this value to the superior characteristic.

in the above diagram also there are two quantity chars and value is transferred through Constraint

Regards

Ravikumar B

former_member196521
Active Participant
0 Kudos

Hi Flavio,

Thank you for your response when you say

.Could you please try to get the configuration result (BOM) and see if the characteristic gets populated?- Could you please elaborate further as I have already checked the simulation for my main configurable material.


Kind Regards

Atul

former_member196521
Active Participant
0 Kudos

Dear Ravi,

Thanks for the update. Any idea how to write the logic for the  constraint and where the same needs to be assigned.

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Dear Atul,

Use below logic for constraint.

OBJECTS : MAIN IS_A (300)PC6 ,

                 DUMMY IS_A (300)PC7

RESTRICTIONS:

MAIN.QUANTITY = DUMMY.QUANTITY.

and Constraint needs to be assigned to the the main material.

Hope this will work for you.

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Dear Ravi,

Thank you for helping out. I am creating the dependency net.Screen shot attached below.

When I try to assign the object dependency to the dependency net the system throws the below error. Please advice further

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Hi Atul,

You have to create Constraints. Try to create constraint not procedure.

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Dear Ravi,

Thank you I have now created my constraint, however getting a syntax error. Can you please advice further.

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

try this

OBJECTS: MAIN IS_A (300)PC6 ,

                 DUMMY IS_A (300)PC7

RESTRICTIONS:

MAIN.QUANTITY = DUMMY.QUANTITY

regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Dear Ravi,

No luck still

'

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Hi Atul,

I have created a Blog with an example for $COUNT_PARTS, please refer.

Hope it will help you to achieve the desired functionality.

Thanks,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Dear Ravi,

I could recreate the scenario. Thank you for going all out and helping out. Appreciate all your efforts.

Kind Regards

Atul

Answers (1)

Answers (1)

ravi_kumar204
Active Participant
0 Kudos

hi atul

PC6 & PC7 are 300 variant Classes. 

please check what are the 300 classes you are using and include in the constraint.

please refer: Constraints - Variant Configuration (LO-VC) - SAP Library

you will get most of the details in SAP Help documentation for VC. Variant Configuration (LO-VC) - SAP Library

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Hi Ravi,

Thanks I went through your blog and thanks for sharing it. When I check my PC6 and PC7 Materials they have the variant classes only assigned to it.

However when I write the dependency code in my constraint net

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Hi Atul,

As per your screen shot, you are trying to check the errors without completing the constraint source code fully.

Below is the Constrain code from Blog. In your screen shot it is only one line. pls check

OBJECTS: HEAD IS_A (300)LAPTOP,

         DUMMY IS_A (300)LP_DMY

RESTRICTIONS:

        HEAD.L_QUANTITY = DUMMY.L_QUANTITY

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Hi Ravi,

I changed the characteristic to Numeric and created a new one which is Qunatity1

I followed your suggestions to write the constraint net however still no luck

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Hi atul,

What are your 300 classes for the materials?

in blog example - two classes


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

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Hi Ravi,

For the main Material the class created is PC5

For the dummy material the class created is PC6. The numeric characteristic is assigned to the dummy material.

Now I am writing the constraint net code the error for the main material has gone but it is throwing an error for the dummy material now.

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Dear Atul,

Is your PC6 class is in release status, please check.

former_member196521
Active Participant
0 Kudos

Dear Ravi,

The status of the class in released in cl02 transaction code. I checked in transaction code cu42 where this class is assigned to the material that is also in release mode.

Kind Regards

Atul

ravi_kumar204
Active Participant
0 Kudos

Dear Atul,

In the blog, I have mentioned few steps, 1 - 6, please re-check/compare your model at each step.

Regards,

Ravikumar B

former_member196521
Active Participant
0 Kudos

Dear Ravi,

I was finally able to save my constraint. I had not included the characteristic qty for my main class which was PC5. I had only included it for the dummy class PL6 Once that was done. I could save the constraint.

I assigned this dependency to my main material PC6 in cu42 transaction code

To the dummy material PC7 in cu42 transaction code I assigned the dependency code which starts from $Self.Quantity1

When I click on the result button it should add the qtys in the BOM which should be 6.

Next I got to cu50 and click on result button

I am not abl to get the qty 6, Please advice further

Kind Regards

Atul