Using srw.run_report in report server

Dear all,
I'm running a report (report A) on the report server and after it is running (printing output on screen), I need to run report B at the background and save the output of report B to the file system. In the report A's After Report Trigger, I have a srw.run_report function, the syntax is: srw.run_report('server='||v_serverName||' report='||v_reportName||' batch=yes destype=file desname=/tmp/output.pdf desformat=pdf p_startdate=''12-JUN-2003'' p_enddate=''14-JUN-2003'''). When I run the above syntax (without the server name part) in report builder, it works fine. But I couldn't get it working on the report server. Each time report A runs, report B couldn't be run at all (no job id was given or scheduled). Could anyone give me an idea on whether srw.run_report could be used in the report server?
Many thanks for your urgent help.
Rose

Can I use this build it to run itself? I mean in your case run report A?
our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
thanks.

Similar Messages

  • Is there a restriction on using SRW.RUN_REPORT per session

    I am running a driver report which in turn calls the detail report using SRW.RUN_REPORT package. The driver report eventually fails with a core dump after calling the detail report for 999 times. It doesn't matter how big the report is as I've tried it with a very simple report which outputs sysdate in a file.
    Any ideas? Where to look for and what to change so that it can run the report using SRW.RUN_REPORT package more than 999 times.
    Thanks.
    Please reply to: [email protected]

    I found the answer, Xcelsius 2008 SP3 is not supported on Windows Server 2008.
    Before trying to use more products please check the supported platforms for all products. For example you can see in Xcelsius documentation that SAP Business Objects Xcelsius 2008 SP3 is not supported on Windows Server 2008. This means that, even if BPC 7.5M supports Windows Server 2008, it is not possible to use both BPC 7.5M and Xcelsius 2008 SP3 on a Windows Server 2008.

  • Hide URL using srw.run_report

    I called a report from a form 10g using RUN_REPORT_OBJECT which hides url.
    Now i called a report with in report using srw.run_report which shows hole url in the browser.
    I want to hide url.

    Can I use this build it to run itself? I mean in your case run report A?
    our report is launched from servelet. because of some security issues, I would like to use this built in to change it to command line after user enter all the parameters through the parameter form.
    thanks.

  • Reports 6 using SRW.RUN_REPORT - problem with transferring variable to new report.

    I have one report "analyse" that calls another report "pdf".
    In "analyse" i have a function pdf_rep:
    FUNCTION PDF_Rep(c_proevenummer varchar2) RETURN boolean IS
    msg char(150);
    BEGIN
    SRW.Run_Report
    ('BATCH=YES
    REPORT=PDF
    DESTYPE=file
    DESFORMAT=PDF
    desname=test1.pdf
    p_proevenummer='||(c_proevenummer) );
    return(true);
    exception
         when srw.run_report_failure then
         msg := srw.geterr_run;
         srw.message(1,'err msg: '||msg);
         return(false);
    END;
    This function is called from BeforeReport-trigger. (or AfterParameterForm-trigger)
    The "pdf" query:
    select proevenummer
    from View_Analyse
    where proevenummer= :p_proevenummer;
    The "pdf" report is run and a test1.pdf file is made BUT the where-clause is NOT performed.
    What do i do wrong ?

    Hello,
    If you copy the parameters displayed by srw.message and create a BAT file with these parameters
    and rwrun60 :
    rwrun60 <the paremeters displayed by srw.message>
    Does the report run correctly ?
    Regards

  • How to use srw.run_report without userid parameter in 10g

    I have the following function which works fine when I supply the userid parameter.
    Is it possible to run srw.run_report without the userid? If not is there another way to run a batch report to create a file?
    create or replace
    FUNCTION SUNRESDS(vopersorjudicial varchar2)
    RETURN VARCHAR2 as
    myPlist SRW_PARAMLIST;
    myIdent SRW.Job_Ident;
    BEGIN
    myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
    srw.add_parameter(myPlist,'GATEWAY','http://xxx.xx.xxx.xx/reports/rwservlet');
    srw.add_parameter(myPlist,'SERVER','rep_172_FRHome1');
    srw.add_parameter(myPlist,'REPORT','d:\oracle\FRHome_1\forms\sunresds.jsp');
    srw.add_parameter(myPlist,'USERID','username/password@databasename');
    srw.add_parameter(myPlist,'DESTYPE','file');
    srw.add_parameter(myPlist,'DESFORMAT','PDF');
    srw.add_parameter(myPlist,'popersorjudicial',vopersorjudicial);
    srw.add_parameter(myPlist,'DESNAME','d:\Reports\unresolved_discrepancies.pdf');
    myIdent := srw.run_report(myPlist);
    return 'Y';
    EXCEPTION
    when others then
    return ('sunresds ' || sqlerrm);
    END;

    Did you solve your problem? How did you do?

  • Problems with SRW.RUN_REPORT on 10gReport Server (9.0.4)

    I have recently upgraded to 10gReport Server (9.0.4) and for the most part have no problems running reports. However, when running reports that call other reports, the srw.run_report server call hangs. Found that this is a bug in 9.0.4. Work around is to not include the server parameter in the run_report string.
    Current string appears this way in the Before Report Trigger:
    srw.run_report('batch=yes report=(reportpath)\comptype.rdf destype=cache desformat=pdf');
    srw.run_report('batch=yes report=(reportpath)\stdomicile.rdf destype=file desformat=pdf');
    However, when running from the calling report, it will render in pdf for the user, but the comptype.rdf and stdomicile.rdf reports error with the following message:
    REP-52251: Cannot get output of job ID 966 you requested on Wed Dec 14 10:17:30 CST 2005.<P>REP-56033: Job 966 does not exist
    REP-52251: Cannot get output of job ID 965you requested on Wed Dec 14 10:17:30 CST 2005.<P>REP-56033: Job 965does not exist
    respectively.
    When checking OH\reports\cache..all reports are available and printable, but for some reason they are not rendering in pdf to the screen. I did not have this problem prior to moving to 9.0.4 report server.
    Does anyone have any ideas as to why the reports will not render correctly? Users cannot get to the cache file to manually print themselves.
    any help will be appreciated.

    We're having the same problem with our upgrade to 10g (9.0.4). I'm getting the REP-52251 error and no report output in Adobe.
    Were you able to resolve your problem?
    Bill Hartenberger
    [email protected]

  • Generate pdf using weblaout in oracle report server

    Hi all ,
    my weblogic version - weblogic 10.3.6
    report server version - 11.1.2.1
    i have created one jsp file on report server using web layout. i want to show  photo ( from cloud) on pdf.
    when i running this jsp file from rwbuilder using run weblayout , iam getting the photo on that output but when i am trying to generate pdf from URL its show me url instead of photo. can anyone resolve my problem.
    http://localhost:7001/reports/rwservlet?
    report=/home/oracle/reports/test1.jsp&destype=file&desformat=pdf
    &userid=username/password@localhost:1521/orcl&desname=/home/oracle/test.pdf

    We're also encountering this same error. Did you find a resolution?
    Thanks

  • Using destype=mail in reports server

    I am trying to send a report to an email address by using the following request string from IE 6.0:
    http://[local machine name]:8888/reports/rwservlet?cmdkey=test_report+desformat=html+destype=mail+desname=[email protected]
    The error I get is:
    Error while sending mail - Sending failed;
    nested exception is:
         javax.mail.MessagingException: 553 5.1.8
    <[username]@[local machine name]>... Domain of sender address [username]@[local machine name]... does not exist
    The 9iAS reports server is running on my [local machine] (PC) and the config file myserver.conf has the following two tags included. The rwbuilder.conf file also includes these.
    <notification id="mailNotify" class="oracle.reports.server.MailNotify">
    <property name="succnotefile" value="succnote.txt"/>
    <property name="failnotefile" value="failnote.txt"/>
    </notification>
    and
    <pluginParam name="mailServer">servername.our-domain.com</pluginParam>
    This report runs fine if destype is anything else like localfile or cache.
    I would appreciate any help on this.
    Regards,
    Anupam

    Some mail servers validate sender's email id. So please try by specifying
    from=valid_email_id
    in command line
    Thanks
    Ratheesh

  • Controling Date Parameters using SRW.DO_SQL in Reports!

    Hello Friends,
    I Need to Control the Date Parameters in Reports.
    (Dev/2000 rel2.1) In SRW.Do_SQL package
    For Example:
    'Insert into x
    select * from Y
    where Y.date between f_date and t_date';
    Here: X,Y are two tables
    f_date and t_date are two different date parameters in
    format (dd-mm-yyyy).
    NOTE: Without these two date parameters, the Query is working
    fine. But I need to Use these Parameters. Could You Please find a
    solution for Me. Thanks in advance.
    Regards
    Manoj (India)
    (Dt:18thNov'99)
    null

    Manoj (guest) wrote:
    : Hello Friends,
    : I Need to Control the Date Parameters in Reports.
    : (Dev/2000 rel2.1) In SRW.Do_SQL package
    : For Example:
    : 'Insert into x
    : select * from Y
    : where Y.date between f_date and t_date';
    : Here: X,Y are two tables
    : f_date and t_date are two different date parameters
    in
    : format (dd-mm-yyyy).
    : NOTE: Without these two date parameters, the Query is working
    : fine. But I need to Use these Parameters. Could You Please
    find a
    : solution for Me. Thanks in advance.
    : Regards
    : Manoj (India)
    : (Dt:18thNov'99)
    Hi Manoj
    your goal is to supply all three as dates (y.date, f_date,
    t_date). if some of them are not date but char, varchar, ...
    then use to_date conversion function with proper format mask.
    hope this helps.
    null

  • Reports 11gR2 SRW.Run_Report gets REP-1428 error

    I have several driver reports that use the SRW.RUN_REPORT package to run other reports. These reports were working fine in 10g but when moved to 11gR2 I get a REP-1428 error. Anyone know what is happening?

    Hi to all!
    I was used srw.run_report in reports 6i and I got the same error. I found out that the file that it was looking for can't be found.... Try to check the destination of the file if it exist.
    - i hope this helps you...
    I encountered the same problem the second time but this time i was using web to call my report that contain srw.run_report function. I tried to look at the destination of the file and it's right there. What could be the possible reason for this error?
    thanks!...

  • Diff bet. run_product and srw.run_report

    In reports 6i is there any difference in architecture between using run_product and srw.run_report(which according to 6i doc calls rwrun60.exe)? The reason is I that have the same report submitted by the above two processes produce font difference in the output pdf file. One gives courier and the other gives courier new where as my actual report font is courier.
    Is ther any difference in the architecture?(run_product uses any in-process report server where as rwrun submits to the report server??)?
    Any advice or suggestion or pointers will be highly appreciated!!

    Hi Venkat
    Ensure that your uifont.ali does not have aliases for Courier font under the [Global] or [Printer] section.
    Regards
    Sripathy

  • Doubt in srw.run_report

    hi all,
    i tried to call one report from other using srw.run_report,the below code is working fine
    but i give destype=screen or preview then its getting error.im using report 10g.
    how to use this?
    function BeforeReport return boolean is
    begin
    srw.run_report('batch=yes report=e:\REP\CALL_REPORT\emp.rdf
    destype=file desformat=PDF desname=e:\REP\CALL_REPORT\emp2.PDF');
    return (TRUE);
    end;

    srw.run_report package may not be used in webservice. It does fit to server/client application.

  • Does report2.5 works with srw.run_report and Oracle Apps11.0.3

    Hi,
    I have reports2.5 and using srw,run_report I want to call another report. NOw I have registered this in oracle apps 11.0.3 . Now through oracle apps if I run the main report it has to call the child report (calling via srw.run_report) and the output should be put in the Unix server directory /tmp/
    Please help Ratheesh.
    Iam not sure whether report2.5 works fine with srw.run_report and oracle apps11.0.3

    Try this isntead.
    java -classpath d:\jdbc\classes12.zip;. jdbccheckup
    an error occured:
    Exception in thread "main" java.lang.NoClassDefFoundError:jdbccheckup
    Why??????

  • FUNCTION IS NOT WORKING WHEN RUN IN SRW.RUN_REPORT, URGENT

    Hi,
    I have a report. it has got 1 Query and 2 groups.
    Q1
    |
    |
    __G1__
    |F1 |
    |F2 |
    |F3 |
    |
    |
    |
    __G2__
    |Items|
    |Sales|
    | Qty|
    |Store|
    |Func4|
    |Func5|
    |Func6|
    The Query looks like above. Now In the report I have a 3 User parameters . For Each record in G2 the functions Func4,Func5 and Func6 adds the value to the user parameters at the report level.
    Now the Func1,Func2,Func3 takes the value of last 4 record for each item at each G1 Level and devides it by 4 and prints . As an example given below
    ITEMS-----SALES-------QTY-----------STORE
    10001-----10000-------200-------------100
    10001-----20000-------500-------------200
    10001-----15000-------350-------------175
    10001-----45000-------650-------------225
    10001-----50000-------700-------------300
    AVERAGE==>32500-------550-------------225 ==> Calculated by F1,F2,F3
    20001-----70000-------900-------------400
    20001-----30000-------600-------------350
    20001-----20000-------500-------------300
    20001-----25000-------450-------------275
    20001-----35000-------550-------------225
    20001-----65000-------800-------------400
    AVERAGE==>36250-------650-------------300 ==> Avg of last 4 records
    This report takes an parameter which is part of the Where condition of the Query Q1. If I run this report from the report builder and provide the value for the parameter then the report runs fine printing the exact values. If I run the report from another report(which I have to do, due to circumstances) using SRW.Run_Report and pass the parameter in the same command. The the function FUNC4, FUNC5, FUNC6 does not do the addition, as a result the Func1,Func2,Func3 returns 0. I dont know why this is happenning .
    This is very very URGENT, My project manager is on my head to finish it ASAP. Please help.
    Thanks
    Feroz

    Hi Toby and Danny,
    Thanks for the quick reply. I dont think I am having an interdependancy of the functions. Here is an sample what two functions do at each level
    Func6 =========> This function at group level G2
    begin
    -- To initialize the user parameter for each new item.
         If :CNT = 1 Then
              :Wk4_Pos_Qty := 0;
         End If;          
    -- to add the qty value to the user parameter for last 4 records. Uchange is the no of records for each item     
    If :CNT >= :UCHANGE - 3 Then
         :Wk4_Pos_Qty := :Wk4_Pos_Qty + :Qty;
    End If;     
    return 0;
    end;
    Func3 ======> this function at group level G1
    Begin
    -- if no of records are less than 4 then devide by the no of records or devide by 4.
         If :UChange < 4 Then
                   return((:Wk4_Pos_Qty + :Qty) / :UChange);
         Else
                   return((:Wk4_Pos_Qty + :Qty)/ 4);     
         End If;     
    end;
    Here Wk4_Pos_Qty is the User parameter created to hold the calue for the Um of last 4 records Qty.
    I tried to modify the Func3 so that it looks like this
    Func3
    begin
    srw.reference(:Wk4_Pos_Qty);
         If :UChange < 4 Then
                   return((:Wk4_Pos_Qty + :Qty) / :UChange);
         Else
                   return((:Wk4_Pos_Qty + :Qty)/ 4);     
         End If;     
    end;
    But it does not effect anything. I mean its the same. The Wk4_Pos_Qty returns 0 and Func3 returns 0.
    Any Suggestions .
    Thanks
    Feroz

  • Error while running SRW.RUN_REPORT

    Hi All,
    I have requirement where i need to generate multiple reports with single request.
    I have created to sample tables test1 and test2 with two columns each.I have created a paper report using first table and saved it as test.rdf in my c: drive and I created the second report using second table and with in Before Report Trigger i called the first report using srw.run_report('report = c:\test1.rdf desformat=screen'); .
    When I ran the second report its showing an error messg REP-1428 :Error while running SRW.RUN_REPORT.
    Can any one help me to resolve this issue.
    Regard
    Srinivas Pusa

    Why can't you use two queries (one for test1 and another for test2) and create many pages (reports) one report? srq.run_report is avoided completely.

Maybe you are looking for

  • Enter key instead of clicking on the button

    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 Hi, I have input text and a submit button. After I made my entry in the input text I want to press the Enter key and the action is executed. How can i do it?? best regards

  • SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN

    SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN and it's dont make f8 why

  • Script tp stop and start components

    Hi All, I know the steps to stop/start all the components managed by opmn in a standalone env. But, I need to know is there any differnece to stop/start components in a cluster env, as I have SOA installed on 2 nodes and wanted to create a shell scri

  • User folders and password file

    How do I copy all the user folders and the users' passwords from ServerA to ServerB? Both are running Solaris 10.

  • INTERLACE ISSUES WITH SLIDESHOW STILLS??

    I'm doing a slideshow in DVDSP. I've setup the TIF images at 720 X 534. Brought them into DVDSP & converted to a track. Burned the disc & on playback on a 21" tube TV, I'm getting a lot of shaking lines & blinking eyes, etc... I believe it's called i