Report sort by column header question

the column sort in a standard report (RP or Q) does sort the lower case values at the end of the alphabet; how can I integrate the lower case values in to the regular sequence of the alpha letters ?
Example of desc order: it starts with lower case :
ülog Company
swa Company
mobiler AG
freezer.net
dpa Company (*)
ZKL Company
Warner Music
Victors
United Internet
Echo
Dora Co.
Charly
Berta Co.
ABC company
- as I cannot influence the Sorting of the inbuilt sort mechanism - how can I manage to integrate e.g. dpa (*) between Echo and Dora Co. ?
TIA
Bernhard

Bernhard,
use the INITCAP() function for that column (a). Fetch the same column once again without
using the INITCAP function and hide it (b). In the properties of the column a ==> HTML
Expression enter #b# in order to display column b. This way the column will display the text
as is (b) but sort on capital initial letters (a).
However, using a standard report doesn't allow any modification of the columns within the
query. There, you would need a view to query upon. Or you just use a "normal" report.
Denes Kubicek

Similar Messages

  • How to download the output of a report along with column header

    Hi,
    Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.

    Hello,
    Try this FM:
    Data: being of itab occurs 0,
    matnr like mara-matnr,
    maktx like makt-maktx,
    end of itab.
    data:begin of fld_tab occurs 0,
    fld_name(20),
    end of fld_tab.
    fld_tab = 'Material'.
    append fld_tab.
    fld_tab = 'Material Desc'.
    append fld_tab.
    CALL FUNCTION 'WS_DOWNLOAD'
       EXPORTING
            BIN_FILESIZE            = ' '
            CODEPAGE                = ' '
             FILENAME                = 'C:\1.txt '
             FILETYPE                = 'DAT'
            MODE                    = ' '
            WK1_N_FORMAT            = ' '
            WK1_N_SIZE              = ' '
            WK1_T_FORMAT            = ' '
            WK1_T_SIZE              = ' '
            COL_SELECT              = ' '
            COL_SELECTMASK          = ' '
            NO_AUTH_CHECK           = ' '
       IMPORTING
            FILELENGTH              =
         TABLES
              DATA_TAB                = itab
              FIELDNAMES              = fld_tab
       EXCEPTIONS
            FILE_OPEN_ERROR         = 1
            FILE_WRITE_ERROR        = 2
            INVALID_FILESIZE        = 3
            INVALID_TYPE            = 4
            NO_BATCH                = 5
            UNKNOWN_ERROR           = 6
            INVALID_TABLE_WIDTH     = 7
            GUI_REFUSE_FILETRANSFER = 8
            CUSTOMER_ERROR          = 9
            OTHERS                  = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Naimesh

  • Row break + column header Question

    I've got two question i can't find out by myself.
    Question 1:
    I use a row break on the first column of my report. That workd correctly. But how do i get a line or a empety row after the break? I prefer a line...
    Question 2:
    I want to have an extra header above some columns. how to create that. A example:
    extra header 1 extra header 2
    column1 column2 column3 column4 column5 column6 column7
    hope someone can help me with this... tnx in advanced

    Hi,
    For your second question, you could create a custom template and put in the additional headers in there, under the 'Before Column Heading' section. I have done this with one of my reports where I simply copied the standard template and changed it to include the header information. This is an example of what I have in the Before Column Heading section for my custom template.
    <tr><th class="t18ReportHeader"#ALIGNMENT# colspan="4" style="font-weight:bold;text-align:center;">Progress Data </th></tr>
    <tr><th class="t18ReportHeader"#ALIGNMENT#> </th>
    <th class="t18ReportHeader"#ALIGNMENT# style="font-weight:bold;text-align:center;" colspan="4"> Header 1 </th>
    <th class="t18ReportHeader"#ALIGNMENT# colspan="5" style="font-weight:bold;text-align:center"> Header 2 </th>
    <th class="t18ReportHeader"#ALIGNMENT# colspan="4" style="font-weight:bold; text-align:center"> Header 3</th>
    HTH,
    Chandini

  • Interactive Report With No Column Heading

    Is it possible to display a column with no heading (label) in an interactive report ?
    I have tried to delete the column heading and save, but when I run the report,
    it is still there
    Cheers
    Gus

    Gus,
    Try a space character or &#38;nbsp;
    Vikram

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

  • OIC Earnings report, Sort Available Columns list

    Hello,
    Has anyone been able to sort the list of available columns for this report alphabetically?

    Thanks Andy, that's exactly what I was looking for! I followed the example and it worked. The weird thing, it is no different than what I tried to do yesterday when I was following the steps you outlined. Oh well, it works now.
    Once I got it working, and now that I understand the concept, I decided to modified it so that I can use a URL instead of a branch. This simplified it down a little (no need for the page items, button, branch) and I can customize the URL how I like.
    So here is what I have now:
    Page Header:
    <SCRIPT Language="JavaScript">
    <!-- hide from old browsers
    function loadPage(pageURL){
    location.href = pageURL.options[pageURL.selectedIndex].value
    //-->
    </SCRIPT>
    Report Region:
    SELECT Task_ID, Task_Name
    FROM Tasks
    ORDER BY Task_ID
    Derived Column:
    <SELECT NAME="selectMenu1" onChange="loadPage(this)">
    <OPTION VALUE="f?p=&APP_ID.:2:&SESSION.::&DEBUG.:::">-Select Action-</OPTION>
    <OPTION VALUE="javascript:popUp2('f?p=&APP_ID.:3:&SESSION.::&DEBUG.:::',475,125)">Page 3</OPTION>
    <OPTION VALUE="f?p=&APP_ID.:4:&SESSION.::&DEBUG.:::">Page 4</OPTION>
    <OPTION VALUE="f?p=&APP_ID.:5:&SESSION.::&DEBUG.::P5_ID,P5_NAME:#TASK_ID#,#TASK_NAME#">Page 5</OPTION>
    </SELECT>
    Now my next challenge is to pretty it up a bit and try to make it into a nice dhtml dropdown menu instead of a select list.
    Thanks again for your help!
    - Brian

  • Classic Report Tooltip in column header

    How can I create a tooltip on the header of the columns in a Classic Report?

    Hi,
    Here is one example
    http://dbswh.webhop.net/htmldb/f?p=BLOG:READ:0::::ARTICLE:1902000346637155
    Regards,
    Jari

  • Column header sort - case sensitivity issue

    Hi guys,
    I'm having an issue with the built in column sorting when you click the headers on a report. Basically case sensitivity is taken into account and capital letters get sorted before smaller case letters, for example:
    Cats
    Dogs
    Zebra
    ants
    bears
    How would I be able to fix this built in sort?
    Thanks,
    Luis

    Luis,
    See if Denes's solution helps: Report sort by column header question .
    Scott

  • Interactive Report (IR) column heading: filtered items number & flashlight

    Hello everyone
    several hours of searching through the forum did not provide me with leads or answers to 2 questions. Both are related to the IR column heading menu and options. Let's start with a copy of the relevant portion of the interactive report help screen:
    Column Heading Menu
    Clicking on any column heading exposes a column heading menu.
    [snip]
    Text Area is used to enter case insensitive search criteria (no need for wild cards). Entering a value will reduce the list of values at the bottom of the menu. You can then select a value from the bottom and the selected value will be created as a filter using '=' (e.g. column = 'ABC'). Alternatively, you can click the flashlight icon and the entered value will be created as a filter with the 'LIKE' modifier (e.g. column LIKE '%ABC%').
    List of Unique Values contains the first 500 unique values that meet your filters. If the column is a date, a list of date ranges is displayed instead. If you select a value, a filter will be created using '=' (e.g. column = 'ABC').
    Q1: Why do I not see a flashlight icon? I looked everywhere in the report definition to "enable" it, to no avail.
    Q2: Although we've found IRs to be incredibly useful and embraced by end users, we are having issues when dealing with large datasets. Let's look at searching for people's first/last name in our CONTACTS table. The table is ~28,000 names long. If one attempts to use Column Heading menu to "filter" for any name outside the first 500 unique values, the search does not work. Yes, I know that a workaround is to use Actions Menu icon filter... but, it sure is misleading to have a search which does not go beyond letter B in the list of last names. Furthermore, I do not see a way to DISABLE Column Heading Text Area, and avoid user confusion.
    I suspect that "List of Unique Values contains the first 500 unique values" was set for the performance purposes. Is there a way to set that number anywhere? Have it customized for each column? (columns county and state could be <100, for example)
    Thanks an advance to any advice.
    Vojin

    @Prabodh: what you say is only changing the default image for the column selector at the search bar level. What i think is being looked for is an icon on the popup when a column header is clicked in an IR. Don't bother: there is none.
    @Vojin, Tonibony:
    I also ran into this problem with IRs and the useless column header box. If you want to hide the unique values list, it is a bother. First of all, you can't disable the finding of values, this is embedded in the widget ajax code. Then if you want to just hide the list, there is no real event you can hook up to. The poping up of the box is an ajax callback, and is part of the IR javascript, but this callback does not trigger any event (no apexafterrefresh for example, which is understandable). I've worked around this by overriding/extending the method which is called when ajax is done loading within the IR code. Here is a piece of code which does this (call it on page load):
       // _Finished_Loading is called when the IR is done with a GET action
       // because the posts are synchronous in this report, and no events
       // or hooks are available, the best way to preserve functionality
       // yet extending it is to override the original function, yet
       // keep the base code
       // apexafterrefresh cant be used since it is not triggered after
       // the widget ajax
       var or_Finished_Loading = gReport._Finished_Loading;
       gReport._Finished_Loading = function(){
           //overriden, but still have to call orinigal!
          or_Finished_Loading();
          //SORT_WIDGET is the widget containing all the header elements
          if(gReport.current_control=='SORT_WIDGET'){
             // hide the original dropdown box
             $("#apexir_rollover_content").hide();
       };If you're interested, i've recently developed a plugin for use in my interactive reports which works around some of these limitations. For me, the headers are much more userfriendly than the actions > filter menu. So what i've done is: hide the orignal dropdown, and turn the searchfield into an autocompletion field, which will progressively search through the distinct column values in the IR with ajax. I've even made an option to have the searching behave like a "contains" or a "like". I'm working on a post about it, with background, documentation and source code. I'll add a post here when i finish it up, you can see if that helps you.
    I also would like to add a button later on which will simply add the entered value as a "like %value%" filter. I know how to do this and what to do, i'm just a bit short on time at the moment. I actually think that adding the button in the layout may be the hardest part... :')

  • Report Header and Column Header Removal

    Hi,
    we wanted remove report headers and Column header in each downloaded report. we are planning on using the Report header specifiers while reading each line, specifiers like "Report Name:","Report Time:","Time Zone:","Report
    Filter:", etc.,
    Here the question is are these values changes in a given version for each report? OR is it better to go by using line numbers i.e say first 8 lines always represents Report Headers and Next line is always blank and 10th line is always Column Header?
    Report Name: Budget Summary
    Report Time: 1/18/2015
    Time Zone: Various
    Last Completed Available Day: N/A
    Last Completed Available Hour: N/A
    Report Aggregation: Day
    Report Filter:
    Rows: 615
    Date Account number
    Account name Campaign name
    Currency code
    Thanks

    Good question. Yes the reports all generally follow the pattern you described. I have reached out to the feature team, and will follow up with the suggested best practice. 

  • Sub report in column header

    Infinite loop creating new page due to column header overflow.
    I have a sub report on the column header which works,
    Because my sub report return different records from data source, it fails and get infinite loop error message like above when I have 9 records, it works less than 9 records.
    I would like to know my sub report returns records some times more, are there any place for my subreport?
    Are there limit for sub report?
    Your help and information is great appreciated,
    Regards,
    Iccsi,

    Thanks for the message and help,
    My sub report link to a data soruce which is a stroed procedure running from MS SQL server.
    The stroed procedure returns data based on data base what data in the table.
    It looks like the sub report on the Report Builder limited by the length of the report band.
    I tried to move to column header, column footer, report footer all the same, when the sub report growth then it fails to generate the reports.
    Regards,
    Iccsi,

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

  • Column header in all the pages

    Hi all,
    I have designed the Account Statement report for banking application. In this report i want to show all the credit and depit history for the particular account. So that i have grouped this report based on account number.
    In this report i am not using report header and column header for showing the report title and coulmn name. Because i want to show the report title and column header for all the selected accounts. So that i have devided the account number group into two part(header a and header b) and in the first part(header a) i am showing the report title(Deposit Account Statement) and in the second part(header b) is showing the column header(such as txn date, txn description, debit amount and etc...).
    In this design i want to show the column header(header b) alone for all the pages.
    Please help me for this issue.

    Hi,
    If u want to display each item of group header on each page,then check the option repeat group header on each page in group expert.
    And if u want display only one part of group header in each page, then u may create a formula in section expert for suppress and write if groupNumber>1.
    I hope this will work.
    Regards,
    Misra P.

  • Sorting the report by clicking the column header

    Hello,
    Currently working on a requirement where i need to sort the report by clicking the column header. Can anyone please help me on this.
    Suppose i have 3 colums deptno,dname,sal fields in my report. if i click deptno column header,  report has to sort by deptno.Like that i need for other columns also.
    Any help is really appreciated
    Thanks
    Ram

    Hello,
    You can sort the fields using method suggested by Cauvery. However if you would like to have Ascending/ Descending sort order control at column header, then would require to implement few additional steps.
    First do the sorting of field using the way suggested by Cauvery. Once sorting is done, right  click on the column name and  select the option ' Bind Sort Control'. You will see the sorted field in the window. select the field and click ok.
    Now you would get 2 arrows on column. If you click upper arrow, fields would be sorted in Ascending Order and if you click on down arrow, it would  be in Descending order.
    Regards,
    Chinmay Athavale

  • Can I "catch" a click on a sortable column header of a report?

    Hi,
    I have a report.
    Most columns are made sortable: users can click on them to sort.
    I notice that when clicked only page-rendering executes (i.e. not page processing).
    Here is the question.
    I need to call some custom PL/SQL when the user clicks on a sortable column header. This PL/SQL could executes in the before header (it needs to fire before the page re-executes the query).
    The PL/SQL needs to know which column was clicked on: how can I determine this?
    Can I access the url (example below)? I see that it shows which column was clicked.
    https://dev.centraal.boekhuis.nl:4443/pls/apex/f?p=100:3:145900176972409:fsp_sort_4::RP&fsp_region_id=1562722058676533
    Thanks,
    Toon

    That would order the report by C1 when I click C2, which isn't what I want. I want to preserve the order of C1 (whether that's ascending or descending) and then have C2 ascend or descend for each set of values in C1.
    If I can't set the Order By then I'll need something like this as my query. The "last_col1_order" and "this_col2_order" would be items, set according to the last few values of Request. It's horrible, but it gets the job done. This would be so easy in forms!
    WITH data AS (
      select level col from dual connect by level < 6)
    SELECT
      col1,
      col2,
      lpad(case last_col1_order
             when decode(this_col2_order,'asc','asc','desc') then col1
             else col1_desc end,20,'#') ||
        lpad(col2,20,'#') col2_sort
    FROM (
      SELECT
        col1,
        col2,
        (max(col1) over(partition by 1))-(dense_rank() over(order by col1)) col1_desc,
        'asc' last_col1_order,
        'desc' this_col2_order
      FROM (
        SELECT a.col col1, b.col col2
        FROM data a, data b
    order by col2_sort desc

Maybe you are looking for