04-22-2010 1:45 PM
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.
04-22-2010 2:11 PM
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
04-22-2010 2:11 PM
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
04-22-2010 2:22 PM
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.
04-22-2010 2:35 PM
04-22-2010 3:47 PM
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.
04-23-2010 8:19 AM
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
04-23-2010 8:46 AM
04-23-2010 8:48 AM
Resolved by myself.
I got the old price value from konv using the select query.
Thanks,
sravan.