Misalignment of key figures in export to excel

Hello Experts,
I have a WAD report with 2 queries (say) Query A and Query B, in this report we are using table interface class for computing the sum of key figures in Query A with Query B and showing in the result row of QueryB
When this report is executed it gives the correct output, but when i export this report to excel, the output of Query B gets mis-aligned.
Please suggest what may be the reason behind this and how should i correct this problem.
We are using MS office Excel 2003.
FYI, for excel export, we're not using the standard feature, rather, using a class : CL_RSR_XLS_HELP_WINDOW_PRINT\
Regards\
Priyanka

OK....!!!!!
just download the Excel file (*.xls) and try open with Word-MS. In the document search by the string that you have mentioned in the question. (Use Ctrl +F).
If you see something like "ABC bla bla ba & instead of  &amp ,  then you have to pass the data through the code I've mentioned.
You can get more details on encoding special characters UTF-8 in Google.com or Sun Websites etc.
You can also encode the & in hexadecimal format to get the desired output.

Similar Messages

  • Can not Sorting by Key Figure with Analyzer and Excel 2007

    Hello experts,
    We have recently changed to Office 2007, and the funcionality of Sorting by a Key Figure with BEx Analyzer is desactivated.
    We have applied the patch 10 for BEx  BI 7.10.
    Has anybody had the same problem?
    Thanks in advanced.

    Hi Patricia,
    Have you got two structures in your query?
    Please take a look at the following notes:
    1378796 - Disabled Sorting when there is one struct. in the drilldown
    1332267 - BExAnalyzer: changes in cell properties dialog / sorting
    these should explain why the sort feature is no longer available in certain scenarios.
    many thanks
    Orla.

  • Show Repeated key values in Reports and Export Into Excel

    Hi Experts,
    Currently I am working on the BW3.5 version. Our client requirement to display the repeated key value in web and export same into excel. I have followed the steps in web template which mentioned below to achieve the requirement.
    1) In my web template, add the following line to the Template Properties object tag (the tag at the very top of the web template in HTML mode):<param name="SUPPRESS_REPETITION_TEXTS" value=""/>
    After the change web template change, Myself execute the report in web, Its fine web. But I export into excel, again the key values are suppressed. So I have followed the steps in query. Then its fine. I mean, I can export into excel with repeated key values.
    2) In my query, in Properties and on the Display tab, unchecked "Hide Repeated Key Values".
    But do we have any other option without changing query properties to achieve the requirement.. I am fine with the web template change("SUPPRESS_REPETITION_TEXTS"). But I do not want to change the query properties.
    Please help me to fix the issue. Thanks in advance.
    Thanks,
    RR

    Hi Experts,
    I have come across one of the suggestion in the below location. Could you plz help me to implement it.
    http://www.sapfans.com/forums/viewtopic.php?f=16&t=118185
    Suggestion:
    You can do exactly what you want, but it will take either a button changing the properties of the web item or a javascript function added to the context menu getting the properties of the table item and changing it to "X" or "". These are just two examples, there are other ways to do this. This is the actual code that sets the suppression for the repeated texts. Hope this helps.
    SAP_BW_URL item=âu20ACu2122TABLE_1âu20ACu2122 SUPPRESS_REPETITION_TEXTS=âu20ACu2122Xâu20ACu2122
    Thanks,
    RR

  • Problem in export to excel

    Hello experts,
    We have a WAD report  having 2 (Bex 3.5) queries (say) Query A and Query B
    we are using table inferface class to add the key figure of Query A with the key figure of Query B
    and displaying the sum in the result area of Query B.
    On executing this report we are getting the correct output.Since there are more than one data providers in the report
    we are using a push button for 'Export to Excel'
    When we export this report to excel using this push button the output of query B gets misaligned i.e.
    col2 of query B displays result of column 4, column 4 displays result of col 7 and so on...
    where are when i use the standard export to excel feature of context menu the output is correct.
    Please suggest what may be reason behind this misalignment and what should we do to remove it.
    Regards
    Priyanka

    Hello Experts,
    Any updates on this issue ???
    Regards
    Priyanka

  • Need to print contacts in certain categories, or export to Excel.

    I have 4 different categories, and need to either export those and into an Excel spreadsheet or print them out so my assistant can start labeling the envelopes we need to send out.
    Obviously, she is not local at the moment and on;y has access to a PC. So I can't share the address book with her.
    Any ideas?

    Ramesh,
    Well, I would have created a separate Key Figure for the % values... What's gonna happen if you want to have a "Total" value then?
    I didn't do it before, but I'd suggest you to use a "Replacement Path" variable and the, using the logic depending on the GL just assign the value or the value + "%".
    I think it might work. Again, just an idea to try...
    Hope it works for you.
    Regards,
    Luis

  • Export to excel problems in visual composer?Help!!!

    hello all,
              these days my four table were integrated in one iview,and ues the same variant to control the four queries,and did anyone could help me to accomplish the function of the four table,and can we diplay a window to display a key figures for the users to choice ,if so,your early reply will be appreciated.thank you in advanced.

    Dear Anja,
    Thanks for your kind replay. I am not able to configure the Action given in your link. I am little bit confuse the steps given like
    Copies selected data to Clipboard and pastes it into a displayed Excel worksheet according to the following Action Properties:
    Export row
    Export element u2013 Exports contents of entire view
    Export selected elements u2013 Exports selected content
    Export window - Exports contents of entire window
    Can you provide the actins configuration steps. As i created a Button in the table but i need to configure the Action for the same.
    Thanks,
    Kundan

  • BW patch 21 to 23: Web report export to Excel

    Hi,
    We have applied the support packs 21 to 23 on our system (BW 3.0B). When we now export a web report to Excel, the characteristics values are missing in the report (no cost center or account number) and only the key figure values are displayed.
    Has anyone experienced that ?
    Thanks
    David

    Hi,
    note 761098 should solve your problem.
    regards, Klaus

  • Web Report export to Excel error

    Hello:
    I face the problem as follow:
    When I export web report to excel and open it. The characteristic value no display, and the key figure as usually.
    How to solve this problem? Hope anyone can give me some advices!
    Regards&Thanks!
    zagory

    Hello:
       EXP:
       A(context menu)         B        C(Key Figure)
             ablank         ablank          2000
             ablank         ablank          5000
    Hope anyone can give me some advice to solve this problem.
    Regards&Thanks!
    zagory

  • Key Figures getting added

    Hi All,
    We arein a process of migrating 3.x Transfer rules and update rules to NW2004s. We are following the standard procedure of migrating the objects such that transfer rules are migrated to a transformations and so do update rules.
    In on of the objects while running the loads after migrations the key figures are getting doubled. We were able to debug the standard code and figure out where addition is happening. Strange things is this is a standard SAP code generated in all the migrated objectsbut in this particular case it has generated some extra code which is adding up the key figures. I am pasting code below for your reference and will appreciate if someone can help us to resolve this.
    As mentioned above the below Read statement is standard in all the TRCS transformations which are migrated from update rules. This read statement fails with sy-subrc = 4 because  <_yth_TG_1>. is empty at this stage but during execution it executes the statement INSERT <_ys_TG_1> INTO TABLE <_yth_TG_1> which populates <_yth_TG_1>  and in turn makes the next read statement successful which is extra in this case. There is one more Read statement which is extra in this particular case and is adding up the key figures.
    =====  PUT groups to target
          IF skipseg_all IS INITIAL.
            READ TABLE <_yth_TG_1>
              WITH TABLE KEY
    here it is reading all the different characteristics and key figurs. eliminating this to cut short the lengthof message,
               ASSIGNING <_ys_TG_1>.
            G1_subrc = sy-subrc.
            G1_tabix = sy-tabix.
            IF G1_subrc = 0.
      aggregation SUM
              <_ys_TG_1>-POS_FRE = <_ys_TG_1>-POS_FRE + G1-POS_FRE.
              <_ys_TG_1>-POS_OCC = <_ys_TG_1>-POS_OCC + G1-POS_OCC.
              <_ys_TG_1>-POS_VAC = <_ys_TG_1>-POS_VAC + G1-POS_VAC.
              <_ys_TG_1>-/BIC/ZKMOSALRY = <_ys_TG_1>-/BIC/ZKMOSALRY + G1-/BIC/ZKMOSALRY.
              <_ys_TG_1>-/BIC/ZFILFTEFX = <_ys_TG_1>-/BIC/ZFILFTEFX + G1-/BIC/ZFILFTEFX.
              <_ys_TG_1>-/BIC/ZWRKFTEPX = <_ys_TG_1>-/BIC/ZWRKFTEPX + G1-/BIC/ZWRKFTEPX.
              ls_cross-insegid      = 1.
              ls_cross-inrecord     = l_recno_SC_1.
              ls_cross-outsegid     = 1.
              ls_cross-outrecord    = <_ys_TG_1>-record.
              CALL METHOD i_r_log->add_cross_tab
                EXPORTING
                  I_S_CROSSTAB = ls_cross.
            ELSE.
              ASSIGN rdsTG_1->*          to <_ys_TG_1>.
              CLEAR <_ys_TG_1>.
              MOVE-CORRESPONDING G1 TO <_ys_TG_1>.
              <_ys_TG_1>-requid    = l_requid.
              l_recno_TG_1          = l_recno_TG_1 + 1.
              ls_cross-insegid      = 1.
              ls_cross-inrecord     = l_recno_SC_1.
              ls_cross-outsegid     = 1.
              ls_cross-outrecord    = l_recno_TG_1.
              CALL METHOD i_r_log->add_cross_tab
                EXPORTING
                  I_S_CROSSTAB = ls_cross.
        Record# in target = sy-tabix - if sorting of table won't be changed
              <_ys_TG_1>-record     = l_recno_TG_1.
              INSERT <_ys_TG_1> INTO TABLE <_yth_TG_1>.
              IF sy-subrc <> 0.
                CALL METHOD cl_rsbm_log_step=>raise_step_failed_callstack.
              ENDIF.
            ENDIF.      "Read table
    This read statement is extra in this code and when this executes the sy-subrc becomes zero and then it adds up the key figures.
            READ TABLE <_yth_TG_1>
              WITH TABLE KEY
    **This also contains the characteristics and key figures which are being update as part of the transformations       
               ASSIGNING <_ys_TG_1>.
            G2_subrc = sy-subrc.
            G2_tabix = sy-tabix.
            IF G2_subrc = 0.
      aggregation SUM
              <_ys_TG_1>-POS_OCC = <_ys_TG_1>-POS_OCC + G2-POS_OCC.
              <_ys_TG_1>-POS_VAC = <_ys_TG_1>-POS_VAC + G2-POS_VAC.
              <_ys_TG_1>-POS_COUNT = <_ys_TG_1>-POS_COUNT + G2-POS_COUNT.
      aggregation MAX
              IF G2-POS_CTSPAN > <_ys_TG_1>-POS_CTSPAN.
                <_ys_TG_1>-POS_CTSPAN = G2-POS_CTSPAN.
              ENDIF.
              ls_cross-insegid      = 1.
              ls_cross-inrecord     = l_recno_SC_1.
              ls_cross-outsegid     = 1.
              ls_cross-outrecord    = <_ys_TG_1>-record.
              CALL METHOD i_r_log->add_cross_tab
                EXPORTING
                  I_S_CROSSTAB = ls_cross.
            ELSE.
              ASSIGN rdsTG_1->*          to <_ys_TG_1>.
              CLEAR <_ys_TG_1>.
              <_ys_TG_1>-CURRENCY = G1-CURRENCY.
              MOVE-CORRESPONDING G2 TO <_ys_TG_1>.
              <_ys_TG_1>-requid    = l_requid.
              l_recno_TG_1          = l_recno_TG_1 + 1.
              ls_cross-insegid      = 1.
              ls_cross-inrecord     = l_recno_SC_1.
              ls_cross-outsegid     = 1.
              ls_cross-outrecord    = l_recno_TG_1.
              CALL METHOD i_r_log->add_cross_tab
                EXPORTING
                  I_S_CROSSTAB = ls_cross.
        Record# in target = sy-tabix - if sorting of table won't be changed
              <_ys_TG_1>-record     = l_recno_TG_1.
              INSERT <_ys_TG_1> INTO TABLE <_yth_TG_1>.
              IF sy-subrc <> 0.
                CALL METHOD cl_rsbm_log_step=>raise_step_failed_callstack.
              ENDIF.
            ENDIF.      "Read table
    Thanks for looking into this and will appreciate your response on this.
    Regards
    Raman

    Have you tried the same thing by deleting the extra 'READ' statement?

  • Key figure data in BEx report

    Hi,
    We are viewing some of the Key figure data of a particular report as ".", "$21.99MIN" etc, where $21.99 is the original value. When we click on the excel sheet cell and view in the formula bar, data is showing $21.99 correctly. But it is appearing as "$21.99MIN". In some places just"." is appearing where data can be seen in the formula bar.
    Tried, converting to Formula option, with which we can see the numbers but as usual it is behaving as a normal excel sheet after applying the function.
    Please suggest how to view the correct data for the report.
    Regards

    Hi,
    Thanks for the reply.
    It is a direct key figure. Two key figures in the query are displayed like this, while other KFs are displating the values as it is. Also i checked the data in Multi provider, BEx definition of the info object etc, there is no problem.
    Regards

  • Key figure definition in BEx gives "Error loading template 0QUERY_TEMPLATE"

    Hi,
    On a BI 7.0 system I try to run a query in the BEx Analyzer and after I have the result in Excel. I wants to see the key figure definition by right clicking in a data cell.
    Then I get this error message after the browser has started up.
    Error loading template 0QUERY_TEMPLATE
    Notification Number BRAIN 276  
    Any ideas how this can be?
    Kind regards, Bjarne

    hi,
    Please check the below path in BI and set the template "0ANALYSIS_PATTERN" there:
    SPRO ->SAP Netweaver -> BI ->Settings for reporting and analysis ->BEX Web -> Set Standard Web Templates -> Ad-hoc analysis -> set the above template and save it.
    check wether it works afterwords or not.
    This is the standard web template called every time when we execute our query's.
    Thanks
    Dipika

  • View creation and populating key figure to datasource appended field

    Hi
    the data we want is like in 4 tables
    J_3GVERSI  +  EQUZ + ILOA+ ANLC
    HOW should i create a view on these four tables .
    j_3gversi _ equnr
    equz - equnr, iloan
    iloa- iloan(key), comp code,asset no,asset subno
    anlc- comp code asset no asset sub no
    my two key figure values are in J_3gversi , and 1 more keyfigure i will append it to my datasource on this view and the value for this  will be obtained if i give 5 field values( from ANLC(table), compcode,asset no ,asset subnumbr, fiscal year and depreciatio area in where condition for select statement in cmod .)
    to give these 5 values in the where condition in my cmod code for my datasource I tried to make this view.
    i have linked
    j_3gversi  with equz - using equnr
    equz with iloa- using ILOAN ( since my asset no and asset sub number in this table is linked to equipment number  using ILOAN field)
    ILOA with ANLC- using ( company code, asset number and asset subnumber)
    though the field names are different for my asset number and subnumber in both the tables , they have same data element(component) -
    IS it fine to join two tables with fields having different field names but same component.
    asset number field name is  in ILOA-anlnr and ANLC-anln1 though component type is same - anln1 for both
    similarly asset subnumber has like  ILOA- anlun and ANLC- anln2 with same component type-anln2
    now in cmod for the function module i am writing select statement like this
    code in cmod for transaction data
    when mydatasource
    loop c_t_data into lv_ctdata3
    1.     SELECT SINGLE * FROM anlc WHERE bukrs EQ lv_data3-bukrs AND 
    2.                                     anln1 EQ LV_DATA3-anln1 AND 
    3.                                     anln2 EQ LV_DATA3-anln2 AND 
    4.                                     gjahr EQ Lv_data-gjahr AND 
    5.                                     afabe EQ  '01 ' . 
    6.     IF SY-SUBRC EQ  0 . 
    7.       CALL FUNCTION  'FI_AA_VALUES_CALCULATE' 
    8.         EXPORTING 
    9.           i_anlc = anlc 
    10.         IMPORTING 
    11.           e_anlcv = l_anlcv. 
    12.     ENDIF. 
    lv_data3-nbw =l_anlcv-nbw.
    modify c_t_dat from lv_data3
    end loop
    Edited by: krishnav3.5 on Jul 8, 2011 2:07 PM

    Hi ,
    IS it fine to join two tables with fields having different field names but same component.
    1.Yes we do this many times .We combine fields having different names but functionally they are the key values to match .
    No issue with that untill they are in same format and you want to match data based on those fields .
    HOW should i create a view on these four tables .
    2.For view you can create view on 2-3 tables with matching fields and for complex logic you can populate additional fields via CMOD code .
    Regards,
    Jaya

  • Adding a new key figure to Info Cube

    Can I add a new key figure to an existing Info cube in which data is loaded?
    Assume that In Info Cube we have the following.
    Stu Id -- Characteristic
    Maths , Physics , Chemistry -- Key figures
    These are the info objects which are already available and transfer rules are already available for the same in the infosource.
    Could any one let me know how to add one more new key figure (total ) , which is the sum of the three marks to the Info Cube and populate the data in to the same.
    I have tried the following steps ,  but could not get the solution.
    1). Create a new key figure info object (total).
    2). Add the same to the communication and pull the same into transfer rules of the existing info source and activate the same.
    3). Add the new key figure to the info cube.
    4). Open transfer rules for the info cube and change the mode from NO updation to Addition for the particular key figure (total).
       When I perform the 4th step it is giving a red symbol beside the key figure in update rules and I'm not able to activate the same.
    Any help on how to add key figures to update rules and transfer rules is highly appreciated and points would be assigned.
    Thanks

    1.add new Keyfigure to Infocube.
    2.Go to Update rules> go to update type of that Keyfigure>selct formula in update method>create new formula>here you can add up your 3 keyfigures-->OK.
    activate update rules and InfoProvider.Check all are active or not..
    by using Export generate datasouce ,you populate data(historical data)  to new keyfigure as well.Then you have to delete historical data requests.
    or iyou can create formula in query designer as well as srinivas suggested.that would be better option.

  • How to remove values formatting in export to excel from ALV grid

    Hi all,
    I have small issue, I have ALV Grid with some data, but the problem is with columns containing e.g. gross amounts, because it is displayed in the grid as e.g. 1.764,81, and after export to excel it is still in this format (with dot and comma), so excel doesn't treat it as numeric value but as text, and then when I try to calculate total on the column then this values are not taken to the total. Do you know if that is possible to remove column formatting?
    kind regards,
    Marcin

    I replied too soon to Peter's suggestions.  For some reason, I was able to add new info. to my first new row, but not the second.  However, I finally figured out the problem.
    I found the Help Center page on: "Here are ways to change custom formats and apply changes to table cells:"
    To change the elements associated with a custom format that’s been applied to cells, select the cells and click Show Format in the Format pane of the Table inspector.
    I saw that the "cell format" was listed as "automatic," so I changed it to "Custom;" then left the new custom window at it's default settings. Now my cells would accept pasted info. without spreading it through the lower rows.  Whatever automatic was in the table, it was not what I wanted. Doing this to other new cells, solved my problem.  Thanks again.

  • Change Order of key figures

    Hi Gurus,
    We are using BI 7.0. & MS excel 2003 & 2007 both.
    I've designed a query with 10 Key figures.
    After execution, based on Key figures I have Added Local Formula in query.
    Now I want to change the order of Key Figures and bring Newly added Local Formula column at 3rd position.
    I've tried using Select Filter... and changed the order of column as I want, but this doesn't work.
    I can drag the column & drop it at desired position. It's working that way in office 2003.
    But in office 2007, Drag and Drop not working at all. Even for characteristics also.
    Is this problem with BEx Excel Patch? I've installed excel patch for both 2003 & 2007. But still not working properly.
    Please suggest. If you know latest patch available for office 2003 & 2007, please suggest.
    Thanks.

    HI,
    I am on BI7, Excel 2007
    Drag and Drop Functionality for both Char & KF is working fine including the placement of Local Formula.
    seems you need to check with the Basis Team for proper installation of the BEx Excel patch
    Regards
    ReddY A

