cancel
Showing results for 
Search instead for 
Did you mean: 

$SET_PRICING_FACTOR _ Addition

Former Member
0 Kudos

Dear all,

By using the syntax $SET_PRICING_FACTOR  i can able to Multiple the Price Variant key(Value) and Factor. I had a requirement to ADD the factor value to my Price variant key.

In General : My Variant key is : BP_COMP_SP  and  the price is 2500

                   My Factor is( No_of_qty in below code) : 8  if i write $SET_PRICING_FACTOR condition

i will get output 2500 * 8= 20000

$SET_PRICING_FACTOR($SELF, ZPRICE1, 'BP_COMP_SP',

$self.No_of_qty  ),

My Requirement is : i want to make the addition here.

2500+8 = 2508.

Many thanks,

Raj.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Raj,

I don't think your requirement is supported in the SAP standard. What you're trying to do is to add a unitless quantity (No_of_qty) to a quantity with the unit "currency" (e.g. € or $). Depending on the currency that you use, you would get different results (computed in the same currency). So I can't really imagine a business case where this is necessary.

Best regards,

Eric

former_member184627
Active Contributor
0 Kudos

Please inform if this issue is resolved.

Former Member
0 Kudos

Hi Senthil,

Thanks for the update.....

I tried it it is not worked. please let me know if any alternative.

Thanks,

Raj.     

former_member184627
Active Contributor
0 Kudos

Hi Raj

Could you please try the below ?

$SELF.ZPRICE1 =  'BP_COMP_SP',

$SELF.ZPRICE1 = $SELF.ZPRICE1 + $SELF .No_of_qty

or

$SELF.ZPRICE1 =  'BP_COMP_SP',

$SELF.ZPRICE1 = $SELF.ZPRICE1 + 8

Regards,

Senthilkumar SD

former_member184627
Active Contributor
0 Kudos

Hi Raj,

Try the below

$SELF.ZPRICE1 =  'BP_COMP_SP' + $SELF .No_of_qty

Regards,

Senthilkumar SD