‎2007 Apr 26 5:42 AM
Hi..
In <b>mm02</b>, I want to change <b>basic data 1 , Prod.hierarc field</b>. Once changed during saving its should get updated in the <b>Sales : sales org. 2, Product hierary</b>.
I used the user exit on save for this. However the issue is when i save the first time it doesnt get saved, but if i go to mm02 and save again without changing anything it gets saved.
The include used is <b>ZXMG0U02</b>. I used the statement,
<b>move wmara-PRDHA to wmvke-PRODH.</b> and also a statement to modify the database table mvke.
I dont think the move statement is working, as the <b>wmvke-PRODH</b> changes to the old value as soon as i exit the userexit.
Can anyone suggest another way to get this done? Thanks in advance.
Keshi
Message was edited by:
Keshini Weerasuriya
Message was edited by:
Keshini Weerasuriya
‎2007 Apr 26 6:31 AM
Hi Keshini,
Can u try with write to statement please?
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar.
‎2007 Apr 26 6:14 AM
after that statement , wats the values of wmvke-PRODH ? I think its changing but not updating?
Regards
Prabhu
‎2007 Apr 26 6:22 AM
Thanks for the reply.
Ya it does change.... But as soon as we go out of the user exit that changed value is replaced with the older value.
Thanks
Keshi
‎2007 Apr 26 6:31 AM
Hi Keshini,
Can u try with write to statement please?
Hope this helps you. Reply for queries, shall post the updates.
Regards.
Kumar.
‎2007 Apr 26 6:36 AM
Hi
Just for small info.
Usually to update the standard tables,you have to use BAPI function module.
search for BAPI_SALES* function modules.
as you said value is changing and not updating..
once you call BAPI function module and use BAPI commit fm.
Correct me incase if iam wrong
Thanks