Reg:Download FM

Hi All,
Iam using the FM GUI_DOWNLOAD to download the table data to an excel sheet.
But if the Output field contains any characters like -,;,# then data in the excel sheet is shifting to next column.Kindly suggest me how to proceed.
Thanks & Regards,
Padmasri.

Hi,
Declare as following and give filetype as DBF and check the output.
se sample code.
DATA: w_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE                    =
      filename                        = w_file
   filetype                        = 'DBF'
    append                          = ' '
   write_field_separator           = w_tab
    HEADER                          = '00'
    TRUNC_TRAILING_BLANKS           = ' '
    WRITE_LF                        = 'X'
    COL_SELECT                      = ' '
    COL_SELECT_MASK                 = ' '
    DAT_MODE                        = ' '
    CONFIRM_OVERWRITE               = ' '
    NO_AUTH_CHECK                   = ' '
    CODEPAGE                        = ' '
    IGNORE_CERR                     = ABAP_TRUE
    REPLACEMENT                     = '#'
    WRITE_BOM                       = ' '
    TRUNC_TRAILING_BLANKS_EOL       = 'X'
    WK1_N_FORMAT                    = ' '
    WK1_N_SIZE                      = ' '
    WK1_T_FORMAT                    = ' '
    WK1_T_SIZE                      = ' '
  IMPORTING
    FILELENGTH                      =
    TABLES
      data_tab                        = it_extractchar
   fieldnames                      = it_header
EXCEPTIONS
   file_write_error                = 1
   no_batch                        = 2
   gui_refuse_filetransfer         = 3
   invalid_type                    = 4
   no_authority                    = 5
   unknown_error                   = 6
   header_not_allowed              = 7
   separator_not_allowed           = 8
   filesize_not_allowed            = 9
   header_too_long                 = 10
   dp_error_create                 = 11
   dp_error_send                   = 12
   dp_error_write                  = 13
   unknown_dp_error                = 14
   access_denied                   = 15
   dp_out_of_memory                = 16
   disk_full                       = 17
   dp_timeout                      = 18
   file_not_found                  = 19
   dataprovider_exception          = 20
   control_flush_error             = 21
   OTHERS                          = 22
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
Regards
Bala Krishna

