Skip to Content
Mar 01, 2021 at 07:09 AM

Auto price update for sub item in sales order

101 Views Last edit Mar 01, 2021 at 09:38 AM 2 rev

Hi Experts,

We have two custom fields (A and B) in Additional data B of sales order item. When user enter field A at main item, field B will be automatically populated, also both A and B will be copied to all the sub items.

For sub item, there is a price condition Z001 which is determined based on field B. The problem is - Z001 can't be automatically carried out after entering field A at main item. We have to press the update button at sub item to update Z001 price. Is there any way to implement auto price update without pressing update button?

I tried to set new_pricing to 'B' in user exit USEREXIT_NEW_PRICING_VBAP of program MV45AFZB, but the user exit is only triggered for main item, Z001 is still not updated at sub item.

Please kindly give your suggestion. Any suggestion will be appreciated.