Classic Report Sort problem

I have a classic report that retrieves data based on the value in an item. When the page first opens the report retrieves properly. However, the strange thing is when I try to sort the rows by pressing the column header, I receive "No Data Found".
The report is just very basic. Selecting a few columns from a table where ID = :P3_ID.
If I change the where clause to be WHERE ID like '%' || :P3_ID, when it initially retrieves, I receive the data for the value in P3_ID. However, when I sort the report by a column header, it retrieves everything. It is as if P3_ID has been set to NULL or a blank eventhough it displays the proper ID.
Any ideas?
Thanks,

Hi Brian,
see the following thread Interactive Reports: problem with textfield as parameter for an explanation
Patrick
*** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

Similar Messages

  • Classical report printout problem

    Hi
    Classical report printout is coming landscap while i want it to come in portrait.
    Any idea ???

    Mani
    Change Print Format through Properties Button on the Print Popup which comes when you press the Print Button..
    Thanks
    Amol Lohade

  • Classical Report Display Problem

    Dear Experts,
    I hv created a report for service order detail which contains lot of columns. To display i hv written following code:
    format color 3 intensified off.
       WRITE: /1(880) sy-uline.
       WRITE:  /1 sy-vline,2 'Sl.No.' color 3,8 sy-vline,
                9 'Maintenance Plan' color 3,25 sy-vline,
               26 'Notification No.' color 3, 42 sy-vline,
               43 'Order No.' color 3, 54 sy-vline.
          *bold* SET LEFT SCROLL-BOUNDARY.
        WRITE: 55 'Order Description' color 3, 96 sy-vline,
    But when i run the report and  scroll horizontally, it scroll to left but also display the first character of column of order description like 'O' and and all rows of the same column.
    Can anyone help me in this.
    Regards,
    Maverick

    Hi
    Try
    SET LEFT SCROLL-BOUNDARY COLUMN 54.
    Pushpraj

  • Interactive report search features in Classic Report

    Hi,
    We have generate a report based on a dynamic query (columns,tables and where condition everything will be dynamic at runtime). As we can use only sql queries to create Interactive report, we are populating collections with our dynamic query and using that collection to create Interactive report. But there are lot of limitation with this approach (only 50 columns we can display, number and date columns are stored in character columns of collection as we don't have control on populating collection's number columns using api apex_collection.create_collection_from_query and clob columns are truncated to first 4000 character).
    If we can paint the features like search,filters,select columns of Interactive report in classic report, our problem will be solved.
    Is there anyway we can get these Interactive report feature in classic report.? or any other work around is available to overcome the apex collection limitation? Any idea on this will be very helpful.
    Thanks in advance.
    Nithyarajan M

    Hi User,
    ya, Jitu is right.
    Create a region "Search'
    and Create a text field page item like P1_REPORT_SEARCH and also create two buttons like
    P1_GO and P1_RESET and after that
    Create two process for it
    <li> one is of Reset pagination process with condition type: request is contained within the expression1, and in expression1 give this: GO,P1_REPORT_SEARCH,RESET(process point- on submit after computation)
    <li> second process is of type clear cache for items(ITEM,ITEM,ITEM)
    Source : P1_REPORT_SEARCH
    condition type: Request = Expression 1
    Expression 1 = RESET
    May be this will help you out.
    Regards,
    Mini
    If this answered your question, mark appropriately.

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • Problem in classical report.

    Dear all,
    I am facing a problem with alignment in one classical report.
    Requirement is debit ,credit amount's sum will at end of every g/l as new line.
    Text will be closing balance - then amount.
    My amount & text is coming ,but not properly.
    All document will come & then closing balance will come as new line with ULINE.
    Code part is: -
    SORT it_bsas by hkont.
    LOOP AT it_bsas INTO wa_bsas.
    if wa_bsas-shkzg = 'H'.
        WA_OUT-DMBTR = WA_BSaS-DMBTR.
           WRITE : wa_out-dmbtr UNDER f LEFT-JUSTIFIED.
       lv_sum1 = lv_sum1 + wa_out-dmbtr.
        ELSEIF wa_bsas-shkzg = 'S'.
          WA_OUT-DMBTR1 = WA_BSaS-DMBTR.
             WRITE : wa_out-dmbtr1 UNDER g LEFT-JUSTIFIED.
            lv_sum2 = lv_sum2 + wa_out-dmbtr1.
        endif.
    at END OF hkont.
       ULINE at /93(50).
       WRITE : /93 'Closing balance' ,
                109 lv_sum1,
              127 lv_sum2.
       ULINE at /93(50).
       CLEAR lv_sum1.
       CLEAR lv_sum2.
    endat.
    Any help in this?

    Then use the same code as you are using to output dmbtr
           WRITE : lv_sum1 UNDER f LEFT-JUSTIFIED.
           WRITE : lv_sum2 UNDER g LEFT-JUSTIFIED.
    Would recommend using pre-sorted ALV with sub-total on these amount fields
    Regards

  • Need help in sorting a column in classic report

    Hi I am trying to create and classic report and I need to do sorting on the columns. Also I am using a select list to filter the records in the column. When I am not using the select list the sorting is working but when I am using the selcet list and select the sort option then it is showing error. Can anyone help...
    Thnaks,
    Rik

    Select lists prior to v4 will sort on the return value. In v4, it sorts on the display value (as you're probably expecting). There's nothing really for you to fix here except if it's really important, see if you can get upgraded to v4.

  • Problem in getting previous screen in Classic report.

    Hello everyone,
                          I am facing a serious problem in getting the previous screen in classical report.
    let me tell you in detail.
    When i run the report, i will have a selection screen with some checkboxes and select-options. Now in the report i have functionality to get some more select-options from user selection. Here i am calling the pop-up screen, wherein if user selects checkboxes, then those fields will be visible on the default selection screen.
    To display them i am using Modif-id concept. Depending on the checkbox values, i am setting up the variables. Using those variables i am modifying screen.
    Now suppose user has got some extra fields and run the report. It will get the output in the desired format.
    Now the problem is when i am pressing 'BACK' button on the report output. The fields which are appended using modif-id are getting cleared. After that what i have is only the default selection-screen.
    I want those fields to be restored. How do i go for it. Please help me out.
    thanks in advance.

    Hi thanks for reply.
                               Actually code is too big to post. But have you understood my problem. Some part of code ia am sending.
    AT SELECTION-SCREEN OUTPUT.
    IF SY-UCOMM <> 'ONLI' AND SY-UCOMM <> 'FLDS' AND SY-UCOMM <> 'OK' AND
    SY-DYNNR <> '0100' AND SY-UCOMM = ' '.
      LEAVE TO SCREEN 1000.
    ENDIF.
    Now i want to know, whether i could get bcak those fields which which are appended using Modif-id,
    how do i get the information about screen fiedls which was there after leaving the screen.
    Thanks.

  • Sorting in Classical report

    Hi friends,
    I am working with a Stasndard FI Report   RFKOPR00,Right now In this report,data is not getting diplayed profitcenter wise.hence user wants me add profit center in selection-screen and sort the output, it is a simple classical report,by priftcenter by proving a Sort button in application tool bar.
    Could you please let me know, How I can provide this option,and the proccedure.
    Kindly, provide me sample code if available.
    Follwoing is the code that Prints output data.
    loop at it_item into wa_item.
    format color col_normal.
    write:/ sy-vline.
    write : 2 wa_item-lifnr,
            12 wa_item-name1,
            30 wa_item-prctr,
            41 wa_item-bukrs,
            50 wa_item-belnr,
            60 wa_item-buzei,
            70 wa_item-netdt,
            80 wa_item-zfbdt,
            90 wa_item-budat,
            100 wa_item-bldat,
            110 wa_item-bschl,
            115 wa_item-zlsch,
            120 wa_item-WAERS,
            150 wa_item-wrshb.
    WRITE : 170 SY-VLINE.
    format color off.
    endloop.
    Regards,
    Xavier.P.

    Hi,
    There is an enhancement point in the subroutine : FORM raster_ausgabe_alv_grid
    Just sort the output table before the ALV list display in the standard program,
    SORT <tablename> by <profitcenter>
    For addition of new field on selection screen its not possible as there is no enhancement point to add your custom code..
    Hope you need to copy the report into a Z report and make changes
    Regards
    Shiva

  • Downloading problem in classical report

    Hello Experts,
    I had made one Z classical report. The output of the report is absolutely perfect.
    The problem is when I am downloading this file as spreadsheet or HTML formatt, then the Item level data is coming one column forward.
    Like, suppose these are four columns of my report,then in excel sheet data is appearing as:
    S.no          Ref no.                    date                  name
                       1                        900556               22/11/2011          ABC
                       2                        900567               22/11/2011          XYZ
    But the data in output of the report is showing correctly.
    How should I correct this.
    Please help.
    Edited by: shubh_ag on Nov 22, 2011 1:18 PM

    Hi shubh,
    Use concatenate and pass all the header data into one string. Use cl_abap_char_utilities=>horizontal_tab
    In your case
    Concatenate
    u2018S.Nou2019  cl_abap_char_utilities=>horizontal_tab
    u2018Ref NOu2019 cl_abap_char_utilities=>horizontal_tab
    Into w_string
    cl_abap_char_utilities=>newline
          into text.
    For item data also use same procedure.
    Structure-s.no  cl_abap_char_utilities=>horizontal_tab
    Into text.
    And use the below function
    call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text   = text
        importing
          buffer = xtext.  wdr_task=>client_window->client->attach_file_to_response(
    **path to the word file
        i_filename = 'WDP.xls'
    String Variable
        i_content =  xtext
    File Type
        i_mime_type = 'EXCEL' ).
    Thanks are Regards.
    sivaram Patruni.

  • How to implement Dynamic Sort to an SQL classic report?

    Hi,
    I'm trying to implement dynamic sort to my working sql classic report, when user selects order by column from select item(action as submit page), the report should be refreshed and display with the selected column sort order.
    But not able to do so.
    Report Query:
    Select a, b, c from sample order by :P1_ORDER_BY
    P1_ORDER_BY - Select Item:
    STATIC2: Column 1;a, Column 2;b, Column 3;c
    Running page, report doesnt sorts in any of the column priority.
    Kindly guide.
    Regards,
    Krishna

    Of course the select item is in use.
    It should submit the the page on select so you can retrieve the current value in you report select statement.
    look here:
    http://apex.oracle.com/pls/apex/f?p=21296:2:
    table:
    create table sample
      a varchar2(30)
    , b varchar2(30)
    , c varchar2(30)
    insert into sample values('a','z','k');
    insert into sample values('b','y','d');
    insert into sample values('c','x','a');
    insert into sample values('d','w','b');
    commit;
    Select List:
    P2_ORDER_BY
    STATIC:Order by A;A,Order by B;B,Order by C;C
    Report select:
    select
    a,b,c
    from sample
    order by
      decode(:P2_ORDER_BY,'A',a,null)
    , decode(:P2_ORDER_BY,'B',b,null)
    , decode(:P2_ORDER_BY,'C',c,null)Marc
    Edited by: telemat on Aug 24, 2012 1:50 PM

  • Formatting problem when downloading classical report output to excel sheet.

    Dear Experts,
    My classical report o/p looks like:
    SI    Name   ID
    1      xyz     11
    2      abc     22
    3      eet      33
    4      jnc      44
    When I download the same to a excel sheet from List->Save->file->Spreadsheet and save it.
    The formatting looks like this:
    SI   Name   ID
    1     xyz               11
    2     abc               22
    3     eet                33
    4     inc                44
    That is the heading and column entries are in different columns.
    There is no GUI_Download used.
    Kindly help what may be the issue.

    Hi,
    In the report output the formatting looks fine. It is exactly below the heading. But only when I save it to excel, this alignment issue is coming. Even the columns after this column are are properly aligned and there is no issue at all. Only this column in the middle has issue.

  • Sorting problem in Reports

    Hello guys,
    Suppose we are using a Group above report, sorting order is on different fields,
    which is passed through the parameter from the Form
    We are specifiying sorting order field in detail under a group
    Then the order under the specified field is not getting unless it is not in the top of
    the group in design time. But we can't change the position at run time.
    Example
    Through the form we are passing Name or Code for the sorting order at run time using parameters.
    Suppose a table Emp
    EMPNO NOT NULL NUMBER(4)
    ENAME VARCHAR2(10)
    DEPTNO NUMBER(2)
    Under a particular department we have to sort either on Empno or on ename
    depending upon the user request through parameter.
    we are getting this on only partcular field if the field is in the top of the group
    Please help me
    thanks in advance
    [email protected]

    Another option...
    Read up on lexical parameters in the report's help....
    Create one parameter called "order_by"
    Pass in the name of the column.
    SELECT empno,ename
    FROM emp
    WHERE deptno=30
    ORDER BY &order_by
    A simple search on google produced this nice page that shows how to pass any query or any part of query as a lexical parameter..
    http://www.dulcian.com/papers/ODTUG%202004_Balcu3_Generic%20Reporting.htm
    After posting this I did some reading re-edited this/my post. I have not used reports recently, but used this lexical method above allot in the past. After reading, using lexical parameters opens yourself up to SQL Injection attacks. Make sure in the report that you validate the values coming in so that the user cannot substitute any SQL that they desire.
    excerpt from help below...
    About lexical references Lexical references are placeholders for columns or parameters that you embed in a SELECT statement. You can use lexical references to replace the clauses appearing after SELECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and START WITH. ... You create a lexical reference by typing an ampersand (&) followed immediately by the column or parameter name. A default definition is not provided for lexical references. Therefore, you must do the following: Before you create your query, define a column or parameter in the data model for each lexical reference in the query. For columns, you must set the Value if Null property, and, for parameters, you must set the Initial Value property. Reports Builder uses these values to validate a query with a lexical reference.
    Message was edited by:
    Mark Reichman

  • Footer problem in classical report

    Hi experts,
    I devloped a classical report but i want to display a footer deatail in all of my page.
    But in my last page it doesn't come......
    NOTE : i have reservered 12(2) line for each page. but total record is 100.
    Regards
    skmohanty

    Hi,
    I am hope this answer is very helpfull to u..
    Declare one variable like
    DATA: V.
    V =  sy-linct - sy-linno - 2.
    skip V.
    plz this code write after the endloop and before the end-of-selection
    Thanks&Regards
    Hari..

  • Classical report problem

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

    Dear abapers,
    I hav one classical report(basic report).
    In that i need FGDM as print in background shade in cross in A4 size paper
    in big letters, will it possible.
    can any body tell in clasical report can we increase font size.
    thanks in advance.
    Regards,
    Simha.

Maybe you are looking for