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 reprocessing issue through BD87

Former Member
0 Likes
3,581

Hello,

I have a custom IDOC type and custom message type for an outbound IDOC. Developed a FM to retrieve data for segments and using MASTER_IDOC_DISTRIBUTE FM to generate Outbound IDOC. Everything is good.

Issue is while trying to reprocess the IDOC. Doing this through BD87. But it is changing the original IDOC status to 33 and also creating new IDOC.

My Requirement is to reprocess the same IDOC and processing it through the FM created for this IDOC type.

Please let me know how can I achieve this.

Thanks for all the help

Sandhya

4 REPLIES 4
Read only

PeterJonker
Active Contributor
0 Likes
1,678

I don't think you can reprocess the SAME IDoc with the function module since the IDoc is the result of the function module and not the input data for the function module.

You will need to run the same program / do the same action that created the IDoc in the first place.  That way the function module will be called again.

You can reprocess the IDoc in WE19 (standard outbound processing), but this will also create a copy of the IDoc.

Read only

0 Likes
1,678

Thank you so much for your response.

Can you please let me know in how many ways we can reprocess a failed outbound IDOC apart from BD87 and WE19?

Read only

0 Likes
1,678

Hi Sandhya, the best way to reprocess IDoc is nothing but WE19, IDoc test .

There is no other way to reprocess IDoc other than these two.

Read only

Former Member
0 Likes
1,678

If you want to reprocess the idoc using BD87 you can try following.

  1. Change the status of outbound idoc from 03 back to 30 using function module "IDOC_STATUS_WRITE_TO_DATABASE".
  2. Come out of the session so that idoc is not locked
  3. Then reprocess the idoc from 30 to 03 using BD87.
  4. This should resend the same idoc (will not create a new one)