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

Break points in EDI outbound function modules

Former Member
0 Likes
2,871

Hi All ,

I have done EDi settings for PO creation and it is working fine and idoc triggered.

when i kept break point in FM IDOC_OUTPUT_ORDERS ( process code ME10 ) it is not stopping there .

So why it is not stopping at the breakpoint? ? Here i need to find out some exit or badi in this function module for to check whether idoc created successfully or not .If not ,need to send error message . Is there any error handling mechanism exist using workflow task to send error notification to sap inbox?

IDoc is not triggered when there is a change in PO even though i have done the EDI setting for PO change. why ?

thanks and regards ,

sijin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,670

In order to debug make sure your "Dispach time" is your output values is set as "1"( Send With periodically Scheduled job" ) before issuing output from you output screen.

Then Save the PO.

Put a break point in IDOC_OUTPUT_ORDERS.

Run program RSNAST00 from SE38 with the output type.

Select the correct PO from the list and execute it should stop inside the code.

Regards,

R

7 REPLIES 7
Read only

Former Member
0 Likes
1,670

hello,

Are you using change pointers for the PO change ? If so then you have read the change pointers and create idocs.

best regards,

swanand

Read only

0 Likes
1,670

No i am not using any change pointers.

created outbound parameter for ORDCHG and gave process code ME11 .

But it is not generating Idoc during change..

Please help..

Regards,

sijin

Read only

Former Member
0 Likes
1,671

In order to debug make sure your "Dispach time" is your output values is set as "1"( Send With periodically Scheduled job" ) before issuing output from you output screen.

Then Save the PO.

Put a break point in IDOC_OUTPUT_ORDERS.

Run program RSNAST00 from SE38 with the output type.

Select the correct PO from the list and execute it should stop inside the code.

Regards,

R

Read only

0 Likes
1,670

The above reply by Rudra Roy is correct. RSNAST00 is a program which collect the unprocessed NAST messages. In other words it checks for all the unprocessed IDOCs for a particular application and output type.

So put a breakpoint in your desired function module and run the RSNAST00 program with the appropriate parameters and the debugger will stop at the function module.

Regards,

Vidya.

Read only

0 Likes
1,670

Hi

Could you please elaborate ..

Where can i set dispatch time and output value as '1'.

Thanks and Regards ,

Sijin K P

Read only

0 Likes
1,670

The dispatch time can be set in the output screen of the sales order.

Click the further data button, and in there the dispatch time is by default set to Send immediatley, change that to Send with periodically scheduled job. If you dont do so, the process wait until you go to RSNAST00 and execute.

Regards,

Vidya.

Read only

Former Member
0 Likes
1,670

More or less debugging EDI is debugging RFC . So put external break point to your session and star srdebug transaction and activate breakpoint in it ( you should leave the popup message opened to the end ).

Regards Ognian Kalaydjiev