Sending OUTLOOK mail from Workflows
HI ,
Please help me in getting out of this error encountered during a sample workflow thing.
Here is the requirement I need to send a OUTLOOK mail from SAP.If the user accepts the workflow task then mail need to send a recipient ,stating that he accepthed the request.
Below I designed that task.
In send Mail step I added the recipent thing as stated below.But I was unable to send mail to OUTLOOK .In this I am not even getting notification in my SBWP in SAP INBOX.
How should i send the mail to OUTLOOK from SAP.
Hi Ranjith,
Here's some friendly advice for you:
- don't post the same question twice
- if you get a specific error message ('wait for communications service'), try investigating it yourself by googling it.
In this case, your issue is almost certainly with your mail setup - you can confirm this by trying to send a mail from SBWP to an external address. If so, it's a Basis issue, not workflow. You can safely hand it off to your Basis team.
cheers
Paul
Similar Messages
-
Problem in sending e-mail from workflow task
I configured the TS20000095 for sending a mail to PERNR when his trip was approved. I generated the auto binding for the task. But I am getting error in task saying "Work item 000000393101( work item id): Object 000000393101 method SENDTASKDESCRIPTION cannot be executed" and help says check the binding between the task container and the method container. What I need to do in method container. Please help me.
the trip number is coming correctly and employee details.
The binding is like this
CONTAINER => METHOD
&ADDRESSSTRINGS& = &ADDRESSSTRINGS&
&EXPRESS& = &EXPRESS&
&RECEIVERS& = &RECEIVERS&
&TYPEID& = &TYPEID&
&LANGUAGE& = &LANGUAGE&
&ATTACHMENTS& = &ATTACHMENTS&
&LINEWIDTH& = &LINEWIDTH&
And I have added the initial values for the container elements in the standard task. When I tested in SWUD these values are carried .. but when I trigger the event BUS2089 - APPROVED the task is triggered but the initial values are missing so getting error. Please let me know what to do. -
Send outlook mail from SAP- urgent help me
Hi
I am using FM SO_NEW_DOCUMENT_SEND_API1 to send mail. Following code sy-subrc is 0. but i din nt receive mail. pls help me.
REPORT Z_MAIL.
data: maildata type sodocchgi1.
data: mailtxt type table of solisti1 with header line.
data: mailrec type table of somlrec90 with header line.
start-of-selection.
clear: maildata, mailtxt, mailrec.
refresh: mailtxt, mailrec.
maildata-obj_name = 'TEST'.
maildata-obj_descr = 'Test'.
maildata-obj_langu = sy-langu.
mailtxt-line = 'This is a test'.
append mailtxt.
mailrec-receiver = 'name.company.com'.
mailrec-rec_type = 'U'.
append mailrec.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = maildata
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = mailtxt
object_content = mailtxt
receivers = mailrec
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
*if sy-subrc = 0. "( did not receive any mail) *
write : 'mail sent'.
endif.REPORT z_email_test1.
TABLES:
spfli.
DATA:
t_spfli LIKE TABLE OF spfli.
DATA:
objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 0 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
objhex LIKE solix OCCURS 0 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
DATA:
doc_chng LIKE sodocchgi1.
CONSTANTS:
This is constant for Horizontal Tab.
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
This is for Line feed and Carreige return.
con_cret(2) TYPE c VALUE cl_abap_char_utilities=>cr_lf.
DATA:
w_string TYPE string,
w_tempstring TYPE string,
w_tablines LIKE sy-tabix.
Here Document details will be filled
doc_chng-obj_name = 'SPFLI'.
doc_chng-obj_descr = 'Spfli table contents'.
If the Priority is '1' then the mail will go with High priority
If it is '9' then the mail will go with Low priority
If nothing is given then there will be no priority.
doc_chng-priority = '1'.
Getting Flight data
SELECT * FROM spfli INTO TABLE t_spfli.
This is the Boby of the mail
objtxt = 'Hi,'.
APPEND objtxt.
objtxt = 'These are the contents of Flight data'.
APPEND objtxt.
objtxt = 'Have fun and Enjoy'.
APPEND objtxt.
DESCRIBE TABLE objtxt LINES w_tablines.
READ TABLE objtxt INDEX w_tablines.
doc_chng-doc_size = ( w_tablines - 1 ) * 255 + STRLEN( objtxt ).
Creating the entry for the compressed document
CLEAR objpack-transf_bin.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = w_tablines.
objpack-doc_type = 'RAW'.
APPEND objpack.
DATA:
w_fltime(10) TYPE c,
w_period(3) TYPE c,
w_distance(11) TYPE c,
data_tab LIKE TABLE OF solisti1,
sent_to_all TYPE sonv-flag,
new_object_id TYPE sofolenti1-object_id.
Here the data needs to be converted to respective format.
First the entire table data will be converted into a string
After that string will be converted to ITAB with
line type of 255 characters
CLEAR w_string.
LOOP AT t_spfli INTO spfli.
MOVE: spfli-fltime TO w_fltime,
spfli-distance TO w_distance,
spfli-period TO w_period.
CLEAR w_tempstring.
Here each field will be seerated by 'Tab' and for every row
'Carriage Return and Line Feed' will be used
CONCATENATE spfli-carrid
spfli-connid
spfli-countryfr
spfli-cityfrom
spfli-airpfrom
spfli-countryto
spfli-cityto
spfli-airpto
w_fltime
spfli-deptime
spfli-arrtime
w_distance
spfli-distid
spfli-fltype
w_period
INTO w_tempstring SEPARATED BY con_tab.
CONCATENATE w_string w_tempstring con_cret INTO w_string.
AT LAST.
DATA: lw_string LIKE w_tempstring.
CONCATENATE 'saibaba kondani' 'temp'
INTO lw_string SEPARATED BY con_tab.
CONCATENATE w_string w_tempstring con_cret INTO w_string.
ENDAT.
ENDLOOP.
Converting the above String to the Internal table of FM
CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
EXPORTING
text = w_string
IMPORTING
LENGTH = LENGTH
TABLES
ftext_tab = data_tab.
This is the Data of Attachment
objbin[] = data_tab.
DESCRIBE TABLE objbin LINES w_tablines.
This is the name of Attachment
If the Attachment type is text then name should be given with
'.TXT' extension and for Excel attachment '.XLS' extension
should be given.
objhead = 'SPFLI.XLS'.
APPEND objhead.
Creating the entry for the compressed attachment
These are the details for the Attachemnt
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 1.
objpack-body_num = w_tablines.
This is the Attachment type(For excel 'XLS' and fot text 'TXT' should
objpack-doc_type = 'XLS'.
objpack-obj_name = 'DATA_ATTACHMENT'.
objpack-obj_descr = 'Spfli attachment table'.
objpack-doc_size = w_tablines * 255.
APPEND objpack.
Entering names in the distribution list( These are the receivers )
reclist-receiver = mailid.
reclist-rec_type = 'U'.
RECLIST-NOTIF_READ = 'X'.
APPEND reclist.
REFRESH data_tab.
CLEAR data_tab.
CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
EXPORTING
text = lw_string
IMPORTING
LENGTH = LENGTH
TABLES
ftext_tab = data_tab.
DESCRIBE TABLE objbin LINES w_tablines.
Creating the entry for the compressed attachment
These are the details for the Attachemnt
objpack-transf_bin = 'X'.
objpack-head_start = w_tablines + 1.
objpack-head_num = 0.
objpack-body_start = w_tablines + 1.
objpack-body_num = w_tablines.
This is the Attachment type(For excel 'XLS' and fot text 'TXT' should
objpack-doc_type = 'XLS'.
objpack-obj_name = 'DATA_ATTACHMENT'.
objpack-obj_descr = 'Spfli attachment table'.
objpack-doc_size = w_tablines * 255.
APPEND objpack.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = sent_to_all
new_object_id = new_object_id
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7.
IF sy-subrc EQ 0.
WRITE : / sent_to_all,new_object_id.
ENDIF.
This Program is used to Trigger the send process Explicitely
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN. -
Sending mail from workflow inbox to outlook,when idoc error occurs
Hi All,
I tried to send a mail to outlook from workflow by giving the email address in the step mail, but it was not working.
i am getting the workitem in the sap inbox so tried setting the automating forward which we can forward from the sap inbox to outlook.
Searched in SDN , but my issue was not solved..
Could you please help me out with this issue to get the mail from workflow to outlook inbox.
Thanks,
PraveenaHi Praveena,
Please check if the necessary SCOT settings have been made in your system to send mails outside SAP box. Check with your basis team if the SMTP connection between external system (Outlook, Lotus, etc) has been maintained or not.
Then check in t-code SOST if you are getting the mail here when sent from workflow.
Hope this helps!
Regards,
Saumya -
When I send out mail from MS Outlook enterprise account in the office to my Mac at home they are received as "winmail.dat" files. Even if I perform a "save as" to the correct file name the file format is still not recognized. Why is this happening!?
http://www.joshjacob.com/mac-development/tnef.php
-
Is there anyway to send a mail from Microsoft Outlook to solution manager?
Is there anyway to send a mail from Microsoft Outlook to solution manager.
If anybody having notes or documents that will be very much helpful for me.
Awaiting for your reply,
With best Regards,
AlexeyHi,
It is just the inbound mail configuration as like the out bound config.
Below are the required demo, blogs,helps
[Demo on Mail from outlook|https://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/5087262b-59ef-2910-abb1-957000b7c3d4&overridelayout=true]
[blog 1 for mail to SAP|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID1382272150DB00641126052855673650End?blog=/pub/wlg/795 ]
[Artical inbound mail config|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10dfad5a-5398-2b10-568b-d3d999d49b5c]
Hope this helps
Jansi -
Sending Mail from workflow or updating container elements
Dear friends,
I'm new to work flow.
My requirement: <b>send mail from workflow to a user after dead line is missed</b> I do not want to use messages in 'Latest end' tab. I want to send mail.
The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
I also tried this idea:
created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
*in an activity step used this task and filled the 'Rule' option in notification tab appropriately
*in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
*i would prefer using the activity step because, the mail has to be sent after a delay
Is there any other simple method to do this?
My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
Can someone please explain?Reposted under different thread
-
I am unable to send e-mails from my Outlook
Everything was working ok, for ages. Suddenly I am unable o send e-mails from my Outlook.
"The message I get is: 'Unable to send the message. Please verify the e-mail Address in your account properties'.
When I 'Send a Test Message' from Outlook, Tools, Accounts. All actions are completed besides sending a test message when I also get the instruction.Hi
If it happened suddenly so possibly it was a virus?
I dont know why you are not able to send the e-mails.
I think you should check the email account properties. Check the data of you POP3 and SMTP server.
Im not a outlook expert but this options should be found somewhere in the email account properties.
The last possibility would be deleting of the email account under outlook and then a new creation of the new account. -
User not able to send the mail from other mail box on outlook 2007
In my outlook(2007), i am using my mail box to send the mail and receiving the mail every thing working fine, now what happened , i am adding one of my users mail box to my outlook profile,and trying to send the mail from that mail box,when ever
i am trying to send its give me the message called message undelivered and permission error. as i am full permission on that users mail box. but still getting that issue.
My lab info
Exchange server 2010 sp3
outlook 2007HI Paul,
In exchange, you have something called Send as permission as well. Try to give send as permission to your self from the user's mailbox.
In exchange> Reciepient config> Mailboxes> user mailbox> right click> Full Send as permssion
or,
Add-ADPermission -Identity "user1" -User "[email protected]" -ExtendedRights Send-As
After you add your self in send as permission you need to wait for some time to propagate the settings or you can forcefully reset the information store services
That should solve your issue.
UMESH DEUJA MCP,MCTS,MCSA,CCNA -
Sending mail from workflow or Updating container from FM
Dear friends,
I'm new to work flow.
My requirement: send mail from workflow to a user after dead line is missed I do not want to use messages in 'Latest end' tab. I want to send mail.
The mail id of the user is determined in the previous step using a FM. How do I use this mail id to send the mail. I thought of using 'Rule' option in 'Send Mail' (and use same FM)but thats not possible. In that case how do I pass the mail id value to the WF container from the FM?
I also tried this idea:
created a task with BOR object SELFITEM, method 'SENDTASKDESCRIPTION' .
*in an activity step used this task and filled the 'Rule' option in notification tab appropriately
*in this case the WF goes into an error '.....error executing 'sendtaskdescription' .....'
*i would prefer using the activity step because, the mail has to be sent after a delay
Is there any other simple method to do this?
My problem would be solved even if someone can show me how to transfer values from a FM into a WF container.
Can someone please explain?Hi,
=> To get the deadline worked via programming, you can write your own logic. In current case,
1. Create a custom function, having proper input and output parameters like End Time to wait if in case you have maximum of 2 days of wait.
The total wait time is calculated from the Endtime, which is input to function module. From the Endtime, the start date and end date are calculated and then the difference between the two dates is counted as total wait time.
Here at the most 2 days of wait time is calculated.
* Local parameters
DATA: LV_UTCSTART TYPE /SDF/CMO_TSTMP,
LV_UTCEND TYPE /SDF/CMO_TSTMP,
LV_SECOND TYPE /SDF/CMO_SEC,
LV_ENDDATE TYPE SY-DATUM,
LV_STR TYPE STRING.
IF ENDTIME >= SY-UZEIT AND ENDTIME <= '235959'.
* Today's date
LV_ENDDATE = SY-DATUM.
ELSE.
* Tomorrow's date
LV_ENDDATE = SY-DATUM + 1.
ENDIF.
* Get the Start Time for function module
CONCATENATE SY-DATUM SY-UZEIT INTO LV_STR.
MOVE LV_STR TO LV_UTCSTART.
CLEAR LV_STR.
* Get the End Time for function module
CONCATENATE LV_ENDDATE ENDTIME INTO LV_STR.
MOVE LV_STR TO LV_UTCEND.
CLEAR LV_STR.
* Get the total wait time in seconds
CALL FUNCTION '/SDF/CMO_TIME_DIFF_GET'
EXPORTING
UTC_START = LV_UTCSTART
UTC_END = LV_UTCEND
IMPORTING
SECOND = LV_SECOND
EXCEPTIONS
PARAMERR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Wait for total time
WAIT UP TO LV_SECOND SECONDS.
2. Now, create one method in the BOR object whose event triggers your workflow.
3. Use this method in an activity step in you workflow where you want to wait on some given conditions.
=> You can use the email ID which was given by earlier step in Send Mail step. Just make your email id field as Export/Import <i><b>AD_SMTPADR</b></i> type of parameter. In the send mail, use this Id in Email Address input.
Hope this helps your.
PS If the answer solves your query, plz close the thread by marking it Solved and rewarding each reply.
Regards -
SCOT don't work correctly when I send mail from Workflow
Hi.
I setting from SU01 the mail of users. I send an email from Workflow, I find this mail in SCOT.
But the SCOT don't send the mail to user.
Can I solve it?
Regards
AngelaHi Angela,
I don't think your problem lies in SAP. You need to check with the exchange guys to see if the e-mail you send is relayed in the exchange server. Depending on your sending address it is possible the exchange server will not send it on. Depending on the place the exchange server is, there is a possibility there still is a firewall which blocks smtp communication.
Regards,
Martin -
Respected guru's,
Can u plez guid me how how i send a mail from forms 10g??
Edited by: user651567 on Mar 7, 2009 10:27 AMIf you have a mail-client installed on the client-pc you could use the following to open it and iinitially create a mail with that microsoft outlook express connectivity to oracle
If you have Outlook installed as mail-client another option would be CLIENT_OLE in webutil, have a look at this Send mail with attachment -
When I send e mails from my iPad my previous last name still appears, even though I have changed it on my Apple a/c.
How can I correct this, please ?Try this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts Tap on the Account, then on the red button that says Remove Account.
iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
Setting up and troubleshooting Mail
http://www.apple.com/support/ipad/assistant/mail/
Using a POP account with multiple devices
http://support.apple.com/kb/ht3228
iOS: Adding an email account
http://support.apple.com/kb/HT4810
iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
http://support.apple.com/kb/ht1694
Server does not allow relaying email error, fix
http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
Why Does My iPad Say "Cannot Connect to Server"?
http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/ts2621
The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
MailShot - https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
Group Email - https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
iPad Mail
http://www.apple.com/support/ipad/mail/
Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
Cheers, Tom -
How to send formatted mail from form 6i
Hi,
There is requirment in my project to send formatted mail from form 6i.The database used in 9i.In normal form we can send normal mail.However our requirment is such that the mail content should have company logao pics and it should display data in coloured format based on data fetched from database.How can this be done.
lWhat method are you using to send email from your form now? If you are using UTL_SMTP, you can set the MIME_TYPE = 'HTML' as Francois suggests. If you are using an OLE call to Outlook or a email JavaBean? The method you use to send email will dictate how you send Rich Text/HTML email messages.
Craig... -
Test sending a mail from peoplesoft
Hi,
FSCM90, Tolls 8.49 on Win 2003.
How can test sending a mail from peoplesoft ?
Thanks.Did you already configure PeopleSoft application server and process scheduler with smtp settings?
If not, see this blog
Using Gmail as SMTP server for PeopleSoft
After this you should add mail addresses to user profiles.
Workflow will trigger mails in the business processes.
Hakan
Maybe you are looking for
-
I used to be able to play video podcasts on my TV by connecting my iPod touch to the TV via an Apple AV cable. Now that I've upgraded to ios 6 and the podcasts app got installed along with the upgrade, video podcasts will no longer play on my TV. I
-
Pricing condition type and the procedure it belongs to
Hello Experts, Pricing is found in basic function in spro. Under this we maintain the condition types. But how does the SAP system know for which pricing procedure a condition type belongs? Is a condition type uniquely usable by 1 pricing procedure o
-
Is there any way to rewrite this query?
Is there room for improvement/rewrite for this query so that it performs well? select distinct shp_locn from shp_mstr where zone = to_char(:b3) and locn_class = 'r' and aisle = 'GX-08' and dock = 'KN' and locn_id not in (select locn_id
-
my ipod wont connect to my itunes and an error message keeps popping up. how do i connect it to itunes, even after deleting everything to do with itunes and then reinstalling?
-
Hi, I'm trying to activate SSF on MiniSAP-BSP? I tried to establish a correct installation of the SSF (SAPSYS.pse). In transaction strust there is always an error(error during test signature), and the system is asking for a password? SM21: SSF_KRN_SI