cancel
Showing results for 
Search instead for 
Did you mean: 

Update pricing on Partner change

Former Member
0 Kudos

Hi,

I want to update the conditions in the conditions tab, when a partner is changed in business partner tab.

I have put the code

if vbpa-kunnr NE *vbpa-kunnr

NEW_PRICING = 'C'

endif. in USEREXIT_NEW_PRICING_VBKD.

But vbpa and *vbpa are always empty, so i replaced that with code

when XVBPA-UPDKZ = 'U', new_pricing = 'C',

but still no success as this routine does not get called when you go to conditions tab.

It gets called when i manualy click the "update" button on bottom of conditions tab. I want this to be automatically triggered and not by clicking the button.

Any idea if this is possible ?? thanks in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

OK. I thought 'B' might server the purpose, as it refers to carry out new pricing.

As you have already tried that, I can understand the trail & errors you might be going through.

Hope I could have answered, which met your requirement.

Regards,

Rajesh Banka

Former Member
0 Kudos

<b>NEW_PRICING = 'C'</b>. I suppose, this should be the error point. For New Pricing, Pricing Type is 'B'. Ask the Abaper to modify the code & test the scenario.

Regards,

Rajesh Banka

reward points if helpful.

Former Member
0 Kudos

No we want pricing type 'C' or 'X' to take effect. Even we have tried 'B'.