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

INCLUDE DOUBT

Former Member
0 Likes
509

Hi all,

I HAVE FM IDOC_OUTPUT_ORDERS AND FROM THERE I HAVE EXIT_SAPLEINM_002 IN WHICH I HAVE AN INCLUDE ZXM06U02 IN WHICH I HAVE CODE WRITTEN . cAN ANYBODY TELL WHEN THIS INCLUDE IS GOING TO GET TRIGERRED .

PLEASE LET ME KNOW IF YOU NEED ANY DETAILS.

DEEPTHI

4 REPLIES 4
Read only

Manohar2u
Active Contributor
0 Likes
473

This include will get triggered when inbound/outbound idoc gets processed.

Try to create some sample idoc from we19 and process the same, and check whether this gets triggered or not.

Am not sure whether its an inbound or outbound?

Regds

Manohar

Read only

Former Member
0 Likes
473

I AM CREATING A PO AS SOON AS PO IS CRETED I SEE AN IDOC BEING CREATED IN WE02 T CODE.

I have no idea about idoc's ,can you tell me when that include is goint get triggered.

thanks in advance

Read only

Former Member
0 Likes
473

This is an outbound IDoc, so it is probably associated with an output type of an order. When you create/change the order, the output associated with this order will be triggered and depending on the timing(immediate or scheduled), you can either find it processed in NAST table with object key equal to order number or you will find it in new status in NAST.

Run RSNAST00 program, enter the output type, object key(=order number) and execute. If you have a breakpoint in your include it will stop there.

Read only

JackGraus
Active Contributor
0 Likes
473

Did you already create an enhancement (transaction CMOD) for MM06E001 and activated it ? When the PO output timing is in the PO update (mode 4) you have to enable update debugging to hit your include. But easier is to set the output to batch processing (mode 1) and then trigger the PO output via ABAP RSNAST00.

best regards Jack