Maybe you are looking for

  • Error in SUS PO creation

    Hi All, I am trying to send R/3 PO to SUS system through XI. Both in R/3 and XI I could not see any errors. But in SUS system when I check in SXMB_MONI, it displays as "APPLICATION_ERROR", (An error occured within an XI interface: Exception occurredA

  • Generic UDF to handle empty contexts and contexts with missing fields

    Hi, I have been trying to get my head around a UDF for this for a while, but cannot find the solution. I''l start by showing input structure, and expected target structure (subset of an invoice IDoc with 4 line items): SOURCE: E1EDK01 (0..1) E1EDP01

  • How to set H align of title for columnGroup

    Hi advancedTable has columnGroup and this columnGroup has two different columnGroups as child. The title of top columnGroup is located at left side however thoes of two children(columnGroup) are at center. I want to place the title of top columnGroup

  • LR CC will not launch after downloading. Do I need to do something with my standalone LR5 version first?

    I just downloaded LR CC after using the standalone LR5. But when I click on the new LR icon to launch it nothing happens. The splash screen appears for a very fast split second, but that is it. I tried restarting my computer, but still not launching.

  • FPWLM & Organizational Management

    Hi experts, I have problems with organizational management to determine department and groups. When we run dunning, system will not assign department or groups but will correctly determine responsible for collection.. We usually get department not as