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

using BAPI_GOODSMVT_CREATE inside user exit MB_CF001

Former Member
0 Likes
1,324

Hi,

when i use BAPI_GOODSMVT_CREATE inside MB_CF001

it gives an error 'Plant data for Material is locked by User (myself) "'

Is there any possible way to overcome this or any alternate way to create goods movement inside user exit MB_CF001

5 REPLIES 5
Read only

Former Member
0 Likes
770

Hi

Do you want to create a new good movement while creating another ones for the same material?

I don't know it's possible, u could unlocked the material before creating the movement but I don't believe it's good idea.

U can try to schedule a job for a program will run the BAPI.

Max

Read only

Former Member
0 Likes
770

Hi,

We have been using it for the same but by using the addition backgroud task. i.e.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE' IN BACKGROUND TASK

It's working perfectly for us.

Regards

Raju Chitale

Read only

0 Likes
770

Is that in ECC 6.0

Read only

0 Likes
770

its not happening even if i say IN BACKGROUND TASK.

Any way to debug this

Read only

0 Likes
770

Hi,

I am on 4.6C.

You can debug it. But instead of using 'in background task' use the addition Destination 'NONE' .Go into normal debug mode with /h & menu option Settings---->Update Debugging it will display update debugging has been switched on. Please note that it's a toggle hence observe the message carefully.Keep onskipping till you come to the FM MB_POST_DOCUMENT.From this FM that exit gets triggered.

I hope this helps,

Regards

Raju Chitale