how to stop an IDOC from being created through user exit?

Question: I'm checking for certain values in my user exit during my IDOC creation FM. If those values don't validate I don't want to create the IDOC.

How do I stop the IDOC from being created while I'm in my user exit?

TIA,
robert

Answer:
dont say process immediately in your partner profile.

Answer:
well, i need to make a decision in the user exit based on some criteria whether to send the IDOC over.

Answer:
how abot erroring the idoc ?

Answer:
how would I error the idoc creation?

Also, the criteria will be passed in my first segment, E1LFA1M.

I had been deleting the lines of my idoc_data table so no communication IDOCs would be created.

However, since this is my first segment, how do I delete the idoc_data lines from my next 1 or 2 possible segments to make sure those don't get passed without the general information?

Thanks,
robert.
Copyright ?2007 - 2008 www.jt77.com