Pls help! generate report to file

Hello!
1. How can I set the default printer info such as printer name, paper size, etc.) to report in report builder?
2. When I set the desformat to either RTF or printer name as command line parameter, there'll be value error occured. But if it set to delimited, no error occurred. Don't know why. Is there any other parameter should be set ?
3. Please tell me how to output the report to text file retaining the report layout (format) and the print setting such as printer which already defined in layout editor.
Thank you very much!!!

Hello,
It is possible since Reports 9.0.2 with the parameter SUBJECT.
It is not possible if you are using an "older" version of Reports ..
Regards

Similar Messages

  • Urgent help:- Generate report from AD

    Team, Can any one help me to generate report from AD  in below format.
    User ID, MSOID, active/inactive, First Name, Last Name, Last login date.
    thanks in advance
    Regards, Triyambak
    Regards, Triyambak

    we have created custom attribute in our AD. below is the example
     Labeled Field
    Active Directory Attribute
    SSN
    EmployeeNumber
    Employee ID
    employeeID
    MSO ID
    serialNumber
    PCHA ID
    internationalISDNNumber
    SHCEmployee ID
    x121Address
    Contractor
    employeeType
    so MSO id means serialNumber .
    Regards, Triyambak

  • Pls help in webform.cfg file..sorry for many postings since i am struggling

    Hi all,
    HMMM.. i fixed the problem.. but still need some help
    in my url i specified local host instead of servername and i am able to run the form on the web.
    http:localhost:8888/forms90/f90servlet?form=....etc(working fine)
    instead of
    http:itxkjdkk:8888/forms90/f90servlet?form=
    This is throwing error FRM92050
    but the problem is when ever i run the fmb from form builder in the IE browser
    it is taking the http://itxkjdkk:8888/forms90/f90servlet..so throwing error so i have to manually replace the url in browser to localhost:8888
    How can i set this through in formsweb.cfg..i did try to
    http:localhost:8888/forms90/f90servlet?form=....in server_url parameter of the
    formsweb.cfg but still it is taking http://itxkjdkk:8888/forms90/f90servlet when i run the form on web..
    pls help
    asp

    Hi,
    In Builder Preferences dialog, under the runtime tab,
    change the Application Server URL to the desired URL
    and run the form.
    HTH.
    Regards,
    ArunHi Arun,
    Thanks for help..
    As you suggested i have to manually set the application server url each time when i invoke the form builder..
    I really dont understand why forms behaving like this. when i pass the servername it is throwing error and if i pass localhost instead of server name it is working fine.
    It is taking the default application url value : http://servername:8888//forms90//...
    but it is throwing error FRM 92050
    if i pass http://localhost:8888/forms90... good everything is fine.. now
    now i want to change default application url..i tried it in formsweb.cfg
    server_url=http://localhost:8888/forms90/f90servelet..
    if i run the form with above parameter...at least IE is not invoked..
    if that parameter value is /forms90/f90servelet then atleast it will invoke IE and throwing error 92050
    Pls help
    asp

  • Need your help: generate report

    I have following 3 SQL scripts, they run separately as below:
    SQL 1:
    SELECT AREA_CODE,MAX(MODIFICATION_DTM) AS LATEST_DTM FROM RTP GROUP BY AREA_CODE;
    DESC RTP;
    Name               Null          Type         
    ID                     NOT NULL          NUMBER(10)          
    AREA_CODE                    VARCHAR2(8)      
    MODIFICATION_DTM               DATE         
    CUSTOM_1                    VARCHAR2(300)
    CUSTOM_2                    VARCHAR2(300)
    CUSTOM_3                    VARCHAR2(300)
    output:
    AREA_CODE     LATEST_DTM               
    ERLI          16-SEP-11                
    TORCE          20-OCT-11                
    RESIN          16-SEP-11                
    RES5          10-SEP-10                
    DYN          11-SEP-11                
    LOS          16-OCT-11                
    SQL 2:
    SELECT AREA_CODE,MAX(MODIFICATION_DTM) as LATEST_DTM FROM LOG WHERE LOG_DESC = 'RUN' GROUP BY AREA_CODE ;
    DESC LOG;
    Name                       Null     Type         
    LOG_ID                     NOT NULL NUMBER(10)          
    AREA_CODE                            VARCHAR2(8)  
    LOG_DESC                            VARCHAR2(256)
    CREATION_DTM                        DATE         
    MODIFICATION_DTM                    DATE         
    USER_ID                             VARCHAR2(20)
    output:
    AREA_CODE     LATEST_DTM               
    ERLI          13-JUN-11                
    TORCE          10-MAY-11                
    RESIN          10-DEC-11                
    RES5          10-FEB-11                
    SFO          11-SEP-11                
    DAS          06-AUG-11                              
    SQL 3:
    SELECT AREA_CODE,MAX(MODIFICATION_DTM) as LATEST_DTM FROM LOG WHERE LOG_DESC = 'OPERATION' GROUP BY AREA_CODE ;
    DESC LOG;
    Name                       Null     Type         
    LOG_ID                     NOT NULL NUMBER(10)          
    AREA_CODE                            VARCHAR2(8)  
    LOG_DESC                            VARCHAR2(256)
    CREATION_DTM                        DATE         
    MODIFICATION_DTM                    DATE         
    USER_ID                             VARCHAR2(20)
    output:
    AREA_CODE     LATEST_DTM               
    ERLI          13-JUN-11                
    MDSP          10-NOV-11                
    STP2          18-OCT-11                
    YOSH          06-OCT-10                
    ANKUR          17-OCT-11                
    5025W          31-AUG-11              
    DAS          06-AUG-11                              
    ...I want to generate an output as below:
    AREA_CODE     LATEST_DTM     LAST_RUN     LAST_OPERATION
    ERLI          16-SEP-11      13-JUN-11     13-JUN-11
    YOSH          06-OCT-10     07-AUG-11     14-NOV-09
    ...I have never generated this kind of report before, can anyone please help me on this one?
    Thanks....
    Edited by: user644467 on Aug 17, 2012 9:31 AM

    Although it could be done as a join of two subqueries, I would probably do it as union query to avoid the complications if not all area_code values are in both tables. Something like:
    select area_code, max(latest_dtm) latest_dtm, max(last_run) last_run,
           max(last_operation) last_operation
    from (select area_code, modification_dtm latest_dtm,
                 to_date(null) last_run, to_date(null) last_operation
          from rtp
          union all
          select area_code,
                 case when log_desc = 'RUN' then modification_dtm end last_run,
                 case when log_desc = 'OPERATION' then modification_dtm end last_operation
          from log
          where log_desc in ('RUN', 'OPERATION'))
    group by area_codeIf you know that no area_code value can appear in log without also appearing in rtp, then a join version would be something like:
    select area_code, latest_dtm, last_run, last_operation
    from (select area_code, max(modification_dtm) latest_dtm,
          from rtp
          group by area_code) rtp
       left join (select area_code,
                         max(case when log_desc = 'RUN'
                                     then modification_dtm end) last_run,
                         max(case when log_desc = 'OPERATION'
                                     then modification_dtm end) last_operation
                  from log
                  where log_desc in ('RUN', 'OPERATION')
                  group by area_code) log
          on rtp.area_code = log.area_codeIf you also know that all area_code values in rtp also appear at least once in log for one of run or ooperation, then you can lose the left join and just do an equi-join. However, I'm not sure that there would be much difference in perfromance between the two versions.
    John

  • Pls help decompress jsonl4 bookmark file

    After one of latest Firefox update (think it was around version 32) the bookmark file was compressed as "bookmarks_<date>....==.jsonlz4 file. After an update the new Firefox was not able to retrieve the compressed bookmark. I hope that here is a way to decompress this file outside the Firefox and retrieve it either as json or html file or a file that is retrievable by latest Firefox (34).
    The file is found in the following location:
    C:\<user name>\AppData\Roaming\Mozilla\Firefox\Profiles\mvf52dyv.default
    bookmark\bookmarks-2014-11-01-15....==.lzh
    bookmarkbackups\bookmarks-2014-11-01_15_....==.jsonlz4
    The “mvf52dyv” is the from the old installation. The new one is tw145s6s.default
    To save it I renamed the “old” Mozilla directory to Mozilla_ before uninstalling and reinstalling a clean new version. Copied back the "old" jsonlz4 and "places.sqlite" to new "bookmarkbackups" directory but still no luck.
    One observation is that the new firefox (34 – just updated)) had jsonlz4 file and places.sqlite in a bookmarkbackups directory, while older versions has it at “<...>.default” directory level. Also, the new Firefox does not have bookmark directory, where the old one has in it bookmarks-<date>==.lzh file.
    I did try suggestion from the Firefox help pages to copy the old bookmarkbackups (with places.sqlite) into place of the new one, but that did not help. Even tried to copy the whole old mvf52dyv.default under new Mozilla directory, but this also did not work.
    Is this old bookmark lost for good or there is a hope to restore it? I will appreciate any help in restoring the content of the old bookmark.
    Regards
    Darko

    Thank you for the replay. With few attempts I was able to restore the “old” bookmark. Unfortunately, what I thought to be the old one has already been overwritten by an empty bookmark either during an update or one crash that happen around that time.
    The interesting thing is that this “old” jsonlz4 file has date in name bookmarkbackups-2014-11-1-..., although the file time stamp is 9-26-2014, which I hoped contain the old bookmarks. The Sep date led me to believe that this is the old bookmark.
    Can by any chance one of the two non-zero length files in minidump directory contain any sign of the lost bookmark?
    For my benefits, where are the bookmarks stored now? With few sites added in the bookmark, only saw the places.sqlite being updated (in Roaming\...firefox\Profiles\<...>default\places.sqlite*). Did not find any file with name bookmark.*. At one exit saw boomarkbackups …. jsonlz4 file being updated (time stamp).
    Regards

  • Generate report chart files.

    Hi All:
    Will AE do automated generation of charts (bar) into GIF or JPEG? Is there any Oracle product that will do this, besides Chart Builder?
    I would like to use Chart Builder but it is not a supported tool any more, it was a beta. Please advise.
    Regards,
    antonnon

    if I should not modify the query, how to generate the graph many times? If you are using the following query, you can pass the parameter to run for one customer or for all customers:
    select name,location,sal,departement from table1 t1 and table2 t2 where Number1 = Number2 and sal < 20000 and Number1 = '100'; So modified query will look like this (see the part in bold):
    select name,location,sal,department from table1 t1 and table2 t2 where Number1 = Number2 and sal < 20000 and *(:p_customer_no is null or Number1 = :p_customer_no)*
    Hope this helps.

  • TD or Old Toad pls help: Renamed iPhoto Library File....no pics in iPhoto6

    I am working on my parents computer... they have iPhoto 6 and I renamed the iPhoto Library folder in Finder. Obviously this is not a good idea since now there is no content (pics) in iPhoto. 
    This action made a new folder (with the new name) in Finder's 'pictures' file. So, I tried to copy and paste (or maybe I highlighted & moved it, can't recall) the contents of the newly named folder back under the 'iphoto library' folder however, that did not make the photos reappear in iPhoto.
    After moving (I think I highlighted & dragged) the file contents of the newly named folder back in the 'iPhoto Library' folder, I deleted the newly named/created file.
    The individual pics seem to be in the modified & originalsfolder but I do not know how to get them back into iPhoto..
    I attempted to rebuild the iPhoto library but it seemed like an empty request since the computer didnt do anything when this option was selected.
    I know there is a solution but I dont know the smartest nextstep. I have read related discussions that almost provide a solution.
    Currently, I need to figure out a way to:
    1) get what seems to still exist in the modified & original folders back into iPhoto even if it means loosing album names, keywords. I am hoping this route doesn’t wipe out dates from when the images were taken. If there is a way to get them back into iPhoto this route, I need instructions.
    or,
    2) I have a back up of the entire HD on an external HD. Would itbe best to somehow use that to replace what I have on the computer HD? I do not know how to do this so for sure need guidance.
    or,
    3) Find another solution, quickly…
    Thank you so very much as I need to fix this ASAP.

    See my reply in your other thread.
    Regards
    TD

  • Pls-Help! Report Builder won't open( rwbuilder.exe -Bad Image)

    Hi all,
    I am having a problem opening the report builder oracle 10g.My Form builder opens and works fine.When i click on report builder i get a pop-up window with following error message:
    the application or dll c:\DEVSuiteHome\bin\rw90.dll is not a valid windows image.Please check this against your installation diskette.
    What should I do to get my report builder working.

    Thanks!
    I tried to reinstall 5-6 times , but to no avail.
    I tried a different cd from my friend and installation had no problem .
    My Oracle Forms and reports just works fine now.
    Thanks again.

  • Pls help: server send a file upon client's request

    I just started learning Java and I'm trying to write a simple file transfer program. My problem should be in the transfer part. Code as follows:
    Client side:
    package p2pclient;
    import java.io.*;
    import java.net.*;
    public class P2PClient {
    public static void main(String argv[]) throws Exception
      String filename;
      try {
      Socket clientSocket = new Socket("localhost", 6783);
      BufferedReader inFromUser = new BufferedReader( new InputStreamReader(System.in));
      filename = inFromUser.readLine();
      DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
      outToServer.writeBytes(filename);
      String newname = "C:\\" + filename;
      File file = new File(newname);
      byte[] Byte = new byte[1120];
      DataInputStream inFromSocket = new DataInputStream(clientSocket.getInputStream());
      FileOutputStream fout = new FileOutputStream(file);
      int reads;
      while((reads = inFromSocket.read(Byte)) != -1){
      fout.write(Byte, 0, Byte.length);
      clientSocket.close();
      catch (java.io.IOException e) {
          System.err.println("error connecting to " + "Daniel-Ding" + ":" + e);
          return;
    }On the server side:
    package p2pserver;
    import java.io.*;
    import java.net.*;
    import java.util.logging.*;
    class FileTransfer implements Runnable {
      private Socket connectionSocket;
      FileTransfer(Socket connectionSocket) {
        this.connectionSocket = connectionSocket;
      public void run(){
            try {
                String fileName;
                BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));
                fileName = inFromClient.readLine();
                System.out.println("received filename: "+ fileName);
                File fl = new File(fileName);
                byte[] filebuffer = new byte[1120];
                FileInputStream fin = new FileInputStream(fl);
                int bytesRead;
            while ((bytesRead = fin.read(filebuffer)) != -1) {
                connectionSocket.getOutputStream().write(filebuffer, 0, bytesRead);         
                connectionSocket.close();
            } catch (IOException ex) {
                Logger.getLogger(FileTransfer.class.getName()).log(Level.SEVERE, null, ex);
    class P2PServer {
        public static void main(String argv[]) throws Exception
            ServerSocket welcomeSocket = new ServerSocket(6783);
            while(true) {
                Socket connectionSocket = welcomeSocket.accept();
                FileTransfer ft;
                ft = new FileTransfer(connectionSocket);
                Thread thread = new Thread(ft);
                thread.start();
    }I can see an empty file with the name of 'newname' in my C drive but no data transfered.
    Thanks a lot in advance.

    Hi Peter,
    Sorry to bother you again. I tried to increase the size of the buffer. The speed improved but the transfered file quality became intolerable. I tested it with some mp3 files and found that with large buffer size there was a lot of noise in the transfered mp3s. Any idea what I can do to optimize this trade-off?
    Many thanks.
    Best,
    Daniel

  • Getting error while generating report from Siebel (Siebel/BI Publisher)

    Dear,
    I have completed the integration of siebel and BIP according to the oracle document, I successfully upload the sample template from siebel application to BIP server.
    But now I am facing two issues,
    I am getting error "Unauthorized access, Please contact the administrator."  when I open report on BIP which I have uploaded from siebel.
    When I try to generate report from siebel=>application=>Tables=>S_Contact I am getting the below error when click on table report from Report button.
    (httptransport.cpp (1635)) SBL-EAI-04117: HTTP Request error during 'Submitting Data SendHTTP request': 'Status code - 500'
    (httptransport.cpp (983)) SBL-EAI-04117: HTTP Request error during 'Submitting Data Send HTTP request': 'Status code - 500'
    (soapbinding.cpp (675)) SBL-EAI-04304: Unknown Part ':oracle.xdo.webservice.exception.InvalidParametersException'  for operation 'runReport' exists in SOAP message.
    (outdisp.cpp (247)) SBL-EAI-04308: Operation 'runReport' of Web Service 'http://xmlns.oracle.com/oxp/service/PublicReportService.PublicReportServiceService' at port 'PublicReportService' failed with the following explanation: "oracle.xdo.webservice.
    Invalid User Name and Password for BIP Server
    (xmlpadaptersvc.cpp (2287)) SBL-RPT-50529: Verify BI Publisher Server Userid and Password.
    Error in generating Report Output file /siebel8/sea81/siebsrvr/siebel8/sea81/siebsrvr/xmlp/reports/Rept11-3U7M403.PDF in the XMLP Engine
    (xmlpadaptersvc.cpp (2983)) SBL-RPT-50524: BI Publisher engine failed to generate report.
    Object manager error: ([0] BI Publisher engine failed to generate report.(SBL-RPT-50524) (0x95c55c))
    ( (0) err=2818155 sys=9815388) SBL-OMS-00107: Object manager error: ([0] BI Publisher engine failed to generate report.(SBL-RPT-50524) (0x95c55c))
    (bsvcmgr.cpp (1392) err=2818251 sys=0) SBL-OMS-00203: Error 9815388 invoking method "GenerateReport" for Business Service "XMLP Driver Service"
    (bsvcmgr.cpp (1236) err=2818251 sys=0) SBL-OMS-00203: Error 9815388 invoking method "GenerateReport" for Business Service "XMLP Driver Service"
    (smireq.cpp (425) err=2818251 sys=0) SBL-OMS-00203: Error 9815388 invoking method "GenerateReport" for Business Service "XMLP Driver Service"
    Please help to resolve this issue.
    Regards,
    Soahil

    This specifically means that the destinations have not been configured in the Crystal Job Server.  If you're running 4.x, this may be part of the "Adaptive Job Server" instead of or in addition to a Crystal Job Server.  If you're using 3.1 or earlier, you'll also have to set up the destination in the Destination Job Server.
    You'll have to log in to the CMC, go to Servers, right-click on the correct job server and go to "Destinations".  You'll then add something like "File" or "Unmanaged Disk" to the available destinations and save.  Stop the job server, start it again, and your error should go away.
    Please be aware that unless you're using specific credentials to schedule the report or you're saving to the server where BO is installed, you'll need to make sure that the BO services are running under a network "Services" account that has access to the folder you're scheduling the report to. By default during installation it's set to run under the "Local Services" account that doesn't have access to the network.
    -Dell

  • Report has been generated , but *.rep file can't be ran.PLEASE HELP!

    Hi,
    I am facing real challenge.
    I've created report based on the stored function(packaged function).But when I try to run *.rep file I get Rep-1219< "F_xxx" has no size -- length or width is zero.>Well , my field does have a size.Also what is interesting that if I go back to the *.rdf file and try to run inside Reports during design second time I get the same error . Then if I go thru wizards again I get
    Rep1106 <warning no field generated for the column "bla-bla">, and I get this message for the all my columns that I have in the second group.My report is group above.I am sure that 1106 is the cause for the 1219 in the runtime.But then if go thru wizard once again after all those 1106 messages I am able to generate report!!!! And then I do editing of report and successfully generarate new *.rep file, but when I run this file I get the same results already described.
    In my report I have formula column(1) that gets value from another column(2) if values in the 3rd column not null, then I summarized column (1) at report level.
    Just creating summary for the column(2) is not an option for me, because I need some values, but not all of them.Another select statment is not gonna work , because as I said, report is built on function returning ref cursor.
    So can anybody help me with this problem?
    Or any suggestions?
    Thanks a lot in advance.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Yu:
    I've tried all:manually increase fields,
    increase size in layout model, nothing worked.
    What else can be done?<HR></BLOCKQUOTE>
    Hey ,
    Check this out
    Cause: When you defaulted your layout, a field was not generated for the column in the message. The most likely cause is that a summary was not placed in the data model correctly. For example, you may have specified the source of a summary column to be a column in a group above the summary's group. This is not allowed.
    Action: Debug your data model and redefault your layout.
    I hope the problem is group layout..
    Cheers ...
    Krishna ...

  • Problem generating report ouput to a file -REP0069 REP57054 REP 1849

    hi,
    I am working with oracle reports builder (9i). i hv created some reports.While trying to get the report in a file(.txt) by using "File->generate to file" ,i am not able to generate...
    i get error msgs as shown below...
    rep 0069 - internal error whil generating report
    REP-57054: In-proccess job terminated.
    rep 1849 - Failed while printing
    this poblem occurs only with the newly created reports(today n yesterday)...my old reports are running correctly....tats i am able to generate to file...Pls help me in this regard...
    Thanks in advance...

    Thank you for the reply. I'm trying to download the patch, but I can't seem to find it. I assume this is a patch for the Reports Developer, correct? I did a search on bug 2490826 in Metalink and I haven't been able to find it. If you have the number of the patch you're referring to, please let me know.
    Thank You,
    Adina

  • Need to generate a Index xml file for corresponding Report PDF file.

    Need to generate a Index xml file for corresponding Report PDF file.
    Currently in fusion we are generating a pdf file using given Rtf template and dataModal source through Ess BIPJobType.xml .
    This is generating pdf successfully.
    As per requirement from Oracle GSI team, they need index xml file of corresponding generated pdf file for their own business scenario.
    Please see the following attached sample file .
    PDf file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/BPA_Print_Trx-_output.pdf
    Index file : https://kix.oraclecorp.com/KIX/uploads1/Jan-2013/354962/docs/o39861053.out.idx.txt
    In R12 ,
         We are doing this through java API call to FOProcessor and build the pdf. Here is sample snapshot :
         xmlStream = PrintInvoiceThread.generateXML(pCpContext, logFile, outFile, dbCon, list, aLog, debugFlag);
         OADocumentProcessor docProc = new OADocumentProcessor(xmlStream, tmpDir);
         docProc.process();
         PrintInvoiceThread :
              out.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");
                   out.print("<xapi:requestset ");
                   out.println("<xapi:filesystem output=\"" + outFile.getFileName() + "\"/>");
                   out.println("<xapi:indexfile output=\"" + outFile.getFileName() + ".idx\">");
                   out.println(" <totalpages>${VAR_TOTAL_PAGES}</totalpages>");
                   out.println(" <totaldocuments>${VAR_TOTAL_DOCS}</totaldocuments>");
                   out.println("</xapi:indexfile>");
                   out.println("<xapi:document output-type=\"pdf\">");
    out.println("<xapi:customcontents>");
    XMLDocument idxDoc = new XMLDocument();
    idxDoc.setEncoding("UTF-8");
    ((XMLElement)(generator.buildIndexItems(idxDoc, am, row)).getDocumentElement()).print(out);
    idxDoc = null;
    out.println("</xapi:customcontents>");
         In r12 we have a privilege to use page number variable through oracle.apps.xdo.batch.ControlFile
              public static final String VAR_BEGIN_PAGE = "${VAR_BEGIN_PAGE}";
              public static final String VAR_END_PAGE = "${VAR_END_PAGE}";
              public static final String VAR_TOTAL_DOCS = "${VAR_TOTAL_DOCS}";
              public static final String VAR_TOTAL_PAGES = "${VAR_TOTAL_PAGES}";
    Is there any similar java library which do the same thing in fusion .
    Note: I checked in the BIP doc http://docs.oracle.com/cd/E21764_01/bi.1111/e18863/javaapis.htm#CIHHDDEH
              Section 7.11.3.2 Invoking Processors with InputStream .
    But this is not helping much to me. Is there any other document/view-let which covers these thing .
    Appreciate any help/suggestions.
    -anjani prasad
    I have attached these java file in kixs : https://kix.oraclecorp.com/KIX/display.php?labelId=3755&articleId=354962
    PrintInvoiceThread
    InvoiceXmlBuilder
    Control.java

    You can find the steps here.
    http://weblogic-wonders.com/weblogic/2009/11/29/plan-xml-usage-for-message-driven-bean/
    http://weblogic-wonders.com/weblogic/2009/12/16/invalidation-interval-secs/

  • Generate an HTML file from a Report in ABAP

    Good morning,
    How I could generate an HTML file from a report.
    Any Ideas... I have found the function WWW_ITAB_TO_HTML, but someone has the standar code and how use this function?
    Thanks a lot,
    Hernán Restrepo

    Hi,
    I am facing a similar problem.I did try using the function module WWW_ITAB_TO_HTML in the reoprt program, as I'm trying to generate a url from a report, but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue.Thanks in advance.
    DATA:   emp_name                     TYPE char80.
    DATA:   it_itabex                    TYPE zdb_ex_tty,
            it_emp                       TYPE TABLE OF zis_emp,
            it_org                       TYPE TABLE OF zis_org,
            it_pos                       TYPE TABLE OF zis_pos,
            it_pos_alloc                 TYPE TABLE OF zis_pos_alloc,
            it_res                       TYPE TABLE OF zis_res,
            it_res_alloc                 TYPE TABLE OF zis_res_alloc,
            ls_itabex                    TYPE zdb_ex_s.
    DATA:   lv_filename                  TYPE string,
            lv_path                      TYPE string,
            lv_fullpath                  TYPE string,
            lv_replace                   TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp>              LIKE LINE OF it_emp,
                   <fs_org>              LIKE LINE OF it_org,
                   <fs_pos>              LIKE LINE OF it_pos,
                   <fs_pos_alloc>        LIKE LINE OF it_pos_alloc,
                   <fs_res>              LIKE LINE OF it_res,
                   <fs_res_alloc>        LIKE LINE OF it_res_alloc.
    Report Program to export data from database to Excel.
    Populate all the tables that have to be exported.
    SELECT * FROM zis_org       INTO TABLE it_org.
    SELECT * FROM zis_pos       INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp       INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res       INTO TABLE it_res.
    Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id            = 'IPP Pos ID'.
    ls_itabex-emp_name              = 'Name'.
    ls_itabex-dt_of_join            = 'JoinedOn'.
    ls_itabex-emp_status            = 'Status'.
    ls_itabex-org_name              = 'Org'.
    ls_itabex-prj_name              = 'Project'.
    ls_itabex-mgr_name              = 'Line'.
    ls_itabex-designation           = 'Designation'.
    ls_itabex-specialization        = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
      CLEAR ls_itabex.
      ls_itabex-ipp_pos_id          = <fs_pos_alloc>-ipp_pos_id.
      READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
      IF sy-subrc = 0.
        CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name  SEPARATED BY space.
        ls_itabex-dt_of_join        = <fs_emp>-dt_of_join.
        ls_itabex-emp_status        = <fs_emp>-emp_status.
        ls_itabex-specialization    = <fs_emp>-specialization.
      ENDIF.
      READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
      IF sy-subrc = 0.
        ls_itabex-designation       = <fs_pos>-designation.
        READ TABLE it_org ASSIGNING <fs_org> WITH KEY  org_id = <fs_pos>-org_id.
        IF sy-subrc = 0.
          ls_itabex-org_name        = <fs_org>-org_name.
          ls_itabex-mgr_name        = <fs_org>-mgr_name.
        ENDIF.
      ENDIF.
      READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
       ls_itabex-org_name         = <fs_org>-org_name.
      APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
      EXPORTING
        offset        = 12
        length        = 10
        func          = fullurl
      TABLES
        query_string  = qstring
      EXCEPTIONS
        invalid_table = 1
        OTHERS        = 2.
    Thanks & Regards,
    Preethi.

  • Portal performance monitoring scripts : (Unable to generate reports)  HELP

    Hi,
    Using 10.1.2.0.0
    I followed README.html document to load the logs files to generate reports for Portal Performance.
    First of all while running loadlogs.pl I keep getting the following error. I even tried adding -nodirect but still gets the same error. Don't know why. But it looks like there is some data loaded in OWA_LOGGER table
    C:\ORACLE_PRODUCTS\PORTAL_AS\portal\admin\plsql\perf\loader>perl loadlogs.pl -logical_host localhost -connection owa_perf/owa_perf@orcl -http_logfile C:\ORACLE_PRODUCTS\PORTAL_AS\Apache\Apache\logs\error_log.1130457600 -webcache_logfile C:\ORACLE_PRODUCTS\PORTAL_AS\webcache\logs\access_log -oc4j_logfile C:\ORACLE_PRODUCTS\PORTAL_AS\j2ee\OC4J_Portal\application-deployments\portal\OC4J_Portal_default_island_1\application -nodirect
    25-Oct-05 13:20:17, Copying abc:C:\ORACLE_PRODUCTS\PORTAL_AS\Apache\Apache\logs
    \error_log.1130241600
    25-Oct-05 13:20:17, Loading C:\DOCUME~1\whitesox\LOCALS~1\Temp\abc_error_log.1130
    241600.20051025.132017
    25-Oct-05 13:20:21, Copying abc:C:\ORACLE_PRODUCTS\PORTAL_AS\j2ee\OC4J_Portal\a
    pplication-deployments\portal\OC4J_Portal_default_island_1\application
    25-Oct-05 13:20:21, Loading C:\DOCUME~1\whitesox\LOCALS~1\Temp\abc_application.20
    051025.132021 -nodirect
    SQL*Loader-350: Syntax error at line 127.
    Token longer than max allowable length of 258 chars
             end",
            ^
    25-Oct-05 13:20:22, Copying abc:C:\ORACLE_PRODUCTS\PORTAL_AS\webcache\logs\acce
    ss_log
    25-Oct-05 13:20:31, Loading C:\DOCUME~1\whitesox\LOCALS~1\Temp\abc_access_log.200
    51025.132022Then I ran reports.sql but I don't see any reports being generated, but running this script did populate some other tables. I tried running some other scripts also but somehow I don't see any reports being generated as opposed to what is said in the README.HTML document i.e. "A sample web page (reports.html) is included which provides links to the generated reports.". How really I get to see the reports, where are the reports generated, is it something else that I am missing. No matter what script I run I don't see any report being generated. The document is not so clear. Can someone please help me out here. Thanks

    Hi!
    You have to change to directory
    ORACLE_HOME$/portal/admin/plsql/perf/scripts
    (you can find reports.sql in it) before you run reports.sql script!
    It will produce several .txt files.
    After running the script just open reports.html, that will point the generated files.
    A better place to ask questions like this:
    Portal Performance and Scalability
    http://forums.oracle.com/forums/forum.jspa?forumID=15

Maybe you are looking for