Skip to Content
0
Former Member
Dec 01, 2009 at 02:24 PM

Problem in executing the SO_NEW_DOCUMENT_SEND_API1 in background task

78 Views

Hi All,

I have specific requirement in which I need to put the workflow into an error whenever posting of the journal document fails (which is a background task in my workflow) and before that I should send the notification to the initiator's lotus notes ID a mail with error description. So that user can repost the document after removing the error in standard SAP. For that I am using function module SO_NEW_DOCUMENT_SEND_API1. But when I execute the workflow then it is not sending any notification to the e-mail ID. But when I debug in foreground then it is sending an e-mail notification to initiator's e-mail address.

I think this FM will not execute in background, if any one is having idea how to make this run then please let me know.

If any one knows any alternate solution that will also help me to meet my requirement.

Please let me know if anything else requires.

Thanks in advance.

Prashant P. Raichurkar