'GUI_DOWNLOAD '  --- 'DBF' format

When i down load the data from sap into local file using  function module GUI_DOWNLOAD in DB format. The first line of the file is giving F1 F2 F3 ... as the column names . How to exclude these column names in the downloaded file?
Thx in advance....

Dear Misha Denis,
                               please check the below link....
GUI_DOWNLOAD giving error
Regards.
AG.
Edited by: Aravind Gunta on Dec 28, 2009 11:28 AM

Similar Messages

  • GUI_DOWNLOAD - DBF format with header description

    Hi,
    I am using FM GUI_DOWNLOAD. In that my file type is DBF.
    Because i want some fields to be with leading zeros. This is working fine.
    I want the header information as 'Material Description'.
    But in output it displays only first 10 chars as MaterialDe'.
    I tried with 'ASC' format the description of Hearder comes correct. but I am missing leading zeros.
    With the same leading zeros and Description how to solve unicode system problem also.
    How to solve this
    Thanks,
    debe.

        DATA : BEGIN OF it_fieldnames OCCURS 0,
                    name(100),
                    END OF it_fieldnames.
        it_fieldnames-name = 'Plant'.
        APPEND it_fieldnames.
        it_fieldnames-name = 'Material Number'.
        APPEND it_fieldnames.
        it_fieldnames-name = 'Material Description'.
        APPEND it_fieldnames.
    These are all some of the fields.
    And I am using dynamic internal table for display.
    My output data will be in <dyn_table>.

  • GUI_DOWNLOAD Date format

    Hi,
    I am downloading an internal table to excel through GUI_DOWNLOAD function module, internal table  contains a date field and it's getting downloaded in "YYYYMMDD" format. Whereas if we use WS_DOWNLOAD it's getting downloaded with date separator (based on user settings) i.e. slash, dot and etc. Is GUI_DOWNLOAD has this shortcoming?
    Regards,
    Balaji Viswanath.

    IF u want the same formate as in the database upload the file in 'DBF' format.

  • Store output in .dbf format

    Dear All,
    I have to save the output of report in .dbf format in the local pc.
    If any body has some info. Pls share.
    Best regds,
    Albert.

    Hi albert,
    check this sample code:
    TABLES: USR03,DD02L.
    DATA: ZX030L LIKE X030L.
    DATA BEGIN OF ZDFIES OCCURS 0.
         INCLUDE STRUCTURE DFIES.
    DATA END OF ZDFIES.
    DATA: BEGIN OF FLDITAB OCCURS 0,
          FLDNAME(11) TYPE C,
          END OF FLDITAB.
    DATA ITABUSR03 LIKE USR03 OCCURS 0 WITH HEADER LINE.
    DATA TNAME LIKE DD02L-TABNAME.
    SELECT * FROM USR03 INTO TABLE ITABUSR03.
    TNAME = 'USR03'.
    PERFORM GETFIELEDS.
    PERFORM DWDBFFILE.
    FORM GETFIELEDS.
         CALL FUNCTION 'GET_FIELDTAB'
          EXPORTING
              LANGU              = SY-LANGU
              ONLY               = SPACE
              TABNAME            = TNAME
              WITHTEXT           = 'X'
          IMPORTING
              HEADER             = ZX030L
          TABLES
              FIELDTAB           = ZDFIES
          EXCEPTIONS
              INTERNAL_ERROR      = 01
              NO_TEXTS_FOUND      = 02
              TABLE_HAS_NO_FIELDS = 03
              TABLE_NOT_ACTIV     = 04.
         CASE SY-SUBRC.
            WHEN 0.
              LOOP AT ZDFIES.
                   FLDITAB-FLDNAME = ZDFIES-FIELDNAME.
                   APPEND FLDITAB.
              ENDLOOP.
            WHEN OTHERS.
                 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  with  SY-SUBRC.
          ENDCASE.
    ENDFORM.
    FORM DWDBFFILE.
    CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
              FILENAME               = 'C:\USR03.DBF'
              FILETYPE               = 'DBF'
         TABLES
              DATA_TAB               = ITABUSR03
              FIELDNAMES             = FLDITAB
        EXCEPTIONS
             FILE_OPEN_ERROR         = 1
             FILE_WRITE_ERROR        = 2
             INVALID_FILESIZE        = 3
             INVALID_TYPE            = 4
             NO_BATCH                = 5
             UNKNOWN_ERROR           = 6
             INVALID_TABLE_WIDTH     = 7
             GUI_REFUSE_FILETRANSFER = 8
             CUSTOMER_ERROR          = 9
             OTHERS                  = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    reward if helpful.
    regards,
    keerthi.

  • Text to DBF format conversion

    Hi All,
    Can we convert text file into DBF Format for Foxpro, Actually Client want to directly use it as a database file.
    Thanks in Advance

    Hi,
    Go thru the Following Link,
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/cb40cb455611d189710000e8322d00/frameset.htm
    You try this,
    DATA: BEGIN OF ITAB_MATNR OCCURS 0,
    MATNR LIKE MARA-MATNR,
    COUNT TYPE I,
    END OF ITAB_MATNR.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    FILENAME = P_FILE
    <b>filetype = 'DBF'</b>
    TABLES
    DATA_TAB = ITAB_MATNR
    EXCEPTIONS
    CONVERSION_ERROR = 1
    FILE_OPEN_ERROR = 2
    FILE_READ_ERROR = 3
    INVALID_TABLE_WIDTH = 4
    INVALID_TYPE = 5
    NO_BATCH = 6
    UNKNOWN_ERROR = 7
    GUI_REFUSE_FILETRANSFER = 8
    OTHERS = 9.
    IF SY-SUBRC <> 0.
    MESSAGE E699(PP) WITH 'Unable to load input file' P_FILE.
    ENDIF.
    Regards,
    Padmam.

  • Download to excel using GUI_DOWNLOAD : Date format

    Hi Gurus,
    I am downloading the data from an internal table to excel file using FM gui_download. The date field in my internal table is in the format MM-DD-YYYY (stored as Char 10 field). But when it downloads to excel, the date format changes to MM/DD/YYYY. I want to keep original format of MM-DD-YYYY in excel.
    Please help, sure points for helpful answers.
    should i use FM gui_download only, or is there some Other useful FM.
    Regards,
    Abhishek

    Hi,
    Check the code below:
    v_date = sy-datum.
    IF v_date CA '/'.
      REPLACE '/' WITH '-' INTO v_date.
    ENDIF.
    Regards
    Kannaiah

  • GUI_DOWNLOAD - DBF file type

    Hi All,
    I am trying to download a internal table to presentation server using the FM GUI_DOWNLOAD and specifying the file type as DBF.
    Everything looks fine, I see the columns neatly arranged in excel sheet. But I do get an additional row with the column headers like F1, F2.... I need to avoid this.
    I surfed SDN and was not able to figure out a solution, There's a post posted way back in 200 but was not answered. I am just wondering if any one of you have found a solution for this in recent past.
    Please help me with your inputs.
    CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename              = file_name2
            filetype              = 'DBF'
          TABLES
            data_tab              = it_pc_output
          EXCEPTIONS
            OTHERS                = 1.
        IF sy-subrc EQ 0.
          WRITE :/ text-028, file_name2.
        ELSE.
          WRITE :/ text-004.
        ENDIF.
    Thanks,
    Vijay

    *********************************************SOLUTION******************************************************* =)
    TYPES:       BEGIN OF INVCE218,
             DOCUMENTO(11) TYPE  C,               "Código del documento historico.
             FECHA TYPE DATUM,                    "Fecha del documento histórico.
             MONTO(16) TYPE P DECIMALS 4,         "Monto en Bs. del documento histórico.
             ISV(6) TYPE P DECIMALS 2,            "ISV en Bs. del documento histórico.
             UNICO(12) TYPE C,                    "Consecutivo único del documento histórico.
             IVASERIE(5) TYPE C,                  "Literal de la serie fiscal del documento histórico.
           END OF INVCE218.
    TYPES:
           BEGIN OF ZCABECERA,
             CAMPO(10) TYPE  C,
           END OF ZCABECERA.
    DATA IT_INVCE218 TYPE INVCE218 OCCURS 0.
    DATA IT_CABECERA TYPE ZCABECERA OCCURS 0.
    FORM ADD_CABECERA TABLES T_CABECERA STRUCTURE   IT_CABECERA USING CAMPO TYPE CHAR10.
      T_CABECERA-CAMPO = CAMPO.
      APPEND T_CABECERA.
      CLEAR T_CABECERA.
    ENDFORM.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'DOCUMENTO'.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'FECHA'.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'MONTO'.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'ISV'.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'UNICO'.
        PERFORM ADD_CABECERA TABLES IT_CABECERA USING 'IVASERIE'.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
          BIN_FILESIZE              =
            FILENAME                  = 'C:Documents and SettingscarpetaEscritorioINVCE218.DBF'
            FILETYPE                  = 'DBF'
          APPEND                    = 'A'
          WRITE_FIELD_SEPARATOR     = '#'
          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                = ' '
          WRITE_LF_AFTER_LAST_LINE  = ABAP_TRUE
          SHOW_TRANSFER_STATUS      = ABAP_TRUE
          filename                  =
          filetype                  =
          write_field_separator     = 'X'
          trunc_trailing_blanks_eol = 'X'
          trunc_trailing_blanks     = 'X'
          TABLES
            data_tab                  = it_INVCE218
            FIELDNAMES                = IT_CABECERA
          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 'TABLA INVCE218 NO GENERADA ' TYPE 'I'.
        ENDIF.
    Edited by: mant86 on Feb 27, 2012 11:23 PM

  • Need to avoid header When using GUI_DOWNLOAD with file type "DBF"

    Hi ,
    I am downloading internal table to excel on the desktop using GUI_DOWNLOAD with file type "DBF".
    Internal table I use do not have any header.
    But I do see the header in the downloaded file.
    It displays 1 row as " F1  F2 F3..ETC" heading for each column.
    Is there any variable we need to set to suppress header.
    Thank you,
    Kumar

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • Need to remove header When using GUI_DOWNLOAD with file type "DBF"

    Hi ALL,
    I am using GUI_DOWNLOAD function module to downlaod data to csv file . I have taken FILE TYPE as "DBF" . After download , I have found data is downloaded along with a default header . Now how can I avoid Header while downloading.
    Please help me to solve this problem.
    thanks and regards,
    Dilip
    Edited by: dilip kumar on Jun 9, 2009 11:51 AM

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • How to use SQL loader with DBF fixed format record

    Hi everybody!
    My situation is that: I want to use SQL loader with Foxpro DBF format, it similar to case 2 study (Fixed format record) but DBF file has header, how can I tell SQL loader skip header.
    Thank you in advance

    Another option is to apply SQL operators to fields
    LOAD DATA
       INFILE *
       APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' (
       empno,
       ename,
       job,
       mgr,
       hiredate DATE(20) "DD-Month-YYYY",
       sal,
       comm,
       deptno CHAR TERMINATED BY ':',
       projno,
    loadseq "my_seq.nextval")This is a modified control file of Case Study 3 which originally demonstrated the use of the Sequence parameter

  • Error in GUI_DOWNLOAD in background processing

    Hi All,
             We have a program that is using GUI_DOWNLOAD to download the results in text and .dbf format. In foreground it is working fine.But  in background the job is getting cancelled with a log that "Error in Downloading file."
    Please let me know if there is any solution for this.

    Hi,
    GUI_DOWNLOAD  does not work properly in the background.
    You can change the GUI_DOWNLOAD by
    'open dataset .. for output... ' and 'close dataset..' and use 'transfer..' to fill up the file.
    regards,
    Rolf

  • Using append in gui download with file_type = 'DBF'

    Hi gurus,
    I wanna download data from three internal tables into the same excel sheet, i am using append and am also using FILE_TYPE = 'DBF'.
    For this i am using 2 gui_downloads.
    The problem is that my data is getting overwrite in the Excel file.
    but when i am using FILE_TYPE = 'DAT'  , the data is not getting overwrite.
    Now my condition is that i HAVE to use DBF and i also want to append the data into the excel file.
    How do i achieve the same using DBF and append.
    Please help.

    Hello Dilip,
    I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
    1. Why do you need 'DBF' format?
    2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
    Plz revert back.
    BR,
    Suhas

  • In need of a DBF editor

    I need a simple DBF editor where i can copy and edit data and save to the original DBF format.
    It would be great if I can work on and take advantage of some of the tools in Excel (autofill, add, subtract, etc) and then copy and paste the data into the DBF editor and save to DBF format.
    I do not understand why something like this is so hard to find. And the software I have found is horrible and is very limited.
    I already bought a $2 app from the app store but that thing stunk.
    Any ideas?

    You need to tell us what app is saving and using the .dbf files - is it dBase -- or Access?
    In theory, Excel can import .dbf files. Have you gotten that far?
    One alternative is to get Open Office for Mac (it's free). It can open and save in .dbf and Excel formats.
    http://www.openoffice.org/porting/mac/
    Or, what Kappy said

  • Conversion form .mdf to .DBF , Plz see this...

    Hi all,
    Thanks for reading this:
    My Java application needs to read a .mdf database format (SQLServer) and export data (after some processing) in a .DBF format (for use with ArcView GIS).I can read from my SQLServer, but don't know how to generate a .DBF format. Are there any mechanisms in Java to do this?
    Any comments, i greatly welcome.

    I assume that you are using Windows (as you are talking about SQL Server)
    What you could do, is to create an ODBC datasource with the DBF driver.
    Then create the target tables while connected to your ODBC connection (through the JDBC/ODBC bridge). This will create the .dbf files (one for each table). This can be done by sending the CREATE TABLE commands through JDBC. You will probably need to test which datatypes DBF supports (apart from CHAR(n))
    Then you can connect to SQL Server and read the data from there and INSERT the data into your DBF tables.
    If you it's a one to one table copy, you could save your data as SQL INSERT with an appropriate tool and then execute those inserts while connected to you DBF datasource.
    Thomas

  • ETL for Foxpro DBF files

    Hello,
    Could you please inform me whether there is any facility in OWB for importing old Foxpro DBF files?
    We want to make a data warehouse from old Foxpro systems and there are terabytes of data in the foxpro dbf format(It would be big even after the first ETL). So I hope I don't have to use ODBC that could be slow and use something native instead that could be faster.
    Thanks,
    Reza
    P.S we use Oracle 11g Release 2
    Edited by: user13814337 on Feb 19, 2011 6:49 AM
    Edited by: user13814337 on Feb 19, 2011 6:51 AM

    Hi,
    It will be an ETL process, I am not sure if there is anything like java or pl/sql package that can do this ETL, If it is not there then we have to develop it. I hoped OWB could have something for that, but seems there is nothing built-in in OWB for foxpro systems.
    Thanks

Maybe you are looking for

  • Errors between Mail 5 inbox and Server inbox on the Exchange Server

    Hi, I upgraded to Lion recently and it seems that the Mail application struggles with the Exchange interface (although it was already the case for Snow Leopard). Bottom line there are some email messages in my Mail inbox, which in principle mirrors t

  • Want to use single oracle home for multiple database releases

    Hi, I have following 3 different databases. Oracle7 Server Release 7.3.4.4.0 Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit I want to access these databases using single ora

  • 6GB iPod mini formatting at 4GB

    I've just replaced my venerable iPod mini 6GB which is less than a year old with a brand new iPod video 60GB. The mini works just fine and I used it on my Mac but now that I have the new one, I've moved the mini over to my PC. It formats to a full 6G

  • How do I get my WOT addon back? It's being blocked somehow.

    A couple of weeks ago, I ran a comprehensive malware removal process. Thereafter, my WOT (Web of Trust) add-on disappeared from my search function even though it shows that it is enabled. I downloaded it again, to no avail. I don't know if the malwar

  • How to check the unused users in portal.

    Hi Guru, We are doing auditing in Portal server.Can any tell us How to check the unused users in portal?. Regards, Vivek