Application Development 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: 

How to RE-SET (from 53 success TO 51 failure) the status of an IDOC?

Former Member
0 Kudos
213

Hi Experts,

I am posting 2 idocs as a pair.

1st one is for DELVRY02-delivery, and 2nd is some Transfer Order-TO-WMTOCO.

Firts delivery idoc creates, then the transfer Order idoc creates.

so, my requirement is that, If in any case, the (2nd) transfer idocs FAILS, then, intentionally I need to see FAIL the 1st Delivery idoc also(actually, normally, it gets creates with out any error).

I need to SET UP this delivery idoc status as 51.

I need to pass an "Z" error message, saying that, the transfer order idoc was failed, so, this delivery idoc is also failed!"

so, request u that, let me know,

How to RE-SET the status of a IDOC(even though its status is 53 - created)?

How to pass "Z" error message to this idoc as a failure reason?

thanq

1 ACCEPTED SOLUTION

Former Member
0 Kudos
104

Look into the FM IDOC_STATUS_WRITE_TO_DATABASE. I think you can use this FM to change the status and write the message.

1 REPLY 1

Former Member
0 Kudos
105

Look into the FM IDOC_STATUS_WRITE_TO_DATABASE. I think you can use this FM to change the status and write the message.