How to run a report
Hi all,
I have to run a report from OAF. I reffered some threads from this forum and i got some information
to set the url for a link button to open a report .I have created one link and i set the destnation URI like
http://testserver.testdomain:8000/OA_CGI/rwcgi60?server=REP60_VIS&report=TEST.rdf&destype=cache&desformat=PDF.
But when i click this link it is giving error like "Http 404 Not Found".
Anybody can suggest me what i missed.....
Hi,
To run a report, you can call a PLSQL API from the OA Framework Page. Make sure you invoke the Request from this API. Let me know if you face any specific issues.
Thanks
Sumit
Similar Messages
-
How to run a report from oracle 10g form in .csv format
dear all,
how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
i'm using
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
Please Help..i have already tried.
but the report show in htm or html format. that file will not save into csv. please help. -
How to run a report in form 10g
How to run a report in form 10g;
RUN_REPORT_OBJECT - check the on line help and there is a great paper on otn.oracle.com/products/forms and click on 9i papers (it will be relevant for 10g as well)>
Regards
Grant Ronald
Forms Product Management -
How to run the report and show the output in excel file
salam
how to run the report and show the output in excel file,
how to run the report and print the o/p via printer
how to run the report and send the o/p via mail
thank u allHi,
There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
1) Output in Excel File
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
How to Run a Report automatically in Background for every night
Hi,
How to run a report program in Background automatically for every nigh.
Thanks
RameshHi Ramesh,
You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
Or
Goto SM37 and specify a job name.
Next specify the ABAP Program Name of the report you want to execute under Job Step.
Then click on "Extended Job Selection" and goto the Period Tab.
There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
Hope this helps,
Regards,
Madhur
Message was edited by: Madhur Chopra -
How to run a report in back ground
how to run a report in background with out using job open, submit , close is there any other function module to run report in background.
Hi,
There are two ways for you to handle,
one manually setting up the job through SM36 which is better and convinient,
secondly through program using FM's JOB_OPEN, SUBMIT, JOB_CLOSE.
Find below steps in doing both:
Procedure 1:
1. Goto Trans -> SM36
2. Define a job with the program and variant if any
3. Click on start condition in application tool bar
4. In the pop-up window, click on Date/Time
5. Below you can see a check box "Periodic Job"
6. Next click on Period Values
7. Select "Other Period"
8. Now give '15' for Minutes
9. Save the job
Procedure 2 via Program:
Below is a sample code for the same. Note the ZTEMP2 is the program i am scheduling with 15mins frequency.
DATA: P_JOBCNT LIKE TBTCJOB-JOBCOUNT,
L_RELEASE(1) TYPE c.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = 'ZTEMP2'
IMPORTING
JOBCOUNT = P_JOBCNT
EXCEPTIONS
CANT_CREATE_JOB = 1
INVALID_JOB_DATA = 2
JOBNAME_MISSING = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SUBMIT ZTEMP2 VIA JOB 'ZTEMP2' NUMBER P_JOBCNT
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH DESTINATION = 'HPMISPRT'
WITH IMMEDIATELY = SPACE
WITH KEEP_IN_SPOOL = 'X' AND RETURN.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = P_JOBCNT
JOBNAME = 'ZTEMP2'
STRTIMMED = 'X'
PRDMINS = 15
IMPORTING
JOB_WAS_RELEASED = L_RELEASE
EXCEPTIONS
CANT_START_IMMEDIATE = 1
INVALID_STARTDATE = 2
JOBNAME_MISSING = 3
JOB_CLOSE_FAILED = 4
JOB_NOSTEPS = 5
JOB_NOTEX = 6
LOCK_FAILED = 7
INVALID_TARGET = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope the above helps you.
<b>Reward points</b>
REGARDS -
hi sap gurus
can anybody tell me about how to run a report in sap (ABAP). what is the TCode for that one.while i am trying to post asset master it is asking to start a report first and then post. kindly reply me soon
thanx in advanceHi,
- normal ABAP reports are executed by a TCode or SE38
- reports relating to assets are located at SPRO-Info Systems-Accounting-Fixed Assets
Rgds. -
How to run the report RM07CUFA?
How to run the report RM07CUFA?
Go to SE38 and enter RM07CUFA and click execute.
in the next screen enter details for
Movement Type
Special Stock Indicator
Company Code
G/L Account
and execute.
If you have any inconsistency with fields that will be shown with red colour.. -
How to run OBIEE Reports in Multi-Org Environment?
How to run OBIEE Reports in Multi-Org Environment of EBS.
hi Rainer,
My Forms and Reports Server is in Same System only. Actually i am giving this path
http://vagee.ail/reports/rwservlet?
server=rep_vagee_oracle10g_apps_server&report=D:\FP2
\dealer_reports\oc_dealer.rep&userid=fp2/fp2erp@info
&destype=cache&desformat=pdf&ODSNO=OC0809/00110&branch=DLR002
In My AS System Running Successfully. But Client systems Page cannot be display message is displaying.
but generally i m able to access the reports server using this path
http://vagee.ail/reports/rwservlet?
then Reports server page is displaying but
when i specify that report server name
http://vagee.ail/reports/rwservlet?server=rep_vagee_oracle10g_apps_server
page cannot be displayed.
what will be the problem. please help me. thank you.
Regards,
Kalyan. -
How can run the report SAP_INFOCUBE_DESIGN?
hI gURUS
To know about the DIM Table size
How can run the report SAP_INFOCUBE_DESIGN?
Thanks
Cheers
DuraiFunction (se37):
RSDEW_INFOCUBE_DESIGNS
Try to see/run this function in order
to get statistic about one InfoCube
How to determine the size of DIM?
From this Function u can determine
how many rows in DIM u have.
After this u can determine size of DIM table:
ROWS * (How many Bytes are in one row) = Size of table.
In order to determine how many Bytes are in one row,
u can see transaction se11 -> Database table -> Tabkle name of DIM -> Display -> Fields -> just add the length*Bytes for all fields in this table.
BR -
How to Run a Report for Blanket PO that have been OVER Invoiced (over limit
Hi All,
How do I run a report in ME2N, where I would want to see all the Blanket POs (Framework Orders) that has a "Actual Value" (the amt invoiced so far) which is Greater than the Overall Limit (specified in the "Limits" tab)?
Are there any fields in the Dynamic Selection in ME2N? I coudn't Find any......How can I compare two fields in the Blanket PO, for example "Overal Limit' > "Actual Value"?? How to put this selection criteria in ME2N
Edited by: Duke Dukester on Sep 17, 2008 10:31 AMYou will not get this information via ME2N but you can get via ME2S
once you execute the ME2S you will see the PO lines and if oyu double click on it than you will get the all information you are looking but the exact query directly not possible with ME2S
The best way is write the query using table ESUH and EKPO
joint EKPO to ESUH and do the query based on your requirements.
you can get the package number from EKPO and based on the package number you can retrive the data form ESUH table -
How to run GR55 reports in background for cost center hierarchies
1. I have been asked by our users to create batch jobs to run in the background for some GR55 reports, that can then be sent directly to cost center managers via email.
I have figured out the process to do this as long as the cost center manager only needs to see a single cost center at a time. However, if they are in charge of multiple cost centers, we also want to send them a summarized report using the hierarchy we have set up. I can't seem to make this work, as the job only seem to recognize the last cost center in the group and the report is for that cost center.
Example. cost centers 100, 200 and 300 belong to hierarchy abc. If I run the job just for cost center 100 it is fine. But if I have a variant to run hierarchy abc, or even if I use the range 100 to 300, all I get is a report for cost center 300.
We cannot use BW because we only have revenue in BW. I am being asked to make this work from standard R/3 within the GR55 realm of reporting.
2. In addition, the report selection criteria includes two separate plan/forecast versions. They need to update these each month prior to running the reports and sending them out. I looked at the variables associated with the versions and tried to set them up with default values that I hoped would update automatically so that they don't have to manually change 50 or so variants each month. But I don't see any dynamic variables that I can use to have the system make that change without going into each variant individually.
3. There is another piece to this equation as well. There is another report they want sent out in batch, but it is several pages wide in SAP and several pages long. So when you run it in batch and either spool it or get it sent as an email, it is very ugly in the formatting due to all the page splits horizontally and vertically. If anyone knows how to get the report to stay together like it would if you had excel integration turned on, it would be very helpful. I have tried running it with that integration turned on, but the jobs are set up with user batch_mgr and not my id, so it isn't working well. The batch_mgr id is just a system id, not a dialog id. We also don't want the jobs set up with a regular user id because if people leave, then the jobs all need to be changed.Kim,
I may have options for issues 1 and 2. In case of 3, what I can tell you is I understand the concern, but this is what typically happens in some standard CO reports that are not ALV compatible, I don't think there is not much there to do unless you add some custom code for the output.
In regards to point 1, yes, I have noticed that this happens in some standard and custom reporting, not sure what is going on. I came up with a work around that made the trick for my client in a similar scenario; which is editing the cost center groups. For instance, instead of having the group set as a range from 100 to 300, the groups are have listed the cost centers, 100, 200 and 300. Obviously, the disadvantage of this option is that it would require a bit of more cost center group maintenance.
In regards to point 2, I understand from your note that your users already have set up selection variants for the report. One option for you is to get the help from a developer to create a custom period variable and tiny program that runs in batch every month that would update that variable accordingly. Once that's done, you may have to update at least once, the selection variant attributes to change the period to a selection variable, so everytime from that point of time forward that the variable gets updated, it will be ready with the right value for every selection variant that uses it.
Hope this helps.
GG -
hi,
I am trying to run a report from a WCF service application, and then render it in PDF Format to a caller WPF application. But I cant get it! In more detail, this is what my app should do
1. from WPF, call a web service procedure, pass a report name, report path and parameters. Report is store at the same server where Web Service is installed
2. WCF procedure loads report, set parameters, retrieve data from DB and renders it as an array of bytes
3. WPF gets the array, save it into a PDF file, then open it.
this is the code of the WCF procedure.
Function DownloadCRReport(codEnte As String, connString As String, reportDir As String, reportName As String, Parameters As Dictionary(Of String, Object)) As Byte() Implements IGesiService.DownloadCRReport
Try
Dim bytes As Byte()
Dim infile As BinaryReader
Dim fs As FileStream
Dim rep As New ReportDocument
Dim RepAddress As String
logPath = reportDir & "log\"
sb = New StringBuilder()
timestamp = Now.Year.ToString & Now.Month.ToString & Now.Day.ToString & Now.Hour.ToString & Now.Minute.ToString & Now.Second.ToString
logFileName = timestamp & "_" & reportName & ".txt"
logFile = New StreamWriter(logPath & logFileName, FileMode.CreateNew)
logFile.WriteLine("----
Date and time: " & Now.ToString & " -
If My.Computer.FileSystem.FileExists(reportDir & reportName & ".rpt") = False Then
Throw New Exception("file RPT non found in: " & reportDir)
End If
RepAddress = reportDir & reportName & ".rpt"
logFile.WriteLine("rep address: " & RepAddress)
rep.Load(RepAddress, OpenReportMethod.OpenReportByDefault)
logFile.WriteLine("load rep")
If rep.DataSourceConnections.Count > 0 Then
rep.DataSourceConnections.Item(0).SetLogon("usr", "pwd")
logFile.WriteLine("data source connection")
End If
For Each i In Parameters
rep.SetParameterValue(i.Key, i.Value)
logFile.WriteLine("param: " & i.Key & " - " & i.Value)
Next
Try
fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
logFile.WriteLine("export to stream")
infile = New BinaryReader(fs)
logFile.WriteLine("created binaryreader")
bytes = infile.ReadBytes(CInt(fs.Length))
logFile.WriteLine("render pdf. fine")
logFile.Close()
Return bytes
Catch ex As Exception
logFile.WriteLine("vbCrLf & ex.Message & vbCrLf & ex.InnerException.Message)
logFile.Close()
Return Nothing
End Try
Catch ex As Exception
logFile.WriteLine("vbCrLf & ex.Message & "-" & vbCrLf & ex.InnerException.Message)
logFile.Close()
Return Nothing
End Try
End Function
I detected that error occurs on rep.ExportToStream(ExportFormatType.PortableDocFormat). I should point out that the same procedure works under WPF application. In the WCF server I installed CR Runtime engine for .NET framework (13.0.9.1312) and CR version for Microsoft Visual Studio (same version). Moreover, all DB operations are stored into the report, so I should not pass any dataset, just parameters.
Anyway, just to begin, I tried to call a simple report with just two string parameters and no queries, but I alwais get error ("An exception of type 'System.NullReferenceException' occurred in MyApp... Object reference not set to an instance of an object)!
How can I make it work? thanks for helphi Ludek,
Im trying to change DB connection info at runtime for all of the report tables. this is the code I used in my Web Service
Function DownloadCRReport(...)
If rep.DataSourceConnections.Count > 0 Then
Dim conn As New ConnectionInfo
Dim tabLogon As TableLogOnInfo
conn.ServerName = "10.10.15.90" 'IP address of DB server
conn.DatabaseName = "MyDB" 'Database name as set in TNSNAMES.ORA
conn.UserID = "newuser"
conn.Password = "newpwd"
For Each t As Table In rep.Database.Tables
tabLogon = t.LogOnInfo
tabLogon.ConnectionInfo = conn
t.ApplyLogOnInfo(tabLogon)
logFile.WriteLine("changed logon tab. " & t.Name)
Next
rep.Refresh()
logFile.WriteLine("changed data source connection")
End If
'set parameters
If Not IsNothing(Parameters) Then
For Each i In Parameters
rep.SetParameterValue(i.Key, i.Value)
logFile.WriteLine("set parameter" & i.Key & " - " & i.Value)
Next
End If
fs = rep.ExportToStream(ExportFormatType.PortableDocFormat)
End Function
that comes to an error on rep.ExportToStream: "Unable to access database".
Running web service in debug mode, I noticed that, after t.ApplyLogonInfo(tabLogon), the new ConnectionInfo has "password" property empty. Maybe this could cause the error, or is there some mistake in the new connectioninfo? -
How to run Oracle Report in new window
Hi,
There appear to be many threads regarding this issue, but so far I've been unable to piece together a solution to my problem.
My requirements are quite simple really.
- Invoke an Oracle Report from an HTMLDB page
- Pass parameters form the page to the report URL
- Run the report in a new window
I have created a simple example at:
http://htmldb.oracle.com/pls/otn/f?p=36506:1
Page 1 contains the following HTML Header attribute
<script language="JavaScript" type="text/javascript">
function callMyPopup (url){
w = open(url,"winLov","");
if (w.opener == null)
w.opener = self;
w.focus();
</script>
The URL i wish to invoke is
http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.
My question is, where would I put the code to invoke the URL? I'm trying to use the following code
javascript:callMyPopup('http://myappserver/reports/rwservlet?test/test@test+report=test.rdf+&P1_PARAMETER.');
I've tried putting this in a branch but I get a 'Page can not be displayed' error.
Any help would be appreciated.
Thanks
AndrewHi,
I'm trying to invoke an oracle report through a button in apex2.2. Please let me know how to display the report in a new window.
I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
I've read some of the posts and put the URL as the target of the button instead of a branch and also used the javascript:popupURL(), but it still doesnt work for me. The URL works fine without the javascript.
I have put the URL as of now in the branch of the button, and the report is getting displayed in the same window.
Thanks in advance,
Priyanka -
How to run multi reports at a time using button
dear all
i have a button on form, that call a report abc.rep. when i press the button report is displayed. now i want to show another view of that report when i press button second time. but it doesn't appear. when i close the first report that it gets run.
how can i run same report multiple time using this button.
regards.
Asif iqbal
Software Engineer
(Karachi, Pakistan).HI
Call you report using this code then you can run more then 1 report at the same time
declare
AppID PLS_INTEGER;
begin
AppID := DDE.App_Begin('RWRUN60 module=d:\reports\LEDGER_NEW.Rep userid='||:global.the_username||'/'||:global.the_password||'@'||:global.the_Connect||' maximize=yes user_id='||:global.the_username||' user_password='||:global.the_password||' user_connect='||:global.the_connect, DDE.App_Mode_Maximized);
end;
Rizwan
www.rizwanshafiq.blogspot.com -
Hello,
I am new at Reports 9i. I created report dummy.jsp which selects some data from a table.
Could you please explain me how to run this JSP Report from internet explorer?
Sincerely.
giviHello Givi,
For running the JSP report from a browser, you need a J2EE container like OC4J. The JSP report can be run in two ways:
1. rwservlet
http://<we_server_host>:<port_no>/reports/rwservlet?<reports_parameters>
2. the JSP deployed on the J2EE container
http://<we_server_host>:<port_no>/<context_root>/your_report.jsp?<reports_parameters>
Method 1 will actually display the paper layout of your report, while method 2 will display the web layout on the browser.
If you want to start with basic information, pl refer to the section 8.1.2 of Publishing Reports document available at
http://otn.oracle.com/docs/products/reports/content.html
Navneet.
Maybe you are looking for
-
How do I refresh a chart in Pages copied from Numbers?
How do I refresh a chart in Pages (v.5) copied from Numbers (v.3)? After updating and saving the chart in Numbers, I get no "refresh" button in Pages when I click on the chart. Or has this very useful feature been eliminated?
-
HT4910 if i deleted all my contacts from iCloud. how to do put them back it?
if i deleted all my contacts from iCloud. how to do put them back it?
-
9.3.0 install questions
I need assistance with several questions & issues regarding SP2 vs SP3 Using my Enterprise Distribution License Agreement (http://get.adobe.com/reader/enterprise/) I am able to download the installer code for Adobe Reader v9.3.0 for Windows XP SP2 an
-
Solaris 10 05/09 CD Install - CD1 Hangs on HP DL380
Hi, I am trying to install Solaris 10 05/09 from CD's onto HP Proliant DL380 servers. The install process hangs everytime after it has displayed the three lines... SunOS 5.10 etc. Copyright etc. Use is subject to license terms. It DOES NOT display th
-
Hi, Can Any one tell me the performance tuning techniques we can do in OBIEE Answers side?not RPD