Skip to Content
author's profile photo Former Member
Former Member

Outbound Purchase order user exit EXIT_SAPLEINM_002 help

Hi,

Can somebody tell me how to stop the IDOC processing if the conditions are not met? My detail question is

I am modifying the data in the outbound IDOC (IDOC_OUTPUT_ORDERS) for purchase order. I am using the user exit EXIT_SAPLEINM_002 to modify the segment data.

But I would like to know how to stop for creating the IDOC if one of the condition will not met (for example if there is no data in Ztable while fetching then IDOC should not be created )?

If the condition will fail I don't want to create the IDOC but Purchase order has to create in R/3.

Any suggestions on my above query is highly appreciable.

Regards,

Noorul

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2006 at 05:52 PM

    Hi

    The purchase order should always be created because it's created before creating the IDOC, I suppose it will be created by a particular message.

    Have you tried to raise the exception DATA_NOT_RELEVANT_FOR_SENDING?

    Max

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.