cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound IDOC errors - how to skip triggering workflow for certain errors

zackpatel
Explorer
0 Kudos

Hello, We are processing inbound EDI orders in a 4.6C system.

IDOCs with status 51 currently send out a work item. In user-exit code, for certain types of errors, we set the status of IDOC to 68 (these IDOCs will not have a status 51). IDOCs in status 68 are also currently triggering the workflows. We want to turn off workflows off for IDOCs in status 68 and only use workflows for IDOCs in status 51. How can we do this?

Thanks,

Zack

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can achive this in two way.

1. Please find the workflow which is triggering after the idoc goes to status 68.

Deactivate the event linkage which is present in the workflow. For this purpose u can also use Tcode SWE2.

2.Go to Transaction WE42 and select your process code

Open the process code by double clicking

Here you can find the funtion module ( Identification field ) to process the inbound IDOC.

select the button attached with Identification

You can find there are several box..

Select the 'Idoc' Box

Here you can find the

Object Type

Start Event

End event

Success Event

You can find some events are maintained to start the workflow if any idoc failed.

e.g.

Object Type IDOCHRMD

Start Event INPUTERROROCCURRED

End event INPUTFINISHED

Now delete the event ... hence workflow will not trigger/start any more.

Hoping that this will help you.

Thanks and regards,

SNJY

former_member185167
Active Contributor
0 Kudos

Hello,

I don't know if there is a better way of doing it for IDOCs but since this is about triggering workflow, you could always add a start condition. You can see start conditions in SWB_COND, though best to add them through the Workflow Builder (not sure if that is possible in 46C).

regards

Rick Bakker

hanabi technology