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

Create Outbound IDOC with error status

0 Likes
2,797

Hi,

Any one have suggestion/guidance on how to "create outbound IDOC with status XX"?

I need to use custom program to generate IDOC with error status.

Any sample program would be helpful.

Thanks,

1 ACCEPTED SOLUTION
Read only

former_member226225
Contributor
0 Likes
1,912

Hi Naresh Kumar,

You can use the MASTER_IDOC_DISTRIBUTE  FM and pass the Communication idoc information and control record information to this fm and you will get Data records of master IDoc in EDIDD table

in this table you can find outbound status records.

Thanks & Regards,

Raghunadh Kodali.

7 REPLIES 7
Read only

former_member226225
Contributor
0 Likes
1,913

Hi Naresh Kumar,

You can use the MASTER_IDOC_DISTRIBUTE  FM and pass the Communication idoc information and control record information to this fm and you will get Data records of master IDoc in EDIDD table

in this table you can find outbound status records.

Thanks & Regards,

Raghunadh Kodali.

Read only

0 Likes
1,912

Hi Raghunadh,

I needs to create a IDOC with XX error status purposefully. I try to pass status XX (11 for example), but Idoc created with different status (not 11).

Any idea?

thanks.

Read only

0 Likes
1,912

Hi Ponu Raj,

You can use RC1_IDOC_SET_STATUS Standard Program and you can change the status of the outbound idoc for example idoc 1089879 is in status 03 "Data Passed to Port OK" again i ran the program RC1_IDOC_SET_STATUS with status = '03' and new status "11" .

Then i can see the status "11" for idoc 1089879 in WE02/WE05.

I hope this will be helpful.

Thanks & Regards,

Raghunadh Kodali.

Read only

0 Likes
1,912

Please find the below link to change the status of an idoc.

Programs to change idoc Status - ABAP Development - SCN Wiki

Read only

0 Likes
1,912

Hi Raghunadh,

I understand your solution, the thing is once I create IDOC initially, it might send immediately to third party system before I change status.

I have to create good and bad idocs in the same program based on some condition (good means normal Idoc creation which can send/Bad means Error IDOC, Bad Idoc shouldn't send to third party system).

That is the reason I want to create IDOC with error status, so that created IDOC will not send to third party system at all.

I hope you understand the situation.

Read only

0 Likes
1,912

Hello,

why even creating the iDoc if the iDoc should never be sent out? Depending on the iDoc you can either stop in a user-exit or do not even create the corresponding output message for the object you want to send out.

Regards,

Dominik

Read only

0 Likes
1,912

Hi All,

I am using this approach, create Idoc with error message (e.g. remove partner details and create, it will not send to third party system, then change status whatever we want).

Thanks.