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: 

Related to MV45AFZZ

Former Member
0 Kudos

Hi,

My requirement is : when user chages the price or quantity or both in a sales order in va02 , I need to send mail .

Now, Am able to capture the old and new Quantities in yvbap and xvbap and

Am able to capture the changed price in xkomv-kbetr.

But am not able to capture the old price ( means .. value of xkomv-kbetr before change )

I have stuckup with this issue.

Please help me in this issue.

Thanks,

With best regards,

Sravan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Check the sturctures XVBAP old value and also VBAP for new value for the field NETPR.

If not then select the table VBAP with NETP for the item and you get the netprice.

Regards

Shiva

7 REPLIES 7

Former Member
0 Kudos

Hi

Check the sturctures XVBAP old value and also VBAP for new value for the field NETPR.

If not then select the table VBAP with NETP for the item and you get the netprice.

Regards

Shiva

0 Kudos

Hi siva,

Thanks for ur reply.

But I mentioned in my question that I need the XKOMV-KBETR field old value, not the Net Price.

I have alredy tried with XVBAP and YVBAP as mentioned in my question.

Hope now u got my issue.

Thanks,

sravan.

Former Member
0 Kudos

Waiting for responces ..

Former Member
0 Kudos

In debug am able see the komv-kbetr value when sales order price of line item is changed ,

but when I am trying to use the same in my use exit it is giving error by saying that komv-kbetr not exists.

What could be the reason?

Thanks,

sravan.

0 Kudos

Hi,

One solution to your problem is exporting the table structure "XKOMV" in the routine "USEREXIT_READ_DOCUMENT" of user exit "MV45AFZZ".

data : it_reg type standard table of xkomv.
  it_reg = xkomv[].
  export it_reg to memory id 'ZZID'.

Import the memory id of xkomv on the point where you want to do the checking. Here you will get the changed values in XKOMV and old values in memory ID "ZZID".

Regards

Vinod

0 Kudos

HI

My Problem is not with XKOMV.

Thanks,

Sravan.

Former Member
0 Kudos

Resolved by myself.

I got the old price value from konv using the select query.

Thanks,

sravan.