2008 Jul 14 5:07 AM
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
2008 Jul 14 6:26 AM
Look into the FM IDOC_STATUS_WRITE_TO_DATABASE. I think you can use this FM to change the status and write the message.
2008 Jul 14 6:26 AM
Look into the FM IDOC_STATUS_WRITE_TO_DATABASE. I think you can use this FM to change the status and write the message.