Dynamic columns in Reports

Hello,
We are using Oracle Report 6i to develop reports.
I have a frame with 60 fields displayed in 6 lines. Each line has 10 fields.
All the fields might have values or some fields may be empty.
In case fields 1-20 only have values.
Is it possible to suppress the fields without values (21-30) and hence dynamically reduce the frame size?
Please let me know.
Thanks
Sandhya

1.In r.frame set all 20 fields (one row of fields) in common frame.
Check if all 20 fields' values are NULL. If so then set frame formatting trigger
to return (False);
2.Set property of r.frame to variable (vertical).

Similar Messages

  • Dynamic columns in report... NON ALV REPORT

    Hey Guys,
    I have a internal table which has abt 50 columns now i wanna show only the columns that have any value in it...
    Now this is not an ALV report... this is a basic report....
    So anyideas as to where i can start  on this.... i dont want to write if conditions...
    i am tryin to make this as elegent as possible...
    all help will be appreciated
    Thanks

    Hi,
    Try this..
    In this example..I have an internal table with the columns MATNR, WERKS, LGORT & MENGE...The ITAB is having value only for matnr and werks..It will print only MATNR and WERKS in the output..
    <b>* Data declarations.</b>
    DATA: BEGIN OF itab OCCURS 0,
            matnr  TYPE matnr,
            werks  TYPE werks_d,
            lgort  TYPE mard-lgort,
            menge  TYPE ekpo-menge,
          END OF itab.
    DATA: BEGIN OF itab_desc OCCURS 0,
            compname(30),
            text(20),
          END OF itab_desc.
    DATA: v_repid TYPE syrepid.
    DATA: t_comp  LIKE rstrucinfo OCCURS 0 WITH HEADER LINE.
    FIELD-SYMBOLS: <fs>.
    DATA: t_allowed_fields(30) OCCURS 0 WITH HEADER LINE.
    <b>* Program.</b>
    v_repid = sy-repid.
    <b>* Sample data.</b>
    itab-matnr = 'TEST'.   itab-lgort = '0001'.APPEND itab.
    itab-matnr = 'TEST12'. itab-lgort = '0001'.APPEND itab.
    itab-matnr = 'TEST123'.itab-lgort = '0001'.APPEND itab.
    <b>* Store the columns texts.</b>
    itab_desc-compname = 'MATNR'. itab_desc-text = 'Material'.
    APPEND itab_desc.
    itab_desc-compname = 'WERKS'. itab_desc-text = 'Plant'.
    APPEND itab_desc.
    itab_desc-compname = 'LGORT'. itab_desc-text = 'Sto. Loc'.
    APPEND itab_desc.
    itab_desc-compname = 'MENGE'. itab_desc-text = 'Quantity'.
    APPEND itab_desc.
    <b>* Get the components for that internal table.</b>
    CALL FUNCTION 'GET_COMPONENT_LIST'
         EXPORTING
              program    = v_repid
              fieldname  = 'ITAB'
         TABLES
              components = t_comp.
    <b>* Get the columns that has some value.</b>
    LOOP AT t_comp.
      LOOP AT itab.
        ASSIGN COMPONENT t_comp-compname OF STRUCTURE itab TO <fs>.
        IF NOT <fs> IS INITIAL.
          EXIT.
        ENDIF.
      ENDLOOP.
    Allowed columns.
      IF NOT <fs> IS INITIAL.
        t_allowed_fields = t_comp-compname.
        APPEND t_allowed_fields.
      ENDIF.
    ENDLOOP.
    <b>* Print the Header.</b>
    LOOP AT t_allowed_fields.
      READ TABLE t_comp WITH KEY compname = t_allowed_fields.
      READ TABLE itab_desc WITH KEY compname = t_allowed_fields.
      WRITE: AT (t_comp-olen) itab_desc-text COLOR COL_HEADING.
    ENDLOOP.
    <b>* Print the data.</b>
    LOOP AT itab.
      WRITE: / space.
      LOOP AT t_allowed_fields.
        READ TABLE t_comp WITH KEY compname = t_allowed_fields.
        ASSIGN COMPONENT t_comp-compname OF STRUCTURE itab TO <fs>.
        WRITE: AT (t_comp-olen) <fs>.
      ENDLOOP.
    ENDLOOP.
    Thanks,
    Naren

  • Dynamic Columns in Report

    Hi,
    Is that possible to allow users to add columns at runtime?. I mean i have provided a report with 5 columns, user1 may need to include two more columns in a report (5+2), but he don't know how to work in Answers. So i need to predefine the styles for all the columns and provide a list to user.
    I have used "Column Selector", here we have a restriction like i can display any number of columns within the 5 column range (My report has 5 column). So this restrict the user to have only 5 columns in a report.
    Please provide a solution for this issue

    Thanks Naresh, solution looks good. Here also there is one restriction, like if i have 30 more columns in the report (available columns) and showing 8 at initial. Now if user need the all the 30 columns then i have to provide (8+22 hidden colum). In UI 30 drop down boxes (weird!!!!), this accumulates more spaces in dashboard as well UI looks chunky of controls. So is there any possible way to provide a list box with the list of columns and allow user to do selection (what we do in multi select prompts)?

  • Generate Paper Report with dynamic columns in Reports 9i

    Hi,
    I'd like to know if it's possible to select wich columns I want to show in the report just before it is shown.
    If yes, how can I do it?
    I'm using 9i Developer Suite and I'm calling the report from Oracle Forms.
    Thanx

    Set the Horizontal Elasticity to varaible.
    With a format trigger you control the visibility.
    function F_fieldFormatTrigger return boolean is
    begin
      if :hide = 'Y' then
        return(FALSE);
      end if;
      return (TRUE);
    end;

  • How to show the columns dynamically in OBIEE report based on the selection?

    Hi,
    I have a requirement where the columns should be dynamically shown in report based on what we select in propmt page.
    I'm creating a report in OBIEE where i want to give an option to the end user to select the columns whichever he wants to see in the report.
    For example I have the following columns in the report already:
    Customer Name,
    Customer Number,
    Bank Account,
    Address
    I want to give an option to the user to select 'Customer Mail ID' dynamically and see the column to be displyed in the report along with the existing columns.
    Through 'Column Selector' user can select a single column at a time, but if he want to select more than one column, how can we do this ?
    Please help me out in resolving this issue.
    Thanks,
    Chaithanya.

    Hi Chaithanya,
    there's not a straight solution for this. You can create different analysis containing different number of columns and then directing the user to this analysis using Action Links or you can also use View Selector to switch from one view (analysis) to the other. But it's not going to be very flexible nor dynamic.
    J.

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Dynamic columns in ALV report

    halo fellow SAPiens,
    i need to show dynamic columns for a particular material........the scenario is as follows....
    1) there r 7 fixed columns describing the material...
    2)when the material returns back to the plant for some reason , i need to insert a column which shows the date and reason(char) of return.
    3)again after dispatching the material for some reason it comes back again a new column shld be displayed showin the date and reason(char).
    4)if the material doesnt come back...the report shows only 7 columns.
    any solution?

    try <a href="http://www.alvrobot.com.ar/home.php">here</a>  ......its a useful tool for dealing with ALV
    <b>reward points if useful</b>

  • Dynamic Columns in BI Report

    Hi,
    In my report i have dynamic columns and i am achieving this using <?split-column-header:header?> , <?split-column-data:variable?>
    I need to define width for the dynamically created columns.
    How do i achieve this.
    i have seen <?split-column-width:name?>,<?split-column-width:@width?>
    I tried <?split-column-header:header?><?split-column-width:@200pt?><?heading?><?end split-column-data?> but didn't succeed.
    Please advice.
    Regards
    Jeethi George

    Hi User
    Try this link
    Dynamic columns in OBIEE

  • Designing Dynamic column in BI Report Template

    Hi,
    In one of my report i have a table grid where the columns are dynamic.How do i design dynamic column in BI rtf Template
    Is it possible to hide/Show column for BI report
    Please advice
    Regards
    Jeethi

    Hi ,
    Check the below link
    http://download.oracle.com/docs/cd/E10091_01/doc/bip.1013/b40017/T421739T481157.htm#4535400
    search for the Column Formatting you will find the example for dynamic cloumn creation.
    Thanks,
    Ananth

  • Dynamic columns with grouping.... in crystal report...using java /c# api ??

    I need to create a report with dynamic columns
    for e.g/
                                           Pre   Scen 1   Scen 2   Scen 3   Scen 4   Scen 5   Scen 6      .....
    *Total                          4.5118   4.5118    4.5118   4.5118   4.5118        4.5118   4.5118     *
    *Canada                    1.7180    1.7180    1.7180   1.7180  1.4103     8.4103      8.4103     *
       BG                           1.6224    0.9641    1.0473   1.0473  6.4635     6.4635  1.6224     
       BI                              0.044     0.0827     0.3578   0.3578 0.0560     0.0560   0.0744     
      DIN                    0.0056     -0.0655     -0.0215     -0.0215     -0.0210     -0.0210     0.0056     
    *Czech Republic     1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      CEE               0.0275     1.0000     0.7359     100.0000     0.0858     0.0858     0.0275     
    *Israel               1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      F                    0.0077     1.0000     0.7359     100.0000     -0.0035     -0.0035     0.0077     
    *United States          1.7180     1.7180     1.7180     1.7180     18.4103     18.4103     18.4103     *
      A                    0.0144     0.1871     91.0473     0.0679     0.0544     0.0544     0.0144     
      AA                    0.0428     0.0626     0.3578     0.0675     0.1175     0.1175     0.0428     
      AB                    0.0431     0.1553     -0.0215     0.1685     0.1199     0.1199     0.0431     
    in this report....grouping will be parameterized ....and total also required at every stage...
    so how can i add the columns dynamically ?
    number of columns are not fixed...they may be 20...30....etc

    Requirement is...
    I have a table scn ... where i can make entries any time....assume they are some rules...
    I have another table called t1 ... where i need to calculate values of t1 again some specific rules are table scn.
    So for each t1 there will be one row with columns as scn entries which I select on interface.
             Original Value  --  Sc1 ......  Sc2  ...... Sc3  ......  Sc4 ......  Sc5 . . . . . .. .
    t1...................xx...... xx..........xx..........xx........ xx........ xx
    t3...... .............xx...... xx..........xx..........xx........ xx........ xx
    t4....................xx...... xx..........xx..........xx........ xx........ xx
    selection of these scn columns will be dynamic....so i cant create n number of columns in the report template and hide them as per requirement....it will not work.
    Wat is a feasible solution to create such kind of report ?
    Can we create template in C# or .net ?
    IF yes...do we have to save every time in order to render report ?
    e.g.   one report may contain 4 columns and other 10 ... so do i have to create new rpt file each in order to render the report ?
    Please if any1 have approach to create this kind of report then it will very helpful....
    Edited by: pchawan on Jul 19, 2011 11:28 PM

  • How to spilt columns dynamically in the report based on Date Parameters

    Hi All,
    We have an XML Publisher report in which the parameters are Fom date and To date.
    User wants the data in the report to be split dynamically based on the months in the From date and To date interval.
    Eg. if the From date is 01-JAN-2013 and To date is '31-MAR-2013' then the report should show 3 columns JAN,FEB and MAR and the corresponding data.
    if the From date is 01-JAN-2013 and To date is '31-MAY-2013' then the report should show 5 columns JAN,FEB,MAR,APR and MAY and the corresponding data.
    Can anyone please advise, how can we spilt the months and data dynamically in the report.
    Regards,
    Shruti

    well you wanted the columns to be added dynamically.  the easiest way would be to use a Pivot since the columns are based on the values in the data.  and if the values of that column are Month Name/Abbreviation for that date then you will get month columns.
    Have you worked with Pivots before?

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Generating dynamic columns for a report

    Hi all,
          Can anybody pls. tell me how to output dynamic columns in a report. my req. is that i've to generate so many columns as there are no. of unique(a particular field value) rows in my internal table. for e.g say suppose i've 5 rows in my internal table which has 2 fields, one short text & it's corresponding value. so now my report output shud have 5 columns with the short text as the column heading & the their corresponding values below each column heading. i heard it can be done thru field-symbols. can anyone pls. guide me.

    Hi Sushma,
    This piece of code might be useful.
    The following sections will help you to understand the steps required to define a Dynamic ALV.
    Following symbol signifies:
    Þ                    Important
    Main Steps Required
    The following are the main steps that are to be performed for defining a dynamic Alv
    1.       Defining a field catalog
    2.       Defining the dynamic table
    3.       Filling data into the table
    4.       Displaying ALV list
    Defining a field catalog
    The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
    Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
    For example:
    DATA: T_FIELDCAT TYPE LVC_T_FCAT,
    L_FIELDCAT TYPE LVC_S_FCAT.
       Refresh T_FIELDCAT.
      CLEAR L_FIELDCAT.
      L_FIELDCAT-FIELDNAME = 'LIFNR'.
      L_FIELDCAT-INTTYPE = ''.
      L_FIELDCAT-OUTPUTLEN  = 10.
      L_FIELDCAT-COLTEXT  = TEXT-002.
      APPEND L_FIELDCAT TO T_FIELDCAT.
    Defining the dynamic table.
    This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
    Declare a field symbol
    Displaying Alv List
    This is done in the same way as we do for normal Alv. Call function “REUSE_ALV_GRID_DISPLAY” and pass the field catalog table in the export parameters and the dynamic table in Tables.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • Building dynamic columns in BO Report (BO 4.0)

    Hi All
    To start with I am new to BO and using reporting tool
    I have a requirement to create a WEBI report which contain a table with a feature to hide / remove columns based on input selection. ( dynamic columns)
    I tried to do this by following concept
    In my test scenario table has 3 columns. user will select which columns to show when refreshing the report.
    I created 4 tables .
    table 1: column 1, column 2 and colum 3
    table 2: column 1, column 2
    table 3: column 1, column 3
    table 4: column 2, column 3
    all tables were overlapped in display.
    I am trying to hide the table using the property which is available in table properties "Hide when following formula is true"
    to display table 1: formula is as follows
    =UserResponse("Enter Column") = "column1;column2;column3"
    The problem doing this way is
    1. selection should happen in a given order
    2. If there are mulitple columns , it doesn't make sense to create multiple tables as combination of columns increases.
    Is there a better formula to set using user response to achieve the above.
    Is there any better way to achieve the above generally.
    any suggestion and guidance will be appreciated.
    Thanks.

    Hello Guruprasad,
    PFB link to a good explanation how to display columns dynamically.
    http://blog.davidg.com.au/2011/09/dynamic-measures-in-webi-on-any-data.html
    hide formula for different tables will not be easy when you have more number of columns.
    another option is conditional formatting of columns based on a variable value. ie, indirectly hiding it by making background and value color white and keeping dynamic width for column.
    Regards,
    Nikhil Joy

  • Display Dynamic Columns in Crystal Report

    Hello,
    We are currently using Crystal Reports XI and connecting to an ADO .NET XML file as our data source. In this data souce we have a data table called IDENTIFIERS where every column, except for the ones used for joining tables is dynamic. These column will be different for each database thats its run against.
    Is there any way to display these dynamic columns without having consistent column names?
    You help is much appreciated.
    Thanks,
    Adam

    Thanks Carl,
    We do have control over the data table and a solution like this had crossed my mind. But this might not be practical for other reports that use this data table.
    I think another solution would be to create a new data tabl that has all identifiers on their own row as opposed to columns.
    id
    dentifier
    identifier_name

Maybe you are looking for

  • Parent-child hierarcy - row level security

    Hi, Im using OBI 11.1.1.5 and have a problem about row-level security in parent-child dimension. I have created a parent-child dimension, simlar to: a1 --a1.1 ----a1.1.1 ----a1.1.2 --a1.2 ----a1.2.1 By using a session variable 'SESVAR1', I want to re

  • Windows 8 will not load Adobe Acrobat X Pro

    I changed computers and it has windows 8 on it.  The above referenced app cannot load.  How can I fix this.

  • Pulling a value from a field for a SQL statement

    How do i pull the value from a Formatted Text Field into a sql query? Im trying to create an interface to allow a user to put the first name in a field then poll the database for anyone of that name. I do not know of how to get the value that is put

  • How do you change the logon screen in 10.7.4

    A few months ago I changed my logon screen background to something more desirable for my tastes. Recently, I updated my software to vers. 10.7.4 and the update reverted my custom logon screen back to the original. I tried changing it back, but it see

  • Error Creating Document Set in a Custom Sandboxed Action

    I created a custom workflow sandboxed action, and one of the lines is required to create a new document set in a document library. The code works when i run it in a console application. The document set is created successfully.  However, it doesn't i