Delimited output from Reports

Hello friends,
I am trying to produce delimited data based on a query which outputs department names.
The output data should look like:
SALES OPERATION SERVICE TECHNOLOGY
I have a repeating frame with Print Direction set to "Across".
To generate the file in Reports Builder, I do the following: File --> Generate File --> Delimited.
But the data I am getting looks like:
SALES
OPERATION
SERVICE
TECHNOLOGY
Any help or clues to the problem would be greatly appreciated.
Thanks in advance.
Sany

hello,
either ! depending on your application, if you want to set it dynamically or only want it in delimited.
regards,
the oracle reports team --pw                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Generating delimited output from Reports Runtime R60

    When generating a delimited file using Runtime how can you predict or determine how Oracle will form the output rows from the report layout? Does anyone have any documentation on Runtime that explains the generation process as there is nothing in the Runtime Reference manual.

    The only documentation (such that it is) that I've found on this is in MetaLink, in Note 68245.1 "Delimited Output in Reports" and a tiny bit more in Note 120072.1 "Suppressing header on delimited output".
    - Bill

  • CPU usage while generating text output from reports

    hi
    while we attempt to generate the text (delimited) output from reports and when the query fetches more than 1500 rows, the cpu usage stays around 100% for long time paralysing the operation...
    we faced the problem when we attempted to generate text output for around 10000 records.
    any suggestions?
    ravi kumar chandran

    You can burst with eText and I have done it
    successfully.
    I don't believe pagebreaks are an option in eText and
    I don't think it makes sense either since your
    generating a flat-file and not a customer or internal
    facing document. Does that make sense?
    Also, if you would like you can use the
    BIPublisherIDE, this code can be converted pretty
    easily to handle jcp. There is a an oa framework
    version I have developed but I haven't posted on my
    blog yet. I plan on adding a bolt on for java
    concurrent programs soon. it's really pretty simple
    just haven't had the time.
    http://bipublisher.blogspot.com/2008/03/bi-publisher-b
    ipublisheride.html
    Ike Wiggins
    http://bipublisher.blogspot.com
    Thanks Ike for your reply.
    I agree with your points on TXT files, but in our case,the reports are generated in TXT format for the customer so we are looking for the above mentioned features.
    I have gone through BIP IDE and its a wonderful small utility which eases the task of BIP development.
    As I mentioned in my original post that we are currently processing the generated TXT report using a custom util. in JAVA to get the desired output in TXT again.
    I assume thats not what a JCP would do,so I am looking to explore that too.
    As I understand the process for report generation is
    1. Generate XSL from eTEXT template.
    2. Get the XML data from DB using XDO
    3. Apply XSL on XML to get the required template.
    If we are looking to achieve some customizations then we need to have the XSL generated with those customizations.
    In this case, where do we plug in the JCP to alter XSL or am I missing something.
    regards
    Gaurav

  • Delimited output in reports

    I am building a simple report for address labels. I also want to to produce the address list in delimited format.
    The generation of the report into PDF works fine, however delimited output does not include all of the fields of the report.
    The approximate field layout is
    Name
    Address Line 1
    Address Line 2
    Experimenting a little, it seems that the fields only generate in delimited format if they don't overlap vertically.
    ie Name AddressLine1 AddressLine2
    This produces the correct delimited output, but of course is nothing like what I want for an address label.
    Version: Report Builder 6.0.8.8.3
    I have seen some references to a patchset in other discussions. Where can I obtain these patches from?
    thanks, evnafets

    I'm sorry I guess I didn't make my problem clear.
    I am generating delimited output from the menu: File:Generate To File: Delimited
    The generated file does NOT include all the fields from the Layout view, unless they don't overlap vertically.
    So if my layout view looks like
    Name AddressLine1 AddressLine2
    (all fields on same line)
    The delimited file produces correctly.
    ie Name,AddressLine1,AddressLine2
    (using comma as delimiter)
    If my layout view is
    Name
    AddressLine1
    AddressLine2
    (Three vertically overlapping fields)
    It only produces:
    Name
    Somewhere along the way, the address lines get lost.
    If the Layout view is
    Name AddressLine1
    AddressLine2
    It produces
    Name, AddressLine1
    And (Last example)
    Name AddressLine1
    AddressLine2
    Produces Correctly (note no vertical overlapping)
    I can't pretend to understand WHY it is performing like this, but thats what happens on my machine.
    Thanks for the information on the patches - I'll upgrade and see if the issue goes away.
    I did read and understand earlier posts about the labels printing, and I think its worth patching up just to get the feature to switch them off.
    Thanks, evnafets

  • Build Reports from XML output from Reports

    Hi,
    I was just wondering if it is possible to build reports from output in XML format, originally generated by Oracle Reports.
    The XML output produced by Reports is stored in a database for further processing.
    TIA
    Hien

    Hi Hien
    If I have understood this right, you need to create report in XML format from an XML Report Definition File. From the Builder, Generate to File from the File menu and choose XML format for the output.
    Remember that XML output from Reports is Data driven and faithfully reproduces the Data Model. It is NOT layout driven.
    Regards
    Sripathy

  • Delimited output of report that contains frames with Print Direction = 'Across'

    Hello all.
    On the header section of my report, I have a frame with Print Direction = 'Across'.
    On screen the output is :
    Value1 Value2 Value3 Value 4
    I want to export this report to excel, by using DELIMITED option. However the output I'm getting is :
    Value1
    Value2
    Value3
    Value4
    e.g., reports is not generating several columns (one for each field), but separate lines.
    Anyone knows how to accomplish delimited output of frames with Print Direction='Across' ?
    Thanks in Advance,
    Octavio

    If you're not generating both bitmap and delimited data from the same report, try using character mode output rather than "delimited". You can create the report to generate the appropriately delimited values to a text file. This will also give you greater control over aspects such as headings.
    Delimited output simply uses the structure of the layout. It doesn't take into account the across/down repeat directions except in the case of matrix.

  • Problem with output from  report to excel, calling the report from form 10g

    Hi everyone, I'm having a problem generating a excel from a report, which is called from a form, I'm using Forms 10g. The problem is this: My report has a variable number of columns. These columns appear according to data obtained from the database, these columns are dates, In vesion 6 excel file generated shows the columns one after another starting in column A1 to column CP. I mean that the dates are correlative. But in version 10g the excel file generated shows the same report starting in column A to column T, only shows the 20 dates correlative corresponding to this columns, the rest of the dates are down the excel sheet in groups of 20 dates, it's something, the file in 6i grows across and in 10g grows down the excel sheet. The report (rdf file) is the same in 6i and 10g, I compiled the 6i version to obtain the 10g version. The excel sheet generated in 10g looks like the report was in pdf format, because PDF format, cuts the report in pages and the file grows down, if I generate the report in PDF format it has the same structure excel file in 10g has. I hope yo can help because I have days trying to solve this but I have no succes. If someone could help I could email the excel files generated in two versions. Here I put the code I use to generate the files in 6i and 10g. I have tried with DESFORMAT=SPREADSHEET in 10g but the result is the same. Thanks for your help. Greetings for all.
    Code for version 6i (Works Very well)
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
    cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
         BEGIN
    nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
              BEGIN
              nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
         BEGIN
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';      
              END;
    ELSE
              BEGIN
                        nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');
    END;
    Code for version 10g
    PROCEDURE GUARDAREXCEL IS
    pl_id ParamList;
    nom_rep varchar2(20);
    cla_rep varchar2(20);
    cod_dis varchar2(4);
    nom_arch varchar2(100);
    fec date;
    --byt12122007.sn
    repid REPORT_OBJECT;
         vURL VARCHAR2(500);
         rep_status VARCHAR2(20);
         vJobID VARCHAR2(100);
         v_rep VARCHAR2(100);
    VAR NUMBER;
    w_name_repserv VARCHAR2(30);
    --byt1212007.en
    BEGIN
         --w_name_repserv:=F_OBTIENE_SERVREP;
    w_name_repserv:='repserv';     
    pl_id := Get_Parameter_List('mytmp_params');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('mytmp_params');
    IF :BK_PARAMETROS.LI_COD_DIS IS NOT NULL THEN
         cod_dis := :BK_PARAMETROS.LI_COD_DIS;
    END IF;
    IF :BK_PARAMETROS.TI_COD_CLI IS NOT NULL THEN
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,:BK_PARAMETROS.TI_COD_CLI||'%');
    ELSE
    Add_Parameter(pl_id,'P_COD_CLI',TEXT_PARAMETER,'%');
    :BK_PARAMETROS.TI_COD_CLI:='%';
    END IF;
    IF :BK_PARAMETROS.CLAS_REP=1 THEN
    cla_rep := '001';
    ELSE
         IF :BK_PARAMETROS.CLAS_REP=2 THEN
              cla_rep := '002';
         ELSE
              IF :BK_PARAMETROS.CLAS_REP=3 THEN
              cla_rep := '003';
         ELSE
              cla_rep := '004';
         END IF;
         END IF;
    END IF;
    Add_Parameter(pl_id,'P_COD_DIS',TEXT_PARAMETER, cod_dis);
    Add_Parameter(pl_id,'P_FECHA',TEXT_PARAMETER,to_char(:BK_PARAMETROS.FECFIN, 'DD/MM/YYYY'));
    Add_Parameter(pl_id,'P_CLASE',TEXT_PARAMETER, cla_rep);
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    /*Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'File');
    Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'Character');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED' );*/
    select sysdate into fec from dual;
    IF :BK_PARAMETROS.TIPO_REP=1 THEN
    BEGIN
         repid := find_report_object('tdvenrli1577');
    --nom_rep := 'tdvenrli1577.rep';
    nom_arch := 'c:\windows\temp\RepCobranzaPlanos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1577');
    END;
    ELSIF :BK_PARAMETROS.TIPO_REP=2 THEN
    BEGIN
         repid := find_report_object('tdvenrli1578');      
              --nom_rep := 'tdvenrli1578.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaLargos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1578');
              END;
    ELSIF :BK_PARAMETROS.TIPO_REP=3 THEN
    BEGIN
         repid := find_report_object('tdvenrli1576');
                        Add_Parameter(pl_id,'P_XLS',TEXT_PARAMETER, '1');           
              --nom_rep := 'tdvenrli1576.rep';
              nom_arch := 'c:\windows\temp\RepCobranzaDetallados' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1576');     
              END;
    ELSE
    BEGIN
         repid := find_report_object('tdvenrli1545');
                        --nom_rep := 'TDVENRLI1545.REP';
              nom_arch := 'c:\windows\temp\RepCobranzaTodos' || TO_CHAR(fec, 'ddmmyyyy') || '.xls';
              SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME,'tdvenrli1545');     
              END;
    END IF;
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,nom_arch );
    --Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER, nom_arch);
    standard.commit;
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESNAME,nom_arch);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, RUNTIME);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, 'File');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'DELIMITED');
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, w_name_repserv);
         SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER, 'paramform=no');
         v_rep := RUN_REPORT_OBJECT(repid, pl_id);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')     LOOP
              rep_status:= report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              vJobID := SUBSTR(v_rep, INSTR(v_rep, '_', -1)+1);
              vURL:='/reports/rwservlet/getjobid'||vJobID||'?'||'server='||w_name_repserv;
         END IF;
         WEB.SHOW_DOCUMENT(vURL, '_blank');
         IF NOT form_success THEN
              MESSAGE('Error: PL/SQL held against Button failed to execute');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    /*Run_Product(REPORTS, nom_rep, SYNCHRONOUS, runtime, FILESYSTEM, pl_id,'');
    EXCEPTION WHEN Run_Product_Failure THEN
    message('Error');*/
    END;

    There are two problems with your VI.  First, the basic logic of writing/appending to a file (Excel, TDMS, anything) should go something like this:  Open the file, position yourself at the end of the file, then, in the loop, acquire data and write it to the file until you are finished with data acquisition.  When you exit the acquire/write to file loop, then close the file.  In particular, the opening and the closing of the file should not be inside the loop.
    As others have pointed out, writing to Excel might not be optimal, particularly if you are acquiring data at a high rate (and would therefore be writing a lot of data). We actually use Excel in our data acquisition routine, mainly reading from a WorkSheet to get the parameters of a particular stimulus, but also writing the outcome of the response to the stimulus.  As it happens, our "acquisition rate" in this example is on the order of several samples per minute, so there's no problem using Excel (we also sample 16 channels of analog data at 1 KHz -- this gets written as a binary file).
    Second, if you really do want to use Excel, use the (existing) Excel file to which you want to append as the "template" argument of the New Report function.  Then use the Excel Get Last Row function to position yourself at "end of file", as noted above.
    Good Luck.
    Bob Schor

  • Output from Reporting Agent in BW is inconsistent

    Hi,
    I have created a scheduled package of print type in reporting aget. The job runs successfully but once I check the spool in SM37, the output is not corrrect.
    First it writes only characteristics and then below that it writes key figures. Both Char and Key Figures do not come in one line.
    Not sure where have I gone in creating this scheduling package in reporting agent.
    Any help is most welcome.
    Thanks in Advance.
    Prashant

    Hi,
    You can define threshold values (exceptions) for a query. Data that varies from these thresholds is highlighted in color or marked with icons. You can use these exceptions to identify deviations from expected results at a glance.
    Defining and Changing Exceptions
    1. In the Exceptions screen area, choose New Exception in the context menu. An entry with the default text Exception <Number> appears and you can edit the description directly.
    2.In the context menu, choose Edit. The exception editor appears; it displays the relevant parts for the definition on tab pages.
    You can also call the exception editor from the Properties screen area by choosing the Edit pushbutton.
    3.      Make the required settings for the definition of the exception. For more information, see Definition of Exceptions.
    4.      Choose OK. You return to the query definition.
    5.      Choose Save Query.
    Removing Exceptions from Queries
           1.      In the Exceptions screen area, select the relevant exception and choose Remove in the context menu.
           2.      Choose Save Query.
    Result
    You have defined or changed an exception for a query. Execute the query. The exception is evaluated online. The cell areas that are affected by the exception appear highlighted in the appropriate color or, where applicable, with icons in Web applications.
    You can display the exception descriptions and activate or deactivate the exceptions you want.
    For more info go through the below link
    http://help.sap.com/saphelp_nw70/helpdata/en/68/253239bd1fa74ee10000000a114084/frameset.htm
    Regards,
    Marasa.

  • Urgent - Want a excel output from reports

    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    null

    Hi,
    Change the Desforamt as Delimited and give the File name as file.xls and run the report
    you will get the Excel Output but the total will be pronted On RHS for every row.Hope this would help you to print the report in Excel File.
    Thanks,
    Vikki
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by aruna100:
    I am giving DESTYPE = FILE
    DESNAME
    DESFORMAT = DELIMITED
    I have break groups in the report . But the excel output comes out very ugly. Like it repeats the whole info and then it put heading horizontally.
    here is the sample of the ugly file
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    Parent Rollup Id (TIER4) Parent name Revenue ID Name Source Type RevComp ID Rev Comp Name S2111 LINK PERIPHERAL PROCESSOR S2-LPP LINK PERIPHERAL PROCESSOR DMS250 FW
    well I have copied only two lines. BUt see how the whole info is being reporated. and the column heading are now row heading
    any clue to port it into excel so that it looks like the the report builder output.
    <HR></BLOCKQUOTE>
    null

  • View output from report output,display with null row

    Hi ,
    I view report output through browser,but the output content include with a null row inside.

    Hi
    That doesn't possible, so don't worry
    what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
    This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
    So i believe this (your) code:
    REPORT  z_sapscript.
    DATA TEST_NAME(20) TYPE c.
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
    zoption-tddest    = usr01-spld.        "Output device (printer)
    zoption-tdimmed   = 'X'.               "Print immediately
    zoption-tddelete  = 'X'.               "Delete after printing
    test_name = sy-uname.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             application        = 'TX'
             device             = 'PRINTER'
             dialog             = 'space
             form               = 'Z_TEST_SAPSCRIPT'
             language           = sy-langu
             OPTIONS            = zoption
         IMPORTING
              language           = sy-langu
           EXCEPTIONS
             OTHERS     = 1.
    IF sy-subrc  0.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             window        = 'MAIN'
         EXCEPTIONS
              element       = 1.
    CALL FUNCTION 'CLOSE_FORM'
      EXCEPTIONS
        unopened = 1
        OTHERS   = 2.
    It should work now
    Max

  • Form preview output from report

    I am having a requirement to have the form print preview in the report output.
    Steps to check form output:
    T-code VF03 -> enter billing doc number -> click on billing document tab at the top of the screen -> click on the issue type to -> select any type -> then click print preview.
    According to my requirement, the report selection screen is having only document number, and on executing it should directly display the form output.
    I have tried using BDC but it wouldn't help.
    Please help.

    Hi
    That doesn't possible, so don't worry
    what U need to consider is zoption-tdprogram has to have the name of main program, so the program where the variable are defined.
    This field isn't usually filled, because the main program is the driver program (i.e the program where the sapscript is called), it need to fill it only if the program where the variable are defined is not the driver program.
    So i believe this (your) code:
    REPORT  z_sapscript.
    DATA TEST_NAME(20) TYPE c.
    CLEAR usr01.
    SELECT SINGLE * FROM usr01 WHERE bname = sy-uname.
    zoption-tddest    = usr01-spld.        "Output device (printer)
    zoption-tdimmed   = 'X'.               "Print immediately
    zoption-tddelete  = 'X'.               "Delete after printing
    test_name = sy-uname.
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             application        = 'TX'
             device             = 'PRINTER'
             dialog             = 'space
             form               = 'Z_TEST_SAPSCRIPT'
             language           = sy-langu
             OPTIONS            = zoption
         IMPORTING
              language           = sy-langu
           EXCEPTIONS
             OTHERS     = 1.
    IF sy-subrc  0.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             window        = 'MAIN'
         EXCEPTIONS
              element       = 1.
    CALL FUNCTION 'CLOSE_FORM'
      EXCEPTIONS
        unopened = 1
        OTHERS   = 2.
    It should work now
    Max

  • Unable to view PDF output from Report Server

    Help!
    I have successfully setup CGI Report Server and can generate and view reports in IE5 as HTML repformat.
    However when I try to generate output as PDF I do not get the report displayed. Instead I get a little acrobat icon displayed in the top left of the browser window.
    When I click on the icon I get a IE5 message:
    "There is no viewer available for the type of object you are trying to open....
    Content Type: application/pdf"
    ...and then insists on taking me to Microsoft activex plugin page.
    This is very stange as I DO have Adobe Acrobat Reader 4 installed and the plugin works ok when viewing PDF files on Oracle webpage.
    Any suggestions on how to resolve are gratefully received!!
    Regards,
    Richard.

    You have run into an interesting problem. The problem is not with Reports. The problem is with Adobe. You can search Adobe's web site and they point to Microsoft (btw, this problem doesn't occur with netscape as the browser) Microsoft's web site point to Adobe.
    The Problem is that the .ocx Adobe puts out for use with IE times out if the report take stoo long to start sending back data. We had report that worked and some that didn't. We took a report that worked and put a sleep command in it and when the sleep command got to 10 the report quit working.
    My suggestion: move to netscape, make your reports as fast as absolutely possible.
    Jeff
    null

  • Unusual Output from Report ...

    Hi ...
    I'm constructing a report using report painter I have a requirement in my column for (Current Month Actual, Current Month Actual Last Year, YTD Actual, YTD Last Year)... I would like to use Predefined Key Figure
    My delema is I have several option when I select the Predined Key figure ranging from Actual Posting till Total Year.
    Question 1) For Current Month Actual -- which I should map under Predefined Key Figure and what are the selection should I do. The same goes for Current Month Actual Last Year, YTD Actual and YTD Last Year.
    Any I'm using Library 8A2 (PCA) which is 8A2-002
    Please assist me
    TQ
    Nathan

    For basic use KSL- Amount in profit center . For others try. KONZ_IST                 Actual postings       
    KONZ_IST2                Act. postings/ current
    KONZ_IST3                Act. postings / cumulat
    You'll need a columns defined with the period and years to do ty and py comparisons. Use a variable with a -1 to derive ly.
    Stick with currency KSL which is profit center currency.
    pls assign points as a way to say thanks.

  • Spreadsheet output from reports posting to multiple cells instead of one

    Hi all, using Report Builder 10.1.2.2.0
    ORACLE Server Release 10.1.0.5.0.
    I have a report that creates its output as an excel file using desformat=spreadsheet. The problem I am having is with fields that contain a large amount of text with formatting characters in them. In particular, carriage returns. When this data is created in excel, it treats the carriage return as a new cell, so instead of putting all the data for that column into one cell, it creates a number of cells and merges them all together.
    Is there anyway to get around this? I know excel can support line breaks within a cell, is it a limitation of oracle reports to be unable to duplicate this output?

    For what it's worth, that's the way I read that line in the User Guide as well. What it actually appears to mean, though is 'Rules applied to multiple cells apply independently to each of the cells."
    Here's a workaround for your three adjacent columns. Long, but fairly simple steps.
    Add a second table to the sheet (Table 2).
    Resize the second table to one column wide and as many rows as you want to apply the conditional format to.
    Set the width of the column to the same width as the three columns you want to highlight, and the row height(s) to match the rows.
    Format to table to have NO Header or Footer row or column.
    Use the Wrap Inspector to uncheck "Object causes wrap"
    In the first top cell of Table 2, enter an = sign, then Click on Table 1 in the sidebar, Click on the first cell that will hold YES or NO.
    Fill the formula down the rest of Table 2.
    With all cells in Table 2 selected, use the Cell Format inspector to set the 'text contains yes' rule and the conditional fill colour for these cells.
    Test the conditional formating by introducing values into Table 1.
    Click on Table 1 in the sidebar, then use the Table inspector to set Cell Fill to 'none'.
    Click on Table 2 in the sidebar, then drag that table onto table 1 aligning it to cover the cells in which the conditional formating is to appear.
    When positioned (and still selected), go to the Arrange menu and Send Backward to move Table 2 behind the (transparent) cells in Table 1.
    With Table 2 still selected, click on the Cell Borders color well and set the Opacity of the borders to 0%.
    Click the Text inspector and set the Text colour Opacity for Table 2 to 0%.
    Regards,
    Barry

  • Generating pdf output from reports 6i

    Hi,
    I want to generate the report in pdf format on clicking an hyperlink...
    this is my key...
    key1: server=Rep60_XP-OraHome8i report=Test_Report.rdf userid=xx/yyy@db desformat=PDF destype=file desname=test.pdf
    my hyperlink URL is
    http://mywebserver/cgi-bin/rwcgi60.exe?key1
    on clicking it, i get the output, that is the pdf file is written to the destination c:\orant\bin\test.pdf...
    but i want the pdf file to immediately open instead of saving it into the disk..
    how do i do that???
    Thanks.

    found the answer..
    just had to use destype=cache instead of file
    Thanks.

Maybe you are looking for