cancel
Showing results for 
Search instead for 
Did you mean: 

How to set attribute quantity of half a day (0.50) via product rule or script

dominic-boeke
Discoverer
0 Kudos
235

Dear community,

I tried to define an attribute quantity of 0.5 via rule or script, but I was not able to archive this. We are using SAP CPQ Quote 1.

I tried the following.

Set quantity via product rule:

Condition // [EQ](<*VALUECODE(Available Sales Packages)*>,JobShopPackageServices)

Action: <* SetAtvQty(IMPL_US_PostprocessorInhouse:US_Postprocessor Inhouse, 0.5 ) *>

--> Result: Attribute quantity was 0.00

Set quantity via product script:

SP = Product.Attributes.GetByName('Available Sales Packages').Values

if SP == "Job Shop Package=:

Product.Attributes.GetByName('IMPL_US_PostprocessorInhouse').Quantity = 0.50

else:

Product.Attributes.GetByName('IMPL_US_PostprocessorInhouse').Quantity = 1.00


Set quantity in attribute:

Formula for Calculating Attribute Quantity just insert 0.50
Nothing worked, did I miss something?Thanks a lot for the helpDominic

Accepted Solutions (0)

Answers (0)