This website is not affiliated with, sponsored by, or approved by SAP AG.

How to stop an idoc processing and change status?

Interfaces (ALE, IDOC, RFC, EDI etc.)

Moderators: Snowy, thx4allthefish

Post Reply
ifaucher
Posts: 4
Joined: Mon Jul 24, 2006 2:34 pm

How to stop an idoc processing and change status?

Post by ifaucher » Tue Sep 24, 2013 6:51 am

Hi,

I have an idoc that it is stuck in a loop. Status 64. I don't want it to process. So I want to stop it and change the status to 68.
I've tried function module IDOC_STATUS_WRITE_TO_DATABASE and program RC1_IDOC_SET_STATUS
but I have the message IDOC_FOREIGN_LOCK.

What can I do?

Thanks

Gothmog
Posts: 1946
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: How to stop an idoc processing and change status?

Post by Gothmog » Tue Sep 24, 2013 7:28 am

You could check in SM12 if there's a remaining lock entry (lock object ES_EDIDOCE, table EDIDC) that you can get rid of before trying again.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

isabellef
Posts: 2
Joined: Wed Jul 29, 2009 8:56 am

Re: How to stop an idoc processing and change status?

Post by isabellef » Tue Sep 24, 2013 7:52 am

Thanks Gothmog, I've tried that. But as soon I delete the lock, it comes back, automatically..... I don't have time to change the status.

Gothmog
Posts: 1946
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: How to stop an idoc processing and change status?

Post by Gothmog » Tue Sep 24, 2013 8:09 am

So it seems there's a process constantly trying to integrate this IDoc...
What are your WE20 settings for this IDoc?
Is there a RBDAPP01 job running at short intervals?
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

Post Reply