cancel
Showing results for 
Search instead for 
Did you mean: 

Re-trigger of pricing based on Ship-to partner change

Former Member
0 Kudos

Would the pricing conditions get re-triggerd automatically if the ship-to part is chaged on the sales order

1. If ship-to party is NOT part of the determination rules (access sequence) for the condition

2. 1. If ship-to party IS part of the determination rules (access sequence) for the condition

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Lakshmipathi,

Yes! maintained the price for SH in pricing condition and in item condition "Update" - > the value is reflecting correctly...  But, Is there any user exit or Abap work to  trigger the price "Automatically" when the ship to party is changed ?  (ie; when we change the ship to party and choose enter in a sale order, the price should changed Automatically.)

Is there a solution for this Issue??? plz guide.

Thanks,

Saravnan

MvW
Participant
0 Kudos

Just to give this question an answer:

1. In Program MV45AFZB use form userexit_new_pricing_vbap

    This controls, whenever a field has changed, if a new pricing is triggered, e.g.

    values from xvbak (actual) are checked versus yvbak (old)

    same thing for xvbap and yvbap

Some people might say, that there is xvbpa and yvbpa which contain all role-specific information, but yvbpa is not filled at any time, for example if you change SH on overview screen.

In this userexit you can define a static variable that saves your "old" ship-to-party. Then you can check against actual SH via kuwev-kunnr. Looks like this:

STATICS ykuwev_kunnr TYPE kunwe.

   IF ykuwev_kunnr NE kuwev-kunnr AND kuwev-kunnr IS NOT INITIAL.

     new_pricing = 'C'. "or 'B' for completely new pricing

     ykuwev_kunnr = kuwev-kunnr.

   ENDIF.



Lakshmipathi
Active Contributor
0 Kudos

In normal circumstances, prices will be determined in the sale order based on Sold To Party and even if you change manually the Ship To Party in Sale Order, price will not get changed, though system will give a message that new pricing is carried out. Only tax will get changed.

If you want pricing based on your Ship To Party, then you need to maintain the price for Ship To Party in pricing condition.

thanks

G. Lakshmipathi

Former Member
0 Kudos

The order will reflect a message that "New Pricing was carried out" if a value is changed that will cause the event. If this message doesn't appear, then it wasn't re-triggered. The user has to enter the Conditions tab and press Update and Carry out new pricing manually.

The pricing does not get re-triggered if the Ship to partner is changed regardless if it is part of the access sequence or not. The only value that forces an price re-trigger is the sold to partner. All other values (including ship to) do not force a re-trigger. Custom code must be applied to force the event.