cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering workflow on successful idoc posting

VivekG
Participant
0 Kudos

Hi All,

There is a requirement in which I need to trigger a custom workflow for sending mail when idoc is successfully posted with status 53. The idoc is CREMAS(CREMAS03).

i did all the config and idoc is getting posted successfully.

I did following config for triggering workflow:

1. In WE57 I assigned BO IDOCCREDITOR.

2.In BD67 I assigned BO type, start event as INPUTSUCCESS and End event as Success Event.

Burt as soon as I assign Business object in WE57 idoc starts giving error as below:

"Function module not allowed: Z_IDOC_INPUT_CREDITOR"

When i remove business object from WE57, it starts posting.

Please let me know how to trigger an event on successful posting???

Thanks and Regards,

Vivek Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Does the workflow has any other functionality other than sending mail. If it is just for mail sending, you can use normal mail sending code.

What is your business object type?

FM SWW_WI_START_SIMPLE can be used for triggering the workflow. Probably create a wrapper Fm and call it in update task in appropriate user exit.

Thanks,

Vinod.

VivekG
Participant
0 Kudos

Hi,

Thanks for the suggestion but I need to configure idoc with workflow so is there any way to do so through configuration??

Regards,

Vivek Gupta

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Can u check FM OWN_FUNCTION. Here u can see similar coding. If the IDOC posting failed, FM IDOC_ERROR_WORKFLOW_START is called which starts the work flow. Just do some R&D and see if you can also do some thing like this.

Thanks,

Vinod.