Limit a column to the reporting year entered by user

Hi Experts,
I am creating a query in I am creating columns for forecast. The query needs to show the columns such that:
If user enters
Month: 5
Year:2010
Query shows:
June 2010 till December 2010
Right now the query is showing
Month: 5
Year:2010
Query shows:
June 2010 till April 2011
How do I limit this to show only the forecast for the current year as entered by the user?
Many thanks!
BR
/Sonia

Hi,
As you mentioned you have two slection variable. Year and Month.
I guess you no need to put any offset. Just use Month variable  as > option with Month Char and Year variable as = option with Year Char.
Display Calyear/month in report column. it will display months greater then slection given for the given year only.
You may find >, = option for variable restriction by ritgh clicking on variable-char.
I hope it will help.
Thanks,
S

Similar Messages

  • The number of display columns in the report reached the limit. Help!!!

    Hello Everyone,
    This might be dumb question. But why do get this error with a IR report? and what is the solution for this. Please help me with this.
    Error
    The number of display columns in the report reached the limit. Please click Select Columns under Actions menu to minimize the report display column list.
    Oh.. And also i have a blob column.. if the format is not given, then the table is fine.. but happen to get this error only when the blob download format is given.
    Thanks and regards
    John
    Edited by: JB on Mar 30, 2012 11:08 AM

    Hi,
    i have set up a small test case on apex.oracle.com and I receive the same error if I use download format.
    I have a table
    test_blob (id number, name varchar2(10), blobcont blob)
    If I create IR like
      select
        id,
        name,
        blobcont
      from test_bloband then I define download format I hit the error.
    If you want this to work you have to change your query to
      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blobAnd then again define download format for blob on blobcont column.
    Regards,
    Aljaz

  • The number of display columns in the report reached the limit" Interactive Report

    I get the error message of "The number of display columns in the report reached the limit" when trying to display less than 100 (100 is limit) columns when an aggregate has been created.   This does not happen when an aggregate has not been added to the IR report.  It seems to happen because I have a control break on as well.  When I turn off the control break it works but is not the result that we want.  Interesting enough, if I filter the results down to 500 rows it works just fine.  Does oracle treat aggregates as columns!?  This is a really odd issue that I really need to clear up.
    Oracle 11g
    apex 4.1.0.33
    Thanks in advance,
    Shawn.

    Hi,
    i have set up a small test case on apex.oracle.com and I receive the same error if I use download format.
    I have a table
    test_blob (id number, name varchar2(10), blobcont blob)
    If I create IR like
      select
        id,
        name,
        blobcont
      from test_bloband then I define download format I hit the error.
    If you want this to work you have to change your query to
      select
        id,
        name,
        dbms_lob.getlength(blobcont) blobcont
      from test_blobAnd then again define download format for blob on blobcont column.
    Regards,
    Aljaz

  • Print prob: system cannot print the last number of columns of the report

    Hi, im having trouble printing my report with more than the standard screen size. i want to print the report in a specific font size, so i created a customized page format. however, it does not print the succeeding columns of the report. what should i do? thanks

    Received answer directly from SQL*Plus Development:
    "sqlplus does not have a limit on the number of columns it displays."
    They created a table with more than 256 columns with data and had no problem retrieving the data.

  • Display/Print the Selection criteria entered by USER on the ALV Report o/p?

    Hi Experts,
    I hv a requirement of to print/display the Selection criteria entered by user in the selection screen.........on the top portion of the ALV report output lay out.
    There is a FM for this purpose, but, I forgot its name!!
    So, let me know the FM or FMs, so that, will choose, which is best one,
    or the piece of code, which covers all select-option entries..........appreciated.
    thanq
    Edited by: SAP ABAPer on Sep 3, 2008 6:35 PM

    Use the Function RS_REFRESH_FROM_SELECTOPTIONS get the selection details, now format the data accordingly in the TOP_OF_PAGE using the calss CL_DD_DOCUMENT.
    Check the below mention code.
    REPORT  ztest_page.
    TABLES: sflight.
    DATA : it_flight TYPE TABLE OF sflight WITH HEADER LINE.
    DATA BEGIN OF it_sel_opt OCCURS 0.
            INCLUDE STRUCTURE rsparams.
    DATA END   OF it_sel_opt.
    SELECT-OPTIONS: s_carrid FOR sflight-carrid.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE it_flight
       WHERE carrid IN s_carrid.
    END-OF-SELECTION.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-repid
        TABLES
          selection_table = it_sel_opt
        EXCEPTIONS
          not_found       = 01
          no_report       = 02.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = sy-repid
          i_callback_html_top_of_page = 'TOP_OF_PAGE'
          i_structure_name            = 'SFLIGHT'
        TABLES
          t_outtab                    = it_flight
        EXCEPTIONS
          program_error               = 1
          OTHERS                      = 2.
    *&      Form  top_of_page
    *       text
    *      -->DOCUMENT   text
    FORM top_of_page USING document TYPE REF TO cl_dd_document.
      DATA : dl_text(255) TYPE c.  "Text
    * Add new-line
      CALL METHOD document->new_line.
      CALL METHOD document->new_line.
      CLEAR : dl_text.
    * program ID
      dl_text = 'Program Name :'.
      CALL METHOD document->add_gap.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_heading_int.
      CLEAR dl_text.
      dl_text = sy-repid.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      CLEAR : dl_text.
      dl_text = 'Selection Criteria'.
      CALL METHOD document->add_gap
        EXPORTING
          width = 34.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      CLEAR : dl_text.
      CONCATENATE 'SELECT Option' 'SIGN' 'OPTION' 'LOW' 'HIGH'
      INTO dl_text SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
      CALL METHOD document->add_gap
        EXPORTING
          width = 34.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      LOOP AT it_sel_opt.
        CLEAR : dl_text.
        CONCATENATE it_sel_opt-selname  it_sel_opt-sign
         it_sel_opt-option it_sel_opt-low it_sel_opt-high
        INTO dl_text SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
        CALL METHOD document->add_gap
          EXPORTING
            width = 34.
        CALL METHOD document->add_text
          EXPORTING
            text         = dl_text
            sap_emphasis = cl_dd_area=>heading
            sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
        CALL METHOD document->new_line.
      ENDLOOP.
    ENDFORM.                    "top_of_page

  • How to highlight columns in the report

    Hi,
    I have two tables/views with same structure, one is with old data and one is with new data (there may be one or more changes in the column for a row). My application has to generate a report comparing these two tables/views and display only changed rows with older row first and then below that new one.
    Ok my query is how can i "Highlight" the columns in the report those have been changed from old values.
    I want to "Highlight" only new data columns.
    Also if you can guide me in query how to compare these two tables/views.
    Regards,
    Smith

    Hi,
    I think you can do this with a single SQL statement and a custom "Row Template" for the report. Something like: [http://apex.oracle.com/pls/otn/f?p=267:83] - if that is the sort of thing you mean?
    Andy

  • How to display the total at the end of the column in the report.

    Hi all,
    Could any one please intimate, how to display the total at the end of the column. For example, i have a column, "sales" as the Key figure, and it has the data for all the transactions. Now, i would like to display the total at the end of the report, below the same column.
    Similarly, for all the other columns in the report, i need to display the total for all the columns in the report.
    Thanks & Regards,
    A.V.N.Rao

    Hi All,
    Thanks for many suggestions. I tried by providing the "Total" under "Calculate Results as" and also "Counter for all detailed values" under "Calcuate Single Values as", in the  "Calculations" tab of the key figure, but i am unable to get the information. Again, i am providing the requirement below:
    CHAR - A   CHAR - B   TIME CH. - 1 KF -1  KF- 2 KF - 3
    1                     RAM        2012           1         50      50
    2                     SAM         2012          2         100    200
    Result                                               3           150   250
    Assume KF -1 as  "Qty." KF-2  as "Price" KF-3 as "Sales".
    Please intimate the solution.
    Thanks & Regards,
    A.V.N.Rao.

  • Fill multiple columns of the report at once ???

    I have been told that when coding a Report, there is some way to fill multiple columns of the report at once.
    Instead of
    select
    field1,
    field2....
    You could do
    <????> filling field 1 and 2
    My source was vague as to what kind of thing it would be that could give a value to more than one column at one time.
    Can anyone help me here? Sorry to not have any more specifics.
    Thanks, Wayne

    You can have placeholder columns and assign the output of your select statement to the place holder columns.

  • How to Concat multiple columns to single column at the report level

    Hi All,
    I have a requirement in such a way that I have to concat multiple colulmns to single column at the report level.
    First of all the column I am using in my report is "X" with datatype as Integer. Now  if the length of this column "X" is <8 then I have add zero's (0) before the number.
    And then I have to concat with a column "Y" and then cocnat with a column "Z" and finally the datatype should be casted to CHAR.
    Can anyone please let me know the logic how I can add to my column so that it satisfies all the above.
    Thanks All

    >Also, Another thing is if X < length of 8 Ihave to append with zero's..
    >Ex: if the actual value of X is 123456 i wanted to show it as 000123456.
    Try to be consistence what you said, you are looking for 8 length and above ex is 9 in length.
    You need to learn many things one of those is CASE, at least do copy and also read
    Forums Etiquette/Reward Points

  • JTable problem : how to get the last value entered by user + event lost

    Hi all,
    I have 2 problems with Jtable class.
    1 => To get the last value entered by user in a cell,
    it seems that we must change the selected cell.
    That is to say we can only have the previous cell's value.
    Is there a simple way to get the current value of any cell ?
    2 => To resolve the problem i store the values of each cell in a vector and i intercept keyboard event (!)
    BUT, when i do a double click with the mouse on the Jtable, i loose keyboard events. Then, i can't intercept them.
    Is it a bug of swing or am i following a wrong way ?
    Thanks by anticipation for your help.

    You have to fire the "TableCellUpdatedEvent"
    and override the getCellEditorValue in TableCellEditor to return the current value

  • Number of columns in the Report Attributes

    Hi,
    In the report attributes, there are around 100 columns, but I am able to see around 70. If i want to change the order of the columns i need to view everything. What is the solution for this?
    Regards,
    Pallavi

    From my experience there are two options. One is copy your query out to another editor, delete the region and rebuild it after changing the order of the select statement in your query. This works well, but becomes cumbersome if you have lots of custom attributes or links on the columns.
    The other is to modify the source of an application export. We have had to do this before on an import form, because the number of input items exceeded the limit in APEX. The export file is a sql script and has parameters in the section that creates the report region that reference each column (COL09 for instance). You could re-org those and attempt to import the application. !!!This of course is not supported by Oracle should something not work correctly. I would make sure to take a backup and do not import over top of the existing application.!!!
    Good luck!

  • Maximum number of column in the report

    Hi all,
    We have a Requirement that we need to display 150 column in the output of the report.
    Could any one tell me maximum how many we can display in the output.
    Thanks in advance

    Hi,
    We are displying year in the report and this year is coming from date,
    but in display year is displaying as 1,994 instead 1994.
    Pls help me in resolving this.
    Thanks,
    Sari

  • Display hyperlinked icon for long columns in the Report

    Hi All,
    I am new to APEX and i am trying to create report in APEX.
    I have column whose contents are too big and displaying it directly on the report mess up the whole report.
    Instead i want to display an icon/image in the column and if user wants to see the content , he can click on it and it expands.
    Can anyone help me on how can this be done ?
    Thanks.

    Actually detailed_error column is almost equal to 400 char and adding it to the static text of CSS makes it bigger than 4000 it seems.
    But if i change it to
    '<div onclick="showdetail(this,''detail'|| exceptionid ||''')" style="cursor:hand;cursor:pointer;text-decoration:underline;font-weight:bold;">show_detail</div><pre id="detail'|| exceptionid ||'" style="display:none;"> 1234 </pre>' detailed_errorit instead of displaying show_detail hyperlinked on the report , shows the column value as
    <div onclick="showdetail(this,'detail4')" style="cursor:hand;cursor:pointer;text-decoration:underline;font-weight:bold;">show_detail</div><pre id="detail4" style="display:none;">234</pre>Basically my css is not getting interpreted :(
    Edited by: Parul Garg on Feb 2, 2011 3:23 PM
    Edited by: Parul Garg on Feb 2, 2011 3:25 PM
    Edited by: Parul Garg on Feb 2, 2011 3:26 PM

  • Adding a hidden column in the report

    i have to add a column to the existing form,the newly added column should not visible at the run time .whenever i am inserting the data into the form automaticallly the newly added column should update with the flag as 'N'.
    Note:i will not enter any data manually in the newly added column.it's automatically get the flag in backend

    i have 3 tables whenever i am updating the data into the first table automatically corresponding columns in to the other 2 tables should get updated.
    if i want put a condition like c1='y' c2='y' then it should update the data in all tables at a time.and
    if c1='y',c2='n',c3= some date at this time it should update according to the date.
    what should i do?
    can i use pre update or post update triggers if so how can i use them

  • Add new column to the report

    how can I add a new column to a report ?

    this the code for the trigger
    function BeforePForm return boolean is
    begin
    --     insert into test_java values(:p_order_by);
    --      commit;     
    --return true;
    IF Check_Access_For_Token(:p_Token, :p_Appmod_Code) THEN
         return (TRUE);
    ELSE
         srw.message(1, 'You do not have access to the report!');
         return (FALSE);
    END IF;
    end;
    please help I need this for today

Maybe you are looking for

  • Applescript for running sudo commands in terminal

    I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following: 1. Launch terminal 2. Run the 'Sudo -s' command 3. Enter the administrator password (in plain

  • Why do my ical dates keep shifting?

    I've been noticing that my dates in iCal have been shifting by one day lately. Also, when I try to change the date, the edit screen lists the correct date but the item appears on the calendar on a different date. The same thing has been happening on

  • What happened to the Recent Pages in version 4.0?

    In version 3.6 the Recent Pages was located to the right of the Browse Forward and Back arrows. Where is it in version 4.0?

  • PS CS2 Camera Raw files don't display in numerical order - is there a fix?

    If I select a number of .NEF files in the finder and double click on them or drag them onto the PS CS2 icon, when the preview images are displayed vertically along the left side of the Camera Raw window, they're not in numerical order. That is, if th

  • How the below query is working

    Hi, I am newly joined in the group. the emp table has 5 rows as below 100     ram     10000.00     10 200     kumar     15000.00     10 300     william     20000.00     10 400     ravi     25000.00     10 500     victor     30000.00     10 i execute