cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger workflow

Former Member
0 Kudos

Hai....

can any one say me what are the steps to be followed to trigger a workflow with an inbound idoc .....

Will be rewarded if useful...

Regards,

Jhansi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jhansi,

actually depends on in which case/status what you would like to do.

An example for your own code you find:

Configuring Inbound Processing via Workflow ->>>

http://help.sap.com/saphelp_47x200/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm

Shortly:

...

PERFORM WRITE_STATUS_RECORD TABLES i_edids "Status write

USING errorcode.

...

CALL FUNCTION 'EDI_DOCUMENT_CLOSE_PROCESS'

...

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'IDOCTEST'

objkey = cidocnumber

event = 'InputErrorOccurred'

start_recfb_synchron = 'X' "synchroner Aufruf

...

The other way would be to find an customer exit to trigger the either via SAP_WAPI_CREATE_EVENT or SAP_WAPI_WORKFLOW_START.

If you write in details what you would like to do exactly, I think we are ablo to help you more.

Regards

Tibor

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Jhansi,

I have the very similar problem, with IDOC message type S1INVEXC.

Can you please tell me how to trigger the workflow as soon as the IDOC inbound message is recieved.

We are working ont the SPEC2K project, where the SAP-SD and the EDI (Web) is integration is happening. the Order to Invoice & Billing, process is simulated. But we need to build a Workflow for the Notification of the Invoice comments of the Customer via IDOC message type S1INVEXC.

Please its very urgent rquirment...

Former Member
0 Kudos

Hi ,

1) In transaction WE42(Inbound Process Code) u create a new process code and in the field Identification assign the workflow r task id which has to b triggered for the inbound idoc.

2) Assign the process code in partner profile .

This will trigger workflow and all the validations , approval procedure can b done in workflow itself .

Regards ,

Scobby