Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement in VA02

Former Member
0 Kudos

Hello Experts.

I have a requirement

When a user changes quantity of a particular sales order ( In VA02 ) there is a change in net value.

So i need to display the difference in the net value in the  condition tab of header item inside pricing element with some condition type.

I have successfully calculated the difference in net value. Now I am facing problem in updating that calculated difference amount in pricing element of condition tab under header item.

I have used  BAPI_SALESORDER_CHANGE , SD_SALESDOCUMENT_CHANGE  but its not working for my requirement.

Can anyone advise how to solve

Thanks

With Regards

Rounak Ghodke

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 201830 - Calculation of the net price of an item to be aware about possibilities and how it behaves.

One idea is to use additional subtotal fields in pricing (see SAP Note 155012 - Further subtotal fields in pricing) and transfer to this fields the amount for NETWR. Use customer data elements with the option 'change document' and go to the log of modifications in the sales order item.

Maybe it works.

I hope this helps you

Regards

Eduardo

5 REPLIES 5

Former Member
0 Kudos

Use the User Exit MV45AFZZ and call the BAPI in the programee.

0 Kudos

Hi Sai Ranjan Das

I have used that Include only to calculate the difference now I am facing problem to display in condition tab can u advice me how can i display the calculated value in condition tab

With Regards

Rounak

0 Kudos

Rounak,

In the user Exit MV45AFZZ , USEREXIT_PRICING_PREPARE_TKOMP , put a break point and check the values in table XKOMV.It contains the Item wise pricing data .You can do the required manipulation here/for the table.

Hope it helps

Regards

kiran_k8
Active Contributor
0 Kudos

Rounak,

I am not aware if there is any BAPI through which you can get this done but why not create a custom routine in VOFM for the said Application Area and accordingly populate difference in the net value in the Condition tab (table control) for the corresponding Condition type.Ideally this should be the way.

K.Kiran.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

See SAP Note 201830 - Calculation of the net price of an item to be aware about possibilities and how it behaves.

One idea is to use additional subtotal fields in pricing (see SAP Note 155012 - Further subtotal fields in pricing) and transfer to this fields the amount for NETWR. Use customer data elements with the option 'change document' and go to the log of modifications in the sales order item.

Maybe it works.

I hope this helps you

Regards

Eduardo