2012 Nov 19 6:28 PM
Hello Experts,
I need to dynamically catch the latest USER status of a Service Order whenever there is a change and send this in
an IDOC (Z)segment.
I am submitting the program for IORD tcode to issue this change.
I am writing code to fill the Idoc segments in exit include: ZXIWMIU01 for FM: IDOC_OUTPUT_IORDER and the Idoc
is getting populated.
This user status change is only happening after commit work stmt BUT PRIOR to this commit work, the IDOC is
getting posted (status 30) thru FM: MASTER_IDOC_DISTRIBUTE
I tried to get the USER status by triggering my Z** FM in UPDATE TASK but after this FM the code is not going to
the exit to populate the IDOC segment.
Can anyone suggest?
Thanks
2012 Nov 20 6:35 AM
Hi Rick,
i am not much of a functional guy so i am not sure what IORD is but a generic way (or a suggestion) for this would be to try it as written below.
As you say that the user status change is happening only after commit , then you should try configuring a message output ( If possible )for this and assign the code for triggering the IDOC to this particular output type. this will ensure that the commit happens first and then the IDOC is triggered by the output later.
Hope it helps.
Regards,
Umar Syed.
2013 Feb 02 5:11 AM
2013 Feb 02 5:13 AM
Hi Umar,
The IDoc triggering is SAP Std for this Std IDOC.
How can we assign this to output type.? Can you pls elaborate..