Exporting to CSV, a number field is changing format

Post Author: MELANIE ELIASON
CA Forum: Exporting
Exporting to CSV, a number field is changing formats.  I have it excluding the decimals places and commas.
Can anyone help?  I am using version 10.
Mel

Post Author: V361
CA Forum: Exporting
If you are exporting to Excel, it may be Excel that is changing the number format.
you could totext , but then Excel will treat it as text and not as a number.
May not be what you want.

Similar Messages

  • Web app Number field: How to format a number as currency in Business catalyst

    Not a coder. I have a Number field I have created in my web app, please how can I format this field to display the figures like this 999,999,999,999 (#120,000,000) random figure. Help will be appreciated.

    You can't. Number type field is there for storing integers. 999,999,999,999
    is not an integer. You need to use text string. Unless you're using the
    field inside the search form, in which case you need to use JavaScript to
    format the content of the field on the frontend.
    Cheers,
    Mario

  • Problem with number-fields in csv-Export-Files

    Hello,
    the export with the csv option works fine and our users like this export-function.
    But Unfortunatelly we have some problems with the exported number fields. In my region I defined the field with a format mask.
    On the screen it looks fine but when I change to csv the values are exported as text-values.
    So in excel the columns are shown with left alignment.
    When I try to change the format in excel to number, excel change the column type but not the value inside.
    On this account we cannot use the sum-function and the display of the value is wrong (alignment).
    Which possibilities do I have to resolve that problem?
    Thanks in advance
    Ulrike

    I have the same issue - Anyone any ideas on how to export currency values in a report to excel as numbers?

  • Problem in export Number field into graphical reports

    I have a custom field Number1.
    I put a decimal number (italian version)  0,5
    I use Number1 inside Cost1...to make some calculations, so the number format I see that is correct.
    I use Number1 as dimension into a graphical report (to excel file).
    Into the pivot of the excel the Number1 has the "," character converted to a underscore "_"
    So 0,5 become 0_5
    0,1 become 0_1
    I need the correct format into excel because I have to do other calculations.
    thank you.
    MS Project 2013 and MS Excel 2010. Both italian version.
    Daniele.b75

    Hi Daniele,
    How do you do your Excel export? Saving the file in a XLS format or creating a visual report?
    A workaround would be to write a simple macro in your Excel file:
    Sub test()
    Cells.Replace What:="_", Replacement:=",", LookAt:=xlPart, SearchOrder _
    :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    End Sub
    But before trying this, let's try to debug your export.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Change separator for export into .csv

    Hi!
    I'd like to change the separator to be "|" instead of "," but the drop down list I can find in "options" is greyed out.
    Why can't I change the separator for export into csv-files?
    Or is there a dependency I didn't realize?
    Regards,
    Walter
    PS: just updated to SQL Developer 3.1
    Edited by: 916799 on 24.02.2012 05:02

    You should use the delimited format to change the separator, it's the same as the CSV format, just the name changes.

  • BOM change number field is compulsory

    Hi Guys,
    I need to setup BOM (CS02) change number entry field is compulsory (using TCode CS02). How to setup config settings? pls advise
    Thanks,
    Sankaran

    Dear Muthusamy,
    Even if you have maintained settings in OS27,In T code CS02 ,the system allows
    you to change the BOM without a change number.
    The same question was posted by Mr.Anbalagan ,3 days before.
    <b>The follwing are the answers which I posted to him,check this under post thread name <b>ECR Number</b></b>
    <i>If you want to make Change number field as mandatory for CS02,u have to do it
    using the authorisation object.For certain users you can make this as an
    mandatory field ,just discuss with Basis & ABAP consultants,they can help out
    you in this regard.
    Though you might have done settings perfectly in OS27,OS54,but the system
    allows you to change a BOM without any change number.</i>
    <b>Answer2:</b>
    <i>
    Plz make this Authorization Object C_STUE_NOH as mandatory for T code CS02.
    I'm sure BASIS & ABAP consultant can help you in this regard.
    I have checked in my system for certain users,like without change number it doesnt allow to change BOM,
    So after giving SU53,I found the authorization obeject C_STUE_NOH was missing.
    So go ahead in using this object.</i>
    <b>answer3:</b>
    <i>You can make that field in CS02 as a mandatory for certain users,using a field
    exit.
    Field name AENNR -Change number can be made as mandatory .
    Plz explain the case to ABAP consultant.
    First in SE37 he will be checking whether this particular field AENNR has got a field exit.
    Later on he will be writing some codes to make this field as mandatory.
    This is what i wanted to convey to u.
    In my project ,for the core users the field has been made mandatory,so in CS02,he/she cant go inside without giving the change number.
    At that time when u give SU53,this authorisation object will be found not given.
    So just have a word with the ABAP consultant,he can help u.</i>
    <b>Reward points if useful.</b>
    Regards
    Mangal
    Message was edited by:
            Mangalraj

  • How Can I Change Format Mask For All Fields that type's Number Depend on Parameter in Report Builder 10g ?

    I want Change format mask for all fields that type's number
    Such as
    if  :parameter_value = 1 then
       all fields format mask = ' 999,999,990.000' ;
    else
       all fields format mask = ' 999,999,990.00' ;
    end if;
    Regards

    So, i have bad news for you : you'll have to rebuild again.
    Meanwhile i have excellent news for you : there's an online tool made by Johannes Henseler called Sidecar xml which builds the necessary xml file for you, sort of what you find in the Digital Publishing Folio Editor website, but saves it in your Folio folder.
    Next time you import all your folder (with that file), it will place all the necessary information, and even reorder the articles.
    Build once, play many times.

  • Change Number field to be made madatory

    Hello,
    My requirement is to make a field of Change Number mandatory in CS02 transaction. I tried it using configuration settings. However IMG settings is of no use to me.
    Can anyone give me information about how to make use of screen variant or transaction variant for making this field mandatory?
    Thanks is advance,
    Jagruti

    goto Shd0
    give your transaction Cs01 and variant name lets say Zcs01
    click on create
    it will take u to BOM creation screen
    Enter all the data (mat/plant/usage) and Screen variant short txt.
    in this screen in front change no actiovate the tick - for column "mandatory"
    Make sue the option,  Exit and save option
    in the next screen give  Short text and save.
    Give dev class and save
    now click on test button...you see that change number is mandatory.

  • Hide field for " Change Number". RMMG1-AENNR  " in MMR

    Hi,
    In MM01 and MM02, i want to hide field for " Change Number".
    I tried in OMSR and OMS9, but i could not find field "RMMG1-AENNR".
    Hw to make it hidden.
    Uts
    Edited by: Utsav.agra on Jun 1, 2009 9:17 AM

    Check is your problem can be solved by Screen or transaction configuration?
    T Code is SHD0

  • Ssrs 2008 export to csv file display issue

    In a new SSRS 2008 report, I would like to know if there is a way to automatically expand the width of some of the rows when the data is exported to a CSV file so the data is displayed correctly. Here are examples that I am referring to:
    1. In one column where there is suppose to be a date that looks like 12/11/2014, the value of ########## is displayed. The value of 12/11/2014 is what is setup in the SSRS formatting option.
    2. In a number field that is suppose to look like 6039267049 the value that is displayed is 6E+09.
    Basically if I manually expand the width of the columns that I am referring to above, the data is displayed correctly. Thus can you tell me what I can do so that the data is disaplayed correctly in the CSV file and ther user does not need to manually expand
    the column to see the data?

    Hi wendy,
    After testing the issue in my local environment, I can reproduce it when use Excel to open the csv file. As per my understanding, there is no width when we export the report to csv, Excel is just using the default cell sizes when we open the csv. So when
    a date value is wider than the default cell size, it would be displayed as ##########. When a number value is wider than the default cell size, it would use Scientific format.
    As to the date value, we can use the expression =cstr(Fields!Date.Value) to replace the former one =Fields!Date.Value. In this way, the width of the value is narrower than the default cell size, so that the date value can be displayed correctly. For the
    number value, it already narrow down the width with Scientific format. Or we can Select all the cells in the csv file, then click Format| AutoFit Column Width to change all the cells width to fit its corresponding values in Excel level.
    Besides, we can try to export to excel instead of csv. Excel format can inherit the column width in the report. So in this way, we can directly change the width to fit the values in Reporting Services level.
    Hope this helps.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • 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

  • CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW' fields have changed since 46C

    We are implementing upgrade to mysap 700 from 46C
    PROGRAMS USING function call to 'SX_OBJECT_CONVERT_ALI_RAW'  fields have changed
    we used to send tables directly and now we are sendin fields to be changed
    i have tried to send the data but continue to have errors
    700 version has this function with these paramaters
    CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW'
      EXPORTING
        FORMAT_SRC            = SOURCE_NAME
        FORMAT_DST            = OUT_NAME
        ADDR_TYPE             = 'FAX'  " int or fax
        DEVTYPE               = DEVTYPE
       FUNCPARA              = 255
      CHANGING
        TRANSFER_BIN          = LISTOBJECT
        CONTENT_TXT           = content_txt
        CONTENT_BIN          = content_bin
       OBJHEAD              =
        LEN                   = OUTLEN
    EXCEPTIONS
       ERR_CONV_FAILED       = 1
       OTHERS                = 2
    changing
    TRANSFER_BIN        TYPE      SX_BOOLEAN                                         
    CONTENT_TXT         TYPE      SOLI_TAB                                           
    CONTENT_BIN         TYPE      SOLIX_TAB                                          
    OBJHEAD             TYPE      SOLI_TAB                                           O
    LEN                 TYPE      SO_OBJ_LEN                    
    when ran we get an abap dump content_bin                     
    Error analysis                                                                       
        An exception occurred that is explained in detail below.                         
        The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was     
         not caught in                                                                   
        procedure "GET_MEMORY_LIST" "(FORM)", nor was it propagated by a RAISING         
         clause.                                                                         
        Since the caller of the procedure could not have anticipated that the            
        exception would occur, the current program is terminated.                        
        The reason for the exception is:                                                 
        The call to the function module "SX_OBJECT_CONVERT_ALI_RAW" is incorrect:                                                                               
    The function module interface allows you to specify only                         
        fields of a particular type under "CONTENT_BIN".                                 
        The field "CONTENT_BIN" specified here is a different                            
        field type                                                                       
    it looks like i need to set <fs> pointer to the field but i am akwardly at this any help please will do well.
    this is how we used to use the function
    CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW '
          EXPORTING
               FORMAT_SRC      = SOURCE_NAME
               FORMAT_DST      = OUT_NAME
               DEVTYPE         = DEVTYPE
               FUNCPARA        = FUNCP
               LEN_IN          = INLEN
          IMPORTING
               LEN_OUT         = OUTLEN
          TABLES
               CONTENT_IN      = LISTOBJECT
               CONTENT_OUT     = OBJTXT
          EXCEPTIONS
               ERR_CONV_FAILED = 1
               OTHERS          = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    ok i solved my own problem.... i new i could.  here is the results
    first i had to dig into the bapi to find the proper definition to declare in my program i will present the code
    and let you exame the example.
    FORM GET_MEMORY_LIST TABLES   P_MYSECOND STRUCTURE ZLIPOV.
    DATA: LSIND LIKE SY-LSIND,
          LISTTAB LIKE ABAPLIST OCCURS 1 WITH HEADER LINE,
          OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE,
          SOURCE_NAME LIKE SXCONVERT-FORMAT_SRC,
          OUT_NAME    LIKE SXCONVERT-FORMAT_DST,
          DEVTYPE     LIKE SXSERV-DEVTYPE,
          FUNCP       LIKE SXFUNCPARA,
          INLEN       LIKE  SOOD-OBJLEN,
          OUTLEN      LIKE  SOOD-OBJLEN,
          UPDFLG      TYPE I VALUE 0,
          LNCNT       TYPE I VALUE 0,
          LABLNCNT    TYPE I VALUE 0,
          PRVLN       TYPE I VALUE 0.
    this is the added structures for the new fields
    used for SX_OBJECT_CONVERT_ALI_RAW and the rest of the SX_OBJECT_CONVERT family
    data:
         TRANSFER_BIN TYPE  SX_BOOLEAN, " SHOULD BE SET TO X
         OBJHEAD like SOLI occurs 0,
         content_txt   LIKE soli  OCCURS 0,
         content_bin  LIKE solix OCCURS 0.
    CLEAR LISTOBJECT[].
    CLEAR OBJHEAD.
    CLEAR CONTENT_TXT[].
    CLEAR CONTENT_BIN[].
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
              LISTOBJECT = LISTTAB
        EXCEPTIONS
             NOT_FOUND  = 1
             OTHERS     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
       IMPORTING
            COMPRESSED_SIZE =
         TABLES
              IN              = LISTTAB
              OUT             = CONTENT_BIN   " this will receive the data
       EXCEPTIONS
            COMPRESS_ERROR  = 1
            OTHERS          = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      SOURCE_NAME = 'ALI' .
      OUT_NAME    = 'RAW'.
      DEVTYPE     = 'POSTSCPT'.
    TRANSFER_BIN ='X'. " set to x our program will fail to convert stupid but needed
    describe table listtab lines inlen.
    DESCRIBE TABLE LISTOBJECT LINES INLEN.
    SX_OBJECT_CONVERT_ALI_RAW
    SX_OBJECT_CONVERT_ALI_PRT
    SX_OBJECT_CONVERT_OTF_RAW
    SX_OBJECT_CONVERT_OTF_PRT
    SX_OBJECT_CONVERT_INT_RAW
    DESCRIBE TABLE content_bin LINES INLEN.
    CALL FUNCTION 'SX_OBJECT_CONVERT_ALI_RAW'
      EXPORTING
        FORMAT_SRC            = SOURCE_NAME
        FORMAT_DST            = OUT_NAME
        ADDR_TYPE             = 'FAX'  " int or fax
        DEVTYPE               = DEVTYPE
       FUNCPARA              = 255 " this is used to prevent wrapping if beyond 132 characters
      CHANGING
        TRANSFER_BIN          = TRANSFER_BIN
        CONTENT_TXT           = content_txt " returns the data we want to address and work with
        CONTENT_BIN          = content_bin" data is conpressed and in binnary format
        OBJHEAD              = OBJHEAD
        LEN                   = OUTLEN
    EXCEPTIONS
       ERR_CONV_FAILED       = 1
       OTHERS                = 2
    move content_txt[] to OBJTXT[]. " in my case the program origianly used OBJTXT
                                                        "  so i chose to compy the data back here

  • 10g exporting to CSV using client_text_io is not working correctly.

    I have an odd issue which i could do with some help with. I run an function that exports to CSV based on an pre defined record group.
    This has been working fine for many months with various customers. Recently a new customer used it and they have 28k rows in his record group and the export is actually not exporting correctly.
    The record group has a record count of 28331.
    The CSV produced has only 3756 in my CSV file. These are the last 3756 records in the Record group so its as if its overwriting the data as it goes yet all smaller datasets work
    FUNCTION fun_export_csv (vgraphid NUMBER, p_filename VARCHAR2)RETURN BOOLEAN IS
      out_file                      client_text_io.file_type; 
         i                                             NUMBER;
      lv_line              VARCHAR2(5000);
    BEGIN
    rg:=populate_group('RG11_EXP');               
    synchronize;
    lv_line:= ('"GIN","Gin Date","PO Num","PO Required Date","Mat Num","Mat Description","Supplier Part No","On Time Delivery(Yes-1, No-0)"');
    client_text_io.put(out_file, lv_line);
    client_text_io.new_line(out_file,1); 
    For i in 1..get_group_row_count('RG11_EXP') Loop--this count is 28331
    lv_line:= ('"'||get_group_number_cell('RG11_EXP.col1', i )                 ||'"'|| ',' ||'"'||
         get_group_date_cell('RG11_EXP.grn_date', i )                 ||'"'|| ',' ||'"'||                                          
         get_group_number_cell('RG11_EXP.po', i )       ||'"'|| ',' ||'"'||
         get_group_date_cell('RG11_EXP.daterqd', i ) ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.item_no', i ) ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.desc', i )                    ||'"'|| ',' ||'"'||
         get_group_char_cell('RG11_EXP.part_no', i )               ||'"'|| ',' ||'"'||
         get_group_number_cell('RG11_EXP.ontime', i )                    ||'"');
    client_text_io.put(out_file, lv_line);
    client_text_io.new_line(out_file,1); 
    END LOOP;     
    client_text_io.FCLOSE(out_file);
    RETURN TRUE;          

    Hello,
    Try to insert a "synchronize" instruction from time to time:
    i  pls_integer := 1;
    Loop
      If mod(i, 500) = 0 Then
         synchronize;
      End if ;
      i := i + 1 ;
    End loop;
    ...<p>But keep in mind the the CLIENT_TEXT_IO generate a lot of network traffic, so it is better and faster to generate the file on the A.S., then after transfer it to the client machine.</p>
    Francois

  • Address Book/iSync - email addresses moving to phone number fields

    I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
    I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
    I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
    Any thoughts about what in my environment is causing this?
    -John

    Thank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
    Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
    I'm sure this needs to go to a different section...
    -John

  • After installed SP1 for SQL Server 2012, can no longer export to csv

    After installing SP1 today via Windows Update, I am no longer able to export data to csv using the SQL Server Import and Export wizard. I get the following error message:
    "Column information for the source and the destination data could not be retrieved, or the data types of source columns were not mapped correctly to those available on the destination provider."
    "Column "col1": Source data type "200" was not found in the data type mapping file."...
    (The above line repeats for each column)
    The work-around I have to do is to manually map each column in the "Edit Mappings..." option from the "Configure Flat File Destination" page of the wizard. This is an extreme inconvenience to have to have to edit the mappings and change
    each column to "string [DT_STR]" type from "byte stream [DT_BYTES]" type each time I want to export to csv. I did not have to do this before installing SP1; it worked perfectly for months with hundreds of exports prior to this update and
    no need to modify mapping.

    I am running Windows 7 64-bit, SQL Server 2012 Express edition. Again, just yesterday from Windows Update, I installed SQL Server 2012 Service Pack 1 (KB2674319), followed by Update Rollup for SQL Server 2012 Service Pack 1 (KB2793634). This situation was
    not occurring before these updates were installed, and I noticed it immediately after they were installed (and of course I restarted my computer after the updates).
    In SSMS I just now created a test DB and table to provide a step-by-step with screenshots.
    Here is the code I ran to create the test DB and table:
    CREATE DATABASE testDB;
    GO
    USE testDB;
    GO
    CREATE TABLE testTable
    id int,
    lname varchar(50),
    fname varchar(50),
    address varchar(50),
    city varchar(50),
    state char(2),
    dob date
    GO
    INSERT INTO testTable VALUES
    (1,'Smith','Bob','123 Main St.','Los Angeles','CA','20080212'),
    (2,'Doe','John','555 Rainbow Ln.','Chicago','IL','19580530'),
    (3,'Jones','Jane','999 Somewhere Pl.','Washington','DC','19651201'),
    (4,'Jackson','George','111 Hello Cir.','Dallas','TX','20010718');
    GO
    SELECT * FROM testTable;
    Results look good:
    id    lname    fname    address    city    state    dob
    1    Smith    Bob    123 Main St.    Los Angeles    CA    2008-02-12
    2    Doe    John    555 Rainbow Ln.    Chicago    IL    1958-05-30
    3    Jones    Jane    999 Somewhere Pl.    Washington    DC    1965-12-01
    4    Jackson    George    111 Hello Cir.    Dallas    TX    2001-07-18
    In Object Explorer, I right-click on the [testDB] database, choose "Tasks", then "Export Data..." and the SQL Server Import and Export Wizard appears. I click Next to leave all settings as-is on the "Choose a Data Source" page, then on the "Choose a Destination"
    page, under the "Destination" drop-down I choose "Flat File Destination" then browse to the desktop and name the file "table_export.csv" then click Next. On the "Specify Table Copy or Query" page I choose "Write a query to specify the data to transfer" then
    click Next. I type the following SQL statement:
    SELECT * FROM testTable;
    When clicking the "Parse" button I get the message "This SQL statement is valid."
    On to the next page, "Configure Flat File Destination" I try leaving the defaults then click Next. This is where I am getting the error message (see screenshot below):
    Then going to the "Edit Mappings..." option on the "Configure Flat File Destination" page, I see that all columns which were defined as varchar in the table are showing as type "byte stream [DT_BYTES]", size "0", the state column which is defined as char(2)
    shows correctly however with type "string [DT_STR]", size "2" (see screenshow below):
    So what I have to do is change the type for the lname, fname, address and city columns to "string [DT_STR]", then I am able to proceed with the export successfully. Again, this just started happening after installing these updates. As you can imagine, this
    is very frustrating, as I do a lot of exports from many tables, with a lot more columns than this test table.
    Thanks for your help.

Maybe you are looking for