Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IDOC Triggering

Former Member
0 Likes
749

Hi,

My requirement is that in the user exit , i would be checking one condition, if the condition fails, i need to stop the IDOC triggering from SAP.

How to do it. Assume, i am doing the condition in one particular segment.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
637

I presume that you know the user-exit and FM which will be triggered to process your IDOC.

Now you need to find a particular PERFORM in the FM so that u come to know where exactly the segment is getting populated in the code.(normally the name would be on the lines of PERFORM segment-name-fill nomenculature)

And the after locating the exact place, u can code for it.

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
638

I presume that you know the user-exit and FM which will be triggered to process your IDOC.

Now you need to find a particular PERFORM in the FM so that u come to know where exactly the segment is getting populated in the code.(normally the name would be on the lines of PERFORM segment-name-fill nomenculature)

And the after locating the exact place, u can code for it.

Thanks

Read only

Former Member
0 Likes
637

Hi Subash,

I know the exact place where to check. But do let me know , how to stop the triggering of the idoc, or even simpler, i don't want to send that particular idoc to the partner.

Read only

Former Member
0 Likes
637

Try using VOFM routines.

1. Go to transaction VOFM

2. go to menu item Requirements->Output Control

3. Copy or create a new requirement that begins with 9 (You can copy an existint requirement by placing your cursor on an existing requirement number and typing your new number 9nn)

4. In the new routine add your logic to do you checking. If you want to stop the output, you will need to set variable sy-subrc to something other than '0' in your routine.

5. Set up configuration of "Output Determination" in the IMG to point to the new routine number you created.

These routines can be used to block any type of output. You will have to do some type of coding to determine whether it is IDOC output, print, etc.

Chris

Read only

Former Member
0 Likes
637

Hi Christoper,

Thanks for the same. But the problem is, i am using warehouse management module where the output configurations are all done through SPRO. So, these requirement can't be set by me,

Is there any simple way to stop the IDOC from creating or processing.

Regards,

B.Anandh

Read only

0 Likes
637

Which IDOC are you trying to stop?

What is the path in SPRO to get to the configuration?

Chris