Format numbers when exported to Excel

Hi,
I am a novice abap programer and i am facing the following problem.
I have a program that exports a table to a Excel worksheet.
I am using the functions call function 'WS_FILENAME_GET' and
call function 'MS_EXCEL_OLE_STANDARD_DAT'.
My question is that when i have a negative value in Excel i got for example 862.26-
Excel consider this like text so i need additional formats in Excel.
How can i solve this problem?
Best Regards
João Fernandes

With this function you can't do it .
Use OLE objects
http://help.sap.com/saphelp_nw04/helpdata/en/db/9987bcc3cf11d194ad00a0c94260a5/frameset.htm

Similar Messages

  • Formatting lost when exported to excel

    When I export a worksheet results to excel the formatting is being lost like in my worksheet I wanted a line and space for every grouped item which is lost in excel sheet. Is there a way get around for this ?
    Thanks

    Not exactly sure what formatting you're having a problem with, but I'll list some of the points I can think of, of exporting to Excel and will hopefully cover it. I believe you may be referring to point 1 below, but just in case ...
    1. If you have group sort on for a column or more, then when exported to Excel, you won't have those 'blank' values for the column(s) that's grouped. That's why when you know someone will be exporting to Excel, it's a pain as all group sorts are usually taken back off (which can screw up exactly what you're trying to point out in the workbook).
    2. If you have a page -> item (ie: lots of values you pull down like a LOV), then I believe, that you won't get an Excel worksheet for each value in the LOV but only for the one currently displayed when you performed the File -> Export.
    3. When you export to Excel, you only get actual values, no functions of how it was calculated (ie: it'll be static, not dynamic).
    4. You can export to Excel using Plus and might not get the formatting characteristics you want in Excel. I've seen users specifically bring up Viewer just to get the formatting characteristics (colors, fonts, etc.) when they export from that Disco version.
    5. Sometimes when you export from Disco to Excel, that actual value that gets posted in Excel is different. I know ... it sounds wierd, but it's a fact. The problem is NOT Disco, but is a problem with Windows and a setting has to be altered (although I'd have to hunt what that setting is now though). However, I've only seen this happen a few times, so definitely not the norm.
    Russ

  • Cross Tab Formatting Problem when exported to excel

    Hi There,
    I got a problem with cross tab when exported to excel, Call_id field is occupying 4 cells. Below is the structure
    AssignedGroup-Call_Id-Total
    A--1001-
    A--1011-
    Total-----2-
    B--1021-
    B--1031-
    Total-----2-
    C--1041-
    Total-----1-
    can anyone help? How to restrict call_id to fit in single cell?
    Thanks,
    Jyothi
    Edited by: Jyothi Yepuri on Sep 16, 2009 7:50 AM

    Yeah.. crystal has giving  some issues while exporting reports without SPs, especialy previous versions.
    So  Better to install latest SP or patches for CR 10.0. I think SP 6 is the updated one for CR10.0.
    For More info Go through this link,
    http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CR10
    Regards,
    Salah

  • Formatting numbers currency export to excel

    All
    I have the following SQL in my code.
    select trader, tradername, billingranacc,BILLINGPREFRANACC,LASTLOGINDATE, '€' ||to_char(billingamount,'99G999D99') Amount,substr(BILLINGPREFRANACC,1,1) as "R&NLocation"  from exlink_trader_import where usertype = 'Internal' and isbilled = 'Yes' and isdeleted = '0'Now the report picks up the € sign but when i export to excel it does not, can someone help with this ?

    Hi stranger colleague Ben
    The CSV codification is one but not the one issue that can affect the unexpected output of your report.
    But if you are viewing correctly the € symbol in your report, and the automatic CSV codification is enabled, sure you are in the usual case that makes more difficult the work of foreign developers and DBAs.
    Time before I resolved the wrong CSV output (“â‚ 600.00”) instead of the correct (“$ 600.00”) simply turning ON the automatic codification, but only after being managed many NLS parameters, and database character sets. We have different currency, keyboards, measure units than Americans, and have to read more chapters in documentation books. This is more pain if you are far to domain the English language!.
    Ben: you are getting the wrong output using the “ '€' || to_char (billingamount, '99G999D99')” format in the query, Have you checked using “billingamount” in the query, and defining the FML99G999D99 or FMU99G999D99 format in the report column numeric attribute?, You should seen the correct € output in the CSV file although you haven’t defined the automatic codification.

  • How can I keep a PDF's table format intact when exporting to Excel? I am using Reader X for windows.

    I am trying to use Reader X/ Adobe Export to send a pdf to excel but everytime I send it and then open the excel file the table format and information is all screwy. How can I fix this.  I am trying to put together pricing sheets for my workshop.  Thanks and I hope someone can help.
    _Rob

    You'll want to ask at Adobe's forum for the ExportPDF.
    http://forums.adobe.com/community/exportpdf
    Be well...

  • Prblm in Date format when exported to excel

    Hi ,
    I had a problem when using the Export To Excel option from Portal. The data is getting fine populated in Excel but it's in General No Specific Format. But I wanted the data to be in its original format even when exported to Excel. Like...
    Country -
    Date Goods Delivered
    India----
    01.01.2001
    America----
    05.12.2004
    Singapore----
    12.04.2003
    Here the country should be of type TEXT FORMAT and Date Goods Delivered should be in DATE FORMAT(Here its visible as date but it's in General format)
    I am facing problem with date, it is displayed(01.04.2006) as shown above but it's in general format. I wanted it to be in date format at excel.
    I am in BW3.5 with portal version EP7.0
    Please suggest the solution and I had even gone through previous forum questions related to this but couldn't get.....the solution.
    points will be assigned...
    Regards,
    rudra.

    Hi,
    My end users requirement is to get all data in Standard format. We can't ask to select the date column and change the format in excel as there are more date fields(columns ).
    Using macro i had one problem,even though i am not sure..
    i can't enable the macro to get enabled in page load of export to excel as it is to be done at users end...
    If theres any possibilty of enabling....pls let me know
    Thanks for your valuable suggestions...
    Regards,
    rudra.

  • Hyperlink in Numbers acts strange when exported to Excel

    Hello All,
    I'm having a problem with hyperlinks. In Numbers, I'm linking to an mp3 audio file on the internet. This works perfectly, you click on the song title hyperlink, Safari opens and the song plays/streams right in the browser window.
    When I export the Numbers file as an Excel document, the hyperlink still works but the mp3 is displayed as a text file within Safari (miles of random text). I would like it to play in the browser like it does in Numbers.
    Also, when exporting to other formats, like .pdf, the file plays in the browser just like in Numbers.
    So, what is Excel doing to the link that makes Safari react to the file differently? Should I be typing in the link differently in Excel? I already tried html (href="www.blah.com").
    Any thoughts on the matter would be greatly appreciated!
    Warren

    Excel often gives me problems with hyperlinks. I made a test of a link to an mp3 in a Number table. One cell was the hyperlink, another used the HYPERLINK function. Both worked flawlessly in Numbers. Both opened as text from Excel, just as you saw.
    I created an Excel document (using Excel) and pasted in the same link. It, too, opened it as a text file.
    I used "Insert Hyperlink" in Excel to create the hyperlink. Same thing.
    Looks to be an Excel problem, not one related to Numbers or exporting to Excel.

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

  • Crystal Report 2008 doesn't set  page size when export to excel file

    Hi,
    I am using Crystal Report 2008 Developer edition.
    At Crystal report design time setting the below page setup:
    Page Options -
       to A3(297X420 mm)
    Orientation --- Landscape
    and using the following code in .net (c#)
    I am using below format options to export in excel in .net 2005
    ReportDocument oReport = new ReportDocument();
    oReport.FormatEngine.PrintOptions.PaperOrientation = PaperOrientation.Landscape;
    oReport.FormatEngine.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.PaperA3;
    if (aParamlist.ReportFormat == ReportFormatEnum.MicrosoftExcel)
    ExcelFormatOptions excel = new ExcelFormatOptions();
    excel.ExcelUseConstantColumnWidth = false;
    // Use detail section one as a guideline to determine column width
    excel.ExcelAreaGroupNumber = 1;
    //excel.ExcelAreaType = AreaSectionKind.Detail;
    excel.ExcelAreaType = AreaSectionKind.Detail;
    // Prepare exporting options
    ExportOptions export = oReport.ExportOptions;
    export.FormatOptions = excel;
    export.ExportFormatType = ExportFormatType.Excel;
    oReport.Export();
    when export to excel it doesn't set the Paper Size to  A3(297X420 mm).
    Is there any way to set the paper size while export to excel or in other formats also????
    Thanks & Regds,

    Hi,
    thanks for your email.
    This is not happening in development environment.It is setting the paper size anf paper orientation properly.
    this is happening in the production environment where only redist installation is done.
    thanks

  • Merge columns when exporting to excel data only

    Hi,
    I have a report with headers in fowling format.
             Quantity         |
    first day   |  last day |
    When exporting to excel data only I want output in following format and want to merge upper header cells.
    Quantity
    First Day
    Last Day
    Please reply.Thanks.

    Hi,
    You can achieve this requirement Please follow the below document.
    How to WYSIWYG SAP Crystal Reports Export to XLS
    I hope this is the best formatting example suited for this requirement.
    Ludek thanks for preparing this document and sharing with us......This is the best formatting ex.
    Refer Link: Crystal Reports Crystal to Excel
    Thanks,
    DJ

  • Header of ALV with space when exported to excel using Standard ALV

    Hi,
    I am Using Reuse alv grid display    to dispaly my report and it works fine and I am using the standard SAP application tool to export it to excel.
    But for some of the header fields I am getting space in the excel sheet but there is no space while displaying through ALV.
    I am using the following field catalog for the same.
    wa_fieldcat-col_pos = 10.
      wa_fieldcat-fieldname = 'SOLLWERT'.
      wa_fieldcat-seltext_l  = 'text-t10'.      "Target value (* this has no space here)
      wa_fieldcat-outputlen = 32.
    wa_fieldcat-colwidth_optimize = 'X'.
      APPEND wa_fieldcat to it_fieldcat.
    but there are still space for this Colomn when exported to excel if after optimizing the column.
    kindly suggest what field needs to be passed to the field catalogoe to avoid spaces in excel for the header.
    Thanks
    Ritesh

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Does not display axis label in graph when exported to excel

    I have a wierd issue.I have a report with graph with coloum chart and axis labels description on x axis.WHen i export the report to PDF everything looks OK.But when i export it to excel few axis labels disapper.Out of 12 labels only 2 apper when exported to excel.Has anyone encountered this issue.
    If so is there a way to fix this.
    PS: I am using BO XI 3.1 Webi.
    Thank you,
    Sanjeev

    hi,
    I have tried this out with a sample.
    In WEBI preview mode and PDF, all axis labels will appear fine.
    But when exported to excel, some labels will disappear.
    Workaround: We have to increase the chart size in Excel till all axis labels appear clearly.
    Regards,
    Vamsee

  • Reports output delayed when exported to Excel using OLE2

    Hi All,
    Platform - Oracle Application Server 10g Release 2 10.1.2.3 on Windows 32 bit.
    The report output is getting generated in a minute when exported to PDF i.e destype=cache & desformat=pdf. When we generate the output to excel is considerably delayed. It is taking time and internal server error is occuring.
    1) Report developed with simple query
    2) Used RPT2XLS procedure which uses OLE2 builtin to export report output into excel.
    3) Called RPT2XLS.run procedure in After-Report trigger of the report.
    4) We have relased all memory objects in the RPT2XLS package after exporting data and there is no EXCEL.exe running once the file is generated.
    System parameters used in the URL.
    . destype=file
    desformat=pdf
    CONTAINSOLE=yes (Required for exporting OLE2 objects into Excel in report)
    desname=path & name of the file.
    I have gone through the tuning documents for reports server and increased minengine, maxengine and initengine parameters of the reports engine and also changed maxconnect and IdleTimeout parameters in reports server configuration file.
    What might be the reason for delaying in the output of the reports when exported to Excel. Can the guys with special knowledge on this area help us in getting out of this issue.
    Thanks in advance.

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • BOBI 4.x Webi - Graphs when exported to Excel, turns as picture.

    Hello,
    In SAP BO XI 3.x version, a Webi document having graphs, when exported to Excel sheet, the graphs are exported as they are and were able to modify them. However, in SAP BO BI 4.x version, the graphs are exported as picture and are not able modify them.
    I tried with multiple 4.x versions even with 4.1 SP4, but its still the same.
    Is this by design that the Chart\Graph engine saves them as picture in 4.x or there are some settings that need to be done?
    Any help is much appreciated.
    Regards,
    Abhay

    Hello Abhay,
    As you suspected, the functionality to add webi chart as excel chart while exporting has been changed in BO 4.x version. Please see below idea page where developers like us asking to restore the same functionality. The idea is under review now. Cast a vote for the idea.
    https://ideas.sap.com/ct/ct_a_view_idea.bix?c=1DA84A30-1E5A-43FA-95C5-857A8B99D197&idea_id=8F863F84-DFCB-48EF-B79B-348CCBC6D695
    Regards,
    Nikhil Joy

  • Character drops zeros when exported to Excel

    I have a template that when exported to Excel from E-Business Suite, drops the leading zeros. We want those zeros to be there.
    For example, Project Number 000400 is SEGMENT1 of PA_PROJECTS_ALL so when viewed in Word, it shows the full text string. When the user exports to Excel, it drops the three leading zeros and just displays 400.
    Is there a way around this?
    Thanks,
    Rob

    Use a special character called a non-breaking-space and that should resolve your issue. Put it before or after your xml field
    Insert->Symbol->Special Characters Tab->Nonbreaking Space
    or
    Ctrl+Shift+SpaceIf this works, don't forget to give me some points. :-)
    Ike Wiggins
    http://bipublisher.blogspot.com

