Can we schedule BI publisher report through pl/sql?
Hi,
If any new user is created and given "schedule report" privilege,
instead of logging to bipublisher portal with the user's id and scheduling individual report I want to have a pl/sql package which when fired, if finds any new user should run those reports and save output for the user.
For these I should call the bipublisher report in pl/sql through scheduler schema, set parameter values, provide run_interval, output_format etc.
Please let me know if this is possible and also give example code.
This is urgent requirement. Please reply ASAP.
Thanks and Regards.
Hi,
am also having same requriment, if u did plz guide me.
Thanks.
Similar Messages
-
How i can ristrict my BI Publisher report in Dashboards.
Dear All,
How i can ristrict my BI Publisher report in Dashboards.
I have different branches in my report .
I have to send my report split by branches and have to give security to that branch user.
Is it posible in BIP or i have to do in Data Base Level.
I need more information on dashboards
Regards
Subbu..Hi Subbu,
Apology for delay in reading your post.
Your needs and their solution are,
'split by branches ' - use bursting capability of BI Publisher
'have to give security to that branch user' - make out the report in specific folder and dashboard in BI Dashboard. Then give role based and grouped access to users to this Dashboard. For this navigate in BI Application to Settings > Admin > Manage Presentation Catalog. here you can setup dashboard specific security.
Cheers -
Can I schedule COBOL program directly through oracle scheduler
Hi,
I am scheduling a SHELL SCRIPT through scheduler, the shell script executes COBOL program internally.
Can I schedule COBOL program directly through oracle scheduler
Thanks,
Nagaraju A.Hi,
if your Shell script-cobol is runing without error, you can call from Oracle scheduler.
Regards -
XML Publisher Report with PL/SQL
Hi
Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
1. created a pkg like as below
CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
PROCEDURE main (errbuf OUT VARCHAR2,
retcode OUT NUMBER
) IS
BEGIN
DECLARE
ctx DBMS_XMLGEN.ctxHandle;
xml CLOB;
BEGIN
ctx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
END;
END;
END TEST_XMLTAG_PKG;
this pkg produces the output with xml tag in the view log.
I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
can you please let me know the next steps involved.
Regards
YramI think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
add Begin and end tag...then you should be fine.. i.e
fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
tx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
Hope this helps..>Good Luck
Ravi -
Invoking XML Publisher Report from PL/SQL
Hi,
I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output for this request "
But if I run the same report using Concurrent program, the Report executes with no error. Also the desired output is coming. I am not sure where I am doing wrong in code.
My code which invokes the XML Publisher Report (from PL/SQL package)is something like this:
declare
x boolean;
l_no_of_copies varchar2(45);
l_printername varchar2(45);
l_print_style varchar2(45);
l_result boolean;
y number;
begin
x := fnd_request.add_layout (template_appl_name => 'XXTMG', template_code => 'XXT_5001_BOL_T', template_language => 'EN', template_territory => 'US', output_format => 'XML');
l_no_of_copies := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_NO_OF_COPIES');
l_printername := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_PRINTER');
l_print_style := NULL; --For setting the Printer Options
l_result := fnd_request.set_print_options (l_printername, l_print_style, l_no_of_copies, TRUE, 'N');
l_result := fnd_request.add_printer (l_printername, 0);
y := fnd_request.submit_request ('XXTMG', 'XXT_5001_BOL', '', TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'), FALSE, 'CH-120079') ;
end;
Please let me know where I might be going wrong
ThanksHi Sumit,
You can try with this code:
exec dbms_application_info.set_client_info(org_id)
exec fnd_global.APPS_INITIALIZE(user_id,resp_id,appl_id);
declare
x boolean;
l_no_of_copies varchar2(45);
l_printername varchar2(45);
l_print_style varchar2(45);
l_result boolean;
y number;
begin
x := fnd_request.add_layout ('XXTMG' --template_appl_name
,'XXT_5001_BOL_T' --template_code
,'en' --template_language
,'US' --template_territory
,'XML' --output_format
if (x=TRUE) then
y := fnd_request.submit_request (
'XXTMG' --application
,'XXT_5001_BOL' --program
,SYSDATE --start_time
,FALSE --sub_request
,'CH-120079' --argument1 (Program's Parameter)
if y>0 then
dbms_output.put_line('Request ID '||y);
end if;
end if; --if (x=TRUE) then
end;
Make sure that program has only one input parameter. If program has other parameters then you can pass those parameters like argument1, argument2... etc.
Now you can see this submited request in your application using your user id. If you able to see your request in concurrent request then you can add printer parameters in this programs.
You don't need to pass all 100 parameters.
I am executing many programs/reports using this code.
Thanks
Ravi
[email protected]
Message was edited by:
Ravi Tripathi -
Calling Report Through PL/SQL
Hi All,
Is it possible to call a report through PL/SQL?If yes, please help me in this regard.
Thanks.
Vinay Kumar GargHi,
There are 4 ways to call a report.
Check out the following:
http://oracleapps4u.blogspot.com/2011/03/oracle-report-request-methods.html -
hi,
i need to generate a report through pl/sql without using the concept of spool...
please suggest some ideas
thanks in advance
LovelyUTL_FILE Demos
http://psoug.org/reference/utl_file.html
Etbin's link also have many useful examples -
Get Job_Id after Scheduling BI Publisher Report
Hi
We are running the BI Publisher reports from Unix shell scripts. Please find below one sample code of the shell script
## Start Script
wsdl_url="......."
job_name="TEST"
user_id="TST"
pwd="TST1"
java Scheduler $1 $2 $wsdl_url $job_name $user_id $pwd
## End Script
Parameter $1 and $2 are report parameters and Report name. After running this script, I need to capture JOB_ID and get the status from table XMLP_SCHED_OUTPUT for the corresponding JOB_ID.
Can you please tell me how to get JOB_ID.
Thanks
Prasunwhat is the scheduler program does ?
Did u write this java code ?
if so, you can send the value out of that and capture it in shell. -
Can we schedule FSG thru Report Manager?
Hi all,
I am trying to schedule an FSG that is currently being published using Report Manager. So it has a repository location defined and a item link set up for quick view of the report. There are several content sets that are used to run the report. Currently the report is being manually published every month. Is it possible to schedule the FSG to run automatically every month at specified date and time?
Also is it possible to schedule or trigger the FSG publishing as soon as the GL period is closed?
Thanks
SunilPlease see these docs.
Can FSG Report Sets be Scheduled? [ID 460668.1]
Is It Possible To Schedule Report Manager Requests For FSG Reports [ID 799473.1]
How to Schedule an FSG Report Set to Run Every Month [ID 144838.1]
Overview of Report Manager [ID 726774.1]
Thanks,
Hussein -
Can we use xml Publisher reporting for sql* Plus in EBS
Hello All,
The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
Thanks and Regards
Balaji.Hi
Thanks for the reply..
I tried to do the follwoing
1. changed the output to xml in the conc. prog.
2. ran the same report but i am getting the follwoing error in the output file
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource
Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
thanks in advance
Balaji. -
How can I schedule my Bex report to execute in background
My Bex program takes more than 20 mins to run and it always hangs up my PC especially when I am trying to do something else in EXCEL.
How can I schedule to run the report in background, whether from BEX or anywhere as long as I can get the report output.
ThanksHi Colin.......
Check this......
Schedule Reports in BW
Regards,
Debjani....... -
XML Publisher reports through OAF in R12
Every time I submit a concurrent request I am unable to put a layout and thus no report is generated. If I run the report through forms there are no issues and everything works great. If I run it through OAF the layout never gets added to the request. All of the previous threads deal with versions of Oracle earlier than what I'm working with.
Here are the details when ran through OAF: http://i.imgur.com/bBYOe.png
Here are the details when ran through forms: http://i.imgur.com/1gfEt.png
Here's my current code:
This is in the AM. public int submitCPRequest() {
try
OADBTransaction tx = (OADBTransaction)getDBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = new String("UNIApps"); //Application that contains the concurrent program
String cpName = new String("UNIA_OAF_XML_TEST"); //Concurrent program name
String cpDesc = new String("");
String time = new String("");
// Pass the Arguments using vector
Vector cpArgs = new Vector();
// Calling the Concurrent Program
cr.addLayout(applnName,cpName,"en","US","PDF","AMERICAN");
//cr.addLayout(applnName,cpName,"en","US","PDF",null);
int requestId = cr.submitRequest(applnName, cpName, cpDesc, time, false, cpArgs);
tx.commit();
return requestId;
}catch(Exception e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
}This is in the CO. public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("report") != null)
String requestId = am.invokeMethod("submitCPRequest").toString();
//requestId = "27546040";
Serializable params[] = {
requestId
pageContext.getApplicationModule(webBean).invokeMethod("getOutputURL", params);
String outputURL = (String)pageContext.getTransactionValue("OutputURL");
try
pageContext.sendRedirect(outputURL);
return;
catch(Exception exception)
throw new OAException(exception.getMessage());
}thank u . the code useful for me
-
Call BI Publisher report from PL/SQL
Hi,
I was looking for a solution to "download" a PDF report from BI Publisher in a PL/SQL procedure. After the download, I need to insert it into a table.
I can't believe noone ever done this, but I can't find a good solution.
Thanks,
Janintersting...
look at java api
so as idea you can try to use java for working with report in database then wrap it by plsql and use
look at Oracle&reg; Fusion Middleware Developer's Guide for Oracle Business Intelligence Publisher 11g Release 1 (11.1.1) - …
7 Using the BI Publisher Java APIs
8 Using the Delivery Manager Java APIs -
How Can I Schedule a Deski Report in Infoview that has a VBA Macro
Hi experts,
i've made a report that has a vba Macro. I published it in infoview. If I launch it manually (clicking on the refresh button) the macro works normaly. If I schedule it the macro doesn't work.
What can I do?
Is it possible to make a program that simulate the opening and click on the refresh button?
Or i there is another solution?
Here is my Macro:
Private Sub Document_AfterRefresh()
Dim filtervar As Variant
Dim filterText, Filter As Long
Dim DocName, NewName As String
Dim Pathing, TodaysDate As String
Dim folderName As String
TodaysDate = Format(Date, "DDMMYYYY")
Pathing = "
Ktsdwh0\c$\OutputBO\"
DocName = ThisDocument.Name
filterText = "Dpre Cod Produttore"
filtervar = ThisDocument.Evaluate("=<" & filterText & ">", boUniqueValues)
For Each sepval In filtervar
Filter = sepval
For n = 1 To ThisDocument.Reports.Count
Call ThisDocument.Reports(n).AddComplexFilter(filterText, "=<" & filterText & "> = " & Filter)
ThisDocument.Reports(n).ForceCompute
Next n
MkDir (Pathing & Filter & "\")
NewName = Pathing & Filter & "\" & Filter & "-" & TodaysDate & "-" & DocName 'for Prova_Prod.rep
' NewName = Pathing & Filter & "-" & TodaysDate & "-" & DocName 'for Prova_Prod.rep
ThisDocument.ExportAsPDF (NewName) 'to Save as PDF
Next
For n = 1 To ThisDocument.Reports.Count
Call ActiveReport.AddComplexFilter(filterText, "=<" & filterText & "> = <" & filterText & ">")
' To delete a Complex Filter, you set it equal to itself...
ActiveReport.ForceCompute
Next n
End Sub
Please Help!
Best regards
CamilloHi Philippe,
If you are using Windows 2003 with SP2 then it might be the issue as already logged for BOXIR2.
You can test the issue by using only Windows 2003 without SP2.
In case your operating system is only windows 2003 then following information and code might be helpful for you to resolve the issue.
There are a number of things to check when setting up a macro to work through Infoview or scheduled. The first thing is that the macro needs to be triggered to run. This is done by putting a call to the macro in the Document_BeforeRefresh or the Document_AfterRefresh event handler.
The report server and job server are designed to process one report at a time. Through a macro it is possible to open more than one report, and do various processing with those additional reports. Since the report and job servers are not designed to process more than one report, your macro should not open an additional report.
The fact that only one report is processed at a time also affects the syntax you should use when referring to a document or report object. In the DeskI client you can use the ThisDocument object to refer to the report which is running the macro. You can also use the ActiveDocument object to refer to the report that is currently displayed. Most of the time these two objects will point to the same report. When the report server or job server process a report there would never be the possibility for a different report to be active, so the ActiveDocument object does not exist. This also applies to the ActiveReport object. Instead of using ActiveDocument your macro code should use the ThisDocument object. Instead of using the ActiveReport object you should use ThisDocument.Reports.Item(1) to refer to this first report tab in a report.
These items are the most common issues that will cause a macro not to run through Infoview or when scheduled. The best way to debug a macro which is not working in either of those places is to include code which will log the macro's progress to a file. This makes it easy to determine exactly which line of code is causing issues so that it can potentially be corrected.
#Region u201CWeb Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim myInfoStore As InfoStore
Dim myEnterpriseSession As EnterpriseSession
myInfoStore = CType(Session("InfoStore"), InfoStore)
myEnterpriseSession = CType(Session("EnterpriseSession"), EnterpriseSession)
Dim DOCUMENT_NAME As String = "document_name"
Dim query As String = "Select SI_ID, SI_NAME, SI_SUBJECT, " _
& "SI_COMMENTS, SI_OWNER From CI_INFOOBJECTS Where SI_KIND = 'FullClient' " _
& "AND SI_INSTANCE=0 AND SI_NAME='" + DOCUMENT_NAME + "'"
Dim myInfoObjects As InfoObjects = myInfoStore.Query(query)
Dim myInfoObject As InfoObject = myInfoObjects(1)
Dim myDeskiDoc As FullClient = CType(myInfoObject, FullClient)
Dim mySchedulingInfo As SchedulingInfo = myDeskiDoc.SchedulingInfo
mySchedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce
mySchedulingInfo.RightNow = True
Dim myFullClientFormatOptions As FullClientFormatOptions = myDeskiDoc.FullClientFormatOptions
myFullClientFormatOptions.Format = BusinessObjects.Enterprise.Desktop.CeFullClientFormat.ceFullClientFormatFullClient
myInfoStore.Schedule(myInfoObjects)
End Sub
End Class
I hope this will help you.
Regards,
Sarbhjeet Kaur -
Download XML Publisher report through URL
Hi Gurus,
I need to download pdf that which is generated using data template(.xml) and Layout template(.rtf) from XML Publisher through URL by passing required parameter.
Could anyone please help me on this. This is one of our client requirement. Its really very urgent.
Thanks,
Vino.is it ebs?
if yes i can not be sure what it is work for ebs
for ebs related bip you can ask in General EBS Discussion
Maybe you are looking for
-
I am trying to add a file via iTunes. I go to APPS and scroll towards the bottom. Under File Sharing, I have Apps. The Ringtones app has ringtones under the Ringtones Documents. When I clikc on Add or Save to, a message comes up that iTunes has s
-
My sap system is 46D-ext running on Win2003/ora10.2 oracle start with no error, but SAP don't. I get message "db connect failed" and all the wp die. R3trans -d is ok : C:\Documents and Settings\bcpadm>R3trans -d This is R3trans version 6.05 (release
-
Question on delayed tasks in RequestCenter
In a specific task plan, we have two tasks that can be completed concurrently but we need one task to start a few minutes after the other. Using the scheduled start feature, we can manually set a date and time in a dictionary field, which seems to p
-
I tried to replace the screen on my ipad 4 but now I have broken the retaining clip that holds the LCD ribbon in place. Do you if apple store would repair this even though I have not stuck the screen back on
-
Deleting an IMAP account on one Mac. Will it affect my laptop with same account?
I set up the same IMAP account on two Apple Mail programs: one on my laptop, the other on my iMac. I want to remove or disable the account on my iMac, but will either removing it completely or disabling it affect how my account runs on my laptop? Wil