Report Painter - Dynamic Columns

Dear Expert,
I'm preparing a report painter report with cost centers as columns.
Is there anyway I can use cost center group as variable and then the no. of columns and column texts are populated based on the no. of cost centers and cost center names exist in that cost center group?
Thanks in advance and regards,
Junior

Hi
To define anything as variable, you should have the details like - TABLE / STRUCTURE details.
But, for any groups ( Cost element group / Cost center group) - no table / structure available
VVR

Similar Messages

  • How to create report with dynamic columns with static row labels

    Hi All,
    I am creating one report as per attached format. I have labels on the right side of the report
    and data in 3 columns. The data is taken dynamically from the command query.
    It gets data from 3 different result sets/command queries.
    I tried creating the report horizontally instead of vertically, but the logo image I am not able to rotate in 270degrees.
    Can anybody tell me how to create the report...??

    Hi Abhilash,
    Thanks for the quick reply.
    Actually the problem is with the image, as I am not able to rotate 270 degree. Crystal report cannot support the rotation of image.
    i have another problem, I have to create a report in which
    Lables are fixed on the left side of report and 3 columns per portrait page. Those columns are
    dynamically created and shown in the report.
    The format is like the above. Can you please help me in doing this report, as I tried it doing
    with CrossTab. I am really stuck to this report.

  • Report Painter - Invisible Column

    Hello All -
    I am creating a report painter report using internal order table.
    When I execute the report, I am seeing a column that I don't see when I am editing the configuration of the report.
    I have looked to see if the column resides on a different Section, Horizontal Page, or is Hidden.
    I don't see multiple Sections or Horizontal Pages and nothing seems hidden.
    Am I missing something? 
    Thanks!
    Emmas

    Hi,
    Check if parameter 'Suppress zero columns' was selected in report layout.
    Menu Formatting -> Report Layout.
    Regards
    Sam

  • Report Painter - adding columns with any texts.....

    Hello !
    Whether probably in Report Painter to create additional columns (adhered to columns of data) and to write there manually demanded texts for lines ?

    Hello - I don't see Insert Diving Line after I click Insert Blank Line.
    Where is that?
    If I insert a blank line and then double click on the blank line to add a line like the following:  "__________" for sub totals, etc, I can't.  I can only add another characteristic or formula in the blank line.
    Please help and thanks for your help!

  • Report painter - Choosing column heading text

    Hi SDN
    I'm having a specific problem with getting the right column heading text into my G/L report painter report created in FGI2/FGI5. In the report painter form I have created the three texts for my column (short, medium and long text). In order for the heading to be meaningful I need the report to show the medium or long text. This is also the case when I run the report as object type Object list. Here the medium text is displayed. However, when I run the report as a Classic drilldown report or a Graphical report output the short column heading text is shown.
    Now, I know from running the standard report 0SAPBLNCE-01 in FGI0 that it is possible to have the long column header text shown in the report, so I'm not willing to give up. But can any of you guys help me on how to make the report show the correct text?
    Kind rgds
    Steen Koefoed

    Hi Anna and thanks for your suggestion. I have tried changing the header text length in the form as you suggested, but it does not seem to affect the display in neither of the three output types of the report. I assume that there must be a way to control the text header length specifically for each of the three output types. But how....

  • Report Painter - New Columns Don't Show Up

    Hello All,
    We have a report painter report that was copied from an existing report in transaction CJE5 (for modifying the form) and then assigned in CJE1 (to a report). The copied report was functioning properly with an existing tcode assignment. Now, I am trying to add new columns to the same form and I was able to add and save everything to the form without errors. However, when I execute the report, these new columns don't appear on the report. Can anyone suggest why?
    One thing I notice was that when I went to the "Report Parameters", the list of "Columns" does not include the columns that I added. I cannot figure out how to add them to the list so that they would start appearing on the report output.

    Hello Suresh, Thanks for the suggestion, but report painter is a functional area and the ABAPer should not be required to insert a new column and make it appear on the report. Any more suggestions, please?

  • Report Painter - missing column in GRR1/GRR2 but appears when executed

    Hi
    I have a report with 10 columns in addition to the first column that contains the descriptions of the rows, i.e. Sales Revenue etc etc.  The columns across are different projects. However, most strangely, the first of the projects does not appear when I am in GRR2 or GRR3 but when I execute the report, it is there!!!  When I look at the Overview in GRR2 and GRR3, it is listed so am at a loss to explain where it has gone.
    any suggestions?

    Hello,
    1) hide the first column
    2) unhide the column
    3) you´ll see the column which you were missing instead of the former first column
    4) change the column or whatever you want to do
    5) hide the column
    6) unhide the column
    Now the formular is as it was before. Still you can´t see the column but you know it´s there and you´ll see it in the report.
    I searched a lot and didn´t found any other solution.
    Reg.
    A.S.

  • Report painter, lead column doesn't display the key, only description is di

    Hi Gurus,
    I am facing a problem as the report painter report only shows the description for the objnr (charasterstic) and not the key and description thoughin the format key and description is set. Kindly suggest me the how to overcome this problem.
    Example of the problem-
    The problem is that the report displays the descriptions (like u201CRéseauAiru201D on the first line) and not the code (E100/002831/EP-AIR) that we wish in the lead clolumn.
    Regards,
    Sachin

    Hi
    Once you execute the report and the output is displayed....
    Go to Settings > Char Display > Choose "Key and Description"
    Then Choose menu Report > Save Definition
    BR,Ajay M

  • How to create a report with dynamic columns

    Hi all,
    I am using Apex 4.0 with Oracle 10g
    I am creating a report and I need to display columns dynamically based on the item values.
    example:
    I have a table employee with columns name, designation, sal
    In the report page i have a select list with designations and when I select a designation from the select list,
    I need to display the names of the employees horizontally,
    like each name as a new column in the report with that particular designation. and same has to continue when I select different designations.
    Can some one help me how we can do that.
    I appreciate your answer
    Thanks,
    Rik

    Essentially you want to write a pl/sql function which returns a varchar2 string. The contents of the string must be a valid sql statement.
    Once you have done this, you need to add a report region as type sql report and you will have the option of writing it as a query or as a function returning query. Choose function returning query and enter in the function call.
    Note your function must be valid, and must be executable by your apex parsing schema.
    example:
    create or replace
    function test_report(   p1_tablename       in varchar2)
    return varchar2
    is
    v_query varchar2(4000);
    begin
    v_query  :=
    'SELECT * from '||p_tablename;
    return v_query;
    end test_report;Edited by: Keith Jamieson on Aug 15, 2011 4:50 PM

  • ALV report with dynamic columns, and repeated structure rows

    Hey Guys,
    I've done some ALV programming, but most of the reports were straight forward. This one is a little interesting. So here go the questions...
    Q1: Regarding Columns:
    What is the best way to code a report with columns being dynamic. This is one of the parameters the user is going to enter in his input.
    Q2: Regarding Rows:
    I want to repeat a structure(say it contains f1, f2, f3) multiple time in rows. What is the best way to do it? The labels for these fields have to appear in the first column.
    Below is the visual representation of the questions.
    Jan 06  , Feb 06, Mar 06....(dynamic)
       material 1
    Current Stock
    current required
    $Value of stock
       material 2
    Current Stock
    current required
    $Value of stock
       material 3
    Current Stock
    current required
    $Value of stock
    Thanks for your help.
    Sumit.

    Hi Sumit,
    Just check this sample from one of the SAP site
    ABAP Code Sample for Dynamic Table for ALV with Cell Coloring
    Applies To:
    ABAP / ALV Grid
    Article Summary
    ABAP Code Sample that uses dynamic programming techniques to build a dynamic internal table for display in an ALV Grid with Cell Coloring.
    Code Sample
    REPORT zcdf_dynamic_table.
    * Dynamic ALV Grid with Cell Coloring.
    * Build a field catalog dynamically and provide the ability to color
    * the cells.
    * To test, copy this code to any program name and create screen 100
    * as described in the comments. After the screen is displayed, hit
    * enter to exit the screen.
    * Tested in 4.6C and 6.20
    * Charles Folwell - [email protected] - Feb 2, 2005
    DATA:
    r_dyn_table TYPE REF TO data,
    r_wa_dyn_table TYPE REF TO data,
    r_dock_ctnr TYPE REF TO cl_gui_docking_container,
    r_alv_grid TYPE REF TO cl_gui_alv_grid,
    t_fieldcat1 TYPE lvc_t_fcat, "with cell color
    t_fieldcat2 TYPE lvc_t_fcat, "without cell color
    wa_fieldcat LIKE LINE OF t_fieldcat1,
    wa_cellcolors TYPE LINE OF lvc_t_scol,
    wa_is_layout TYPE lvc_s_layo.
    FIELD-SYMBOLS:
    <t_dyn_table> TYPE STANDARD TABLE,
    <wa_dyn_table> TYPE ANY,
    <t_cellcolors> TYPE lvc_t_scol,
    <w_field> TYPE ANY.
    START-OF-SELECTION.
    * Build field catalog based on your criteria.
    wa_fieldcat-fieldname = 'FIELD1'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 1'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    wa_fieldcat-fieldname = 'FIELD2'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 2'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Before adding cell color table, save fieldcatalog to pass
    * to ALV call. The ALV call needs a fieldcatalog without
    * the internal table for cell coloring.
    t_fieldcat2[] = t_fieldcat1[].
    * Add cell color table.
    * CALENDAR_TYPE is a structure in the dictionary with a
    * field called COLTAB of type LVC_T_SCOL. You can use
    * any structure and field that has the type LVC_T_SCOL.
    wa_fieldcat-fieldname = 'T_CELLCOLORS'.
    wa_fieldcat-ref_field = 'COLTAB'.
    wa_fieldcat-ref_table = 'CALENDAR_TYPE'.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Create dynamic table including the internal table
    * for cell coloring.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = t_fieldcat1
    IMPORTING
    ep_table = r_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 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.
    * Get access to new table using field symbol.
    ASSIGN r_dyn_table->* TO <t_dyn_table>.
    * Create work area for new table.
    CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>.
    * Get access to new work area using field symbol.
    ASSIGN r_wa_dyn_table->* TO <wa_dyn_table>.
    * Get data into table from somewhere. Field names are
    * known at this point because field catalog is already
    * built. Read field names from the field catalog or use
    * COMPONENT <number> in a DO loop to access the fields. A
    * simpler hard coded approach is used here.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'ABC'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'XYZ'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'TUV'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'DEF'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    * Color cells based on your criteria. In this example, a test on
    * FIELD2 is used to decide on color.
    LOOP AT <t_dyn_table> INTO <wa_dyn_table>.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    * Get access to internal table used to color cells.
    ASSIGN COMPONENT 'T_CELLCOLORS'
    OF STRUCTURE <wa_dyn_table> TO <t_cellcolors>.
    CLEAR wa_cellcolors.
    wa_cellcolors-fname = 'FIELD2'.
    IF <w_field> = 'DEF'.
    wa_cellcolors-color-col = '7'.
    ELSE.
    wa_cellcolors-color-col = '5'.
    ENDIF.
    APPEND wa_cellcolors TO <t_cellcolors>.
    MODIFY <t_dyn_table> FROM <wa_dyn_table>.
    ENDLOOP.
    * Display screen. Define screen 100 as empty, with next screen
    * set to 0 and flow logic of:
    * PROCESS BEFORE OUTPUT.
    * MODULE initialization.
    * PROCESS AFTER INPUT.
    CALL SCREEN 100.
    * MODULE initialization OUTPUT
    MODULE initialization OUTPUT.
    * Set up for ALV display.
    IF r_dock_ctnr IS INITIAL.
    CREATE OBJECT r_dock_ctnr
    EXPORTING
    side = cl_gui_docking_container=>dock_at_left
    ratio = '90'.
    CREATE OBJECT r_alv_grid
    EXPORTING i_parent = r_dock_ctnr.
    * Set ALV controls for cell coloring table.
    wa_is_layout-ctab_fname = 'T_CELLCOLORS'.
    * Display.
    CALL METHOD r_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = wa_is_layout
    CHANGING
    it_outtab = <t_dyn_table>
    it_fieldcatalog = t_fieldcat2.
    ELSE. "grid already prepared
    * Refresh display.
    CALL METHOD r_alv_grid->refresh_table_display
    EXPORTING
    i_soft_refresh = ' '
    EXCEPTIONS
    finished = 1
    OTHERS = 2.
    ENDIF.
    ENDMODULE. " initialization OUTPUT
    Regards
    vijay

  • 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;

  • 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

  • Dynamic Columns in FSG

    Hi,
    We need to create multiple reports using FSG. For some of the reports the rows will be common and columns will change based on a segment in COA.
    Example:
    A company having multiple office such as regional office, divisional office and branches. All branches will rollup to divisional office and all divisional office will rollup to regional office and so on. The sample values are given below:
    80100000 - is regional office 1
    80101000 - is divisional office 1
    80101001 to 80101099 - branch offices under divisional office 1
    80102000 - is divisional office 2
    80102001 to 80102099 - branch offices under divisional office 2
    The requirement will be as follows:
    1. to have divisional office + offices under it should be printed in a report if divisional office combination selected
    2. to have regional office + divisional offices under it should be printed in the report if regional combination selected
    3. to have office level information should be printed if office is selected
    Can anyone tell whether we can have a single FSG report with dynamic columns to print the report based on the option selected.
    Thanks in advance.
    Regards,
    Arun

    ... using the grouped-by-tasks is okay, as this will show up those work items having the additional attribute only.
    In SWL1 you should use:
    \* TS90000110 &_WORKITEM.CREATEDBYUSER.ID& Creator ID
    Don't leave the "user" field blank.
    After that you can add the new column from the "available columns" section within the worklist. This is done by the button "change layout" on the button-bar above the work item's list.
    Best wishes,
    Florin
    Edited by: Florin Wach on Feb 18, 2009 2:51 PM, well the \* was missing

  • SmartForms Dynamic Columns

    Hi, Can I in a SmartForms Report add dynamic columns?. It is this possible???
    Similarly as they grow in row I can grow in columns my report.
    Thank u.

    If you are trying to vary the number of columns, this may not be possible. You may have fixed number of columns and change the contents (and heading) of the same in a pre-determined manner.

  • Report painter-want to hide period columns dynamically if the period is not closed

    Hi All,
    I have made report with 12 columns like JAN, FEB till DEC in report painter (GRR1)
    Requirement is that if say, currently only period no.4(APR) is closed and we are in period no.5( MAY) or system date is in MAY, then the report should not show the data for the current period no.5(MAY), eventhough data is there. Or else it should show data for JAN to APR (closed periods)
    For this I defined 12 different period formula variables in GS11, based on system paramters like
    S008 Year (from Local System Date)
    S002 Month (from Local System Date)
    S003 Day of Month (from Local System Date)
    S012 Current Period in Current Year (per CO Fiscal Yea
    But the issue is that eventhough the variable is defined as formula variables, still the default values are given by system and default value only getting passed to the report and thus data is displayed for the unclosed period.
    But SAP help says that formula variables are without default values unlike the value type variable.
    Any help in this will be highly appreciated.

    Hi All,
    I have cracked it and got the solution with redefining the formula variables.
    Details
    JAN
    FEB
    MAR
    APR
    MAY
    JUN
    JUL
    AUG
    SEP
    OCT
    NOV
    No.of days in each Month
    31
    28
    31
    30
    31
    30
    31
    31
    30
    31
    30
    day number in year
    31
    59
    90
    120
    151
    181
    212
    243
    273
    304
    334
    result available after 15 days
    47
    75
    106
    136
    167
    197
    228
    259
    289
    320
    350
    Formula variable definition for 11 months in current year
    ZTPFR01
    ZTPFR02
    ZTPFR03
    ZTPFR04
    ZTPFR05
    ZTPFR06
    ZTPFR07
    ZTPFR08
    ZTPFR09
    ZTPFR10
    ZTPFR11
    IF '#S005' <47 
    IF '#S005' <75
    IF '#S005' <106 
    IF '#S005' <136
    IF '#S005' <167
    IF '#S005' <197
    IF '#S005' <228
    IF '#S005' <259
    IF '#S005' <289
    IF '#S005' <320
    IF '#S005' <350
    THEN 1
    THEN 2
    THEN 3
    THEN 4
    THEN 5
    THEN 6
    THEN 7
    THEN 8
    THEN 9
    THEN 10
    THEN 11
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0
    ELSE 0

Maybe you are looking for