Create Service CAF for send email
Friends,
I've to create a service-CAF that send email.
I'll disable the default of BPM email notifications and put one WS for do it.
Does anyone have any experience with it?
[]´
Hi Tulio,
Why not implementing a simple JEE5 web service for this? AFAIK there is no need to warp this into CAF as the CE stack would also allow you doing so with a simple POJO + annotations.
Within your implementation you could access the standard java.mail APIs. Simply make sure that you set its properties accordingly in the java mail service setttings of the engine (NWA > Configuration Management > Infrastructure > Java System Properties - if I recap this correctly).
So in theory (I did not do it myself yet) this should be a "no-brainer"
As soon as it is deployed and set up correctly on the CE stack you could access the WSDL via the WS navigator (or via the SOA configuration), import it to your process project and make use of it in automated activities.
Another - interesting - option would be using the EJB functions for this. I would imagine modelling the interface this way:
boolean sendMail(String to, String title, String subject, String body)
You could then use this in some (input or output) mapping and pass in some values. In addition the function will return a boolean (or maybe a String) that could tell you the outcome of sending out the mail (so that you know if it worked technically - this does not necessarily mean that the mail reached the recipient - that's depending on infrastructure and SPAM filters
The more I type the more I like this idea - maybe I find two minutes to write some short document for this
Cheers,
Martin
Similar Messages
-
How to create a BO for sending emails
Hi All,
I want to create a Business Object which should have an event for sending emails.
Please guide me on this.
Thanks in Advance,
Saket.Hi Raj,
See i will explain why i want it.In the link it's done as below:
IF ZCUST_INFO-COUNTRY = 'IN'.
DATA: W_OBJTYPE TYPE SWETYPECOU-OBJTYPE,
W_OBJKEY TYPE SWEINSTCOU-OBJKEY,
W_EVENT TYPE SWETYPECOU-EVENT.
W_OBJTYPE = 'YH355_BO'.
W_OBJKEY = ZCUST_INFO-CUSTNO.
W_EVENT = 'SENDEMAIL'.
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = W_OBJTYPE
objkey = W_OBJKEY
event = W_EVENT
COMMIT WORK.
ENDIF.
But here w_objtype is a custom BO and also w_event = 'SENDEMAIL' .This event too
is a custom event.
Now i want to know what code is there in this custom BO because it is this BO which triggers the email through SENDEMAIL event.
Hope i am clear here.
waiting for your reply. -
Create service request with inbound email linked to it
Hi,
we are on CRM 7.0 and interaction center agents need to open and read inbound emails in the agent inbox and in some cases manually create Service Requests to which the email should be linked.
Is there any standard functionality to manually create a new Service Request with the inbound email linked to it or do we have to implement it with custom coding? (we have already used ERMS to automatically create Service Requests linked to emails, but in some scenarios agents need to create manually service requests linked to mails after reading the email in the inbox)
Thanks,
laura.Hi Joaquin,
Thank you for answering. I already tried: I select the line with the email in the Inbox, I press Interact (the account is automatically recognized and I am asked to confirm it), I confirm the account and then I navigate to "Service Request" workcenter: a new Service Request is displayed, with the employee responsible and the customer automatically filled. However, I can see no data regarding any attached email in any of the Service Request tabs (even if I save or select "End").
After your answer, I tried the same procedure with the "Service Ticket" and noticed that the email is correctly displayed as an Interaction Record under the Business Content tab for the Service Ticket: since you confirmed that this should work also for Service Request, I guess there's something wrong in my customizing settings and now I will search for errors.
Thanks for your help.
Best regards,
Laura. -
Function module for sending email
Hi all,
Can I know list of function modules for sending emails.
Other than "SO_DOCUMENT_SEND_API1"
pls let me knowHi Praveen,
Below is the sample code to send the external mail.
&**********Reward Points if helpful**********&
DATA: ld_mtitle LIKE sodocchgi1-obj_descr,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des .
ld_receiver LIKE sy-subrc.
DATA: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c, "#EC NEEDED
w_doc_data LIKE sodocchgi1.
REFRESH it_receivers . CLEAR it_receivers .
IF v_trip_send = 'X'.
it_receivers-receiver = it_trip_dload-approver_email .
ELSE .
it_receivers-receiver = it_adv_dload-approver_email .
ENDIF.
it_receivers-rec_type = c_u .
APPEND it_receivers. CLEAR it_receivers.
it_receivers-receiver = " ------> pass your reciever email id.
IF v_trip_send = 'X' .
it_receivers-receiver = it_trip_dload-requester_email .
ELSE .
it_receivers-receiver = it_adv_dload-requester_email .
ENDIF .
it_receivers-rec_type = c_u .
it_receivers-copy = 'X' .
APPEND it_receivers. CLEAR it_receivers.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = c_saprpt.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = c_saprpt.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = c_f.
CLEAR it_attachment.
REFRESH it_attachment.
it_attachment[] = it_attach[].
Describe the body of the message
CLEAR it_packing_list.
REFRESH it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES it_packing_list-body_num.
it_packing_list-doc_type = c_raw.
APPEND it_packing_list.
Create attachment notification
it_packing_list-transf_bin = c_x.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = ld_format.
it_packing_list-obj_descr = ld_attdescription.
it_packing_list-obj_name = ld_attfilename.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = c_x
commit_work = c_x
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers. -
ABAP program for sending emails
Hello SAP developers,
I need ABAP program for sending emails to my internet adress in background - just some simple header with no body and no attachement. Recipient should be specified due the parameter etc... Does program like this exist or i have to create it? I am not familiar with ABAP. I am basis admin so I am little bit lost in this. I have tried program code from this page ->
http://www.sapdevelopment.co.uk/reporting/email/email_mbody.htm
But anyway it does not work - there is an exception "no message send". SCOT is configured, mails are working fine from transaction SBWP.
Thanks in advace
JMI have already solved my issue through CCMS agents and RZ20 central autoreaction (sms) in Solution Manager.
Regards
JM -
Servlet for sending email error
i working for send email using servlet and html. when i run i got this error..
what cause this problem.
please someone help me. urgent!!!
thank you in advance
servlet error........
ENCOUNTERED EXCEPTION: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
at EmailSMSServlet.doPost(EmailSMSServlet.java:123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)here is my code...actually my program send email from SMS. i parser SMS to email format. My SMS part is working but when i combine it,i got error as above. I tried run without servlet (using command prompt) it working properly and i can send email.
public class EmailSMSServlet extends HttpServlet
CService srv;
int status;
LinkedList msgList;
public void init(ServletConfig config) throws ServletException {
super.init(config);
srv = new CService("com4", 9600);
msgList = new LinkedList();
srv.initialize();
srv.setCacheDir(".\\");
public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException
PrintWriter writer = response.getWriter();
response.setContentType("text/html");
writer.println("<html>");
writer.println("<head>");
writer.println("<title>SMS TO EMAIL</title>");
writer.println("</head>");
writer.println("<body bgcolor=\"blue\">");
writer.println("test");
try
status = srv.connect();
if (status == CService.ERR_OK)
srv.setOperationMode(CService.MODE_PDU);
if(srv.readMessages(msgList,CIncomingMessage.CLASS_ALL)==CService.ERR_OK)
for (int i = 0; i < msgList.size(); i ++)
CIncomingMessage msg =(CIncomingMessage)msgList.get(i);
String s=msg.getText();
String from1=msg.getOriginator()+"@mysite.bla.bla";
writer.println(s);
writer.println("<p>");
writer.println(from1);
writer.println("<p>");
// parser sms to email ...
String delim = "#";
StringTokenizer st= new StringTokenizer(s,delim);
String str[] = new String[st.countTokens()];
int j=0;
while (st.hasMoreTokens())
str[j++] = st.nextToken();
writer.println("<p>");
writer.println("Kepada:");
writer.println(str[0]);
for(int k = 0; k < str.length; k++)
writer.println(str[k]);
// Send mail using javamail.....
Properties props=new Properties();
props.put("mail.transport.default",blah");
props.put("mail.smtp.host","blah");
try{
Properties props=new Properties();
props.put("mail.transport.default","smtp");
props.put("mail.smtp.host","host");
Session mailSession=Session.getInstance(props,null);
Message mssg=new MimeMessage(mailSession);
mssg.setSubject(str[1]);
mssg.setContent(str[2],"text/plain");
Address to =new InternetAddress(str[0]);
mssg.setRecipient(Message.RecipientType.TO,to);
Address from=new InternetAddress(from1);
mssg.setFrom(from);
Transport.send(mssg);
writer.println("Succes");
} catch (Throwable t) {
writer.println("<font color=\"red\">");
writer.println("ENCOUNTERED EXCEPTION: " + t);
writer.println("<pre>");
t.printStackTrace(writer);
writer.println("</pre>");
writer.println("</font>");
srv.disconnect();
else
writer.println("Connection to mobile failed, error: " + status);
catch (Exception e)
e.printStackTrace();
writer.println("<br><br>");
writer.println("</body>");
writer.println("</html>");
thanks -
Hi there, Can you please HELP ME? I created a signature for my email account, but I can not choose it because the option is daded under "none"and nothing happens when you click on it! Thank you, Johan
This can be a problem with the file places.sqlite that stores the bookmarks and the history.
* http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox -
Create Service Request for Customer
hi,
can u pls tell me how to create Service Requset for Customer using BAPI??????
regards
Guruhi,
thanks for ur response
how to assign a service request to person who is suitable for service.
(for example customer faced problem with our product so he will make a complaint on that product, i think this is service request , we need to resolve that problem as we assign that service request to some other person who can able to solve .
<b>Am i thinking in Correct way</b>)
i need bapis to ful fill for the above senario
regards
Guru -
Setting default account for sending email
I have 4 accounts I use for sending email, but would like to have one be the default and can't figure how to do that. there is a check box next to the outgoing server dropdown that says use only this account. I don't think that is what I want, nor am i clear what that would do.
Is there a way to set a preferred outgoing account?
Does that require a plug in or helper app of some sort.
thanks for any suggestions.In Mail>Preferences>Composing:
Use Send new messages from: to select an account. -
I am trying to create a signature for my emails. The box that asks to 'choose a signature' won't allow me to. Any suggestions?
It's ok, I got it sorted :-)
-
SAPCONNECT guide for sending Emails from BW System to Individual Email IDs
Hello Everybody,
If somebody can send me a pdf guide for SAPCONNECT inorder to configure Information Broadcasting in SAP BW for sending Emails to user's mail Id from BW system i will reward points to the helper for same if the help found useful as iam struggling for a pdf guide since long but couldnot find one ,not even over google,i dont need help site links ,i have tried them already ,they dont lay the exact procedure ,but a pdf guide ,my email id is [email protected] .
Regards,
SaumyaHello Vikash,
Plz check i have rewarded you points for this forum under very helpful answers.Kindly now plz help me with this matter:
I got ur document ,it was very helpful.Actually though i have already done most of these steps but i did all these steps all over again.Have u already made configuration for BW Information Broadcasting on your side because although i have done all these steps but wt happens is that the mails get collected in the SOST transaction and iam still not able to send mails and the error displayed is as :
Message cannot be transferred to node SMTP due to Connection Error .
Kindly please revert back to this error at earliest.
Regards,
saumya -
Settings on Microsoft Exchange Server for sending Email from BW to emailid
Hello Everybody,
I wanted to know that for sending Email from SAP System (that is via Information broadcasting feature of BW )to Email IDS of individuals do we need to make any configurations on Exchange Server as well or some RFC between Microsoft Exchange Server and BW .I have made all settings for SMTP through SCOT transaction but still not able to send mails.From our Exchange Server,the connector is removed ,do we need to reconnect it for this purpose.kindly please tell me wt all configurations do i need to make on Mail server for sending Emails as iam not able to do the same now.If somebody can send a PDF/Word document in support for the same on my email Id [email protected] ,i shall be highly obliged.Your help shall be appreciated ,kindly revert at earliest.
Regards,
saumyaHi Somya,
Looks like you are deep into Information Broadcasting. I am sure you must have seen this, still sharing with you -
SAP Notes -
875136 - Node ID is missing in the status message for RFC connection
455140 - Configuration E-mail, fax, paging/SMS via SMTP
regards
Vikash -
Components required for sending Email from SAP [Kernel Release 46D]?
Hi All,
Can somebody please tell me the components and the Configuration settings required for sending Emails from SAP system[Kernel Release 46D] to the mail server[Win NT] using SMTP.
From note 455127, I understood that "Sap Internet Mail Gateway" is required and there are other settings to be done. (SAPconnect with RFC can only be used as the Kernel version is 46D)
It will be great if somebody can explain me in simple steps if He/She has done this before.
Thanks,
VarunVarun,
sendmail comes with UNIX OS, there are versions of sendmail programs available for Windows too, but i guess you have to purchase them.
Another alternative is a discontinued product called SAP Exchange connector, if you have a Windows environment and MS Exchange server as your mail server, you could use a SAP exchange connector and get your SAP Email config done.
Regards,
Siddhesh -
An advanced solution for sending email from Solution Manager (or CRM)
Hi all,
did anyone use blog "An advanced solution for sending email from Solution Manager (or CRM)"
<a href="/people/emmanuele.prudenzano/blog/2006/08/03/an-advanced-solution-for-sending-email-from-solution-manager-or-crm:///people/emmanuele.prudenzano/blog/2006/08/03/an-advanced-solution-for-sending-email-from-solution-manager-or-crm
I´ve got some problems:
I tried to implement your solution in our SAP system. I´m new to ABAP and so it´s a little bit try and error for me.
I´ve got some errors:
In method EXEC_SMART_FORM_WITH_TEXT (from note 935670) :
- method string_to_soli does not exist. There is a method xstring_to_solix.
When I change to method xstring_to_solix
- "L_STRING" is not type-compatibly to "IP_XSTRING".
In method ZSM_ATTACH_PHIO_DOCU:
- field DOCUMENT is unknown
Regadrs
AndyHi all,
did anyone use blog "An advanced solution for sending email from Solution Manager (or CRM)"
<a href="/people/emmanuele.prudenzano/blog/2006/08/03/an-advanced-solution-for-sending-email-from-solution-manager-or-crm:///people/emmanuele.prudenzano/blog/2006/08/03/an-advanced-solution-for-sending-email-from-solution-manager-or-crm
I´ve got some problems:
I tried to implement your solution in our SAP system. I´m new to ABAP and so it´s a little bit try and error for me.
I´ve got some errors:
In method EXEC_SMART_FORM_WITH_TEXT (from note 935670) :
- method string_to_soli does not exist. There is a method xstring_to_solix.
When I change to method xstring_to_solix
- "L_STRING" is not type-compatibly to "IP_XSTRING".
In method ZSM_ATTACH_PHIO_DOCU:
- field DOCUMENT is unknown
Regadrs
Andy -
How can I create a contact form for sending emails in SharePoint Online?
Dear Forum members,
I´ve got a question about creating a custom contact form to send emails for a public site in SharePoint online.
Could someone help us with some advise?
In advance, thank you very much.
Kind regards,
FritsYou can create Custom list and make alerts enable to send emails as soon as contact created.
Bala
Maybe you are looking for
-
I can sync my iphone and ipad over wifi using itunes, but not always. In fact quite frequently neither shows up in itunes. I try to reboot them and sometimes they show up, but not all the time. I have tried rebooting iphone and ipad, the computer, ch
-
Keyboarding password CDE window doesn't work
I don't manage to enter the password in the password window of CDE. The password I type is the good one, it seems to be a keyboard issue, it is locked. Is it possible to kill this CDE console and start it again. To be more specific, this CDE is launc
-
Base Stations regularly stop responding
This college has 9 Airport Extreme Base Stations. Two of them have the WAN port attached to our ethernet network. One of these is set up as a Main Base Station for a WDS, linking to 2 relay stations and on to the remotes. They all have fixed IP addre
-
Hi ALL I have the following sample data: AMENDMENT_DATES_ID AMENDMENT_ID ENTRY_DATE AMENDMENT_DATE_CODE 29710 1 12/20/2007 15 31852 2 1/17/2006 29 31860 3 2/9/2006 29 31868 4 9/13/2007 29 31
-
Where to configure the mail server of GRC access control 5.3?
We changes our SMTP server in SAP and we need to configure also the mail server in Virsa but i dont know how. Can someone help me how to change the SMTP server in VIRSA/SAP GRC. Thank you and have a good day ahead.