cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail step in workflow using typeid 'U' is not working

Former Member
0 Kudos

Hi Experts,

Send mail step in workflow is not working when passing type id 'U', i.e internet mail. It is not sent to SOST & even not in Inbox.

In workflow log system returns message Method SELFITEM->SENDTASKDESCRIPTION executed successfully.

This functionality was working fine. Recently our system is upgraded to EHP7. After upgrade this is not working.

It seems like some setting is changes in system. All configuration, SICF setting & SO16 settings are done.

Send mail steps is working with type id 'G' ( organization unit ) passing userid. Also using FM  SO_DOCUMENT_SEND_API it is working.

What all things does the workflow check before sending email using receiver type 'U' in workflow?


Thanks & Regards,

Manjiri Kamthe

Accepted Solutions (1)

Accepted Solutions (1)

former_member185167
Active Contributor
0 Kudos

Hello,

Is it working in the Test system?

Check if WF-BATCH has SAP_ALL and SAP_NEW and if it has an email address.

regards

Rick Bakker

Former Member
0 Kudos

Hi Rick,

Yes it is working in test.

Also mail id is maintained for WF-Batch & authorization is given.

Regards,

Mounj K

former_member185167
Active Contributor
0 Kudos

Hello,

Does a mail get delivered correctly if you send it to an internet address from SBWP?

regards

Rick Bakker

Former Member
0 Kudos

Hi Rick,

Yes. Mail sending functionality is working from SBWP. Mail is sent to inbox.

Regards,

Mounj K

anjan_paul
Active Contributor
0 Kudos

Hi,

  Check the SAP Note 1995095. It may help

Former Member
0 Kudos

Hi Anjan,

I have implemented note 1995095.

We want mail subject line more than 50 char, so we set field 'Long Mail Title'. This was working before EHP7 Upgrade.

The mail is sent if 'Long Mail Title' is not set.

If  'Long Mail Title' is active then system is throwing exception  cx_swf_run_wim in method SEND (CL_SWF_UTL_MAIL_FACADE)

Is there any more setting required for long subject line.

Please help.

Thanks & Regards,

Mounj K

anjan_paul
Active Contributor
0 Kudos

HI,

  ALso check the SAP Note 1609811

Former Member
0 Kudos

Hi Anjan,

The note 1609811 status is cannot be implemented.


Thanks & Regards,

Mounj K

anjan_paul
Active Contributor
0 Kudos

Hi,

Did you implement prerequisite note 1658491

Former Member
0 Kudos

Hi Anjan,

The status of  note  1658491 is also cannot not be implemented.


I checked the correction given in this note. All changes exists into system.


Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)

*- check if document has recipients at all

       lt_recipients = lo_send_request->recipients( ).

       if lt_recipients is initial.

         lo_send_request->delete( ).

         ls_t100msg-msgid = 'WZ'.

         ls_t100msg-msgty = 'E'.

         ls_t100msg-msgno = 619.

         raise exception type cx_swf_run_wim

           exporting

             t100_msg = ls_t100msg.

       else.

*-       Send document

         call method lo_send_request->send( ).

       endif.


The exception is thrown, because lt_recipients table is blank.


With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.

When is field is active, workflow returns message Document <> could not be sent


The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   

Thanks & Regards,

Mounj K


Answers (0)