Application Development and Automation 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: 
Read only

Issue in move statement

Former Member
0 Likes
689

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
654

Hi Keshini,

Can u try with write to statement please?

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar.

4 REPLIES 4
Read only

Former Member
0 Likes
654

after that statement , wats the values of wmvke-PRODH ? I think its changing but not updating?

Regards

Prabhu

Read only

0 Likes
654

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

Read only

Former Member
0 Likes
655

Hi Keshini,

Can u try with write to statement please?

Hope this helps you. Reply for queries, shall post the updates.

Regards.

Kumar.

Read only

Former Member
0 Likes
654

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