How to send the Adobe page as mail attachement from webdynpro...
Hi Experts,
How to send the Adobe page as external mail attachment from webdynpro automatically (for example: If I input the data for sales order in a view and created the sales order, if the sales order is created then have to place the created sales order number and the some details in a adobe form and should send as external mail and have to specifying the body as "Sales order created and details can be found in the attached adobe form" from webdynpro).
Do the needful.
Thanks & regards,
Ravi.
Hi ravi,
See the WDA forum for the how to attach a file in webdynpro component for the attachments.
Similar Messages
-
How to send the jsp page with the data as attachment
hi
my application is to display all the datas from the database.In the same page. i'm having a option to select mail address from the combo box and to send the page with the same format thru mail as an attachment .
<% String from="192.168.10.1";
String to=request.getParameter("to");
System.err.println(to);
String mailhost="localhost";
System.err.println("hiiiiiiiii");
try
System.err.println("byeeeeeee");
Properties prop=System.getProperties();
prop.put("mail.smtp.host", mailhost);
Session ss=Session.getInstance(prop,null);
System.err.println("session props");
Message message = new MimeMessage(ss);
System.err.println("message");
message.setFrom(new InternetAddress(from));
System.err.println("form not null");
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
System.err.println("from and to r set");
message.setSubject("Hello JavaMail Attachment");
// Create the message part
BodyPart messageBodyPart = new MimeBodyPart();
// Fill the message
messageBodyPart.setText("have u got the attachement?");
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
// Part two is attachment
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource("C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/MgmtTool/emsReport.jsp");
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName("emsReport.jsp");
multipart.addBodyPart(messageBodyPart);
// Put parts in message
message.setContent(multipart);
System.err.println("ready");
// Send the message
Transport.send(message);
out.println("mail was sent successfully");
catch(Exception e)
{out.println(e);}
%>
by using this code i 'm sending the emsreport page as attachment
i'm recieving only the tabular format but i cant able to get those data which are present on that page
i dont know wat to do???
kindly help me
thank u in advanceSome of the points might help you in thinking towards right direction, you might already know this but doesn't look like you are following in your code anyway.
1. The JSP that you are emailing is uncompiled source file. It need JVM environment to be able to run on.
2. The JSP is a view technology so try to separate the view logic from the business.
3. Try to put entire business logic in a Bean and use that in your JSP to start off with.
You may need to write the HttpServletResponse#content on to the Writer and then persist it on the filesystem. and then send that persisted file as an attachment.
Have a look at http://java.sun.com/j2se/1.5.0/docs/api/java/io/Writer.html
It provide different type of writer implementations.
HttpServletResponse#getWriter() provides PrintWriter instance.
Does it make sense? -
How to send the email to different email addresses from Workflow
Hello,
i an not getting that how to send the email from Workflow in SAP.
plz give the steps to do that.
i have done lots of time but system is not sending the email to different email address.Hi,
lot of configuration is invloved in sending
mail to external email id. check BASIS to
configure for external mails ans also check
debug FM and see which conditions exceptions
(Document not sendis raised)
also check below code
CLEAR: DOC_CHNG, OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST,
RECIPIENT_INT, DOC_SIZE,TAB_LINES.
REFRESH: OBJTXT, OBJBIN, OBJPACK, OBJHEAD, RECLIST.
OBJBIN[] = CONTENT_OUT[].
Populate e-mail title
DOC_CHNG-OBJ_NAME = 'MAIL'.
CONCATENATE 'EETS for Contract #'(245)
OIA01_TAB-EXGNUM
INTO DOC_CHNG-OBJ_DESCR SEPARATED BY SPACE.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
It is a text document
CLEAR OBJPACK-TRANSF_BIN.
The document needs no header (head_num = 0)
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but it has a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type RAW
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Create the attachment (the list itself)
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
It is binary document
OBJPACK-TRANSF_BIN = 'X'.
we need no header
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
but a body
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
of type PDF
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'Attachment'(239).
CONCATENATE 'EETS_' OIA01_TAB-EXGNUM '_'
IT_ZMMTACCUID-ACCTUSRID
'_' SY-DATUM '_' SY-UZEIT '.PDF'
INTO OBJPACK-OBJ_DESCR.
READ TABLE OBJBIN INDEX TAB_LINES.
DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJBIN ).
OBJPACK-DOC_SIZE = DOC_SIZE.
APPEND OBJPACK.
Get e-mail address
CLEAR IT_ADDRESS.
READ TABLE IT_ADDRESS WITH KEY ACCTID = IT_ZMMTACCUID-ACCTUSRID
BINARY SEARCH.
IF SY-SUBRC = 0.
RECIPIENT_INT-ADDRESS = IT_ADDRESS-SMTP_ADR.
ENDIF.
*Send email to external mail address
RECLIST-RECEIVER = RECIPIENT_INT.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
CLEAR RECLIST.
*Send email to SAP Office mail address
RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
RECLIST-REC_TYPE = 'B'.
APPEND RECLIST.
CLEAR RECLIST.
SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE
FOR SENDING DOCUMENTS WITH ATTACHMENTS
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = doc_chng
put_in_outbox = 'X'
importing
sent_to_all = sent_to_all
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.
also check
https:/Re: mail sending problem
Regards
amole -
Unable ot send completed PDF questionaire as mail attachment. What now?
With all the wealth of data you provide...
My gues is that the file was not properly enabled to be answered by mail. Unless you can use Acrobat for this, one of your best bets is to contsct the author of the file and ask for a properly enabled copy. -
How to send the jsp page to .txt format
Hi All
Please suggest me how to create a .txt file using the desformat. My requirement is file should be saved as txt format and it will be sended by mail to be user pager. He can see the txt file through his pager. I tried several techniques but it not working.
I am using the following URL:
http://123.223 /reports/rwservlet? report=Admission.jsp&destype=file&desname=c:/demo/Admission.txt&userid=am/ampazz@tempdb
The above URL is correct or any changes required.
Pls suggest me…
Thanking all
Regards
SrinivasSome of the points might help you in thinking towards right direction, you might already know this but doesn't look like you are following in your code anyway.
1. The JSP that you are emailing is uncompiled source file. It need JVM environment to be able to run on.
2. The JSP is a view technology so try to separate the view logic from the business.
3. Try to put entire business logic in a Bean and use that in your JSP to start off with.
You may need to write the HttpServletResponse#content on to the Writer and then persist it on the filesystem. and then send that persisted file as an attachment.
Have a look at http://java.sun.com/j2se/1.5.0/docs/api/java/io/Writer.html
It provide different type of writer implementations.
HttpServletResponse#getWriter() provides PrintWriter instance.
Does it make sense? -
How to send inline HTML page in mail(not as attachment)
Hi,
I am using JavaMail to send details to users using text mail. Its working successfully. But now i have to send the details on mails that will contain HTML page (not as attachment but as inline HTML page containing text) and details in it. Plz help me. Its urgent.
Thanks in advance,
DevomSet the contentType to "text/html" and send away.
(If you need both text and html you will need to make a multi-part message), this is covered in the FAQ.
http://java.sun.com/products/javamail/FAQ.html
travis (at) overwrittenstack.com -
How to send the form data through mail with pdf format?
forms 6i
Hi to all,
i am developed one master detail form.example is based on the dept number emp details will be displayed.here my requirment is whatever displayed on the form
the data ,these data send to mail with any format.is it possible? if is possible any one give a proper solution.
Regards,
Stevie
Edited by: 994418 on 6 May, 2013 11:15 PMHello,
you can create a Report that accepts the search parameters from the Forms mask and generates a PDF. You also have the option to send the report via mail.
Personally I would generate the report with a tool like as_pdf
http://technology.amis.nl/2012/04/11/generating-a-pdf-document-with-some-plsql-as_pdf_mini-as_pdf3/
Then you can send the mail using utl_mail or utl_smtp.
www.google.com/search?q=site:forums.oracle.com+utl_mail+utl_smtp
Regards
Marcus -
How To send the text document as a attachment using a 'So_object_send'
Hi,
I want to send a mail to user in sap office.
I had used a function module 'SO_OBJECT_SEND'.
Also, I need to send all the attachments (like files .XLS,.TXT etc) in the mail as a attachment.
Please tell me how to pass the attachment to the Function module 'So_object_send'.
Thanks in advance
Regards,
DarshanaYou should use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail with attachments.
Below is the code for your reference :
Doc data
WL_DOC_DATA-OBJ_NAME = TEXT-031. "Survey Data
WL_DOC_DATA-OBJ_DESCR = TEXT-031. "Survey Data
WL_DOC_DATA-OBJ_LANGU = C_LANG_EN. "E
Receiver's details
WL_RECEIVERS-RECEIVER = ABCD AT XYZ DOT COM."l_survey_recipient_email.
WL_RECEIVERS-REC_TYPE = C_REC_TYPE. "U
WL_RECEIVERS-COM_TYPE = C_COMM_TYP. "INT
WL_RECEIVERS-NOTIF_DEL = C_CHK. "X
WL_RECEIVERS-NOTIF_NDEL = C_CHK. "X
APPEND WL_RECEIVERS TO TL_RECEIVERS.
Mail subject
WL_HEADER-LINE = TEXT-036. "Mail
APPEND WL_HEADER TO TL_HEADER.
LOOP AT TL_EMAIL_TAB2 INTO WL_HEADER2.
CONCATENATE WL_HEADER2-MESSAGE C_TAB INTO L_STRING.
CONCATENATE C_RET L_STRING INTO WL_OBJTXT-LINE SEPARATED BY SPACE.
APPEND WL_OBJTXT TO TL_OBJTXT.
ENDLOOP. "LOOP AT tl_email_ta..
DESCRIBE TABLE TL_OBJTXT LINES L_LINES.
L_TMP = L_LINES * 255.
MOVE L_TMP TO L_DOC_SIZE.
CONDENSE L_DOC_SIZE.
WL_PACK-HEAD_START = 1.
WL_PACK-HEAD_NUM = 0.
WL_PACK-BODY_START = 1.
WL_PACK-BODY_NUM = L_LINES.
WL_PACK-DOC_TYPE = C_DOC_TYP. "RAW
WL_PACK-OBJ_LANGU = C_LANG_EN. "E
WL_PACK-DOC_SIZE = L_DOC_SIZE.
APPEND WL_PACK TO TL_PACK.
Call function module to send the email to the survey recipient
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WL_DOC_DATA
PUT_IN_OUTBOX = C_CHK "X (Check)
COMMIT_WORK = C_CHK "X (Check)
TABLES
PACKING_LIST = TL_PACK
OBJECT_HEADER = TL_HEADER
CONTENTS_TXT = TL_OBJTXT
RECEIVERS = TL_RECEIVERS
IF SY-SUBRC = 0.
SUBMIT RSCONN01 WITH MODE = 'INT'
WITH OUTPUT = 'X'
AND RETURN.
ENDIF.
Regards,
NaPPy -
How to send the error file as a attachment
Hi All,
Is it possible to send a mail by attaching the error file.
I am writing the code in the events,if import failed then i need to send the mail with import failed error file as an attachment.
Thanks.In your mail code, include something like the following prior to the .Send command. strAttach is the path to the Attachment:
If Not strAttach="" Then' Attach file(s) to message
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(strAttach) Then .AddAttachment strAttach
Set fso = Nothing
End If -
How to Execute the Business objects created in ABAP from webDynpro applicat
Wht is the steps , or where the help documents are available for accessing the Business objects created in ABAP or R/3 systems from webDynpro project.
Hello Vishal,
I couldn't find any useful documents for your purpose.
However i had a similar requirement and had implemented the same using GCP APIs. But before i send you the code help, i would like to know your exact requirement. What are you trying to achieve? Are you just wanting to execute the BO and get the result? Or is your requirement has got something more to do?
Regards,
Sudeep. -
How to set the language of a mail template from NotificationUtil?
Hi experts!
I've been having some issues with the Message Template Language when using the NotificationUtil to send an Email.
How do I set the language of the template?
Do i set this by the sender? Or do I need to reference the recipient?
If so, how could I get the Account Object Interface from the user given that I got him as a collaborator?
I wish you could help me out whit this language problem.
Here's an example of the code I'm using:
Properties params = new Properties();
params.put(new String("PHASE_NAME"), faseName);
params.put(new String("DOCUMENT_TYPE"), docType);
params.put(new String("DOCUMENT_NAME"), contractName);
params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
params.put(new String("START_DATE"), fecha);
params.put(new String("INSTRUCTION"), "");
params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
String[] recipients = {mail};
sender = session.getAccount();
mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
Thanks in Advance!Hi vikram!
Sorry for the still inconvenience, but I'm getting this error:
Error in method invocation: Static method sendNotification( com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.usermgmt.masterdata.UserAccountBo, com.sap.odp.api.comp.messaging.MailTypeEnumType, java.util.Properties, null, null ) not found in class'com.sap.odp.api.util.NotificationUtil'
Im making the code the following way:
Properties params = new Properties();
params.put(new String("PHASE_NAME"), faseName);
params.put(new String("DOCUMENT_TYPE"), docType);
params.put(new String("DOCUMENT_NAME"), contractName);
params.put(new String("RECIPIENT_FIRST_NAME"), nombre);
params.put(new String("OWNER_FIRST_LAST_NAME"), owner.toString());
params.put(new String("START_DATE"), fecha);
params.put(new String("ORG_UNIT"), orgUnit);
params.put(new String("INSTRUCTION"), "");
params.put(new String("DOCUMENT_HEADER_URL"), vinculo);
recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal()); // This Changed.
( I also tried like this:
IapiAccountIfc recipients = IapiAccountLocator.lookup(session, collaborator.getPrincipal());)
sender = session.getAccount();
mailTypeEnum = new MailTypeEnumType(MailTypeEnumType.ODP_WORKFLOW_APPROVAL_REQUEST_MSG);
NotificationUtil.sendNotification(recipients,sender, mailTypeEnum,params,null,null);
Thanks again! -
In my project we are using adobe flash builder 4.6 as a client-side scripting,visual studio as a mediator(for connecting the oracle database).In this, in flex 4.6 we are capturing images from webcam that's working fine, after capturing the image we need to save this captured image in oracle database so in order to save we need to pass this image from flex to dot-net(visual studio) so i need a help on how to approach to done this(passing the image from flex to dot-net) if any one knows please help me i will be very thankful to them
finally i got the solution fot this,i tried using yhis link it work's for me
http://stackoverflow.com/questions/5702239/how-to-pass-image-from-a-flex-application-to-a- asp-net-c-sharp-web-service -
How to refresh the current page when retrieving data from database
hi all
in my application i want to navigate from different tables to different forms. The data in the table and in the forms is comming fromthe database. when i select a navigation link to database of a form it is connecting to database. so im manually refreshing the refresh button of I.E. which is big headache. so is there any way to refresh my current table or form dynamically at run time to retrieve from database
Thanks and regards
khajaHi,
Refreshing a connection to Database means re establishing your connection each time.It will be load for the DB to load the data every time generally not advisable to do.
Inorder to get the value from the DB you have load the driver and connect it using fireplug with the view for navigations.
for the same refer this link.
http://help.sap.com/saphelp_erp2004/helpdata/en/51/2c747ecd037842943bdb38be214719/frameset.htm
Hope it helps.
Rdgs,
Guru -
How to send the two PDF attachments into one mail
Hi Team,
I need one requirement...I have two forms ,one is cover sheet and another one is form data. These two forms are converted into two PDF documents and sent to vendor as mail attachments...
Please suggest me, how to send the two attachments through one mail .....
Thanks & Regards,
Samantula.Please SEARCH in SCN before posting. There are lots of threads related to send mail with multiple attachments.
-
How to send the email without using server side (Php, java)
How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.
Well, at some point your email needs to be handed over to an SMTP server. It's a fair amount of work, but if you want to just send an email you could open a socket to a mail server's SMTP port and follow the SMTP protocols to send your email.
ActionScript sockets: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7cf7.html
SMTP protocol: http://tools.ietf.org/html/rfc821
-- Tom
Maybe you are looking for
-
In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated. The disk could not be read from or written to." How can I overcome this error message.
-
Intel iMac - won't start - grey screen & progress bar
I have a 2006 Intel iMac - 20" model, Intel Core Duo, 2GHz, 2GB RAM, 250GB HDD, etc. It was one of the very earliest Intel iMacs. Kept updated, running OS 10.6, etc. It has worked extremely well for over 5 years - apart from the Superdrive being te
-
I have a networked HP OfficeJet Pro K5400 that is refusing to print. If I try and setup the printer via hp-setup it priduces the error: Printer queue setup failed Please restart CUPS and try again Restarting CUPs has no effect. I can configure it in
-
Hi, I am using a ftp adapter to transfer files. I am placing a 9kb file but after the transfer at the destination I find the file transferred but the file size is 2.8kb. Please do suggest me the possible solution and the reason for this issue Thanks
-
External HD does not appear in Mac HD
I have a 2 TB Western Digital External Storage Drive for Mac, which I used to back up some data, attached to my G3 (upgraded processor to G4 Sonnet) B/W desktop. The drive (My Book) and a separate disk documentation (WD SmartWare) appears on the co