Download to excel from front end - percent coming as date

download to excel from front end - percent coming as date
Hi,
i'm using below method to dowload to excel from frontend (Backened is R/3).
1) l_string will have the entire xls date ( with sepeartor cl_abap_char_utilities=>horizontal_tab and cl_abap_char_utilities=>newline)
2) Converitng string to xstring using FM SCMS_STRING_TO_XSTRING
3) pumping excel date to browser using  IF_HTTP_ENTITY~SET_DATA
4) creating URL using GUID_CREATE fm.
it's downloding the excel file but funny date.
example
percentage 1.5 coming as Jan 50 and Percent 3.5 coming March 50.
How to avoid this funny conversion.
...Nandha

Hi Nanda,
have you tried to change the number format of the corresponding cells in excel to percentage?
BR Steffen

Similar Messages

  • To upload an excel file from front end using GUI_UPLOAD

    Hi All,
    Please give me the code to upload data from front end to internal table only using GUI_UPLOAD.
    Thanks,
    Kumar

    Check this program , reward points if helpful
    *& Report  ZEXCEL_UPLOAD                                               *
    report  ZEXCEL_UPLOAD    message-id ZMSG.
    tables :T001.
    data : begin of ITAB occurs 0,
          BUKRS like T001-BUKRS,
          BUTXT like T001-BUTXT,
          ORT01 like T001-ORT01,
          LAND1 like T001-LAND1,
          WAERS like T001-WAERS,
          end of ITAB.
    data : WA_T001_EXCEL like ITAB.
    data : IT_T001_EXCEL like standard table of WA_T001_EXCEL.
    data IT_TEXT like ITAB occurs 0 with header line.
    data : IT_RETURN  like standard table of ALSMEX_TABLINE,
           WA_RETURN like ALSMEX_TABLINE,
            WA_RETURNS like ALSMEX_TABLINE.
    data : V_FILE type STRING,V_MASK(10) type C.
    selection-screen  begin of block B1 with frame title TEXT-001.
    parameters P_FILE like RLGRAP-FILENAME .
    selection-screen end of block B1.
    selection-screen  begin of block B2 with frame title TEXT-002.
    parameter : R_TXT  radiobutton group G1 default 'X' user-command C1,
                R_EXCEL radiobutton group G1.
    selection-screen end of block B2.
    at selection-screen on value-request for P_FILE.
      if R_TXT = 'X'.
        V_MASK = '*TXT'.
      elseif R_EXCEL = 'X'.
        V_MASK = '*XLS'.
      endif.
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          PROGRAM_NAME  = SYST-REPID
          DYNPRO_NUMBER = SYST-DYNNR
          MASK          = V_MASK
        changing
          FILE_NAME     = P_FILE.
    at selection-screen.
      translate P_FILE to upper case.
      if R_TXT = 'X'.
        search P_FILE for '*TXT'.
        if SY-SUBRC <> 0.
          message E011.
        endif.
      endif.
      if R_EXCEL = 'X'.
        search P_FILE for '*XLS'.
        if SY-SUBRC <> 0.
          message E012.
        endif.
      endif.
    start-of-selection.
      V_FILE = P_FILE.
      if R_TXT = 'X'.
        call function 'GUI_UPLOAD'
          exporting
            FILENAME            = V_FILE
            FILETYPE            = 'ASC'
            HAS_FIELD_SEPARATOR = 'X'
          tables
            DATA_TAB            = IT_TEXT.
        if SY-SUBRC eq 0.
          message I013 with V_FILE.
          loop at IT_TEXT .
        write :/ IT_TEXT-BUKRS color 4, IT_TEXT-BUTXT color 3,IT_TEXT-ORT01
        color 5,
        IT_TEXT-LAND1 color 2,IT_TEXT-WAERS color 1.
          endloop.
        endif.
      elseif R_EXCEL = 'X'.
        call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
          exporting
            FILENAME    = P_FILE
            I_BEGIN_COL = 1
            I_BEGIN_ROW = 1
            I_END_COL   = 4
            I_END_ROW   = 2
          tables
            INTERN      = IT_RETURN.
        if SY-SUBRC eq 0.
          message I014 with P_FILE.
          sort IT_RETURN by ROW COL.
          loop at IT_RETURN into WA_RETURNS.
            WA_RETURN = WA_RETURNS.
            case WA_RETURN-COL.
              when 1.
                WA_T001_EXCEL-BUKRS = WA_RETURN-VALUE.
              when 2.
                WA_T001_EXCEL-BUTXT = WA_RETURN-VALUE.
              when 3.
                WA_T001_EXCEL-ORT01 = WA_RETURN-VALUE.
              when 4.
                WA_T001_EXCEL-LAND1 = WA_RETURN-VALUE.
            endcase.
            at end of ROW.
              append WA_T001_EXCEL to IT_T001_EXCEL.
              clear : WA_RETURN, WA_T001_EXCEL.
            endat.
          endloop.
        endif.
        loop at IT_T001_EXCEL into WA_T001_EXCEL.
          write :/ WA_T001_EXCEL-BUKRS color 1, WA_T001_EXCEL-BUTXT color 2,
                   WA_T001_EXCEL-ORT01 color 3,WA_T001_EXCEL-LAND1 color 4.
        endloop.
      endif.

  • How to download free SAP GUI front end for ECC6

    Hi,
    How to download free SAP GUI -Front end for ECC 6
    SD

    Ask your Basis people and they  can give it to u, Its take almost 1 GB  of Space or even u can try in the internert for SAP GUI version for free download. SAP GUI for Windows 7.20 patchlevel  is now available.
    You may download it from the SAP Service Marketplace here.
    Best Regards,

  • Can we run in Background job which can pick a file from front end ?

    Hi All,
    I would like to run a report in Background job , for this i need to pick a file from front end services(Local drive or share folder)
    Is there any alternate FM=>GUI_UPLOAD  to upload data from front end services or any other solution for this?
    I am getting error=> "No batch" and " Cannot perform frontend function in batch input mode"
    Could you please help on this ?
    Thanks for your help in advance.
    Regards,
    Prasad.

    Hello Prasad,
    IF you keep your file on a shared folder on your front end, you can access it via OPEN DATASET if your application server has access to that path.
    You can test it out by asking Basis to try and access your front end file from the app server itself.

  • For disable any responsibility we are end date that from front end.

    for disable any responsibility we are end date that from front end. what nay command from backend for disable the responsibilty.?

    Refer the following thread
    delete a responsability
    Re: delete a responsability
    Regards
    -Mahesh

  • In download to excel from bsp hw to increase excel column width to wrap txt

    in download to excel from bsp how to increase excel column width to wrap text
    in each column.
    My client does not want to manually click each cell aftet downloading to excel to see full text in each column

    Hi,
    You can achieve this by formatting your output using HTML table tag.
    Try the following code.
      DATA: lv_output  TYPE string.
      concatenate
      '<table border="1">'
      '<tr style="font-weight: bold; text-align:center; "><td>Name</td><td width="150">Description</td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>First Name</td><td>Some Description goes here..... ....... ...... </td></tr>' cl_abap_char_utilities=>cr_lf
      '<tr><td>2nd Name</td><td>XYZ.......</td></tr>' cl_abap_char_utilities=>cr_lf
      '</table>'
      into lv_output.
      response->set_cdata( data = lv_output ).
    Regards
    Geogy
    PS. Reward the useful answers.

  • Download to excel from alv display

    Hi,
    How to download to excel from alv display.I am using object oriented abap for using alv.If i click export->spreadsheet i am getting fatal error and if i export->local file->spreadsheet i am getting only the column names and heading but no contents.Can anyone tell me how to overcome this problem.
    Regards,
    Sowmya.

    Hi Sowmya,
    Just put break point near FM reuse_alv_grid_display and check if internal table which is used to display output is popullated or not.
    Regards Sachin.

  • Limit the number of record to download to excel from a report

    I am just wondering if there is a way to limit the number of rows that I want to download to excel from a report in apex, right now when I click download to excel it downloads all records. If I am displaying 15 records on report page I want the ability to download only those records.
    Any help with that would be appreciated.
    Kind Regards,
    Sofia.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • How to send the message from front end to XI in sender webservice

    Hi All,
    I am doing webservice to proxy scenario, we want to send the message from front end to XI, front end is java application. can any one please guide me the steps need to done for front end to XI.
    1) we wrote a webservice
    2) i have created data type message type and message interface in IR
    3) i have created sender soap adapter with interface name and namespace.
    4) i have generated webservice in ID
    but how can we send the message from front end to XI sender soap adapter.
    Kind Regards,
    Kiran

    Hi,
    Before going with the SOAP Adapter i suggest you to go through this Disscussion
    Re: about http and soap
    If you are going with the SOAP Adapter means
    >>but how can we send the message from front end to XI sender soap adapter.
    you have to use the XI  Server URL( http://host name:j2ee port/
    Use this as Refference
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Regards
    Seshagiri

  • How to get name of table from front end

    Hi,
    How to get name of table from front end in EBS 11i?
    thanx
    Ashish

    Hi
    Sandeep is correct. The "Help"/"Record History" will give you the table/view name, but sometimes this particular menu function give me a "Record History is not available here." error message.
    I then use the following menu functions (this will also give you additional information, like column details).
    1) Open Forms
    2) Click on Help/Diagnostics/Examine (*you might have to enter the APPS password at this point)
    3) Change "Block" to "System"
    4) Change "Field" to "Last_query"
    The system will populate the "Value" field with the query that was executed in order to populate the form.
    Regards
    Frank

  • Multiple PDF outputs from front-end

    I am working on a report that always shows one page per customer. When user generates report from front-end interface, this will call BI Publisher report and report shows entire customers information in one PDF (with X pages for X customers). Users want to see X number of PDF documents with each PDF having 1 page for customer when this report is invoked on demand from a front-end application. Is this possible in BI Publisher?
    I know there is bursting functionality, but it is applicable to scheduled jobs.
    Please could some one help me to figure out if this is possbile in BI Publisher or not.
    Many thanks in advance.

    so look at library to work with bip by java api
    as example of merging Merging pdf documents using the BI-Publisher API&lt;/title&gt; //&lt;title&gt;AMIS Technology Blog &amp;raquo; Mergin…
    may be some split method exists
    so you can seek for some java api for working with pdf and as your report contain X customers on X pages thus customer per page then you can try to split by page

  • Unable to acces Oracle Apps 11i from front end

    Hi All
    unable to access my production server from front end.after a cold backup, database and apps started normally but It is not accesible from front end.
    details
    bash-3.00$ adapcctl.sh status apps/apps
    adapcctl.sh version 115.47
    Apache Web Server Listener is stopped.
    Apache Web Server Listener :httpd ( pid 571 ) is running
    adapcctl.sh: exiting with status 0
    bash-3.00$ ps -ef | grep Apache
    applprod 614 571 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 609 571 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 591 571 0 01:22:25 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 607 606 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/rotatelogs /applprod/prodora/iAS/Apache
    applprod 592 571 0 01:22:25 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 3455 2625 0 02:14:54 pts/3 0:00 grep Apache
    applprod 610 571 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 571 1 0 01:22:25 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 606 571 0 01:22:26 ? 0:00 /bin/sh -c /applprod/prodora/
    iAS/Apache/Apache/bin/rotatelogs /applprod/prodora
    applprod 615 571 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    applprod 608 571 0 01:22:26 ? 0:00 /applprod/prodora/iAS/Apache/
    Apache/bin/httpd -d /applprod/prodora/iAS/Apache/A
    Thanks
    Rahul

    log file is as follows
    bash-3.00$ tail -40 /applprod/prodora/iAS/Apache/Apache/logs/error_log
    [Wed Oct 13 18:54:18 2010] [error] [client 192.168.66.111] client denied by serv
    er configuration: /applprod/prodcomn/java/oracle/ewt
    [Wed Oct 13 18:54:18 2010] [error] [client 192.168.66.111] File does not exist:
    /applprod/prodcomn/java/oracle/ewt/alert/resource/AlertBundle_en_US.properties
    [Wed Oct 13 18:56:36 2010] [error] [client 192.168.66.243] client denied by serv
    er configuration: /applprod/prodcomn/java/java
    [Wed Oct 13 18:56:37 2010] [error] [client 192.168.66.243] client denied by serv
    er configuration: /applprod/prodcomn/java/java
    [Wed Oct 13 18:56:37 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 18:56:37 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 18:56:37 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 18:56:37 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:01:23 2010] [error] [client 192.168.66.243] File does not exist:
    /applprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:01:25 2010] [error] [client 192.168.66.243] client denied by serv
    er configuration: /applprod/prodcomn/java/oracle/dms
    [Wed Oct 13 19:01:25 2010] [error] [client 192.168.66.243] client denied by serv
    er configuration: /applprod/prodcomn/java/oracle/dms
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/apps/media/oracle/apps/media/splash.gif
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:02:44 2010] [error] [client 192.168.57.8] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:03:31 2010] [error] [client 192.168.57.8] client denied by server
    configuration: /applprod/prodcomn/java/oracle/dms
    [Wed Oct 13 19:03:31 2010] [error] [client 192.168.57.8] client denied by server
    configuration: /applprod/prodcomn/java/oracle/dms
    [Wed Oct 13 19:05:50 2010] [error] [client 192.168.66.188] client denied by serv
    er configuration: /applprod/prodcomn/java/oracle/ewt
    [Wed Oct 13 19:05:50 2010] [error] [client 192.168.66.188] client denied by serv
    er configuration: /applprod/prodcomn/java/oracle/ewt
    [Wed Oct 13 19:05:50 2010] [error] [client 192.168.66.188] File does not exist:
    /applprod/prodcomn/java/oracle/ewt/alert/resource/AlertBundle_en_US.properties
    [Wed Oct 13 19:20:00 2010] [error] [client 107.108.6.97] client denied by server
    configuration: /applprod/prodcomn/java/java
    [Wed Oct 13 19:20:00 2010] [error] [client 107.108.6.97] client denied by server
    configuration: /applprod/prodcomn/java/java
    [Wed Oct 13 19:20:01 2010] [error] [client 107.108.6.97] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:20:01 2010] [error] [client 107.108.6.97] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:20:01 2010] [error] [client 107.108.6.97] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 19:20:01 2010] [error] [client 107.108.6.97] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 20:22:44 2010] [error] [client 107.108.6.22] File does not exist: /a
    pplprod/prodcomn/portal/PROD_flex-prod/favicon.ico
    [Wed Oct 13 20:22:46 2010] [error] [client 107.108.6.22] File does not exist: /a
    pplprod/prodcomn/portal/PROD_flex-prod/favicon.ico
    [Wed Oct 13 20:22:49 2010] [error] [client 107.108.6.22] client denied by server
    configuration: /applprod/prodcomn/java/java
    [Wed Oct 13 20:22:50 2010] [error] [client 107.108.6.22] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Wed Oct 13 20:22:51 2010] [error] [client 107.108.6.22] File does not exist: /a
    pplprod/prodcomn/java/oracle/forms/icons/oracle_logo_light.gif
    Terminated
    [Wed Oct 13 20:25:45 2010] [notice] caught SIGTERM, shutting down

  • How to avoid the "filter cells" during download to Excel from WAD

    How can we avoid seeing the "filter cells" in the link:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a54dbe09411d2acb90000e829fbfe/content.htm
    which we have every time a Bex query is downloaded to Excel from Web application designer?
    The objective is to find a way to avoid the filter cell rows from happening period.... and not asking the users to manually delete the excel rows.
    Edited by: Sharon West on Nov 26, 2008 12:12 PM

    Why is your topicstart all in bold?

  • Connecting to SQl server ( MS acess front end) and pull the data into BI

    Dear all,
    i need to extract the data from SQl server ( MS acess front end) and pull the data into BI .
    i need to know what are the steps need to follow on this..
    can any one help me on this...!
    Thanks,
    Siva

    Hi,
    1. login to sql server u2013 with ur server credentials  and connect.
    2. select ur sql for ex: sap bw
    3. Right click u2013 sapbw - task - export data  From sql to excel I m exporting So give sql details 
    4. Destination u2013 select excel.. and browse where u want to save the fileu2026
    5. give next
    6. select from which table u want to export
    7. click on  next
    8. click on finish
    9. close
    10. go to desktop and open the xyz.xls file
    11. not make it as csv file and load the data to BI as a flat file
    Hope it will help you.
    Regards,

  • PO No is not coming complete in length while downloading in excel from ALV

    Hi to all
    My problem is
    I have declared
    EBELN LIKE EBAN-EBELN.
    length is 10.
    Now in ALV report it is showing complete PO no but
    when downloading itto excel , last digit is cut, only 9 digits are displayed.
    Why it is so.
    Please guide me...
    Thanks & regards
    Anubhav

    Hi
    Please try to declre the field EBELN as character of length 10 in the internal table for ALV.
    EBELN type char(10)
    <REMOVED BY MODERATOR>
    Thanks
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:00 PM

Maybe you are looking for

  • How do I rearrange the order of songs on an album?

    I like to have the songs in the correct order because a lot of the time the artist intended for them to be listened to in a specific order. How do i rearrange songs in an album that are mixed up?

  • Cloning a standard transaction FPO4

    Hi All, I have a requirement where, i have to clone the standard transaction FPO4 ( alphabet O) . I will pass a key date, company code and G/L Account number in the selection screen and in the output report , I would get amounts for the respective do

  • Video Conferencing with NX Pro?

    Just got an NX Pro Webcam from my son and daughter-in-law for Christmas, and seem to have hooked it up without a problem. Can't figure out how to Video Conference with it, however. He has one as well, and that's what we'd like to be able to do. What

  • Ipad software issues

    I could use some help with the problems I created on my husband's ipad1.  He was unable to connect to WiFi at an airport recently so I thought his software would need to be updated.  I went to itunes via my MacBook Pro and did an update. He now has v

  • Photoshop elements 12 editor has stopped working.

    This is the error message I get.  Photoshop elements 12 editor has stopped working.  A problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available. The programme opens and then crash