Maybe you are looking for

  • Can not run VMwareplayer on OEL5.6 64-bit

    I have installed vm player3.1.3 successfully on OEL5.6 64-bit. But when I tried to run a vm virtual image, got this error message: Could not open /dev/vmmon:No such file or directory. Please make sure that the kernel module 'vmmon' is loaded. Then I

  • Openoffice 2.3.1 won't launch with X11 2.1.1 under Leopard 10.5.2

    Hi, I have noticed that with every version of X11 > 2.1.1, Openoffice won't start. It does launch, but nothing happens. Removing the X11 versions 2.1.2, 2.1.3 or 2.1.4 in a "clean manner" via Appdelete and then re-installing X11 2.1.1 makes Openoffic

  • Help resizing images using aperture

    I don't use photoshop and am trying to figure out the best way to size an image of photos to put into a locket. I am not sure if the resizing (not crop) can be done in Aperture or do I need to use a tool like photoshop (or GIMP since I don't own phot

  • Associate roles and permissions to users that existe on a database

    Hi, i want realise a secure authentification i used ADF Configuration but i found out that i cant bring my users from my database. i can just create new users with roles in Jdeveloper. do you how we can bring users to Jdeveloper and associate to them

  • J_secrity_check

    Dear all, i know in JAAS, when we use FORM base authentication, the following code is needed: <form method="POST" action="j_security_check" > <input type="text" name="j_username"> <input type="password" name="j_password"> <input type="submit" name="j