Matrix layout and spreadsheet output 10g r2 reports

I'm currently developing a couple reports in 10g r2 and using the spreadsheet desformat. It works rather nicely but when I try it on a matrix layout it moves the matrix column(s) over the first cell of the spreadsheet instead of over the matrix cell. Is there a way to correct this issue or a property that I have to set?

Hi,
I've recently installed 10gR2 and am interested in using the DESFORMAT=spreadsheet for some existing reports. I've generated the report successfully, however the output in Microsoft Excel look awful - a lot of empty cells. When generated as 'pdf', 'htm' it looks good in the browser.
Did you do anything speciaI to maintain the format? Were you reports generated from scratch? Is there any reference docs avail (the online-help is pretty vague)...
I'd appreciate any info that would help get this working (for existing reports).

Similar Messages

  • Function to get the layout and variant info of a report

    Hi ,
    I have report zmm4. I have created a variant 'var1' .
    The output format of the report is defined in the layout
    'lay1'. Which is the function which gives the complete info about the displaying coulmns of those layout ?  because I need replicate these functionality in EP .
    Please don't say USE "SAP transaction Iviews'.
    any hint is appreciated
    thanks
    pkiran

    Hi Prashant,
    Does your report should look like portal format? or is it ok if you show SAP report in portal then easiest would be having a layout variant in the report selection.
    Assuming you are using ALV display. Specify the layout variant 'lay1' and save the variant 'var1'.
    Create Iview using SAP Transaction Iview and pass the  Tcode  - 'Start_Report'
    Application Parameters - D_SREPOVARI-REPORT=ZMM4 & D_SREPOVARI-VARIANT = VAR1.
    Choose option process first screen.
    Other suggestion would be to create a function module which is RFC enabled and pass the report values in the specified format to the FM output table and use SAP RFC IVIEW and report would look in portal format.
    You can also use com.sap.pct.srv.portaldataviewer par file and choose PortalALVTemplate. PortalALVTemplate is FM in R3 and gives u an idea how you can present the ALV report in Portal.
    Hope this helps,
    Thanks,
    Praveen
    PS.Dont forget to reward points for useful/solved answers

  • At line selection b/w normal output and alv output in 1 report

    hi,
    i had developed a report in which its starting output is normal out put and when i click on the itemid i should  display the alv which i had developed. i dont know how to display the functionality in my report.
    plzz provide me guideliens as help will be deifnately rewarded.

    its a interactive report.
    execute this sample report.
    *& Report  Z_ALVREPORT                                                 *
    report  z_alvreport .
    tables:vbak,vbap,mara.
    type-pools: slis.
    *PARAMETERS:P_VBELN TYPE VBAK-VBELN.
    types: begin of i_vbak,
           vbeln like vbak-vbeln,
           erdat like vbak-erdat,
           erzet like vbak-erzet,
           ernam like vbak-ernam,
          LINE_COLOR(4) TYPE C,                 "ROW COLOR
           end of i_vbak.
    data: it_vbak type standard table of i_vbak initial size 0,
          wa_vbak type i_vbak.
    *DATA:wa_sort1 TYPE slis_t_sortinfo_alv.
    *TYPES:BEGIN OF I_MARA,
         MATNR LIKE MARA-MATNR,
         MTART LIKE MARA-MTART,
         END OF I_MARA.
    *DATA: IT_MARA TYPE STANDARD TABLE OF I_MARA INITIAL SIZE 0,
         WA_MARA TYPE I_MARA.
    *DATA: WA_COLOR TYPE LVC_S_SCOL.            "FOR ROW COLOR
    *DATA: IT_COLOR TYPE TABLE OF LVC_S_SCOL.
    types: begin of i_vbap,
           vbeln like vbap-vbeln,
           posnr like vbap-posnr,
           matnr like vbap-matnr,
           matwa like vbap-matwa,
           end of i_vbap.
    data: it_vbap type standard table of i_vbap initial size 0,
          wa_vbap type i_vbap .
    *variable for current report ID
    data: v_repid like sy-repid .
    *declaration for fieldcatalog
    data: i_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat type slis_fieldcat_alv.
    data: it_listheader type slis_t_listheader.
    declaration for events table where user comand or set PF status will be defined
    data: v_events type slis_t_event,
          wa_event type slis_alv_event.
    declartion for layout
    data: alv_layout type slis_layout_alv.
    declaration for variant(type of display we want)
    data: i_variant type disvariant,
          i_variant1 type disvariant,
          i_save(1) type c,
          col_pos type i.
    *Title displayed when the alv list is displayed
    data:  i_title_vbak type lvc_title value 'FIRST LIST DISPLAYED'.
    data:  i_title_vbap type lvc_title value 'SECONDRY LIST DISPLAYED'.
    initialization.
      v_repid = sy-repid.
      perform build_fieldcatlog.
    PERFORM BUILD_LAYOUT.                             "FOR COLOR
      perform event_call.
      perform populate_event.
    start-of-selection.
      perform data_retrieval.
      perform build_listheader using it_listheader.
      perform display_alv_report.
    *&      Form  BUILD_FIELDCATLOG
          Fieldcatalog has all the field details from vbak
    form build_fieldcatlog.
      wa_fieldcat-tabname = 'IT_VBAK'.
      wa_fieldcat-fieldname = 'VBELN'.
      wa_fieldcat-seltext_m = 'SALES DOCUMENT NUMBER.'.
      wa_fieldcat-hotspot = 'X'.
    WA_FIELDCAT-COL_POS = 1.
      wa_fieldcat-emphasize = 'C110'.
      wa_fieldcat-edit = 'X'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAK'.
      wa_fieldcat-fieldname = 'ERDAT'.
      wa_fieldcat-seltext_m = 'DATE.'.
    WA_FIELDCAT-COL_POS = 2.
      wa_fieldcat-emphasize = 'C210'.
      wa_fieldcat-edit = 'X'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAK'.
      wa_fieldcat-fieldname = 'ERZET'.
      wa_fieldcat-seltext_m = 'ENTRY TIME'.
    WA_FIELDCAT-COL_POS = 3.
      wa_fieldcat-emphasize = 'C310'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAK'.
      wa_fieldcat-fieldname = 'ERNAM'.
      wa_fieldcat-seltext_m = 'NAME'.
    WA_FIELDCAT-COL_POS = 4.
      wa_fieldcat-emphasize = 'C410'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAK'.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_m = 'MATERIAL NUMBER'.
    WA_FIELDCAT-COL_POS = 4.
      wa_fieldcat-emphasize = 'C510'.
      wa_fieldcat-hotspot = 'X'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    endform.                    "BUILD_FIELDCATLOG
    *form build_layout
    *FORM BUILD_LAYOUT.
    *ALV_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    *ENDFORM. "END BUILD_LAYOUT.
    *&      Form  EVENT_CALL
      we get all events - TOP OF PAGE or USER COMMAND in table v_events
    form event_call.
      call function 'REUSE_ALV_EVENTS_GET'
       exporting
         i_list_type           = 0
       importing
         et_events             = v_events
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "EVENT_CALL
    *&      Form  POPULATE_EVENT
         Events populated for TOP OF PAGE & USER COMAND
    form populate_event.
      read table v_events into wa_event with key name = 'TOP_OF_PAGE'.
      if sy-subrc eq 0.
        wa_event-form = 'TOP_OF_PAGE'.
        modify v_events from wa_event transporting form where name =
    wa_event-form.
      endif.
      read table v_events into wa_event with key name = 'USER_COMMAND'.
      if sy-subrc eq 0.
        wa_event-form = 'USER_COMMAND'.
        modify v_events from wa_event transporting form where name =
    wa_event-name.
      endif.
    endform.                    "POPULATE_EVENT
    *&      Form  data_retrieval
      retreiving values from the database table vbak
    form data_retrieval.
    *DATA:ID_COLOR(1) TYPE C.
      select vbeln erdat erzet ernam from vbak into table it_vbak .
    SELECT MATNR FROM MARA INTO TABLE IT_MARA.
    LOOP AT IT_VBAK INTO WA_VBAK.
       WA_VBAK-LINE_COLOR = 'C410'.
       ID_COLOR = ID_COLOR + 1.
    IF ID_COLOR = 7.
        ID_COLOR = 1.
    ENDIF.
    CONCATENATE 'C' ID_COLOR '10' INTO WA_VBAK-LINE_COLOR.
    MODIFY IT_VBAK FROM WA_VBAK.
    ENDLOOP.
    endform.                    "data_retrieval
    *&      Form  bUild_listheader
          text
         -->I_LISTHEADEtext
    form build_listheader using i_listheader type slis_t_listheader.
      data hline type slis_listheader.
      hline-info = 'THIS IS INTERACTIVE ALV'.
      hline-typ = 'H'.
    endform.                    "build_listheader
    *&      Form  Status
      using the PF-Status enable the SAVE, UPDATE, BACK, CANCEL and EXIT
      button and give some OKCODE has been give to each of these Button
      and this is handled in USER_COMMAND
    form status using p_extab type slis_t_extab.
    *----PF Status -
      set pf-status 'STATUS'.
    endform.                    " status
    *&      Form  display_alv_report
          text
    form display_alv_report.
      v_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_repid
         i_callback_pf_status_set          = 'STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = i_title_vbak
      I_GRID_SETTINGS                   =
         is_layout                         = alv_layout
         it_fieldcat                       = i_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           = wa_sort1
      IT_FILTER                         =
      IS_SEL_HIDE                       =
        i_default                         = 'ZLAY1'
         i_save                            = 'A'
        is_variant                        = i_variant
         it_events                         = v_events
        tables
          t_outtab                          = it_vbak
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "display_alv_report
    *&      Form  TOP_OF_PAGE
          text
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary       = it_listheader
          i_logo                   = 'ENJOYSAP_LOGO'
       I_END_OF_LIST_GRID       =  'TOP_OF_PAGE'.
    endform.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
    form user_command using r_ucomm like sy-ucomm
    rs_selfield type slis_selfield.
      case r_ucomm.
        when '&IC1'.
        if rs_selfield-fieldname = 'VBELN'.
          read table it_vbak into wa_vbak index rs_selfield-tabindex.
          refresh i_fieldcat.
          perform build_fieldcatlog_vbap.
          perform event_call_vbap.
          perform populate_event_vbap.
          perform data_retrieval_vbap.
          perform build_listheader using it_listheader.
          perform display_alv_vbap.
        elseif rs_selfield-fieldname = 'MATNR'.
          set parameter id 'MAT' field mara-matnr.
          call transaction 'ZCHANG' and skip first screen.
        endif.
        when 'SAVE'.
        loop at it_vbak into wa_vbak.
        modify it_vbak from wa_vbak.
        endloop.
        endcase.
    endform.                    "user_command
    *&      Form  BUILD_FIELDCATLOG_VBAP
          text
    form build_fieldcatlog_vbap.
      wa_fieldcat-tabname = 'IT_VBAP'.
      wa_fieldcat-fieldname = 'VBELN'.
      wa_fieldcat-seltext_m = 'SALES DNO.'.
      wa_fieldcat-emphasize = 'C110'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAP'.
      wa_fieldcat-fieldname = 'POSNR'.
      wa_fieldcat-seltext_m = 'ITEM'.
      wa_fieldcat-emphasize = 'C210'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'IT_VBAP'.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_m = 'MATERIAL NO.'.
      wa_fieldcat-emphasize = 'C310'.
      wa_fieldcat-edit = 'X'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    wa_fieldcat-tabname = 'IT_VBAP'.
      wa_fieldcat-fieldname = 'MATWA'.
      wa_fieldcat-seltext_m = 'MATERIAL'.
      wa_fieldcat-emphasize = 'C410'.
      wa_fieldcat-edit = 'X'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    endform.                    "BUILD_FIELDCATLOG_VBAP
    *&      Form  event_call_vbap
      we get all events - TOP OF PAGE or USER COMMAND in table v_events
    form event_call_vbap.
      call function 'REUSE_ALV_EVENTS_GET'
       exporting
         i_list_type           = 0
       importing
         et_events             = v_events
    EXCEPTIONS
      LIST_TYPE_WRONG       = 1
      OTHERS                = 2
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "event_call_VBAP
    *&      Form  POPULATE_EVENT
           Events populated for TOP OF PAGE & USER COMAND
    form populate_event_vbap.
      read table v_events into wa_event with key name = 'TOP_OF_PAGE'.
      if sy-subrc eq 0.
        wa_event-form = 'TOP_OF_PAGE'.
        modify v_events from wa_event transporting form where name = wa_event-form.
      endif.
      endform.                    "POPULATE_EVENT
    *&      Form  TOP_OF_PAGE
          text
    form f_top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
          it_list_commentary       = it_listheader
       i_logo                   =
       I_END_OF_LIST_GRID       =
    endform.                    "TOP_OF_PAGE
    *&      Form  USER_COMMAND
    *retreiving values from the database table VBAP
    form data_retrieval_vbap.
    select vbeln posnr matnr matwa from vbap into table it_vbap.          " WHERE VBELN = P_VBELN.
    endform.
    form build_listheader_vbap using i_listheader type slis_t_listheader.
    data: hline1 type slis_listheader.
    hline1-typ = 'H'.
    hline1-info = 'CHECKING PGM'.
    endform.
    form display_alv_vbap.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       i_callback_program                = v_repid
      i_callback_pf_status_set          = 'GUI_STAT'
      I_CALLBACK_USER_COMMAND           = 'F_USER_COMMAND'
       i_callback_top_of_page            = 'TOP_OF_PAGE'
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
       i_grid_title                      = i_title_vbap
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         = ALV_LAYOUT
       it_fieldcat                       = i_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         =
       i_save                            = 'A'
      IS_VARIANT                        =
       it_events                         = v_events
      tables
        t_outtab                          = it_vbap
    exceptions
       program_error                     = 1
       others                            = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endform.

  • How to get an effective EXCEL Spreadsheet as output for Oracle report 10g

    Hi All,
    I am a newbie in Oracle reporting. I am using 10g. I have an oracle report whose output format is PDF from the user interface. User asked for Spreadsheet output. I changed the JAVA CODE "desformat" = Spreadsheet and got the report in Excel. But this report is not as expected as it has many blank cells, misplacements etc and looks really ugly. so Is there anyway to get an excellent spreadsheet as output.
    If anybody needs any more information on this, please let me know.
    Thanks in advance.

    Thank you so much Marwim. Your suggestion is very helpful. But I have some other Oracle reports which have only one .rdf file giving output in both pdf and Excel. This doubt might be silly. Almost same features were existing for the rdf what I am working now. For the remaining reports, it was given that DESFORMAT=SPREADSHEET , what this report lacks. I googled and found these links http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm &
    http://docs.oracle.com/html/B13895_01/orbr_paptoexcel.htm#CIHFDJAJ . But they are not intended for excel output. they generate only web layout in spreadsheet form. Could you please suggest any other ways to achieve this.
    Thank you in advacne.
    Edited by: user07960 on Jan 10, 2013 10:47 AM

  • Report developed in 6i and open and run in 10g, Web Layout is not working

    Hi,
    Initially reports were developed in Reports 6i now we need to convert into 10g. I just opened the .rdf in Reports10g. Report is successfully running in paper layout and showing the data. But when i try to run the report in Web Layout im getting a BLANK INTERNET EXPLORER SCREEN. Why is it so? What should i do to run my report successfully in Web Layout? When i see Web Source, i am seeing the below code,
    <%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
    <%@ page language="java" import="java.io.*" errorPage="/rwerror.jsp" session="false" %>
    <%@ page contentType="text/html;charset=ISO-8859-1" %>
    <!--
    <rw:report id="report">
    <rw:objects id="objects">
    </rw:objects>
    -->
    <html>
    <head>
    <meta name="GENERATOR" content="Oracle 9i Reports Developer"/>
    <title> Your Title </title>
    <rw:style id="yourStyle">
    <!-- Report Wizard inserts style link clause here -->
    </rw:style>
    </head>
    <body>
    <rw:dataArea id="yourDataArea">
    <!-- Report Wizard inserts the default jsp here -->
    </rw:dataArea>
    </body>
    </html>
    <!--
    </rw:report>
    -->
    Please, guide to achive the Web Layout Report.
    Thanks & Rgds,
    M Thiyagarajan

    Hello,
    The answer is in the Migration FAQ :
    When I open an Oracle6i Reports Developer report in the Oracle Reports Builder 10g and run my Web layout, I get an empty Web page in my browser.
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm#368
    Regards

  • Help desiging a 10g Oracle Report with Matrix and Lexical Parameters - Long

    Hello all:
    I apologize in advance for this long post.... I'm using Oracle Reports 10g (9.0.4.0.33). First -- the question:
    I need to create a Matrix where the rows come from one database table
    (TABLE1) and the columns and cell contents come from a linked query (pulled from TABLE2) that is generated with lexical parameters based on the current TABLE1 row. The lexical parameters contain a WHERE clause for the TABLE2 query. Basically, I have a linked query between TABLE1 and TABLE2. I need to generate a Matrix around it.
    Does anyone know if this is even possible?
    Here's the background on the application, if that is helpful...
    I have an application where I maintain database tables containing names/addresses along with information pertaining to them. As part of the processing, I need to produce reports that contain statistics based on values in the table. For example, each row has a field RTYPE that identifies the Record Type (1-Suppress, 2-Buyer, 3-Inquirer). Each row also has a last purchase date field. The statistics produced for this field would look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Buyer      100 150 250 30 25 15 8 9 22 83
    Inquirer     1000 800 493 ...
    Suppress ... ...
    Totals ... ...
    Each cell contains the count of the number of records that have the corresponding RTYPE and Last Purchase date. The dates across the top are determined by the most recent purchase date in the file. We count the last 12 months, month by month, and then anything older than that is grouped by
    year of purchase. So, the column headings are variable.
    The SQL query for this example looks like this:
    SELECT CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END HLDESC,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END YYMM_8,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END FmtDate_8,
    COUNT(*) HLCOUNT
    FROM &TABLENAME T
    GROUP BY CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END
    ORDER BY CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END
    There might be a better way to write this, but that isn't the issue at the moment.
    I have many different tables, each with different fields. I need to produce counts on each of those fields. Some of those fields have a limited number of values where I need to count the occurrences and attach a description (like the RTYPE counts above). Others, like Last Purchase Amount, require counts within ranges (between 0 and 9.99, 10 and 19.99, etc.). Still others are "multiple choice"-style fields (such as products purchased), where we have multiple single-char flags that are not null when the corresponding products are purchased. In this case, we need to produce statistics that look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Product 1 .........
    Product 2 .........
    The worst of the bunch is a field where I need to count the occurrence of each value within it (hundreds of values) without entering descriptions, so I don't know how many rows will appear ahead of time. This is used for "source codes" that identify where the name/address came from. They look similar to the RTYPE above, but the leftmost column contains each value from the field rather than a description. There are so many possible values and they change so often that it isn't feasible to enter a description for each one.
    Right now, I manually create an Oracle Report for each table when I design/load it. This is becoming difficult to manage, since I have over 150 of them now. Each of these reports can have any number of matrices to display (the largest right now has about 25).
    The new table structure to generate these reports consists of two tables: A COUNTHDR table and a COUNTROW table. The COUNTHDR table represents a single Matrix within the report. It contains info such as a heading for the Matrix and whether column totals should be calculated or not. The COUNTROW table contains a description for each row and an SQL Fragment that contains an appropriate WHERE clause to match the description. In the event of a "source code" style count, COUNTHDR has the name of the field to count. COUNTROWs won't exist, so I'll be handling those counts differently. But, ignoring that issue for now, the report structure looks like this:
    + Q1 +
    |
    + COUNTHDR +
    |
    + COUNTROW +
    | linked query
    + Q2 +
    |
    + COUNTDTL +
    Q2 is the query with lexical parameters for the table and "where clause" that identifies the actual statistic I need counted. I need fields from COUNTROW and COUNTDTL to form a Matrix.
    Can this be done? How?
    Of course, if anyone out there has a better idea on how to achieve my goal of not writing a report per table, please let me know!! :-)
    TIA
    Eric Raskin
    PS. This structure does not exactly duplicate my original query, since multiple Matrix rows are created by the single SQL query given in the example. Instead, I'll end up executing an SQL query for each row, which is less than desirable. The design will need some tweaking...
    PPS. I have tried handling this problem by pre-counting the target table and storing the results in a COUNTCOL table, containing the details of the matrix. This actually does work, but the performance is terrible. I have one "source code"-style count that generated over 20,000 detail cells, including all the "0" cells needed to fill out the matrix. If you don't generate the "0" cells, you get holes in the matrix presentation and/or error messages (which I can explain if you wish). I never did get Oracle Reports to print this one -- I gave up after an hour of runtime on a P4 3GHz machine connected via Gigabit Ethernet to the server. Hence the attempt to push the SQL Queries back into the Oracle Report itself.
    Eric H. Raskin Voice: 914-765-0500
    Professional Advertising Systems Inc. Fax: 914-765-0503
    200 Business Park Dr Suite 107 [email protected]
    Armonk, NY 10504

    Hi there
    here's example of my code
    Html header of the page :
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url;
    url = 'f?p=&APP_ID.:8:&APP_SESSION.::::P8_PROJECT,P8_PDRL_NO:' + formVal1 + ',' + formVal2;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    troubleshooting
    1.Test each parameter separate first - each work ?
    2.Use code above, rerig it, create multiple parameter
    3.try again...
    hope this helps...
    check your orginial source (page where items are) - what data

  • Can't generate SPREADSHEET output in Reports 10.1.2.0.2

    We are using Reports 10.1.2.0.2. I want to generate in my (Not deployed in the AS) PC a simple tabular report but in spreadsheet format. I use this command line command in a batch file.
    d:\OracleDevR1\bin\rwrun.exe    USERID=user1/user123@db1  
        REPORT=c:\temp\rpt_10gr2_101202_1.rep
        DESFORMAT=spreadsheet    
       DESTYPE=FILE 
    DESNAME=c:\temp\rpt_10gr2_101202_1_excel_output.xls   I get this error in the log file
    REP-0826: Invalid printer driver
    'spreadsheet' specified by parameter
    DESFORMAT.However, I can generate DESFORMAT=HTML, DESFORMAT=PDF output. The HTML and PDF files are created.
    What is the problem here?? Any help would be greatly appreciated.
    I even installed Excel 2007 but still gives the same error.
    Edited by: Rohan123 on Aug 24, 2012 4:19 AM

    rzuluaga - Oracle wrote:
    Hi,
    this is very weird as it should work fine in 10.1.2.0.2. I tested rwrun with desformat=spreadsheet on Windows and on Linux with base release (10.1.2.0.2) and it worked fine so not sure what is happening with your environment.
    My only suggestions would be as follow
    1- Make sure you are using a report with paper layout and no web layout
    2- Aapply patchset 10.1.2.3 and re-try.
    Reference
    https://updates.oracle.com/Orion/PatchDetails/process_form?patch_num=5983622
    Regards, RobertoSorry Roberto, I have mistakenly used the 10G release 1 EXE. When I use my 10g R2 exe we can generate spreadsheet format. BUT, the spreadsheet is useless for complex reports. The excel sheet is not readable since lots of blank lines added and also lots of blank columns added. No images also there that is found in the PDF output. So, it's not WYSIWYG type output.
    We are now trying to patch the 10g r2 to 10.1.2.3 and use the ENHANCEDSPREADSHEET format.

  • Report fonts mapping and PDF output problem(Easten European languages)

    Hi experts,
    I have such a problem.
    If i run oracle reports(10g) via reports builder all layouts looks fine.
    When i run them in PDF format via application server - report text and numbers strech out off frames, also textfields and text itself becomes bigger in size.
    Aplication server runs over windows OS.
    Uifont.ali file looks:
    [ PDF:Subset ]
    Arial..Italic.Bold.. = "Arialbi.ttf"
    Arial...Bold.. = "Arialbd.ttf"
    Arial..Italic... = "Ariali.ttf"
    Arial..Plain... = "Arial.ttf"
    Arial..... = "Arial.ttf"
    "Times New Roman"...Bold.. = "TIMESBD.TTF"
    "Times New Roman"..Italic... = "TIMESI.TTF"
    "Times New Roman"..... = "TIMES.TTF"
    I think the problem is with Lithuanian(baltic) letters in the text. If i do not map fonts in uifont.ali file i get PDF report without the
    lithuanian alphabet letters, but in this case it looks fine(The same as in report builder)
    After fonts mapping, i get my lithuanian alphabet letters, but text and numbers strech out off frames, changes the size and etc.
    I put the example of my report uotput:
    http://pirmas.50webs.com/index.html
    What else can i do to solve this problem?
    Thanks for any suggestions
    Sky_lt

    Vangel
    For the html output issue , there is a patch available on top of 9021. Please contact your Oracle support representative to get a 90211 patch nd apply the one-off patch of Bug 2472932.
    For PDF, please ensure that you are setting the NLS_LANG in the server config file using the dynamic environment switch feature introduced in 90 patch 1 (9021). Please see the patch 1 release notes for the details
    Thanks
    The Oracle Reports Team

  • PS report S_ALR_87013558 - add layout for alv output

    Hi Friends
    In Standard report of PS S_ALR_87013558 I hav to add a selection screen field for selecting layout and accordingly the ALV layout will be displayed. Can it be achieved by enhancing, or we need to copy the report and modify and configure or is there any other way to do it.
    Thanks
    Moumita

    Hi,
    I think that can be achived through the dynamic selections to add fields to the dynamic selector you check the transaction CATS_SELVIEW press f4 on name of view and select standard then display you can see all functional groups, tables, table fields. Assign the respective according to your critaria.

  • Change of Layout/Look and Feel in BI 7 Reports.

    Hi,
    This is Prem from NetWeaver Portals.
    Currently we have a couple of BI 7.0 reports integrated into portal.
    We have also used Portal Themes to alter the Look and Feel of the BI reports with respect to Heading colors, alternate row colors etc. But the scope of changing the Look and feel of BI reports from the Portal theme is very limited.
    Is there a way to modify it further from BI's CSS?
    Where is this functionality provided in SAP BI 7.0?
    We are also interested in changing the Layout of the reports in BI. i.e. unlike the standard BI format of reports as generated from the Web Application designer, we would like to change the layout as well.
    How is this layout change carried out? Web Templates?
    Kindly spell out a solution for me as I'm not aware of BI
    Thanks and Regards,
    Prem

    Could yo please explain little detial. how do you changed the look and feel of reports through the portal themes. We are trying to change the colors of the execptions and text box and some more.  we have created a custom theme  in which we changed the  complex formatted table  crictal, bad, good colors. when we assigned this theme through personalization to the user, custom theme colors are not seen in the BW report. 
    Please let us know
    thanks and regards
    venkata bandi

  • REPORT LAYOUT Discoverer Viewer AS-10g

    I have a problem about report layout on Discoverer viewer AS10g.
    If I have a crosstab layout and Year is my left axis and Sales and Products are my top axis, I see the label on report (Year), not only values (2003, …). I also see the label “Data point(s)”, but I don’t want to see it.
    How can I reduce or delete the white space around cells of data?
    a)How can I hide the label “Data points”?
    b)How can I hide the label “Year”?
    c)How can I reduce the white space?
    Version : Oracle Discoverer AS10g

    Anna,
    this forum is about Oracle Forms. Please submit thsi question to the Reports or Discoverer forum on OTN.
    Frank

  • How to push a button, run a report, and open output in new windows?

    I have an application where I want to present the user with a form, have them enter their report parameters, and then press a go button. I would then like to display a progress bar. The report will generate both a PDF and HTML output. When the report is complete, I want to display each one of these outputs in their own browser window.
    How do I do this?

    You want to retrieve two responses? Then you'll have to invoke two requests simultaneously. You can make this possible with a Javascript window.open call in the onclick attribute of the commandButton. E.g.
    <h:commandButton
        value="submit"
        action="#{myBean.submit}"
        onclick="window.open('pdfServlet?param1=value1&param2=value2');" />Where the bean action just returns the HTML (JSF) result and the onclick fires a servlet, if neccessary supplied with request parameters so that it knows what PDF it need to generate.

  • Report Layout and Report Query APEX tables

    Does anyone know a quick way to delete report layouts and report queries from the APEX tables that they are stored in. We currently have to go into the shared components area and delete them one by one using the builder. If we could just get the table that they are stored in and delete them by name, that would be extremely useful. Oracle does not support this type of data manipulation.
    Thanks,
    Andrew

    Hi,
    There are Top and Bottom – Left and Top and Bottom – Right.
    I suppose that you have something wrong in the SQL Query or in the report.
    Make a new report using the wizard. Then use Report Template – Standard and Top and Bottom – Left.
    Konstantin

  • Layout and euro sign in reports 2.5

    Well my problem is that I can't get a good layout of my reports when I use
    different printers .My developing printer is a Xerox DC 220, and I use also a
    hp laserjet4 plus driver . I can't get a Standaard layout for printing my
    reports.I am daying to layout each report for each printer and as we have many
    customers it's not smart to make many layouts for each customer .
    Is there any way or method to make a Standaard reports layout for differnt
    printers?? another problem is I can't get an Euro sign when I print my reports
    I got a patch from Microsoft site just for Euro (on windows NT 4.0)but it
    doesn't work !!!!!
    I am using reports 2.5 release(2.5.5.2.7) on a windows NT 4.0 ,build nr(1381)
    service pack (6.0) my oracle database is 7.3.4
    My printer is Xerox DC 220 and hp laserjet 4 plus driver
    Well the main problem is the layout I can't get a WYSISWYG layout !! it's
    really annoying to get something on my screen or preview and when I print it
    I see something totally different ...
    when I get a proper layout from my printer and send it to my customer they get
    something else as layout .. I am using a default prt file in all my reports.
    we have using a windows NT 4.0 with a service pack 6.0 and an euro patch from
    microsoft but still doesn't work !! however when i use windows98 it works just fine !!
    null

    Double-click on the field on the layout and write something like:
    if <condition> then return false;
    in the field 'Format trigger' to the bottom of the dialog.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Siamesse Twin ([email protected]):
    Im tryng to hide some field due to some conditional values in reports 2.5.
    It's easy when you are working with Reports 3.0(Rigth Click on the item and Conditional Formating apppears), but I dont have any idea where to start in reports 2.5.
    Please if anyone could help me .<HR></BLOCKQUOTE>
    null

  • How to layout a subreport based on main report and another subreport!

    Hello all,
    I got an issue how to capture the value at a run time and loop through group in Crystal Report. My project is complicated (main report and sub report using stored procedure with parameters as datasource and a lot of formula fields pass between main report to sub report, but I try to explain it as simple scenario as following:
    School 1
    Main report layout: (Group by Class)
    ===============================================
    Class A
    Sub report: ( This result from the stored procedure at run time and only having two rows when running stored procedure)
    Boy : 200                  
    Girl : 150
    ================================================
    Class B
    Sub report
    Boy: 50
    Girl: 100
    =================================================
    Class C
    Sub report 
    Boy: 259
    Girl: 80
    Please pay attention on the above layout what I am done on reports. My question is how to produce another report that used the previous values and having the following layout:
    School Summary
    Class  |  Boys  |  Girls  |  Student
    A        |   200    |  150   |     350
    B        |     50    |  100   |     150
    C        |   260    |    80   |     340
    Please give me some ideas how to solve above problem. I know that Crystal Report can use shared variables via formula fields. I am wondering whether or not how to capture the specific value at the run time? Is it posible to make it working in Crystal Report or I have to write a stored procedure in the backend??? Thanks in advance.

    Hi,
    When we look at your report lay out, for each class group you have boys and girls count which is coming from sub report.
    I think you placed the sub report in the Class group and linked with Class.  If that is the case you will get all information in the sub report itself.
    In the sub report, create a running total with shared variables and bring this value to main report to display at the end of the report.
    Eg: To get Class from sub report to main report :
    Whileprintingrecords;
    Shared stringvar class;
    class:=classchar(13);
    Place this formula in your sub report group and create one more formula
    Whileprintingrecords;
    Shared stringvar class;
    class;
    Place this formula in your main report report footer, this will bring your classes into main report. Follow the same process for boys and girls numbers.
    Thanks,
    Sastry

Maybe you are looking for

  • Flash CC Publish Animated Gif ignores looping sequences?

    I'm just learning Flash so apologies in advance. I can't seem to get an animated gif that won't loop--I only want it to play once. Here is what I'm doing, using Flash CC Pro (latest): Create an .fla file, all set to go, looks good Go to Publish Setti

  • Writing files to disk.....

    Hi, any ideas why this code to read in an array of bytes (a file) from a server and then write the file to a user chosen directory does not work?? Should I be using a fileObject and not just a fileoutputstream?? I am using an example from a book that

  • Exchange rates Gand B in Purchase order

    Hi, while doing P.O the exhange rate will come from exhange rate type M, now my client wants when they do IMPORT Purchase order the exchange rate has to take fro exchange rate type G(bank buying rate) and while doning Export P.O the exchange rate has

  • Dynamic spellcheck doesn't work, autocorrect and normal spellcheck do work.

    Hi, my dynamic spelling doesnt work, i use windows 7 and indesign cs6. My normal spellcheck (the word per word one) does work, my dictionary works, everything works exept dynamic spelling, pls help. I have chosen the correct disctionary and my text i

  • Photoshop Elements 10 Editor crashes after cropping.

    After I create the parameters for cropping a picture and I hit enter to save it, the entire picture disappears and nothing is saved. What's going on and how do Ifix this?