Set Field as text before exporting to excel

HELLO GURUS,
i have a program which exports material numbers and other relevant data from sap tables to excel sheet.
certain material numbers contain text 'E' in between the material number (Eg. 17700E0056). When such data is exported to excel, Excel treats these as exponential numbers and converts them to scientific notation (1.77E+60).
How do I export the data as it is?
Is there a way that i can convert it to text format before exporting it to excel..?

Hi,
try moving the values to a CHAR field before download to Excel
or
when building your field catalog , specify the field length same as of that fields data element.
eg. your material number is of char 10.
so set yout outputlen eq 10.
g_flcat-outputlen = '10'.
this works.
Thanks & regards.
Edited by: anusha25 on Nov 8, 2011 5:02 PM

Similar Messages

  • While working in Material Master, Before exporting to Excel need to know the count of listed items in SQVI Reporting

    While working in Material Master, Before exporting to Excel need to know the count of listed items in SQVI Reporting

    Major documentation is at https://service.sap.com/installmdm.
    In the "Installation" section, you can find information about predefined object models (e.g. Product, Business Partner). For "Vendor" information, please check under "Previous Releases (ZIP Files) > MDM 5.5 (SP03) Installation Guides > SAP ERP-MDM Field Mapping and Check Tables.xls.

  • Error when Read only permission set when filtering data before loading with Excel 2013 Addin

    Good afternoon :)
    I have an MDS issue that is making me lose my mind.
    I have some permission set to an Entity. It is a read only permission in the entity but I tried to put inside every field and same thing happen.
    Every time an Entity has any kind of read only permission assigned to it or its fields, Excel Addin show an error when we try to load it. When Entity has more rows than the maximum rows in the Settings pane, it will show you an option to filter data. When
    you try to use this filter, Excel show an error message but you can press OK and everything works fine.
    There is the message:
    The thing user, my user do not want it :( And I don't know how to get rid of it.
    Do anyone have an ideia on how to fix it ?
    In the debug set of the addin, there is this message:
    2014-10-22T11:38:42.152        8440 EXCEL.EXE            EXCEL.EXE                               
    Generic          EventType: Error, Message: Unobserved exception in TaskScheduler. Exception:'System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set
    to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
       --- End of inner exception stack trace ---
    ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
       at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
       at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
       at System.Windows.Forms.WindowsFormsSynchronizationContext.Send(SendOrPostCallback d, Object state)
       at Microsoft.MasterDataServices.ExcelAddInCore.ExcelHelpers.ExecuteOnUIThread(SendOrPostCallback callback)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.FinalizeUIOperation(Boolean mdsOperation)
       at Microsoft.MasterDataServices.ExcelAddInCore.DataView.<>c__DisplayClass53.<LoadData>b__51(IAsyncResult ar)
       at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<---

    Rafael,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Re: How to Set Standard Header Section In Export To excel

    Hi Experts,
    I am using Jdeveloper 11.1.2.3.0 ,
    I am taken a Employee and Department  tables For that one i am taking a 2 command buttons and set action ExportToExcel Component to those buttons . Then One button for Employee Date and Second Button for Department But I need Same Template For both the Excels Like Header Section is maintain the Logo And Footer Date Followed For both Pages.
    Can Any Give a solution for this One.
    With Regards,
    satish

    Use POI Apache POI - the Java API for Microsoft Documents to export your data. You write native excel wookbooks and have total control on the export (what is exported, headers footers...) Sample http://www.techartifact.com/blogs/2013/08/generate-excel-file-in-oracle-adf-using-apache-poi.html
    Timo

  • 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

  • Exporting to excel..error in using excel easy table.vi

    Hi...
    Am using excel easy table.vi to export my data to excel.....it contains a date field...When exported to excel,the date and month is getting interchenged.
    ie,05/03/2008 is converted as 03/05/2008...What is the work around for this?
    i read in one of the posts that  have to format the date filed using  Excel Set cell Format.vi..I tried wth that ,but so far cudnt fix...i tried wth using @ in the number format..then i was getting a string instead of datetime.When used%d/%m/%Y..then i was getting error.
    If i can use that,how do i.
    My datetime filed is the first column in the 2D array.
    Thanks in advance...

    Hi,
    Excel handles date and time as a floating point decimal representation.  The integral value (to the left of the decimal) represents the number of days since the beginning of the 20th century.  The decimal value represents the time of day from midnight in seconds divided by 86,400 (i.e. 6:00:00PM = 0.75). 
    Excel chooses the default regional date format (i.e. MM/DD/YYYY, DD/MM/YYYY, etc.) based on your current location setting.  You can manually change the format of a particular cell by right clicking on any cell and selecting 'Format Cells', then selecting 'Date', and finally changing the 'Locale (location)' to the desired format.  This allows you to format the date however you'd like.
    Unfortunately, Microsoft Excel does not have a text function to programatically change the 'Locale (location)' setting for a cell.  This means that if you need to send a date through the Report Generation Toolkit that is in a format different from the current location setting, you will need to convert the date representation to text.  This will change the way Excel handles the cell data from the date format mentioned above to a simple text sting.  For example, if you're trying to convert the date '12/24/2008' in cell A1 into '24/12/2008', you can use the following code:
    =TEXT(A1,"dd/mm/yyyy")
    If you try to keep the cell formatted as a date, Excel will interpret '24' as a month and '12' as a date, which results in an incorrect date.  There is no easy way to programatically convert this text string back into a date without manually changing the date format of the cell.
    Credit: Ganesh Ganeshkumar
    Regards, Kate

  • Export to Excel Action in MS SSRS Report not exporting all data in Report

    Hi,
    I have developed a complex Report that has many expandable nodes in a table format. The report works fine.
    However, when I export the Report to Excel using Actions --> export to Excel, only the data in expanded nodes is included. The data in collapsed nodes is not included.
    I am looking for approach to include data in expanded nodes in Excel Export. The expanded data can be expanded in Excel.
    Any help in this regard will be appreciated.

    Hi Abhijit PS,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • Export in excel without displaying all rows

    Hello,
    I use OBIEE version 10.1.3.4.1.
    I have a report in "table view" with thousands of rows.
    I would like to export a report to Excel, without displaying the data. Is possible to set the execution as an export in Excel?
    Alternatively I enabled the "Page Control" by 50 "row per page." Is possible to export to excel all the row of the report without to see them all?
    Thanks
    Sara
    Edited by: Sara C. on 25-gen-2010 6.23

    Hi Sara,
    you have 2 options:
    1. use ibots to deliver your report in the form of an excel. This would avoid the generation of report.
    2. Use "download to excel" option. This option downloads the entire content and NOT the ones displayed on the screen.
    Hope this helps.
    cheers,
    Vineeth

  • Drill Down is not working after exporting to excel

    Hi,
    I have created a drill down report in SSRS . Its working perfect. But when I export it to excel, it is showing only the expanded nodes. But I want the same functionality which gives user to expand or collapse the nodes in Excel as well. Can any one please
    help me with this?

    Hi sil174sss,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • Export to excel with formatting was autowrapping text in a cell

    Export to excel with formatting was autowrapping text in a cell without having to check the can grow option.  When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort. 
    It worked in:
    ProductVersion=10.0.0.533
    ProductName=Crystal Enterprise 10 Embedded
    Doesnt work in:
    Crystal Reports 10.0 Service Pack 6
    After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked.  I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
    Description:
    When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
    Designer is turned off." .   After we turn the option to grow on it does wrap however it spans across multiple rows.  So I guess my question is there a way for it not to span multiple rows when wrapping text?
    Edited by: dforde on Jan 27, 2010 11:12 PM

    I could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
    I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export.

  • Access report export to excel shows =sum() text boxes prefixed with the textbox name

    When exporting reports from access to excel the =sum() (group and total sums) text boxes all have the text box name prefixed to them in excel. They look good in access reports. Any way to turn this off? Why is this happening?
    I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
    See the images below as examples, the first is from access, the second is the report exported to excel.
    Access 2010 (http://i.stack.imgur.com/4roFM.png)
    Exported report viewed in Excel 2010 (http://i.stack.imgur.com/6B1zj.png)

    I've seen the same issue on 2 computers running Access 2010. I also tried this in access 2013 and had the same issue.
    Hi Scott,
    Did you use the same database file? May I know how did you create the report and those TextBoxes?
    I couldn't reproduce your problem, this is what I did:
    Create a sample table and the corresponding report. Group it by one of the field, then give it a footer section. In the footer section I inserted a TextBox and set the ControlSource property to "=Sum([fieldname])". But the name of the TextBox didn't
    show in the exported Excel file. Check the screenshots here:
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to export the text edit data to excel file without splitting the data in excel file?

    how to export the text edit data to excel file without splitting the data in excel file?
    I have a requirement in SAP HR where in the appraiser can add comments in the area given and can export that to excel file. Currently the file is getting exported but the comments getting split into deifferent rows.
    I want the entire comment to be fit in one row.
    Please help.
    Thank you

    Hi,
    if your text edit value is stored in 'lv_string' variable.
    then before exporting the value to excel you have to remove CL_ABAP_CHAR_UTILITIES=>NEWLINE
    that is '#' from the variable lv_string.
    for that use code some thing like this.
    REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>NEWLINE in lv_string WITH space.
    I think this will do the trick.

  • Exporting to Excel causes compounded field to be divided

    I have a report with compounded fields of plant and manager (ex. 3350/200). When I attempt to export to Excel, it is treated as a division and it displays 16.75 instead. I've changed a couple of settings under Tools/Options and Query Properties in both Excel and BEx query designer, but it does not change it. I also tried to export as CSV. This works, but not without doing a lot of manual manipulations to the file and I'm trying to come up with a clean process for my users. I have not found any info in the OSS Notes. Has anyone seen this issue, or has any suggestions of what else I can try? Thanks!

    Hi Paul,
       Try to download as CSV and open again in excel, i think it will work. Or
       Format the perticular field as TEXT and try to down load.
    Or in report try to replace the perticular charachter"/" with "_" and download.
    Hope it Helps
    Srini

  • Messy format exporting to excel and text/html

    Need help please....i'm in the middle of problems, i'm developing application that can exporting reports to some formats like pdf, excel, and text/html. it is become a problem when i exporting it to excel or text/html, the format are so messy... I'm using POI library 2.0 when exporting to excel. My codes are simply like this :
    try {
    response.setContentType(type);
    if ("application/vnd.ms-excel".equals(type)) {
    exporter = new JRXlsExporter();
    exporter.setParameter(JRXlsExporterParameter.JASPER_PRINT,jasperPrint);
    exporter.setParameter(JRXlsExporterParameter.OUTPUT_STREAM,response.getOutputStream());
    else if ("text/html".equals(type)) {
    exporter = new JRHtmlExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT,
    jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,response.getWriter());
    is it just because the library? or i have to add some additional code before jasper reports execute it? thanks a lot for the answers....
    Message was edited by:
    darma_sadha
    Message was edited by:
    darma_sadha
    Message was edited by:
    darma_sadha

    First, you forgot to tell what the problem is. Second: this is not a Jakarta product support forum. POI has a mailing list of its own. Go ask them.

  • Web Intelligence export to Excel misses some fields

    Hi,
    Our system is running BusinessObjects Enterprise XI 3.1 with SP3 (no fix packs).  The behavior I'm seeing is when exporting a particular Webi doc to Excel. 
    Here is some background info for the document I am attempting to export to Excel. The doc contains a section and the section has a crosstab including description header cells.  I have added an additional cell at the top of the section with section specific information in it- nothing that strange yet.  If my InfoView (Web Intelligence) preferences is set so that 'Select a priority for saving to MS Excel' is set to 'Prioritize easy data processing in Excel' then the exported document is missing the additional cell at the top of the section (all other data is fine).  If the setting is set to 'Prioritize the formatting of the documents' then the Excel export works perfectly.
    My question is why would this be?  The cell is just a simple dimension (string).  My only fear about changing this Excel setting is that there is a warning in the 'Business Objects XI 3.1 Release Notes' guide.  It states
    Large Web Intelligence documents should be saved to Excel format using the "Prioritize data processing" option". The generated Excel might not open if the document is large and saved with the "prioritize formatting" option.
    Thanks,
    Steve

    We are experiencing similar issue using BO 4 SP2 Patch 10 when exporting to Excel with setting 'Prioritize easy data processing in Excel'.  Exporting data worked after changing WEBI settings to 'Prioritize the formatting of the documents'
    Documentation regarding this option states following:
    "Under "Select a priority for saving to MS Excel", select the option that best fits your needs:
    u2022 If you want to display the data in a format that is similar to working in Web Intelligence, then
    choose Prioritize the formatting of the documents.
    u2022 If you want to display the data in a text format, then choose Prioritize easy data processing in
    Excel."
    If I understand this explanation correctly then both options should have extracted the same content to Excel. Difference should have been how the contents were formatted and should not have caused loss of information.
    I logged support ticket for this issue.

Maybe you are looking for