cancel
Showing results for 
Search instead for 
Did you mean: 

Variant Pricing Syntax error

Former Member
0 Kudos

Hi Experts

This is with ref to Variant Pricing

I have created a variant class Printer which has two Characteristics

Material : 729 ( KMAT mat type created ) and class Printer ( 300) assigned)

Name of Class : Printer .

Characteristics

Color          Multiple Value ............White  / Black

Type          Multiple Value............Dot Matrix / Laser

Price ...........Var condition ............ref to SDCOM  VKOND

Now my requirement is

I need to determine Price based on combination of Color and Type ....ie White + Dot Matrix = Rs 500 and Black + Dot Matrix = 550 .

In Characteristic Value of Price ( Var cond ) i maintained C1T1, C2T1 ( White + Dot Matrix, Black + Dot Matrix )

In Char Value of Color ,...I am writing Procedure :

$self.Price = C1T1 if $self.COLOR='White'.............no syntax error and it determines VAR COND value on Color only

But when I am trying to code actual requirement , it's giving Parent / root and syntax error

$self.Price = C1T1 if $self.COLOR='White' and $self.TYPE='Dot Matrix'


Plz help basically i want to set Price based on Multiple Characteristic Value Combination


Regards


Rohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rohit,

Please provide the screenshot of the error in dependency editor. You syntax seems to be fine here.

Awaiting your reply.

Note: I have requested moderators to move your query to forum ''.

Regards

SD

Former Member
0 Kudos

Hi Samier

PFA screen shot for same

Regards

Rohit

Former Member
0 Kudos

Hi Rohit,

Thanks for the screenshots.

Please note that Characteristic RAM is a numerical characteristic so you need not write $SELF.RAM = '64', instead $SELF.RAM = 64 will be enough.

Just check with what I have suggested, it might resolve the issue.

Moreover, assign the Procedure at Configuration profile level, it seems you are assigning at Characteristic level.

Regards

SD

Message was edited by: Samier Danish

Former Member
0 Kudos

Hi Samier

I removed  commas from 64 and it worked at characteristics level . Thanks .

But your second point , assign the Procedure at Configuration profile level.... I deleted Procedure at Characteristics level and assign at Profile level ......Its Not working  when i am entering Char values at time of Sales Order creation .

Plz find screen shots for your reference .


Regards


Rohit

Former Member
0 Kudos

Hi Rohit,

I hope you have maintained the condition records. Please paste the screenshots of:

1. The condition records maintained for VA00 for C1R1 & C2R1.

2. The sales order in which pricing is not getting picked.

Awaiting your reply in this regard.

Regards

SD

Former Member
0 Kudos

Hi Samier

PFA same .

Former Member
0 Kudos

Hi Rohit,

Are you sure that you have written syntax for 'White color'? I doubt if 'white color' belongs to '0001' or '0002'.

Kindly check and revert back.

Regards

SD

Former Member
0 Kudos

Hi Samier

As i checked dependency at Config Profile level , it was locked , I released the same and now it's calculating price correctly

Thanks Samier for your help

Want to close the thread

regards

rohit

Former Member
0 Kudos

Hi Rohit,

Good to hear that!!!

Regards

SD

Answers (0)