04-14-2008 7:21 PM
Hi!
When i try to run from a User Exit the function module
MB_CREATE_GOODS_MOVEMENT, the following erros message appears:
====
The function module MB_CREATE_GOODS_MOVEMENT cannot be executed
Message no. M7 299
Diagnosis
The function module MB_CREATE_GOODS_MOVEMENT is called up for the
second time. After it was called up the first time, the function
module MB_POST_GOODS_MOVEMENT was called, but a COMMIT WORK was not
carried out in the calling program.
As running the two function modules again would result in the database
being incorrectly updated, processing is terminated. System Response
Procedure Please ensure that a COMMIT WORK is set after you call up
the function module MB_POST_GOODS_MOVEMENT.
====
The commit work is executed after de function module is called. Any
ideas?
04-14-2008 7:26 PM
do a 'commit work', just before u call the function module.
but make sure, this is not gonna affect what u are trying to do..
if the system had already called that FM, why you are calling it again in the user exit...?