Query Column Header when executing directly to spreadsheet

Hello,
I've created an ABAP query and added the fields of currency and unit of measure next to the price and quantity.
When I excute the query directly to a spreadsheet, the headers of the currency and unit of measure columns have the same description as the price and quantity headers. The headers come incorrectly only when executing to spreadsheet. When I execute to ALV, the headers come out correctly.
For example
Quantity    Quantity  Amount      Amount
1.000           EA           250.09       USD
Has anyone encountered this problem before?
Carla

This was fixed in the 4.1 or 1215 build. Please update by downloading or check for updates.
-thanks
kris

Similar Messages

  • Wrap report column header when using heading type : Column Names

    The headers for my report is actual data from the database. In order to get it to work I'm using aliases on my columns that correspond to the header name that I want. However, I have been unable to get the headers to wrap. I have tried using <br> and chr(10) but it seems to be stripping them out since it's a column alias. Any ideas? Region source is listed below...r1.fc_desc is the column header that I need to have wrapped.
    declare
    v_sql varchar2(4000);
    v_sql2 varchar2(4000);
    cursor c1 is select distinct fc_code, fc_desc from
    [email protected] where FG_ID=v('G_FINANCIAL_GROUP') order by fc_desc;
    begin
    for r1 in c1 loop
    if v_sql is null then
    v_sql:='select to_char(trans_week_end_thur,''mm/dd/yyyy'') as "Week Ending",sum(decode(fc_code,'''||r1.fc_code||''',payments,0)) as "'||r1.fc_desc||'"';
    v_sql2:='select ''Average:'' as "WeekEnding", avg(sum(decode(fc_code,'''||r1.fc_code||''',payments,0))) as "'||r1.fc_desc||'"';
    else v_sql:=v_sql||' ,sum(decode(fc_code,'''||r1.fc_code||''',payments,0)) as "'||r1.fc_desc||'"';
    v_sql2:=v_sql2||' ,avg(sum(decode(fc_code,'''||r1.fc_code||''',payments,0))) as "'||r1.fc_desc||'"';
    end if;
    end loop;
    if v_sql is null then
    v_sql := 'select ''No records found for weekly analysis by insurance class for this financial group '' as " " from dual;';
    else
    v_sql:= v_sql||' from [email protected] where fg_id=:G_FINANCIAL_GROUP group by trans_week_end_thur';
    v_sql2:=v_sql2||' from [email protected] where fg_id=:G_FINANCIAL_GROUP group by trans_week_end_thur;';
    v_sql:=v_sql||' union '||v_sql2;
    end if;
    return v_sql;
    end;

    I've resorted to creating a separate function to return a colon-separated list of column names, in which you can include a br tag or whatever, until I get a chance to research this more thoroughly.
    I thought it would just be a case of asking APEX not to strip the HTML, but it's clearly not as simple as that.
    Regards,
    John.

  • Change Case in Column header when designing reports in BIDS

    Hi
    I have used a key short-cut to change the case of headers when adding them to the header of a Tablix, but I can't remember the key combination,
    Any help much appretiated
    Regards
    Andy
    CRM 4, SQL Server and .Net developer using C#

    Hi Andy,
    If I understand correctly, you want to know the shortcut key combination to switch the case of words in column headers of a tablix in Reporting Services Report Designer. As far as I know, there is no such key combination. In Microsoft Word/Outlook/PowerPoint,
    we can use the Shift + F3 to change case of words. However, this doesn’t work in SSRS Report Designer.
    To change the case of the words in column headers, you can either copy the text to Word and perform the case change there or use built-in functions such as LCase, Ucase, or StrConv to perform the case change by using expression. Here are the examples for
    the three functions:
    Expression: =LCase(“Sales territory country”)                           Result: sales territory country
    Expression: =UCase(“Sales territory country”)                           Result: SALES TERRITORY COUNTRY
    Expression: =StrConv(“Sales territory country”, vbProperCase)   Result: Sales Territory Country
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Invalid column name when executing explain plan

    SQL Developer version 4.0, SQL Worksheet, Windows 2000, Database 9.2.0.6.
    When attempted to run a explain plan on a simple two table join query, it generates error invalid column name. Removed aliases and simplify query to one table row count, and still get the same error. Even tried the schema owner and got the same error.
    I decided to check the explain plan table and found out that it was from an older version. Recreated the explain plan table and was able to run the explain plan.
    I'm just posting this in the event somebody else runs into the same problem.

    This was fixed in the 4.1 or 1215 build. Please update by downloading or check for updates.
    -thanks
    kris

  • Repeat or merge column header when 2 headers in webform

    Dear experts,
    the example below shows a few lines from a webform script.
    As you can see the first 2 lines create 2 headers: 1 for account and 1 for custom1 dimension.
    This automatically generates 2 column headers in the webform, which is as expected.
    C1=A#Gw_Tech.C1#OPE
    C2=A#ImpGw.C1#OPE
    C3=SCalc(Col(1)+Col(2)),NumDecimals:0,CustomHeader:Net
    However, the 3rd line shows a manual calculated header called Net.
    Question: can I merge the 2 column headers in the 3rd column so that it does not show me 1 "net" header and 1 empty header?
    Looking forward to your comments and hopefully your solution!
    KR,
    Jerome

    Post Author: jw1234
    CA Forum: Exporting
    I have the same problem. Have you find the solution yet??
    I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up. 
    Page Header a contains:Report TitleDate Range
    Page Header b contains:Dept Name4 columns
    Please help. Thanks!

  • Changing the Column Header Color

    I would like to change the foreground and background color of a column header when the user clicks on the column. I know how to detected when the user clicks on a given column, and I know there is a setBackground and setForeground method that needs to be called, the that is my problem, I don't know which setBackground/Foreground methods to call.
    Thanks in advance for any help.

    Hi,
    I fixed my problem using the setBorder() method for my table header.
    thanks.

  • User defined column heading

    Hello Every1,
    The following is a peice of code produces a report. At the moment the heading of the column is GBCCCL15/16_CSAHEPA because it has been hard coded that way. However what i would like instead, is the heading of the column to be what ever the user selects. What i mean by this is, what ever the user chooses to search in the text fields will then be displayed as the column heading when the report is exicuted.
    select schema_name,
    max(GBCCCL1516_CSAHEPA) as "GBCCCL15/16_CSAHEPA"
    from     
         select     schema_name, created_time,
         case when
              server_name||'_'||db_name='GBCCCL15/16_CSAHEPA'
              then DB_PATCH_NUMBER||'v'||VERSION_NUMBER else null end GBCCCL1516_CSAHEPA
    from      version_control
    group by schema_name
    order by SCHEMA_NAME
    Does anyone know how to get this done?
    Thanks in advance.

    Hi,
    Headings can be created dynamically. Change the headings type to PL/SQL. You then see a "Function returning colon delimited headings" setting - enter in something like:
    DECLARE
    v_headings VARCHAR2(2000);
    BEGIN
      v_headings := '';
      SELECT USER_HEADING INTO v_HEADINGS FROM TABLEX;
      RETURN v_headings;
    END;The string returned must be a colon-delimited string with one value for each column. eg:
    COL1:COL2:COL3Andy

  • Getting error "Column is not indexed " when executing query on ORACLE 10g

    Hi all,
    When executing the below query im getting the error "ORA-20000:Column is not indexed"
    query:
    select xmlelement("nexml:result",xmlattributes('http://namespaces.nextance.com/nex/xml' as "xmlns:nexml"),xmlelement("nexml:value",count(*))).getClobVal()
    from "permission"
    where ( ((contains(object_value,'(searchDocument) inpath(/permission/action)') > 0)) and ((existsNode(object_value,'/permission[resource/resourcekey/@type[. = "document"]]') = 1)) and ((contains(object_value,'(GeneralUser) inpath(/permission/principal/@name)') > 0)) and ((existsNode(object_value,'/permission[principal/@type[. = "group"]]') = 1)) and ((existsNode(object_value,'/permission[type[. = "allow"]]') = 1)) and ((contains(object_value,'(nexip) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Corporate) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(ProcurementAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Procurement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(SalesAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0)) )
    Then after checking some forum, i replaced "contains" with "ora:contains" and executed the query. Now im not getting the first error but got a new error "invalid relational operator"
    So please help me in resolving the errors?
    Thanks in advance.

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • Query can't include an "ORDER BY" clause when having column heading sorting

    I'm getting the following error when I try to include "ORDER BY" in my sql statement :
    "Your query can't include an "ORDER BY" clause when having column heading sorting enabled"
    I have used other sql statements with "ORDER BY" but this is the first time I have come across this and I don't understand why it's going wrong. Does anyone have a suggestion as to how I could fix it? Here is one of the sql statements which I have tried which is giving me the error:
    select "ID_NUMBER",
    "PROJECT_NAME",
    "PROJECT_TYPE",
    "OWNER",
    "PRIORITY",
    "STATUS",
    "END_DATE",
    "COMMENTS"
    from "PROJECT"
    WHERE "STATUS" != 'Completed' AND "STATUS" != 'Cancelled'
    ORDER BY "END_DATE"
    Regards,
    Ed.

    You must deselect column heading sorting that is in the page "Report Attributes" .This is a check box placed on the same line of the element of the report.
    bye

  • Times ten not showing the column alias as column header in select query.

    Hi All,
    I am trying to execute following queries on TimesTen database 11.2.2.2.0.
    SELECT ROWNUMBER,
    floor((to_date(TO_CHAR(SYSDATE,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss')-to_date(TO_CHAR(starttime,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss'))*24)
    || 'h '
    || mod(floor((to_date(TO_CHAR(SYSDATE,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss')-to_date(TO_CHAR(starttime,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss'))*24*60),60)
    || 'm '
    || mod(floor((to_date(TO_CHAR(SYSDATE,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss')-to_date(TO_CHAR(starttime,'YYYY-MM-DD hh24:mi:ss'), 'YYYY-MM-DD hh24:mi:ss'))*24*60*60),60)
    || 's' TIME_DIFFERENCE
    FROM
    (SELECT ROW_NUMBER() OVER (ORDER BY USERIDENTITY DESC) ROWNUMBER,
    u.*
    FROM TBLMCORESESSIONS u
    WHERE 1=1
    ) B
    WHERE ROWNUMBER BETWEEN 1 AND 5
    and I am getting the follwing output.
    ROWNUMBER,
    < 1, 8h 52m 34s >
    < 2, 8h 54m 24s >
    < 3, 8h 54m 13s >
    < 4, 8h 55m 6s >
    < 5, 8h 54m 40s >
    The issue is I should get TIME_DIFFERENCE as column header but it is not showing TIME_DIFFERENCE as the column header & it is calculating the value just fine .
    & if same query I execute on oracle 11g database every thing works fine.
    please suggest me something that column header is must.
    or suggest me any other for query
    Edited by: hiaditya04 on Apr 24, 2012 11:05 AM

    Hi,
    It is similar to bug which is raised in Timesten 11.2.2.2.. BUG 13896607 - COLUMN NAME MISSING FROM A VIEW IN TIMESTEN 11.2.2.2 . If you have MOS access then you can view about this bug. The bug is going to be fix in the future release. The bug basically indicates that we are not displaying the column name properly when select list contains complex expressions. The column itself can be accessed and values are displayed correctly.
    Regarding your issue "column TIME_DIFFERENCE not found" , I would suggest you to access the column by position, not by name like below
    I believe you are trying to access your column like below
    resultset.getString(“TIME_DIFFERENCE”)
    Instead of this you can use : -- resultset.getString(2) ( this position should based on the position of the column you are using in the query)
    Hope this helps.
    Regards
    Rajesh

  • No column heading in second page in alv report when save in excel file

    Hi Expert,
    How can i remove the column header from Alv report when program execute in background and save in excel file right now
    its comming column header in each page. Client dont want header column in excel from second page. is this possible?
    with regards
    chandan_viji

    Hi Ravi,
    thanks for reply i have solved this problm throug line count and NEW-PAGE LINE COUNT 10000 bcoz client want output in excel file only one page header.
    with regards
    chandan_viji

  • How to sort data in descending order when user clicks on the column heading

    Hi
    I have a report called "Top customers", which shows the top customers for a specific product line. It displays the customer name and one column with the total amount spent in the period for each product line. By default, the leftmost product line is sorted in descending order.
    If the user wants to know who are the top customers for another product line, they simply click on the column heading to sort the list by that column.
    The problem is that when you click for the first time on a sortable column heading, Apex sorts it in ascending order; you need to click on the same column heading again to sort in descending order.
    Is it possible to change this behaviour and sort the data in descending order in the first click? So the users don't have to click twice...
    Thanks
    Luis
    PS: Apex 3 running on Oracle 10.2.0

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • Error when executing a Query through information Broadcasting

    Dear SDN,
    We have configured information Broadcasting in the Web Reports---
    Scheduled and then when executing the following error is coming
    500 internal server error - Microsoft internet explorer
    Error when processing your request
    What has happened?
    The URL http://xyz.com:8000/sap/bw/BEx was not called due to an error.
    Note
    The following error text was processed in the system BWD : Please enter a valid value for characteristic 0CALMONTH.
    The error occurred on the application server asalbwd_BWD_00 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    START-OF-SELECTION of program RSRD_BROADCAST_PROCESSOR
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system BWD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server asalbwd_BWD_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server asalbwd_BWD_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http-c:900-u:VENKAT -l:E-s:BWD-i:asalbwd_BWD_00 -w:0-d:20080708-t:133744-v: ERROR_MESSAGE_STATE-e:Please enter a valid value for characteristic 0CALMONTH.
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Please suggest us to resolve this error..
    Help will be greatly appreciated with points..
    Thanks in advance

    Hi
    Thanks...
    I have given only Fiscal Year/Period Variable
    Other than Fiscal Year/Period Variable....No Variables in that Query..
    In FI Queries, I did not use 0CALMONTH Variable...
    I do not know why it is giving that error..
    Please suggest us to resolve this error..
    Thanks in advance

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

Maybe you are looking for