Send dashboard with email notification
Hi,
Is it possible to send email notification along with dashboard in OEM 12c.Please assist me on this.
thanks,
sagar
Hi,
have you checked this link :http://docs.oracle.com/cd/E24628_01/doc.121/e24473/notification.htm
Similar Messages
-
A workflow is sending the same email notification twice
A workflow is sending the same email notification twice. Not every notification, but this happening only a few times randomly. The double sent emails are arriving together , have the same date and time.
I've checked the workflow and found that there is no double sending command in the workflow, and the workflow history also shows just 1 run and 1 email sending.
Can somebody help me on this.Hi Neel,
For troubleshooting your issue, you can take steps as below:
1.Increasing the UserDefinedWorkflowMaximumComplexity to 30000 setting using Powershell script
2.IISRESET
3.Adding <httpRuntime maxRequestLength="51200" executionTimeout="3600" /> in web.config. Yes, that is "3600" unlike "300" suggested. Please note that there are multiple lines in web.config with <httpRuntime maxRequestLength="51200">.
I made this change only in the very first one.
4.IISRESET
5.Removed everything from C:\Users\<userName>\AppData\Local\Microsoft\WebsiteCache from my laptop
6.Removed everything from C:\Users\<userName>\AppData\Roaming\Microsoft\Web Server Extensions\Cache from my laptop
7.Removed everything from C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\ from my laptop
8.IISRESET
9.Restart SharePoint 2013 Designer
Reference:
https://social.msdn.microsoft.com/Forums/en-US/69b184bf-09ed-4e00-815a-4e40a975c4bf/prevent-sharepoint-2010-workflow-to-send-duplicate-emails?forum=sharepointcustomization
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Sending attachments with emails in Javamail
I'm trying to send attachments with emails using Javamail. Following is the code through which I'm trying to achieve that. It works as expected on a JRE1.6 environment. But on JRE1.5, the content of the file gets added to the mail body as text.I want the file to be sent as an attachment.
Any pointers on the observed difference in behavior would be highly appreciated!
String msgText = mailInfo.getMessage();
String attachmentFileName = mailInfo.getFileName();
MimeBodyPart mimeBodyPart = new MimeBodyPart();
mimeBodyPart.setText(msgText);
// create the second message part
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
// attach the file to the message
FileDataSource fileDataSource = new FileDataSource(attachmentFileName);
attachmentBodyPart.setFileName(fileDataSource.getName());
attachmentBodyPart.setDataHandler(new DataHandler(fileDataSource));
// create the Multipart and add its parts to it
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(mimeBodyPart);
multipart.addBodyPart(attachmentBodyPart);
message.setContent(multipart);The email in case of JRE1.5 is as follows
{color:#0000ff}------=_Part_0_33189144.1233078680250
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi...Test Mail
------=_Part_0_33189144.1233078680250
Content-Type: application/octet-stream; name=corba_architecture.pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=corba_architecture.pdf
Content-ID: Attachment
JVBERi0xLjIgDSXi48/TDQogDTggMCBvYmoNPDwNL0xlbmd0aCA5IDAgUg0vRmlsdGVyIC9GbGF0
ZURlY29kZSANPj4Nc3RyZWFtDQpIiUWPW07DMBBFV+A93E9QlWBP/Kj5awt8USFRbyBKnTQIkshK
YfvYcQoaybrSzDkzFhCxQgemeWkUyKTXEIeSHMGjZXvHSFBJCpXUpQLcE+NIlbCHFw4pUxeuZQUv
ueY25gYxk9mKmH9wtwvNpZ99M1+jc2wxXzxweHvf73AP9xGFhaIsTyC3/w6ZDYfxaxoHP8w4jmf/
------=_Part_0_33189144.1233078680250-- {color}Following is the debug trace obtained on running the program on 1.5.
+12:45:57,218 INFO [MailerThread] EmailManager:306 - Sending message {toAddress [email protected],+
+replyTo =null,+
+cc =null,+
+message =Hi...Test Mail,+
+subject =test mail,+
+contentType =null fileName =C:\docs\cbe\dist computing\A.txt }+
Loading javamail.default.providers from jar:file:/C:/docs/cbe/lib/mail-1.4.jar!/META-INF/javamail.default.providers
DEBUG: loading new provider protocol=imap, className=com.sun.mail.imap.IMAPStore, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=imaps, className=com.sun.mail.imap.IMAPSSLStore, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=smtp, className=com.sun.mail.smtp.SMTPTransport, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=smtps, className=com.sun.mail.smtp.SMTPSSLTransport, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=pop3, className=com.sun.mail.pop3.POP3Store, vendor=Sun Microsystems, Inc, version=null
DEBUG: loading new provider protocol=pop3s, className=com.sun.mail.pop3.POP3SSLStore, vendor=Sun Microsystems, Inc, version=null
DEBUG: getProvider() returning provider protocol=smtp; type=javax.mail.Provider$Type@77eaf8; class=com.sun.mail.smtp.SMTPTransport; vendor=Sun Microsystems, Inc
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "10.16.68.131", port 25, isSSL false
+220 mailhost5.vmware.com ESMTP Postfix (mailhost5)+
DEBUG SMTP: connected to host "10.16.68.131", port: 25
EHLO sbanerjee
+250-mailhost5.vmware.com+
+250-PIPELINING+
+250-SIZE 26800000+
+250-VRFY+
+250-ETRN+
+250-ENHANCEDSTATUSCODES+
+250-8BITMIME+
+250 DSN+
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "SIZE", arg "26800000"
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[email protected]>
+250 2.1.0 Ok+
RCPT TO:<[email protected]>
+250 2.1.5 Ok+
DEBUG SMTP: Verified Addresses
DEBUG SMTP: [email protected]
DATA
+354 End data with <CR><LF>.<CR><LF>+
------=_Part_0_3278348.1233126957281
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi...Test Mail
------=_Part_0_3278348.1233126957281
Content-Type: text/plain; charset=us-ascii; name=A.txt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=A.txt
Content-ID: Attachment
adasdasdd
------=_Part_0_3278348.1233126957281--
+.+
+250 2.0.0 Ok: queued as 5BE5BDC100+
+12:45:59,125 INFO [MailerThread] EmailManager:331 - Message {toAddress [email protected],+
+replyTo =null,+
+cc =null,+
+message =Hi...Test Mail,+
+subject =test mail,+
+contentType =null fileName =C:\docs\cbe\dist computing\A.txt } sent to the SMTP server successfully+ -
How to send an automated email notification after dataloads complete.
Please search the forums before posting
Hi ,
Hoq can we send an automated email notification once the daily data loads are complete.
All the data loads are done through PC and after these got complete daily we need to send an automated e mail saying the loads are completed.
Request your replies.
Edited by: Arun Varadarajan on Mar 10, 2009 9:22 AMHi,
check this threads/links:
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/9bdd42cadf2878e10000000a155106/frameset.htm
Process chains and Email alerts?
process chain Email Notification
E-mailing functionality on a process chain
If you search SDN you will find much more...
Regards
Andreas -
Send table with email as excel-attachment
Hi.
I have such a requirement. I have a report that selects data and show it in ALV form.
No I need to execute it as background job and then send emails with selected data as an attached excel file.
Does anybody know the way to convert usual internal table into the internal table that contains the same data in a excel file form, that I could send then with email?
All ways of converting itab to excel use excel file on frontend PC as a destination. Is there any way to avoid downloading to a real file and then uploading back to internal table?
Thanks in advance.hi,
these steps will help u to achieve your requirement.
step 1 : for getting the selected records only , u can use the below code
lr_selections = go_alv_table_ref->get_selections( ).
lr_selection(gs->get_selected_rows( RECEIVING value = gt_rows ).
Step2 : paa the selected records (gt_rows) to the method cl_bcs_convert=>string_to_solix - (give the code page as 4103 -this wll convert to an excel file ) get the file and send as a mail attachment using the method 'add_attachement' from the class 'cl_document_bcs'.
Hope this helps,
Thanks,
Sindhuja -
We have been having some issues with Email Notifications not going out and getting hung up in SOST. Can anyone please tell me whether we can use SAP Solution Manager to monitor outbound email?
What version of Solman are you using ? Check in t-code Rz20 >ccms monitor template of satelliate system , there would be option to monitor your outbound mails .You can sutomise your monitorig metrics in solman 7.1 else in 7.01 you use auto reaction methods to monitor .
Regards
Jay -
Anyone having issue with email notification delay in ES4?
After upgrade from ES2 to ES4, we're experiencing an email notification delay when a task is assigned to an individual or group queue. It's not consistent, but happen enough that we can some what replicate it. It's almost like an email notification from task assignment wouldn't send through until we kick off another process or claim another task. This happens with server default email notification as well as custom email notification. Please advise how I can go about trouble shooting this.
This is what in the log at the time I ran the test process & email notification delay occured. Again, the email notification delay wasn't the issue when we were in ES2, until we upgraded to ES4 recently. The delay happens spontaneously, no specific pattern. Sometimes it'll arrive instantly and sometimes it will delay. However, when the notification delay occur, if I kick off another new process, the notification will come through.
[1/21/15 10:27:47:442 CST] 00000031 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [LiveCycleES4] [/adminui] [/secured/about.jsp]: Initialization successful.
[1/21/15 10:28:03:107 CST] 00000040 CSRFFilter I Fetched allowed referer list for servlet:/CoreSystemConfigComponent
[1/21/15 10:28:03:200 CST] 00000040 Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#bed5ed34fb984a88466db43f9ab1cef8"
[1/21/15 10:28:03:684 CST] 00000040 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [LiveCycleES4] [/CoreSystemConfigComponent] [/secured/welcome.jsp]: Initialization successful.
[1/21/15 10:28:03:746 CST] 00000040 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [LiveCycleES4] [/CoreSystemConfigComponent] [FilterProxyServlet]: Initialization successful.
[1/21/15 10:28:06:680 CST] 00000040 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [LiveCycleES4] [/CoreSystemConfigComponent] [/secured/config.jsp]: Initialization successful.
[1/21/15 10:28:30:972 CST] 00000031 Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#a8bc74a810dee608d866cdf3d19861ab"
[1/21/15 10:28:30:988 CST] 00000031 Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#e83cca4f938a1d9f21e821a8c3663008"
[1/21/15 10:29:46:283 CST] 00000043 Authenticatio W Authentication failed for user [abc] (Scheme - Username/Password) Reason: Username or password is incorrect . Refer to debug level logs for category com.adobe.idp.um.businesslogic.authentication for further details
[1/21/15 10:29:49:278 CST] 00000031 Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#f145055ebb4cb72241a696e2e37912b6"
[1/21/15 10:36:17:867 CST] 0000002d J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@3c103c10#tid=2172366 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:37:33:515 CST] 00000055 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@7c5a7c5a#tid=2172587 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:37:35:980 CST] 000000bf Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#b1ff24709e2764c4fdf7c8f5459a3f3c"
[1/21/15 10:37:38:570 CST] 000000c0 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@1fbd1fbd#tid=2173407 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:37:42:673 CST] 000000c0 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@3da43da4#tid=2174482 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:38:09:428 CST] 0000002d J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@26002600#tid=2176826 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:38:38:258 CST] 00000055 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@50165016#tid=2177247 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:39:09:272 CST] 00000054 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@26222622#tid=2179048 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:39:21:597 CST] 00000030 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@2b402b40#tid=2179505 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:40:07:291 CST] 00000055 Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#ea6a84b4552fffe36b7a86269d7b67d0"
[1/21/15 10:41:52:938 CST] 00000033 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@3a503a50#tid=2184317 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:42:21:160 CST] 0000002d J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@56fd56fd#tid=2184783 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:42:24:218 CST] 000000c3 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@276a276a#tid=2186778 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:42:28:071 CST] 000000c2 ProcessRecord W deleting oldest recording(s) due to space limitation.
[1/21/15 10:42:29:943 CST] 000000c2 J2EEConnectio W Service: XMLFormService resource: ProcessResource@5c105c1(name=XMLForm.exe,pid=5908) could not schedule an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@3c5e3c5e#tid=2188110 because excessive time was spent waiting in queue. Supplied timeout: 0s, Wait adjustment: 0s, Effective timeout: 0s.
[1/21/15 10:51:15:603 CST] 0000002f Reference I org.apache.xml.security.signature.Reference verify Verification successful for URI "#c536f8c15947c0e0d16970ced8d90811" -
Problem in Sending image in Email Notification
Hi All,
In our implementation we have to send customer logo in each email notification.
We have SIM 7.1 deployed on SUN JES Application server 8.2.
I tried to send the image using two ways but nothing got succeed.
1) Using <IMG src"http<machine name>:<port number>/idm/images/<image name>"/>
2) Deployed another trial.war file having only image folder and then using <IMG src"http<machine name>:<port number>/trial/images/<image name>"/>
Where "machine name", "port number" and "image name" have suggestive values as per our environment.
But i am not able to send the image. however second options works well with Tomcat.
If anybody has any prior experience or some idea please share. it will really be helpful for us.Hi all,
Its done.
Actually there is some issue related with the intranet (may be they are blocking the image to get diaplayed) as its working for gmail and all.
Thanks -
Fault Policies in soa 11g with email notification
SOA 11.1.1.3
I want to implement faulpolicies.xml and send email notification. (for binding ,remote fault after certain retries).Can I use email activity in BPEL catch block for this , what should I add ,in my faultpolicies.xml to trigger email activity
<?xml version="1.0" encoding="UTF-8"?>
<faultPolicy version="2.0.1" id="FaultPolicyName"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://schemas.oracle.com/bpel/faultpolicy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Conditions>
<faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
name="bpelx:bindingFault">
<condition>
<action ref="ora-retry"/>
</condition>
</faultName>
<faultName xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
name="bpelx:runtimeFault">
<condition>
<action ref="ora-retry"/>
</condition>
</faultName>
</Conditions>
<Actions>
<Action id="ora-retry">
<retry>
<retryCount>8</retryCount>
<retryInterval>2</retryInterval>
<exponentialBackoff/>
<retryFailureAction ref="send-notification"/>
</retry>
</Action>
</Actions>
Also, can anyone please tell which is a better option - using email activity or custom java code in fault
policies.xml.
ThanksLike Oraacler suggested, you can definitely rethrow the fault to BPEL to send the notification. However, your BPEL fault handlers will become pretty tedious when you have to check for error types in your catch block to retrieve the message and type the e-mail. On top of that, if you have multiple catch blocks in a single process or multiple processes spec'd to throw similar notifications, you will have to add a lot of redundant code. You can definitely externalize the notification to a different process that handles all e-mails, but even that does not take out having multiple invokes on the faulted process.
Having a fault handler Java class to handle global faults allows you to externalize and standardize exception management and also dramatically minimizes BPEL code. In your Java class you also get the API's to access a lot more information then you will in BPEL allowing you to provide detailed messages. This has been my choice to account for any error that should not happen on a regular basis (binding and remote).
The only drawback of the Java class is the development piece which can take forever since you have to restart the server after every little change. There is however a way to write a client java class for development on JDeveloper which directly connects to the weblogic-soa dehydration store to look up an instance with a fault and retrieve the fault message. You can then use that message to do your testing/development before finalizing it and moving it to the server.
Depends on what you decide, let us know if you run into any more constraints and we can definitely try to help you.
Thanks and good luck! -
Problem sending .pdf with email in ECC 6.0
hi there,
we are upgrading from r/3 4.6.c to ECC 6.0.
i have the following problem: in many z-ababs we convert spool-files to pdf-files and send them with function SO_NEW_DOCUMENT_ATT_SEND_API1 via email.
well, this is working okay, BUT: the ending '.pdf' is missing in the filename:
in R/3 4.6.c it looks like the following:
zfl_reporting.pdf
Now it looks like this:
zfl_reporting
So the file is not recognized as pdf-file. You have to add a .pdf manually to open it.
We can't do this as we send the pdf-files thousands of times to our customers.
Any ideas ?
reg, Martinhi
Posted below is the sample code..
find the bolded ones...
REPORT ZMAIL_PDF NO STANDARD PAGE HEADING.
Data for mailing purpose
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Spool table
TABLES : TSP01.
Data required for creating spool
DATA: MSTR_PRINT_PARMS LIKE PRI_PARAMS VALUE 'LP01',
MC_VALID(1),
MI_BYTECOUNT TYPE I,
MI_LENGTH TYPE I,
MI_RQIDENT LIKE TSP01-RQIDENT,
REP LIKE PRI_PARAMS-PLIST.
Internal table for capturing data into PDF format
DATA: MTAB_PDF LIKE TLINE OCCURS 0 WITH HEADER LINE.
File name
DATA : MC_FILENAME LIKE RLGRAP-FILENAME.
SELECTION SCREEN
PARAMETERS : P_REPID LIKE SY-REPID,
P_LINSZ LIKE SY-LINSZ DEFAULT 132,
P_PAART LIKE SY-PAART DEFAULT 'X_65_132'.
START-OF-SELECTION.
<b> CONCATENATE 'C:\'
P_REPID
'.PDF'
INTO MC_FILENAME.</b>
MOVE SY-REPID TO REP.
Get print parameters
PERFORM GET_PRINT_PARAMS.
Send output of the required program to Spool
SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS MSTR_PRINT_PARMS
VIA SELECTION-SCREEN AND RETURN.
Get the the spool number that is just created
PERFORM GET_SPOOL_NUMBER USING SY-REPID SY-UNAME
CHANGING MI_RQIDENT.
Convert Spool to PDF & download the same
PERFORM SPOOL_2_PDF.
Upload downloaded PDF file for mailing
PERFORM UPLOAD_PDF_FILE.
Send mail with PDF attachment
PERFORM SEND_MAIL.
FORM get_spool_number *
Get the most recent spool created by user/report *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid
f_uname
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = sy-repid
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
*& Form send_mail
text
--> p1 text
<-- p2 text
form send_mail.
Creation of the document to be sent
DOC_CHNG-OBJ_NAME = 'TEST'.
DOC_CHNG-OBJ_DESCR = 'TEST MAIL WITH PDF ATTACHMENT'. "mail subject
OBJTXT = 'Test mail with PDF attachment'.
APPEND OBJTXT.
CLEAR OBJTXT.
APPEND OBJTXT.
APPEND OBJTXT.
OBJTXT = 'Please double click the attachment to verify'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of 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 = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'Sample PDF attachement'. "
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
<b> OBJPACK-DOC_TYPE = 'PDF'.</b>
OBJPACK-OBJ_NAME = 'TEST'.
OBJPACK-OBJ_DESCR = 'Test.PDF'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
For sending mail to Internet Address
RECLIST-RECEIVER = '[email protected].
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE :/ 'MAIL SENT....'.
WHEN 1.
WRITE :/ 'TOO MANY RECEIVERS'.
WHEN 2.
WRITE :/ 'DOCUMENT NOT SENT'.
WHEN 4.
WRITE :/ 'NO SEND AUTHORIZATION'.
WHEN OTHERS.
WRITE :/ 'ERROR OCCURED WHILE SENDING MAIL'.
ENDCASE.
endform. " send_mail
*& Form GET_PRINT_PARAMS
FORM GET_PRINT_PARAMS.
call function 'GET_PRINT_PARAMETERS'
exporting destination = 'LP01'
copies = 1
list_name = rep
list_text = 'LIST ..... TO SAP-SPOOL'
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = 1
line_size = 132
line_count = 65
layout = 'X_PAPER'
sap_cover_page = 'X'
cover_page = 'X'
receiver = sy-uname
department = 'System'
no_dialog = 'X'
importing out_parameters = mstr_print_parms
valid = mc_valid.
ENDFORM. " GET_PRINT_PARAMS
*& Form SPOOL_2_PDF
FORM SPOOL_2_PDF.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'WS_DOWNLOAD'
exporting
bin_filesize = mi_bytecount
<b> filename = mc_filename</b>
filetype = 'BIN'
tables
data_tab = mtab_pdf
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
ENDFORM. " SPOOL_2_PDF
*& Form UPLOAD_PDF_FILE
FORM UPLOAD_PDF_FILE.
call function 'WS_UPLOAD'
exporting
<b> filename = mc_filename</b>
filetype = 'BIN'
tables
data_tab = OBJBIN
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
ENDFORM. " UPLOAD_PDF_FILE
**reward if helpful
regards,
madhumitha -
Workflow in MDM with email notification
Hi All,
I am using the workflow for the first time,and doing a scenario where workflow should be automatic and ,
1. as one user finishes the processing it should go to the next user automaticallyan an so on.
2. As on user add new records and field values a email notification should also go to the next user available as the processing of first user finishes.
Please provide me someo helpfull links or suggetions ASAP,all the efforts will be appriciated.
Thanks & RegardsHi,
Process Flow Overview
1. Launch MDM Data Manager
2. Create the Validation.
3. Select the workflow Table
4. Design the workflow in Microsoft Visio Professional.
5. Run the work Flow in the Data Manager.
6. Verify Result
Pre-Requisite: Before You Launch the MDM Data Manager, Check whether the Repository is up and running (Status Must be Loaded Running in MDM console) and Microsoft Visio Professional has been installed and the Repository has been configured with the Mail Server.
Example : Start  ProcessValidateApprove Notify  Stop
Notify button
In the Step Properties pane, click on the To field and select a User from the Available Users list as u Required.
In the Step Properties pane, click on the Subject field and type in
In the Step Properties pane, click on the E-Mail body field.
In the E-Mail body field, click on the button and type the Message
If u had any doubts regarding Workflow Please let me know i will clarify.
Regards
Hari -
I there a problem with email notifications?
Hi.Since yesterday morning, I am no longer receiving email notifications through my email provider regarding new postings on threads that I've commented on in this forum, although I can still see them under my profile on this website.I haven't edited my preferences or my spam controls but they don't appear in the spam either.Anybody experiencing the same?
You're telling me! I made the mistake of clicking on "receive email notifications" for every community so ended up with about 300 emails! But of course it was a website problem, not my settings.To top it all, as soon as I deleted all the emails, the Wi-Fi on my W995 decided it had enough and couldn't even find my router in the same room.I've just handed it in for a warranty repair (hopefully) as it's less than 3 months old and no amount of troubleshooting (update service, soft reset, hard reset,update service no 2, phone repair and update service no 3) could fix it.They say it comes in threes....
-
Track GRN with Email Notification
Dear All,
We have different users who are doing MIGO and MIRO. Users who are doing MIRO need Email notification when GRN is done.
This E mail need to be sent for GRN in respective plant and User name who has done to the respective user for MIRO.
We cannot send E mail on check as some errors might be left. This has to be sent while GRN is posted.
Please guide on the relevant Table/fields and User Exit or BADI to trigger the event.
Regards,
VikasHi,
There a standard SAP functionality to send mail to buyer , i.e.purchase group
You have to configure output MLGR in Inventory management , in PO you will GR message tick on delivery tab
May be you can map purchase groups in the user ids of MIRO user
Explore further
Thanks
Diwakar -
Reconcile with email Notification
Hi,
I am trying to send an email notification when reconciliation between IDM and resource is taking place. I am using the notification.redirect parameter defined in the waveset.properties file to capture the email contents in a flat file eg. c:/email.txt.
In the Edit Reconcile Policy, i am using post reconciliation workflow as "Notify Reconcile Finish"
I am modifying the waveset.properties file as notification.redirect = c:/email.txt
After reconciliation, no such file is created.
Note: I am not changing anything else ...
Can anybody help me out
Thanks in advancedid you receive a reply on that point ?
I wonder if the notification connector can be customized and used for reconciliation -
Can not send attachments with emails on Me and aol Imap??
I have an aol and MobileMe imap accounts set up with my mac mail, but I can not send any email with attachemnts no matter how small the smallest I have tried is 152Kb. I have been reeding the threads about not being able to send any email, but I can send and recive emails(with attachments) just not send with attachments.I have been able to send attachments with my aol Imap account before.
I have recently signed up to Mobile me and created the Me Imap account, this is the first time I have had to send an attachment. Is it something to do with the Mobile me?? Any help much appreciated
still relitivly new to Mac....Hi Kursten, and a warm welcome to the forums!
Have you tried Port 587 instead of 25 for the .me account anyway?
Mail>Preferences>Accounts>Outgoing SMTP>Server Settings...
Maybe you are looking for
-
Album Art - some albums will not allow art to be added manually - help?
I've searched the archive for an answer to this, but haven't found a solution. I'm importing many of my CD's into iTunes, some of which I have to add the album art manually. For the most part this works just fine, as I go to "Info," and drag the art
-
Can no longer open additional tabs using Forefox 17.0
I downloaded the update for Firefox 17.0 and installed it with no problems. After completion, I discovered that I could not open additional tabs as with previous versions of Firefox. I tried various methods, including the File pulldown menu, clicking
-
Import and rename photos via Automator and ExifTool
Hiya, Just finished my work on a Automator workflow in order to import and rename photos from a portable hard disk. I had the problem that my portable hard disk (with integrated card-reader) was not recognised by Image Capture or Aperture. Therefore
-
Oh boy, am I really mad as ****. My iPhone is so buggered, can anyone help to restore this. After downloading this new software, everything is just frozen, just does not work, keeps trying to log in but to no avail. Just cannot do anything damm thing
-
Hi, Would like to know if the fields/objects which i wanted to mass change is not found in transaction code MASS, is there any way i can INCLUDE or ADD into MASS? Thanks regards, JL