How to send Oracle report automatically in format pdf by email with subject and body?
Hello,
How to send e-mail attachment and mail other details like from ,subject,cc,to,mail body. In Oracle Developer Suite 10g?
Regards.
did you try to run report parameter form = yes ,
put to the parameter form following system parameters and set et.
run report with belove value
- DESTYPE = MAIL
- DESFORMAT = PDF
- DESNAME = mail adres
then according to the result ,rearrange your report forms side while invoke report from forms
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESTYPE , mail ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESFORMAT , PDF ) ;
- SET_REPORT_OBJECT_PROPERTY( reportobject_id , DESNAME , mail adres ) ;
Similar Messages
-
Sending oracle report automatically
Hello,
Can anybody help in figuring from oracle reports 10g to send automatically to pdf format report to a sepcific email address? if could please give a sample code to achieve thsi?
Thanks a lot...I am currently working on a solution for this. The report server and installation environment were causing it's share of issues, most of which I think I have overcome. I am currently having problems with our Report Server with large number of pages. But for small reports it is working.
But it depends on your definition of 'automatic'. We have a custom scheduling tool that runs a Unix script that calls the report server with runtime parameters. After report is generated we use another custom Unix script to create an email attachment combining email header and footer text along with mime settings.
If you are trying to do this form Windows - no help. -
How to send ALV Report in excel format from SAP
Hi Gurus,
We are using SAP 4.7 and using different SAP reports.Now I want to send SAP ALV report in excel format directly from SAP in background.Now we send these reports in background weekly by using autimetic scheduling but this is PDF format.Now I want to change this pdf format to excel format.In SCOT T.Code I am able to find any excel format.Please help me out.
I am waiting for your reply.
Advance Thanks
NirmalHi Nirmal,
I have done the same in my previous organisation.For this particular solution you need to ask your basis guys to upgrade the support package so that BCS classes could be available in the system.
API interafces five some problem with attachemnts and SAP has recommended to use BCS classes.
Currently BCS classes won't be availbale in 4.7.
Once the BCS classes are available
use below code
CONSTANTS:
lc_tab TYPE c VALUE cl_bcs_convert=>gc_tab,
lc_crlf TYPE c VALUE cl_bcs_convert=>gc_crlf,
lc_codepage TYPE abap_encod VALUE '4103',
data :
lv_string TYPE string,
binary_content TYPE solix_tab,
size TYPE so_obj_len,
*" Set Heading of Excel File
CONCATENATE 'Employee DATA'
lc_crlf lc_crlf
INTO lv_string.
*" Set Header for Excel Fields
CONCATENATE lv_string
lc_header1 lc_tab
lc_header2 lc_tab
lc_header3 lc_tab
lc_header4 lc_tab
lc_header5 lc_tab
lc_header6 lc_tab
lc_header7 lc_tab
lc_header8 lc_tab
lc_header9 lc_tab
lc_header10 lc_crlf
INTO lv_string.
"lc_header1 to 10 could be your field headers
"Move Internal table data
LOOP AT gt_final1 INTO gwa_final1.
CONCATENATE lv_string
gwa_final1-field1 lc_tab
gwa_final1-field2 lc_tab
gwa_final1-field3 lc_crlf
INTO lv_string.
ENDLOOP.
*" convert the text string into UTF-16LE binary data including
*" byte-order-mark. Mircosoft Excel prefers these settings
*" all this is done by new class cl_bcs_convert (see note 1151257)
TRY.
cl_bcs_convert=>string_to_solix(
EXPORTING
iv_string = lv_string
iv_codepage = lc_codepage "suitable for MS Excel, leave empty
iv_add_bom = abap_true "for other doc types
IMPORTING
et_solix = binary_content
ev_size = size ).
CATCH cx_bcs.
MESSAGE e445(so).
ENDTRY.
TRY.
*" create persistent send request
send_request = cl_bcs=>create_persistent( ).
document = cl_document_bcs=>create_document(
i_type = lc_doc
i_text = main_text
i_subject = lc_sub ).
document->add_attachment(
i_attachment_type = lc_attach "#EC NOTEXT
i_attachment_subject = lc_sub "#EC NOTEXT
i_attachment_size = size
i_att_content_hex = binary_content ).
send_request->set_document( document ).
recipient = cl_cam_address_bcs=>create_internet_address( email ).
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient.
IF recipient IS NOT INITIAL.
sent_to_all = send_request->send( i_with_error_screen = abap_true ).
COMMIT WORK.
* MESSAGE text-014 TYPE gc_succ .
ENDIF.
CATCH cx_bcs INTO bcs_exception.
MESSAGE i865(so) WITH bcs_exception->error_type.
ENDTRY.
For BCS decalartion u can go to se 38 and see program BCS_EXAMPLE_1 to BCS_EXAMPLE_7.
Rewrads if helpful.
Cheers
Ramesh Bhatt -
Send PO External email with attachement and Body text
Hi,
I need to send Purchase Orders to Vendors as PDF attachments to emails; I have successfully configured all the necessary to send external email with PDF attachement but I want to add text in the body of the email:
For Output Type NEU
Access to conditions (General Data) set to X the Replacement of text symbols is SAPMM06E/TEXT_SYMBOL_REPLACE and I fill the text in the Mail Title and Texts. The email was send with all the information : Attachement, title with PO number but with no text in the body.
Can somebody help me with this issue.
best regards
AndreHi,
My file is "PO Number APM - 123456.dpf". You have to config the "Define Message Types for Purchase Order" in the section Mail title and texts with NEU output type. But don't forget to put the program name SAPMM06E
Look at
[purchase order as email - SAPMM06E and TEXT_SYMBOL_REPLACE|purchase order as email - SAPMM06E and TEXT_SYMBOL_REPLACE]
Best regards
Andre -
How to generate oracle report in PCL format
Hi,
We are having an issue in our application where the output report(PDF) is getting generated in the Postscript format.
The first few lines of the output pdf are like this:
%!PS-Adobe-3.0
%%Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
%%Version: 10.1 2
%%CreationDate: (Tue Feb 12 09:37:10 2013)
However, the printer which we are using to print these PDF files accepts only PCL format and the print request is failing.
Is there a way we can change the generated report format into PCL format.
Any help would be greatly appreciated as this issue is very critical to our application.
Thanks in advance.We are trying to do this directly passing the below parameters
desformat=PDF&destype=PRINTER&desname=<PrinterName>
But the issue is the cached file which is getting generated is in PS format(Its on unix server) and printer is not accepting it.
Even if we keep the output as file and then print the file using lpr command, result is same since the PDF file is in PS format. -
How to send Oracle AS report automatically by email
Dear Gurus,
I would like to generate a Oracle report automatically and send it by Email. so for that I am trying by using below command
C:\home\BIN\rwclient server=rep_servername_FRHome report=C:\reportpath\report.rdf userid=username/password@aliasname desformat=pdf destype=mail desname=[email protected] Parameter1=xxxxx parameter2=xxxxxx parameter3=xxxx parameter4=xxxx
But I am getting below error.
REP-0177: Error while running in remote server
Executed successfully but there were some errors when distribute the output.
But if i tried to generate the output as a file in local machine its working fine and below comand is generating report on local desk
C:\home\BIN\rwclient server=rep_servername_FRHome report=C:\reportpath\report.rdf userid=username/password@aliasname desformat=pdf DESTYPE=file DESNAME=C:\report\reportname.pdf Parameter1=xxxxx parameter2=xxxxxx parameter3=xxxx parameter4=xxxx
My only problem is by using rwclient I am unable to send Email
Please help me on this.
Regards,
Satish Kumar SadhuDear Friends,
I have resolved the issue by putting my smtp server on servicename.conf -
How can i convert oracle report in excel format using 8i
hi,
I want to convert oracle report in excel format using 6i reports. please give the solution with emp table.
millons of thanks in advance.You'll have to use the destype DELIMITEDDATA to render your Report in CSV format. Then set the mime type to Excel. I don't know the exact syntax, so please do a search in metalink for "reports excel" for examples and more info.
Regards,
Martin Malmstrom -
How to send a report for particular job chain every hour regarding the job
Hi Gerben/Anton
We are running one jobchain for all billing jobs . Is any chance is there to send a report automatically to certain pupils for every one hour regarding the job status(excel format ) .
Coudl you please help on this it should be good if i get any reply on this .
Thanks
RamkumarHi Ram,
I need your help on getting mail alert with log file.
here is how i have provide the parameter valure for job definition: system_mail_sent.
Step1 with one job1 and step2 with one job1
In step2 , i have included the job definition to send mail. with below parameter.
Relative Job: Step 1, Job 1
Job File: step 1, job 1: step 1/log.txt
Please let me know if the above method is correct or not.
NOTE: mail server and from address are configured.
Thanks,
Karthik -
How to generate my report in HTML format
Hi
I am using Forms and reports 6i . How to generate a report in Html format.
Please explain what are the option available in reports and the way to do
thanks in advance
prasanth a.s.*specify desformat=html in cmd line
refer
* Forms Reports integration 6i
http://otn.oracle.com/products/forms/pdf/277282.pdf
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
--------------------------------------------------------------------------------- -
How to send a report output as a FAX ?
Hallo Experts,
How to send a report output as a FAX ?
Suppose if I have all the data in an internal table, I will show it as a normal list OR ALV list output.
In the application tool bar I should have a button, and by clicking it the output should go to the customer as FAX. How can I send it to a FAX ? Any Function modules ?
Please help me with an example program.
Regards,
Matt.Hi,
Hope the code given below helps you.
FORM SEND_FAX
TABLES DOC2FAX STRUCTURE TEST_DOC
USING COUNTRY
NUMBER.
DATA: SID(5) TYPE N.
DATA BEGIN OF POPT.
INCLUDE STRUCTURE ITCPO.
DATA END OF POPT.
DATA BEGIN OF PRES.
INCLUDE STRUCTURE ITCPP.
DATA END OF PRES.
CLEAR POPT.
POPT-TDCOPIES = 1. " one copy
* POPT-TDDEST = " done internaly by script,
* POPT-TDPRINTER = " do not fill !!!
POPT-TDNEWID = 'X'. " do not reuse old spool request
POPT-TDDATASET = 'TEST'(022). " fill as you want
POPT-TDSUFFIX1 = 'FAX'(023). " fill as you want
POPT-TDSUFFIX2 = SY-UNAME. " fill as you want
POPT-TDIMMED = 'X'. " send now
POPT-TDLIFETIME = 8. " keep 8 days in spool
POPT-TDTELENUM = NUMBER. " number without country code
POPT-TDTELELAND = COUNTRY. " country of recipient
POPT-TDCOVER = 'test fax'(024).
POPT-TDCOVTITLE = 'test fax'(024).
* POPT-TDIEXIT = 'X'.
CALL FUNCTION 'PRINT_TEXT'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX = ' '
ARCHIVE_PARAMS = ' '
DEVICE = 'TELEFAX' "<<< here we say: fax it !
DIALOG = 'X'
HEADER = HEADER
OPTIONS = POPT
IMPORTING
RESULT = PRES
TABLES
LINES = DOC2FAX
EXCEPTIONS
OTHERS = 01.
* do not bother with exception in sample code
* CANCELED = 01
* DEVICE = 02
* FORM = 03
* OPTIONS = 04
* UNCLOSED = 05
* UNKNOWN = 06
* FORMAT = 07
* TEXTFORMAT = 08
* EXTERNAL = 09.
IF SY-SUBRC = 0.
* arriving here means we could send:
SID = PRES-TDSPOOLID.
IF SID > '00000'.
MESSAGE S433 WITH SID.
ENDIF.
LEAVE .
ELSE.
* do not bother with exception in sample code
MESSAGE A400 WITH 'PRIN_TEXT'.
ENDIF.
ENDFORM. " SEND_FAX
Regards,
Siddarth -
Blank Lines in Oracle Reports in Text Format
Hi all,
I m in a problem that , I generate an Oracle report in text format there is two additional blank lines in text format.But when I view this report in report editor there is no blank lines.There is actually only 15 lines in my report but in text format it shows 17 lines.How can I avoid this prblm.pls help.
thanks
jobuinIs the Design in Character Units set to Yes?
How are you viewing your layout in report editor? Are you viewing with Grid?
If it is Yes and with grid, try to fit your layout objects within the Grid. -
HOW TO SEND THE REPORTS AND THROUGH XI TO NON -SAP SYSTEM
Hi Experts,
I want to know how to send the reports and smartform through xi to another system. All the post blogs are just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.Hi,
XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
In R/3 the smartforms, are generally converted to PDF and then have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
If need anymore specific details, please let us know.
Thanks
Swarup -
How to invoke Oracle Reports from JSP ?
Hi,
I need to invoke Oracle Reports ( paper format ) from my JSP in different formats /PDF, RTF, HTML/ using rwservlet and then send the content to user browser.
Please, someone to give me working example.
Thanks in advance.
Best regards.
Peter.Peter,
you can call it from a URL if you need:
/reports/rwservlet?report=...&detype=cache&desformat=pdf...
You can define a file called cgicmd.dat on teh server that takes key-value pairs of the most common parameters under an named entry.
e.g.
ReportsCommon: destype=cache server=myServer ... %*
This way your URL is reduced to a minimum length because you don't have to list all parameters in teh URL.
Second solution:
Run a Reports from a browser URL and specify paramform=yes. This create a HTML based parameter form before executing teh Reports. Have a look at the HTML form code and see to what extend your Reports share same functionality so that you could create this HTML form in your JSP page. You could have a poplist with the name of "desformat" and list HTML, HTMLCSS,PDF,RTF,XML as valid entries so that the user can select the output format.
The Reports documentation shipped with Oracle9iAS (also available online otn.oracle.com/products/reports) has all teh information you need.
Frank -
How to embedded oracle report data in email body from forms?
Hi,
I am working on oracle forms and report 10g and i am new to this. I want to knw How to embedded oracle report data in email body ?
Regards
ShrutiI have uploaded a sample . This might help
http://www.alexyscorp.com/send_report_email.zip -
How to Start Oracle Report in Unix?
hi
Does anyone know how to start oracle report in unix? I was
told to try this (r60desm) but that did not work. We are on 11i
and 6i. Please help
alphaI don't have Forms/Reports 6i for UNIX. Have you tried typing "r60" and typing tab twice?
Maybe you are looking for
-
I have iphoto 9.2.1 (don't ask...it's not my computer...) and I can't seem to find a way to update to the latest so I can migrate pix to Photos. It says I need to do it; it takes me to the app store and then says it's not available in the UK. Any ide
-
Cannot delete music from ipod touch, tried everything suggested thus far.
I have tried several suggestions up to this point and nothing has worked. It is my understanding that everything in My Music, (on my PC) transfers to the iTunes program, either manually or automaticlly. It is also my understanding that if I add or de
-
Keyboard Superdrive Eject No Longer Works...
After installation of 10.4.9 update, my superdrive will not operate via the keyboard. I am able to load the eject button to the menu bar though. Any help getting this function to work again would be greatly appreciated. Thank you, Dan MacPro/ Xeon 3.
-
I'm trying to republish the content hub but getting mms errors. I checked the coorlation id but make no sense of it. Any help would be appreciated.
-
Financial Reports Substitution variable
Hi All, I have a requirement where we need to calculate last 3 months Average workdays(Workdays= workdays in a month ex:Apr=21....). Some other calc's use this data We tried to push it to essbase by creating substitution variable threemthsAvg = 21...