Sending report through e-mail
This is my procedure through which i m sending an e-mail. In my e-mail i want to show formatted output from query.(?) I can show it in simple text but i want the output for the query to be formatted as the query result is formated in iSQLPlus.
In simple words instead of the message i want to send the query result which is formatted as iSqlPlus query output. Thankx in advance. Please provide a simple solution that iSqlPlus engine recieves my any given query and gives the formatted output for that query in the e-mail
Or suggest any implemented code for mailing the formatted query result through mail.
Thankx in advance
DECLARE
conn utl_smtp.connection;
v_log number;
BEGIN
conn := demo_mail.begin_mail(
sender => '<sender-email>',
recipients => '<recipient-email>',
subject => 'HTML E-mail Test',
mime_type => 'text/html');
</h1>
-- This method will be used for oracle error reporting');
demo_mail.write_text(
conn => conn,
message => '<h1>Hi! This is a <i>test msg</i>);
demo_mail.end_mail( conn => conn );
END;
Justin:
There is a function where you submit a query and this function output is formatted table data, but problem is how to store that output of a function in a variable
Declare
V_Temp Boolean;
Begin
v_Temp := OWA_UTIL.tableprint( ctable => 'tbl_log', cattributes => 'BORDER=1', ntable_type => OWA_UTIL.pre_table);
I want to store the output of this function explained in above code in a variable (variable is in a procedure. I want to get this output in a variable coz i want to forward this output to a mail procedure, which will mail this data).
The output is: -
<PRE>
| Col1 | Col2 | Col3 |
| 2000 | 4000 | 5000 |
| 2000 | 4000 | 5000 |
</PRE>
Similar Messages
-
Hi
I have a scenario where in an e-mail (Report) has to be triggered to various customers(BP)
Can any one help on this
Thanks
NandaHi Nanda,
You can use FM SO_DOCUMENT_SEND_API1 to send mails with attachments to users.
Please state if you have some specific query.
Regards,
Saumya -
How to send reports through mail in 11g
Hi,
How can we send reports through mails in 11g, please send me the steps,
ThanksHi,
Please refer the below links.
http://satyaobieesolutions.blogspot.in/2012/06/agent-mail-configuration-for-obiee-11g.html
http://satyaobieesolutions.blogspot.in/2012/06/obiee-11g-agent-mail-configuration-step.html
Hope this help's
Thanks,
Satya
Edited by: Satya Ranki Reddy on Jun 10, 2012 11:50 AM -
ERROR WHILE SENDING REPORT THROUGH EMAIL .....
DEAR ALL
i have one problem . i am trying to send my report through e-mail.i am working with forms 5.0 and report 3.0 . i am calling report from form.when a client click on the button a report will be generated and this will be send to a specific person in a specific format either in html or pdf.
but when i click on button it initialize the report and gives the error
rep-4201 : error occured while initialize the mail subsystem.
rep-4220 : there is a problem with the mail subsystem.
if anyone of u have the solution for this please send to me.it will be very much helpfull if you send me the code.
thanks in adv.
D prasad.
nullwell you will have to configure a default mail client on your machine. you can do this by going to control panel->mail in windows os.
you might also need a .dll file mapi*.dll something. you will need this .dll file in your client machine.
best of luck -
Very urjent how to send report output in mail
hi experts,
how to send report output in mail which function module should i use wht parameters should i pass.
thanks in addavnce,
points to be awarded.CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = '026c'
copies = count
list_name = 'VATS_ASBUILT'
list_text = v_list
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = days
line_size = 132
line_count = 65
layout = 'X_65_132'
* sap_cover_page = 'X'
* cover_page = 'X'
receiver = 'SAP*'
department = 'VATS'
no_dialog = 'X'
IMPORTING
out_parameters = params
valid = valid.
SUBMIT zppr_vats_asbuilt WITH p_aufnr EQ v_aufnr
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS params
AND RETURN.
SELECT SINGLE rqident FROM tsp01 INTO l_spoolno
WHERE rqtitle = v_list .
* convert report to PDF format
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = l_spoolno
no_dialog = 'X'
TABLES
pdf = l_ipdf
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.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
EXIT .
ENDIF.
Now comes the part to send the mail
try.
* -------- create persistent send request ------------------------
send_request = cl_bcs=>create_persistent( ).
clear document.
* -------- create and set document with attachment ---------------
* create document from internal table with text
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = text
i_length = '12'
i_subject = '' ).
*changing the content of the attachment
binary_content[] = l_iobjbin[].
*change the name of the PDF attachment
concatenate 'Build ID' s_buildid_i 'Rev' v_buildid_rev
into i_att_sub separated by space.
* add attachment to document
call method document->add_attachment
exporting
i_attachment_type = 'PDF'
i_attachment_subject = i_att_sub
i_att_content_hex = binary_content.
*setting the option to send an e-mail more than 50 characters
call method send_request->set_message_subject
exporting
ip_subject = t_sub.
* add document to send request
call method send_request->set_document
exporting
i_document = document.
* --------- set sender -------------------------------------------
* note: this is necessary only if you want to set the sender
* different from actual user (SY-UNAME). Otherwise sender is
* set automatically with actual user.
sender = cl_sapuser_bcs=>create( 'VATSUPPORT' ).
call method send_request->set_sender
exporting
i_sender = sender.
*Send the list based on receivers list obtained
loop at l_ireclist.
AD_SMTPADR = l_ireclist-receiver.
* --------- add recipient (e-mail address) -----------------------
* create recipient - please replace e-mail address !!!
recipient = cl_cam_address_bcs=>create_internet_address(
AD_SMTPADR ).
* add recipient with its respective attributes to send request
call method send_request->add_recipient
exporting
i_recipient = recipient
i_express = 'X'.
ENDLOOP.
call method send_request->set_status_attributes
exporting
i_requested_status = 'E'
i_status_mail = 'E'.
* To send the mail immediately
call method send_request->set_send_immediately( 'X' ).
* ---------- send document ---------------------------------------
call method send_request->send( ).
commit work. -
Can't send email through Apple mail
I suddenly am not able to send email through Apple mail on my MacBookPro. ipad and iphone still working. I can also send email through att online. My email is @att.net, and the message says "The server cannot be contacted on port 465". (That is the proper port)
Hi,
Here are some suggestions,
1. Try downloading another free email client to see if it works from there, just to eliminate other possibilities.
2. Try removing the account in mail settings, and adding it again with the correct settings.
Let me know what you find!
Nolan -
How can I send reports to the mail box of staff from my application.
My report was developed using reports 6<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gloria Akika ([email protected]):
How can I send reports to the mail box of staff from my application.
My report was developed using reports 6<HR></BLOCKQUOTE>
I think this will work if you have the default mail set up on your machine:
Q:\ORACLE\BIN\R25RUN32.EXE module=S:\TableDef.rep destype=mail desname=[email protected] userid=username/password@databasename
null -
How to send my report through e-mail
Hello to All
i am generating a report in report 2.5 what i want in place of sending report to printer or screen i want to send reports output through email either in html or pdf format.
please send me the solution for the same.
thanks.
nullHello to All
i am generating a report in report 2.5 what i want in place of sending report to printer or screen i want to send reports output through email either in html or pdf format.
please send me the solution for the same.
thanks.
null -
Can any body please tell me how to send a report through fax, when the fax modem is connected to the server or to any client
Hi Yadala
In 9i Reports Services provides you with mechenism to attach a pluggable destination which in your case can be a fax. You can refer Reports java API for pluggable destination interface and attach your own code to do this task.
You can also refer FAX using Oracle9iAS Wireless plugin example at following url:
http://otn.oracle.com/products/reports/pluginxchange/content.html
This uses Oracle9iAS Wireless to fax report output.
Thanks
The Oracle Reports Team -
Can't Send Note Through e-mail
Hi,
Any one having this issue? I can compose a Note to send through e-mail, but then it doesn't get sent.My only other suggestions is add the email to a contact in your phone. When you type that contact's name, their email show pop-up below as an option. If that doesn't work, I don't know. Sorry.
-
Send email through Yahoo mail or Gmail with Java
I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ? Any sample code available ? Thanks.
FrankThanks for reminding me, I did some search on "Yahoo" and "Gmail". For Yahoo someone posted some code that didn't work, for gmail, there seems to be a solution for sending email from command line. I wonder if I can send full fledged email : with CC, BCC, Attachment, Html email with images inside ...
I've done it with a local mail host, but how to do it with Yahoo or Gmail ?
Frank
Have you read the JavaMail FAQ? Search for "Yahoo" and "Gmail". -
Sending html through java.mail
Hello, what i am attempting to do is present a user with a survey via .jsp in a browser. When the user submits the form i am retrieving all of the parameters and reconsituting the html form via the URL class. What i would like to do at this point is mail the html form to myself. The net result being, when i open my outlook and view the incoming survey, the survey looks pretty much like it did just before the user submitted it.
Currently what is happening is the html text is appearing in my email as apposed to the rendered html page.
Is this a mime type issue? When i query the mulibodypart.isMimeType("html") i get "false".
The way that i am creating my mail msg is:
try {
//open the URL...
cat.debug("opening url stream...");
in = new BufferedInputStream(
url.openStream() );
} catch ( IOException e ) {
cat.error( "Couldn't retrieve data from url!" );
}//try
session.setDebug(true);
// construct the message
Message msg = new MimeMessage(session);
msg.setFrom();
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(to, false));
msg.setSubject(subject);
MimeBodyPart mbp1 = new MimeBodyPart(in);
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
msg.setContent(mp);
msg.setHeader("X-Mailer", "JavaMailer");
msg.setSentDate(new Date());
// send the thing off
Transport.send(msg);
Any help would be greatly appreciated.
CharlieHere is the code that gets url and send contents of it via email
public void sendMimeMail(String subject, String sUrl, String destination, String sender){
try {
javax.mail.Message msg = new javax.mail.internet.MimeMessage(session); //create session somewhere
msg.setFrom(new InternetAddress(sender));
msg.setRecipients(javax.mail.Message.RecipientType.TO,
InternetAddress.parse(destination, false));
BodyPart messageBodyPart = new MimeBodyPart();
URL url = new URL(sUrl);
messageBodyPart.setDataHandler(new javax.activation.DataHandler(url));
MimeMultipart multipart = new MimeMultipart("Related");
multipart.addBodyPart(messageBodyPart);
msg.setContent(multipart);
msg.setSubject(subject);
Transport.send(msg);
}catch(Exception e){
e.printStackTrace();
}Raine -
Read spool data and send it through e-mail as .txt or .xls attachment
Hi All,
I have to read the spool data and send it via e-mail as .txt or .xls attachment. I have used FMs LIST_TO_ASCI, RSPO_RETURN_SPOOLJOB and SO_SOLITAB_TO_SOLIXTAB. I am using FM SO_DOCUMENT_SEND_API1 to send e-mail.
My problem is, the text file being sent is not showing entire data. It's getting truncated after 255 characters. Is this a standard? If yes, then is there any work around for it?
Alternatively, I can send the file as excel attachment. How can this be done?
Thanks,
AshwiniYou will have to convert string to Xstring and then to binary to acheive this.
Check this wiki to send a mail attachment with more than 255 characters.
[https://wiki.sdn.sap.com/wiki/display/Snippets/Tosendamailattachmentwithmorethan255charactersinaline]
Vikranth -
Problems all of a sudden with sending files through MAC mail?
My .Mac email has acted up over the past week. I used to send documents smaller than 300k every day to whoever with no problems. Now, I'm lucky if they even go. A progress bar will tell me 8% done... 15% done... 21% done and then most of the time I'll get the message 'Could not be delivered... Try Again or Save for Later?'. Every now and then I'll get lucky and one will send, but it's become rare. Even when it does go it takes FOREVER. 5 minutes or more. They used to take 30 seconds... if that. This is a problem on three different G5's with Mail version 1.3.11 (v622/623). I use a high-speed cable connection to the internet, so it's plug and play for me basically. I even created an account with Comcast mail just to test the documents there and they shoot through with no problems (but that defeats the purpose of using my business email address on .MAC).
Any suggestions?Are you saving Sent messages on the server with your .Mac account on all computers?
No.
Are you using Port 25 to send messages with the .Mac SMTP server in Mail on all Macs?
Yes.
If so, try changing the Server Port from 25 to 587. Go to Mail > Preferences > Accounts and under the Account Information tab for the account preferences at the SMTP server selection, select the Server Settings button below. At the Server Port:, enter 587 in place of 25 in the space provided and when finished, select OK to save the changed setting.
Tried that with the same result. I'm stumped. Could there be something wrong with my router you think? Thanks for the help! -
Sending Reports Through Microsoft Exchange Server
Hi,
We are working in oracle applications 11i on solaris. In Oracle HRMS we have a customized report that generates pay slips for employees in PDF format.
Please note that currently we are not implementing the Oracle Self Service feature as our organization hierarchy is not built in the system.
So, We are studying the possibility of sending these reports by email to the staff through Microsoft Exchange Server.
Can someone guide me where to start and what do I need to accomplish this please....
Thank you..Hi;
What is your EBS and OS?
If you are usign concurrent manager for getting report please check below:
How to Configure Concurrent Request Output Option to be Notified by Email . [ID 456925.1]
Also check workflow notes:
Control - Workflow: Setup Doc ID: 113664.1
Oracle Workflow Best Practices Release 12 and Release 11i [ID 453137.1]
OWF Diagnostics, Solutions and Information Doc ID:332152.1
11i/R12 - A guide for troubleshoting Workflow Notification Emails - Inbound and Outbound Doc ID:831982.1
Hope it helps
Regard
Helios
Maybe you are looking for
-
Windows corrupts itself, errors installing Boot Camp 2.0 & 2.1
Mac OS 10.5 is working just fine, however upon partitioning and installing Windows XP Pro w/ SP2, I have nothing but problems! Windows update will not work, cannot install Boot Camp 2.1 without errors (says files are corrupted, even though I have re-
-
500 Internal server error on Export to Excel
Hello All, I have implemented Export to Excel using this tutorial: http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0 However, after deploying the application, it simply throws 500 internal s
-
I have be running skype perfectly for the last year or so and then the other day my sister donloaded skype on her user know when i lanuch my skype i cnat hear anything, no ringtone, no message noise, no voice from the otherside of the call, nothing.
-
One business area data is not reflecting queries very urgent
we had two business areas under one chart of account .while executing the query the fig of one business area not reflecting in queries what could be the reason. please i will assign full points give me best solution.Very urgent Regards, sampath
-
After your last update, the print font in my email is too small
THE PRINT SIZE IN MY EMAIL SHRUNK AFTER YOUR LAST UPDATE == after your last update