cancel
Showing results for 
Search instead for 
Did you mean: 

SD Variant Configuration - characteristic value computation

Former Member
0 Kudos

Hi Everyone

Greetings from Vinod

i am creating a variant material which has 3 characteristics. out of the 3 characteristics, 2 are inputed by the user and the third characteristic needs to be populated with the difference of the 2 chatacteristic values that we have entered before. is there a standard setting that we have to maintain, or should we do a custom development on the same. the third characteristic value which is computed based on the difference of the precious two characteristic will then derive pricing of the variant material. please throw some suggestions and inputs in this discussion.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vinod

For Characteristic value calcualtion you should use dependency (t.cod Cu01) and maintain formua there in for getting char value.

Maintain char as single value. and resrictions on class type 001 and 300.

You can write code in dependency editor depending on value of characteristics ,better use procedure option for generating dependency.

Remember the processing of this char should happen only after the characters used in formula. also remember to clear values at end of code else old values may get picked up.

Regards

Mandar

Answers (2)

Answers (2)

sebastian_stein
Explorer
0 Kudos

Hi,

calculating values of characteristics is done with so-called dependencies.

In a dependency you can define the rule how a value should be calculated.

You have to create a class of class type 300 and assign your characteristics to this class.

Assign the class to a material of material type "Configurable Materials".

Open the material with transaction PMEVC (Modeling Environment for Variant Configuration).

There you maintain a dependency of type procedure.

The source code may look like this for your example:

$SELF.CHARACTERISTIC_3 = CHARACTERISTICS_1 - CHARACTERISTIC_2

You can find details for variant configuration on help.sap.com:

http://help.sap.com

-> SAP ERP

-> SAP ERP Central Component

-> Logistics

-> Logistics - General

-> Variant Configuration (LO-VC)

Details on transaction PMEVC (Modeling Environment for Variant Configuration):

http://help.sap.com

-> SAP ERP

-> SAP ERP Central Component

-> Logistics

-> Logistics - General

-> Variant Configuration (LO-VC)

-> Modeling Environment for Variant Configuration

Information on dependencies:

http://help.sap.com

-> SAP ERP

-> SAP ERP Central Component

-> Logistics

-> Logistics - General

-> Variant Configuration (LO-VC)

-> Dependencies

and

-> Dependency Syntax: General Rules

Best regards,

Sebastian

Former Member
0 Kudos

Thanks a lot sebastian

your inputs are really helpful . could you also suggest what place we need to write this dependency? should i write it at the characteristic level of characteristic 3?

when you mention characteristic1 i should mention the exact "chatacteristic" as how it is named in the system right?

If i maintain a characteristic as date format and i need the calendar popped up when i press the F4 on the characteristic value screen,how do i go about accomplishing this requirement? please advice

we tried using the reference table name and field name on the characterstic, however it did not work. kindly throw some light on this requirement.

sebastian_stein
Explorer
0 Kudos

Hi,

yes you need to use the exact characteristic name in the code. So if your characteristic is called NUMBER_XYZ you have to name it exactly like this in the code.

You can assign the procedure to the characteristic that triggers the procedure (in my example CHARACTERISTIC_1 or CHARACTERISTC_2) or you can assign it to the configuration profile.

Assigning it the configuration profile is recommended (quote from help.sap.com: "It is easier to assign procedures to the configuration profile, so that they are all in one place.").

I used transaction PMEVC to assign the procedure to the configuration profile of the material.

For information on the configuration profile see:

http://help.sap.com

-> SAP ERP

-> SAP ERP Central Component

-> Logistics

-> Logistics - General

-> Variant Configuration (LO-VC)

-> The Configuration Profile

How to create/maintain a configuration profile with PMEVC:

http://help.sap.com

-> SAP ERP

-> SAP ERP Central Component

-> Logistics

-> Logistics - General

-> Variant Configuration (LO-VC)

-> Modeling Environment for Variant Configuration

-> Modeling

-> Configuration Profile

Concerning your questions about date-characteristic: as far as I know there is no date-picker as F4-help (at least not out of the box). Maybe you should post a separate message for this question.

Best regards,

Sebastian

Former Member
0 Kudos

hi,

Characteristic:

Characteristic is used to define the features of a configurable material. To enable to use characteristics to configure a material, assign the material to a class of class type 300. The customer can choose from among different options for each characteristic.

u2022 Characteristics describe the properties of objects. The values of a characteristic specify these properties.

u2022 Value assignment to characteristic may be single value or multiple value with required entry or restrict able entry.

u2022 In characteristic it is also possible to use table name and its field name in order to change the Object quantity or values. I.e. BOM item quantity or Operation time, which is known as ?reference characteristic?.

u2022 In Restriction screen allowed Class types are entered i.e. for what are the class this characteristic may used. In general for Variant configuration class 200 and 300 are used.

u2022 It is also possible to assign Dependency to characteristic values maintained in Characteristic.

so your requriment comes under development.

regards

balajia

Former Member
0 Kudos

Thanks a lot Balajia. could you also mention the enhancement spot if possible?