Skip to Content
0
Former Member
Mar 03, 2009 at 10:55 PM

Want to error out EDI IDoc for order creation

178 Views

Hi,

I want to error out EDI Idoc for a certain condition in the userexit ZXVEDU07 or ZXVEDU06, but by this time the order has already been created so if I use

MESSAGE TYPE 'E' ID XXX... etc

then nothing happens, the IDoc doesnt error out instead I get the success message "Order number XXXXXXXX has been created'

I dont want to error out IDoc before order creation because I need the order number in the user exits ZXVEDU07 or ZXVEDU06 to update into a Z table and do some other processing. If this other processing fails then I want to error out the IDoc and delete the order.

How can I error out the IDoc. I can take care of deleting the order through code myself but my bigger problem is erroring out the IDoc

Thanks for reading.