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

Idocs

Former Member
0 Likes
661

Can u explain me the procedure to debug an idoc

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
643

hi sridhar,

We19 is Testing Inbound IDOC and you can debugging from we19 Transaction

Outbound IDOC Debugging :

Example of Invoice :

Set ur Break point at your code

now come to VF02 Transaction and use invoice number.

click on enter

GOTO->HEADER->OUTPUT

Give the output type and print medium should be 6(EDI) or A( ALE)

Click on Further data and select->select send with periodically scheduled job and save it.

Now Come to SE38 and use RSNAST00

Output Application : V3

Object key - Invoice Number ( 10 digit)

Output type - RD00( SAP Standard)

Transmission medium = 6(EDI) ,A(ALE)

Now it will stop at your code.

i think this will help u

reagards

sindhu.

5 REPLIES 5
Read only

Former Member
0 Likes
643

This would of already been asked I am sure.

Oh and it may of helped if you would of said what direction the IDoc was going.

Read only

Former Member
0 Likes
643

Use tcode WE19. You can test IDOCs using this transaction. Here you can debug the FM which creates the IDOC or Posts the IDOC.

Regards,

Lakshmi.

Read only

Former Member
0 Likes
644

hi sridhar,

We19 is Testing Inbound IDOC and you can debugging from we19 Transaction

Outbound IDOC Debugging :

Example of Invoice :

Set ur Break point at your code

now come to VF02 Transaction and use invoice number.

click on enter

GOTO->HEADER->OUTPUT

Give the output type and print medium should be 6(EDI) or A( ALE)

Click on Further data and select->select send with periodically scheduled job and save it.

Now Come to SE38 and use RSNAST00

Output Application : V3

Object key - Invoice Number ( 10 digit)

Output type - RD00( SAP Standard)

Transmission medium = 6(EDI) ,A(ALE)

Now it will stop at your code.

i think this will help u

reagards

sindhu.

Read only

Former Member
0 Likes
643

hi Srikar,

Initially, you need to put a break point at the Outbound Idoc Processing Routine. Then, while performing the operation on that Tcode or Screen, for which the Idoc is going to get triggered, go into the Debugging Mode and then set as following:

Settings --> Update Debugging --> Save. Automatically, while running that operation the control will come to the break point area and you can debug the Idoc.

Pls get back to me in case of any queries on the same.

Reward points if usefull,

Thanks,

Kalyan.

Read only

megha_h
Participant
0 Likes
643

Hi Srikar,

You can debug inbound IDOC by -

WE19-> idoc

use inbound function module -foreground.

else you can debug outbound IDOC by -

you cannot debug directly. First set a breakpoint wherever you want.

while attaching the output type in standard transaction goto 'Further data' and select 'send with periodically scheduled job' for dispatch time.

the run report RSNAST00 and give the details.

now when u run, theoutput is issued and the system stops at the breakpoint you have set. This is the only way you can debug the outbound idoc.

Reward points if found useful.

Regards

Megha