Skip to Content
Former Member
Jul 31, 2009 at 02:47 PM

In update task & Express document Update was terminated


Hi all

Need help!

Requirement: When i do confirmation through CO11N i have to do GI through a BADI.

Solution: I have written a wrapper Update module(internally has /AFS/BAPI_GOODSMVT_CREATE) with Start delayed and called that module(in update task) in the method MB_DOCUMENT_BEFORE_UPDATE of the definition MB_DOCUMENT_BADI.

It works fine when every thing is correct, but if GI fails its still confirms the confimation and "Express document Update was terminated" pops up when i push the back button. I have written a abort statement in the update module if goods movement fails. When i check SM13 it shows the reason for erroring out. But my requirement is to stop the complete transaction if GI fails and put the error message at the bottom of screen(CO11N)

How can i do this?

Appreciate any suggestions.