Similar Messages

  • Reg: Download alv grid data with top of page into excel sheet

    Hi All,
    I have a selection screen with radio button for download .
    If that radio button was selected then the data will download into excel sheet (like if we execute normal ALV grid display from there we can download top-of-page and body as it is).
    AOO : 2009P               
    Fiscal year : 2009               
    Posting period : 00               
    Local Currency : USD               
    CO Area Currency :               
    Accounting standard:               
    Sector : 23               
    BB code     Period Value LC     Periodic Quantity
    AHDKGKAJ   200                         0

    Did not get your question

  • Reg: Download report into Excel file

    Hi All,
    While downloading the ALV report into excel file(System -> List -> Save -> Local file) or (List -> Export -> Local file), i cannot download full report in to excel. Even though the report contains just 200 rows(I can able to download about 90 lines).
    Some reports can able to download all the data, even the report is very big. Currently I am blind to solve, anyone can help me to solve this issue.
    Thanks in advance.

    The most elegant way of downloading ALV display data to EXCEL is displaying the excel in the SAP GUI screen itself.  Select "Excel in Place" and then save it from there. Before that you need to let the VB script of SAP know as trusted macro. This is done by opening a blank excel file then go to Tools > options > Security > Macro Security > Trusted Publishers (tab) > (check) Trust access to Visual Basic Project.  This activation is one time activation. Once you do this you can see ALV display exactly like in normal ALV with all the colors fields etc.

  • Reg: Downloading  and Uploading Date from Oracle Forms11g to Excel

    Hi All,
    We are migrating to Oracle Forms11g from oracle forms6i , i need to knwo how the Report can be generated in 11g to Ecxel . For Uploading and Downloading.
    Please suggest any idea and suggestions.
    Thanks in Advances
    Gunisetty Venkatesulu

    Hi All,
    Any idea to upload and download to excel in Oracle forms11g using webutil , excel interaction should be on Client system .
    Uploading time excel should open in Client sysetm.
    Downloading Time User will select the Excel file from Client system.
    Please give any idea or suggestions will be appreaciated for this. Iam new to webutil.
    Gunisetty Venkatesulu

  • Reg: Downloading the internal table into excel file.

    Hi,
    My requirement is i am collecting data in the internal table and i have to download the contents in an excel file and i have declared like this.
    PARAMETERS : x_test    TYPE string
                          DEFAULT 'C:\temp\file.txt'.
    I have given the default file path  like this and i am using the function module .
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          FILENAME                      = OUTPUT_PATH
          FILETYPE                      = 'DAT'
    IMPORTING
      FILELENGTH                      =
        TABLES
          DATA_TAB                        = INT_INPUT
      FIELDNAMES                      =
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22.
    My requirement is i dont want to change my extension as .txt from .exl to my parameter addition and in the function module the file type should be 'dat' only and in the runtime i want to change the file name which i have given in the .
    PARAMETERS : x_test    TYPE string
                          DEFAULT 'C:\temp\file.txt' this file.txt into datas.xls.
    it would be grateful if some one share some valuable views to wards this query
    Thanks and Regards,
    Keny

    Hi,
    Use this code.
    It will ask for the file name...there u can change.
      data : l_filename type string,
             l_filetype type char10,
             l_path type string,
             l_fullpath type string.
      l_filetype = 'DAT'.
    *Get the file name
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
        EXPORTING
          FILE_FILTER          = '*.DAT'
          INITIAL_DIRECTORY    = 'C:\'
        CHANGING
          FILENAME             = l_filename
          PATH                 = l_path
          FULLPATH             = l_fullpath
        EXCEPTIONS
          CNTL_ERROR           = 1
          ERROR_NO_GUI         = 2
          NOT_SUPPORTED_BY_GUI = 3
          others               = 4.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      check l_fullpath is not initial.
    *Download file
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
          FILENAME                = l_fullpath
          FILETYPE                = l_filetype
        CHANGING
          DATA_TAB                = t_data_sum[]
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          NOT_SUPPORTED_BY_GUI    = 22
          ERROR_NO_GUI            = 23
          others                  = 24.
      IF sy-subrc NE 0.
        MESSAGE e398(00) WITH sy-subrc ' Error downloading file' '' ''.
      ENDIF.
    Regards
    Sandeep REddy

  • Reg: downloading of trial version.  SAP NetWeaver CE 7.2 - Server

    Hi,
    I tried downloading the sap netweaver trial version SAP NetWeaver CE 7.2 - Server.  It says  "Unfortunately we have trouble completing your download request. Please contact [email protected] for further support".  I wrote to them, several days have passed, no reply from them.  Can anyone help me in getting this software.  thanks.

    Hi;
    Second site to download., not that I know of. I see  people  bring up the issue often, and I believe them.  But I canu2019t explain why,  a friend of mine just downloaded  two files successfully.
    Cleaning up cookies and internet temp files are related  somewhat to the issue.  But how reformatting your hard drive will help on this downloading problem ? Regards. 
    Jen.
    Edited by: Jen Yakimoto on Aug 13, 2010 7:34 PM

  • Reg : Download the data from dashboard to Oracle DB Tables

    Hi,
    I want to download the all data at once from the dashboard without column headings or select(using SQL Query) the data . Is it possible ? Please help me on this .
    Edited by: 999 on Jul 26, 2009 11:44 PM

    hi,
    even i do not understand why you want to do it..
    (Bi just make sql queries at your Db,so the results are the same).Now,in order to compare them it is better ,to do the opposite....
    make a table with 2 columns,which contain result + description......and put it at your star shcema...and so on...
    Otherwise , in your situation,you need write back capabilities ///at every report...in order to fill a table which will be compared with your values.....
    i hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Reg : Download pdf,word documents

    Hi ,
    How to download the Pdf , word doc with data. Please give me clear idea.
    Thanks
    Risha

    Hi,
    What exactly do you need, do you need to dowmload the data of a table to an word file or an pdf?
    If that is the case why dont you downloasd the data into en excel file
    If you want to download the data into an excel refer the following blog
    /people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
    Thanks
    Jeet

  • Reg download to excel sheet

    Hi
         I have to download table contents to excel sheet for printing purpose,or is there any other facility through which we can directly print the table data?
        please explain in detail.
    thanks
    prajakta

    Hello,
    Try If the following code help you
    //Take This is sample data in table with three records
    String str[][]={{"One ","Hyd","MG","Manager"},{"Two","Chennai","ASM","AsstManager"},{"Three","Chennai","SREX","SrExecutive"},{"Four","Hyd","EX","Executive"}};
    for(int i=0;i<str.length;i++)
         String aa[]=str<i>;
         byte b[]=aa[0].getBytes();
         fos.write(b);
                    fos.write("\t".getBytes());
         b=aa[1].getBytes();
         fos.write(b);
         fos.write("\t".getBytes());
        b=aa[2].getBytes();
                    fos.write(b);
         fos.write("\t".getBytes());
         b=aa[3].getBytes();
         fos.write(b);
                   fos.write("\t".getBytes());
         fos.write("\n".getBytes());
    // Find the URL of this File and bind to Context Using Following Code
    FileInputStream fis = new FileInputStream(f);
               FileChannel fc = fis.getChannel();
               byte[] data = new byte[(int)(fc.size())];
               ByteBuffer bb = ByteBuffer.wrap(data);
               fc.read(bb);
                IWDCachedWebResource objCachedWebResource = null;
               if (data != null)
                   objCachedWebResource = WDWebResource.getWebResource(data,WDWebResourceType.XLS);
                   objCachedWebResource.setResourceName(f.getName());
               wdContext.currentContextElement().setResource(objCachedWebResource.getAbsoluteURL());
    Regards
    LakshmiNarayanaChowdary.N

  • Reg: ALV report -  output download

    Hi Friends,
    I am having one issue reg download of  ALV (Grid display) report output. we are having vendor number at 1st colomn. It's displaying correctly in output.
    (eg:0000100069). But, when I download the output into a excel file, last digit of the vendor number getting truncated. (eg: 100069 becomes 10006). 
    Kindly help me regarding this ..
    Thanks in advance.
    Regards,
    Bharat.

    Hi,
    The problem is in formatting in Excel. U download the data. Then select the column u want to format, right click and select format cells. In that, choose Number and assign decimal places to 0. U will get according to the format u needed.
    I worked in this, and got as per the specified format.
    Reward if found useful.

  • Error in creating Java Users during Solution Manager installation

    Hi gurus,
    First time trying to install SAP.
    Red Hat Linux 4
    Oracle
    jdk 1.4.2_11
    While installing the Solution Manager, it errored when it was creating Java Users, SAPJSF, J2EE_ADMIN and J2EE_GUEST.
    The error description read "jco$exception: rfc_error_system_failure: invalid request".
    I want to create these users manually and continue with the rest of process.
    I searched lots of entries, notes, etc., but somehow, my "old" pair of eyes (and brains, too) failed to come up with something I could understand.
    So, gurus, please help, help, help!!
    There are no GUI version of anything installed, no Virtual Admin, no nothing like that. I have to rely on good old unix (Linux) command to do (add users) this.
    Can you please, please post the instructions (step-by-step)? Please have a pity on me since this is my very first time dealing with SAP.
    Thanks and regards.

    Creating users manually is not the intension of the SAP Installation tool. There are other solutions available
    A good starting point is to check if SELinux is enabled or disabled. I've seen lots of broken installations on Red Hat because SELinux does not allow the installer to create users. Check if in /etc/selinux/config  the setting
    SELINUX=disabled
    is set.
    I see, that you are using JDK 1.4.2_11. Is this the Sun JDK? In case you are on x86_64 you have to use the IBM JDK instead. You can download it from <a href="https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=lxdk&S_PKG=amd64142sr7&S_TACT=105AGX05&S_CMP=JDK&lang=en_US&cp=UTF-">here</a> .
    Also a new SAPINST may help. The current Installation Master CD can you download here:
    http.//service.sap.com/swdc
    -> Download
    -> Installations and Upgrades
    -> Entry by Application Group
    -> SAP Technology Components
    -> SAP SOLUTION MANAGER
    -> SAP SOLUTION MANAGER 3.2/4.0
    -> Installation and Upgrade
    -> LINUX
    -> ORACLE
    51032006       SAP Solution M. 4.0 SR1 Inst. Master **
    Best Regards,
    Hannes Kuehnemund

  • Problem EP7 with Win 2000

    Hi experts,
    Almost end users portal have OS win 2000 and IE 6. When those users are logged in into ep7, the system shows the following error “EPCM is undefined”. That only happened with users in win2000 because in winXP all works fine.
    Please help me

    Hi Nelson,
    I had same problem like "EPCM  is undefined". I applied the solution given in the link above but it did not work then i found another solution for that problem.Just download the registry file in below and run it then restart your pc and try run portal again on the computers which have  problem .
    <a href="http://www.fiddlertool.com/dl/IE6SP2.reg">Download</a>
    Regards,

  • Jvm for WM 5.0

    Hi,
    I have got a new PDA, Dell Axim X51v. I want to writing an application java but I have some problems to find a compatible java virtual machine.
    Someone knows something with regard to?
    Please, help me!
    thanks
    Marty
    Message was edited by:
    24marty83

    For WM 5.0 you will find 2 JVMs
    One is for CDC and the other one MIDP/CDLC
    So depending on the project you want you will have to chose.
    J9 JVM last version is 6.1 for both.
    here is a download link, note that you need to be registererd on IBM website(but if not, you can do it, it's free, just takes a few minutes to feel the form fields).
    https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?pkgid=&S_SRCID=weme&source=weme&S_TACT=104CBW71&S_CMP=&S_PKG=dl61_win&s=&ltype=input&l=English+U.S.&mtype=input&m=download&id=2006-04-06+13%3A40%3A42.143397R&fam=&cat=&cp=UTF-8
    You will be asked to loggin and after that you get the download page:
    What you need is:
    CDC 1.1/Foundation 1.1/Personal Profile 1.1 for Windows Mobile 5.0/ARM
    Executable file
    ibm-weme-wm50-arm-ppro11-6.1.0-20060321-073315... (45.3MB)
    download using http
              Download now
    OR
    CLDC 1.1/MIDP 2.0 for Windows Mobile 5.0/ARM
    Executable file
    ibm-weme-wm50-arm-midp20-6.1.0-20060321-073242... (41.2MB)
    download using http
              Download now
    Hope it will help,
    regards,
    Romain

  • Correct version of Java SDK for Red Hat 4 ES on x86_64

    I need to install the Java SDK for Red Hat 4 ES on x86_64 and I'm unable to find the correct version to download.
    Note 716604 says to download 1.4.2_13 at java.sun.com but the I can't find the Linux x86_64 bit version.  Note 941595 is for Windows and Solaris only.
    Red Hat's site mentions two versions; java-1.4.2-ibm and java-1.4.2-bea.  I cannot find any SAP notes that mention those names.  Has anyone used these successfully on Red Hat 4 x86_64?
    Does anyone know where I can download the correct version of Java SDK?
    Thanks

    <a href="https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=lxdk&S_PKG=amd64142sr7&S_TACT=105AGX05&S_CMP=JDK&lang=en_US&cp=UTF-8">https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=lxdk&S_PKG=amd64142sr7&S_TACT=105AGX05&S_CMP=JDK&lang=en_US&cp=UTF-8</a>
    I can open that link without a problem.
    Check again...
    Markus

  • Indexing Lotus Notes databases: missing LCPPN30.DLL

    Hi,
    I'm trying to get MOSS 2007 to index some Lotus Notes databases. I've read through some blogs on how to do this (here, here and here) and also read the relevant chapter on page 227 from Patrick Tisseghem and Lars Fastrup's brandnew book "Inside the Index and Search Engines: Microsoft Office SharePoint Server 2007" (which I think is a must-have for anyone involved in SharePoint Search).
    However, I cannot get past the stage where you have to run NotesSetup.exe (which is located in the SharePoint install directory). This executable depends on "LCPPN30.DLL", a DLL from IBM that according to documentation I mentioned above should be distributed with IBM's Lotus C++ API download. However, I've downloaded all Lotus C++ API versions from the IBM site (there were three at the time of writing), but they don't contain this DLL. The DLLs I found were "LCPPN30i.DLL", "LCPPN70.DLL" and "LCPPN80.DLL".
    Looking at the filenames it looks like those DLLs I downloaded are all newer versions of the DLL I need. The version to which NotesSetup.exe is built doesn't seem to be available anymore. Is there any solution to this? I've already tried renaming the DLLs, but (as expected) this crashed NotesSetup.exe.

    Yep, really hard to find! :(  The version that contains the file is
    Lotus C++ API Toolkit Release 3.0 for Windows English US
    Finally found it on
    https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=ESD-SUPPORT&S_PKG=CR3DNNA&S_TACT=104CBW71&lang=en_US&cp=UTF-8 thanks to Mei Ying's Tech blog
    http://meiyinglim.blogspot.com.es/2008/07/link-to-download-lotus-notes-c-toolkit.html :)

Maybe you are looking for

  • How do i get contact photos to show up in imessage conversation on iPod Touch

    I have an iPod Touch 4th generation running ios 5.0.1.  When conversing through iMessages (Messages) on my iPad 2 small photos of my contacts show in the discussion window which is great because it helps to keep track of the conversation.  However, o

  • Audio cuts out at times for a few seconds with VOD

    While watching VOD the audio will cut out at times when the program is playing.  I have reset the boxes, and router with no change.  I have read on a post that someone had pixilation issues and the Verizon techs hooked up a cat5e from the ONT directl

  • Can not get #TITLE# to work in Body of a template

    I have the following code in the body section of a template that I am using, and the #TITLE# always diplays as #TITLE#. Why will it not translate to the title of the module? <BODY bgcolor="#ffffff" leftmargin="0" marginwidth="0" topmargin="0" marginh

  • How to insert into a table using a procedure in a trigger

    I have following trigger and based on the some condition, it should inser a row in to a table using the procedure: CREATE OR REPLACE TRIGGER RSSC.RR_SERV_ADD_ON_REQ_bu before update on RSSC.RR_SERV_ADD_ON_REQ for each row DECLARE lr_appr_trans_hdr AP

  • What are your future component database plans?

    I have been a longtime user of Multisim, Ultiboard, (and Ultiroute) power pro edition.  This includes the PartMiner days before NI bought EWB.  While component manufacturers commonly have component databases for use in the suites of your competitors,