08-24-2009 5:54 PM
I am new to workflow and was wondering if someone could provide me with some guidance. I am receiving an inbound EDI PO that references a quote number. I am using FM IDOC_INPUT_ORDERS to try and create the sales order from the quote. If the quote fails I need to trigger a workflow event so the correct agent can re-process the IDOC. I have seen a number of posts regarding SAP_WAPI_START_WORKFLOW and SAP_WAPI_CREATE_EVENT. I am not sure which one to use, can someone please point me in the right direction?
08-24-2009 6:44 PM
Hi,
Check we46, Both the global and process tabs.
Check the INACTIVE flag.
There is no event linkage here. The tasks are called directly.
The task must still have possible agents maintained.
So look at PFTC_DIS as well.
Then check we20 has values in the inbound parameters for the recipient.
These default from we46 global setting.
Check / test simulate the standard ALE role in pFAC (see role 30000001 ?)
Can you start TS00008068 Inbound, error message with Idoc in swus ?
That might help track down the error.
Also note if the IDOC error status is 51. This is NOT and ALE error,
and not handled using the central workflows.
Status 51 is an APPLICATION error and other event are triggered now.
You must activate event linkages on IDOCAPPL or perhaps a
more specific object when it gets as far as being an Application error.
Also, go through link below:
KR Jaideep,
08-24-2009 6:44 PM
Hi,
Check we46, Both the global and process tabs.
Check the INACTIVE flag.
There is no event linkage here. The tasks are called directly.
The task must still have possible agents maintained.
So look at PFTC_DIS as well.
Then check we20 has values in the inbound parameters for the recipient.
These default from we46 global setting.
Check / test simulate the standard ALE role in pFAC (see role 30000001 ?)
Can you start TS00008068 Inbound, error message with Idoc in swus ?
That might help track down the error.
Also note if the IDOC error status is 51. This is NOT and ALE error,
and not handled using the central workflows.
Status 51 is an APPLICATION error and other event are triggered now.
You must activate event linkages on IDOCAPPL or perhaps a
more specific object when it gets as far as being an Application error.
Also, go through link below:
KR Jaideep,
08-24-2009 10:12 PM
You shouldn't need any programming for this (unless you want to, of course). You might want to educate yourself first on general workflow concepts, here is a good starting point:
https://wiki.sdn.sap.com/wiki/display/ABAP/SDNBlogsfor+Workflows
08-25-2009 2:52 PM
After some further investigation, my IDOC is ending up in a status of 51, so I know it is calling the posting program, but I don't see any workflow event getting triggered. Can someone give me some suggestions what I can check to see what might be causing no workflow event to get triggered?
08-25-2009 3:04 PM
Hi,
Please let me know the funciton module you are using to process the idocs.
Is it a standard function module or custom created one.
KR Jaideep,
08-25-2009 3:10 PM
I am using the standard IDOC_INPUT_ORDERS FM. Since we are trying to create a sales order from a quote we call the following: PERFORM call_va01_new_orders_angbt USING ok.