cancel
Showing results for 
Search instead for 
Did you mean: 

Inference of weight on superior material.

0 Kudos

Hi

I would like to Infer weight on a superior material. the solution i'm working on is described here:

https://help.sap.com/saphelp_crm700_ehp02/helpdata/en/0f/9b58b3752611d183670000e8a49aad/content.htm?...

The dummy item is updated with weight so that works.

But it ends with this "You use a constraint to transfer this value to the superior material."

This I don't know how to do, has anyone else tried this?

Accepted Solutions (1)

Accepted Solutions (1)

a__engfehr
Active Participant
0 Kudos

Hello anders.jensen.win , yes the link you provided is a very common method for determining the weight of a configured product.

Start by familiarizing yourself with constraints and constraint nets. The way they are written differs from procedures and other object dependencies. View the links below, especially the 'part_of' syntax.

Next, I'll assume you have the weight stored in a weight characteristic (ie. WeightCstic) assigned to parent and child classes and on a dummy material in your BOM (say item number 9000). Using the part_of syntax you can specify the location of that material and the constraint can read the stored weight value from there.

Example

_______________

OBJECTS:

ParentWeight IS_A (300)NameOfYourClass,

DummyMaterial IS_Object (Material)(300) (NR = 'Dummy').

CONDITION:

(optional, could add some check here)

RESTRICTIONS:

ParentWeight.WeightCstic = DummyMaterial.WeightCstic

IF PART_OF (DummyMaterial, ParentWeight, '9000').

INFERENCES

ParentWeight.WeightCstic .

____________________________________________

There are lots of other ways to do this. It is also common to use only classes in the object section, use a shared "weight" class on the materials and then duplicate the procedures, constraints, and characteristics throughout a multi-level configurable superbom.

https://help.sap.com/doc/saphelp_crm60/6.0.0.14/en-US/92/58c312417011d189ec0000e81ddfac/frameset.htm

https://help.sap.com/doc/saphelp_crm60/6.0.0.14/en-US/f2/946740eded960ae10000000a155106/frameset.htm

https://blogs.sap.com/2019/06/06/sap-variant-configuration-constraint-programs/

0 Kudos

That worked Thank you very much!

Now the problem is how to get the standard material included in this sum, but I overlooked

"You can only use this function of a procedure for an object that can be configured interactively on multiple levels"

So I'm now on the lookout for a workaround. Ideas and tips appreciated. 🙂

a__engfehr
Active Participant
0 Kudos

Hello anders.jensen.win, adding standard material weights to this calculation can be done quite simply by reading a reference characteristic MARA NTGEW, using a procedure assigned to the standard material in the BOM.

If you want to take it a step further you can write one common procedure and use it on all standard materials. That common procedure can use a variant table linked to the MARA table. You then simply read STPO IDNRK (the BOM component material number) and use it as a lookup to MARA MATNR in the variant table, with MARA NTGEW as the output. Assign the MARA NTGEW to your weight characteristic that gets rolled up using the constraint I demonstrated above.

Answers (0)