Download table contents

Hi All,
How do i download a table contents i tried se16 with which maximum we can download is of 96 coumns
How do i download complete table contents including field names like MARA.
Thanks
Martin.

Hi Thanks for ur reply.
I tried this using se16. I tried using se16N suggested by
Rich Heilman the maximum i can download is only 96 fields i mean columns in the oputput list.
The actual output list has 170 fixed columns. how do i download all of them with data?
Is there any way to download all of the 170 columns.
Thanks
Martin

Similar Messages

  • Program to upload and download table content

    Hi,
    I need to create a program which should upload and download table content from PC and to PC.
    How can i develop this program..Should i use BDC or any function module?
    Ezhil.

    The 2 program requested.....
    Program to Download
    REPORT ztable_download.
    PARAMETERS: table LIKE dd02d-tabname,
                                file(50) LOWER CASE.
    DATA: code(72) OCCURS 10,
                w_code(72),
                prog(8),
                msg(120),
                lin(3),
                wrd(10),
                off(3).
    DATA: BEGIN OF rectest,
          tprec(1) VALUE '0',
          nometab(16),
          utente(20),
          data(10),
          ora(8),
    END OF rectest.
    DATA: BEGIN OF recdett,
          tprec(1) VALUE '1',
          tab LIKE table,
    END OF recdett.
    DATA: BEGIN OF rectot,
        tprec(1) VALUE '2',
        tot(9),
    END OF rectot.
    OPEN DATASET file FOR OUTPUT IN TEXT MODE.
    rectest-nometab = table.
    rectest-utente = sy-uname.
    rectest-data = sy-datum.
    rectest-ora = sy-uzeit.
    TRANSFER rectest TO file.
    APPEND 'PROGRAM SUBPOOL.'  TO code.
    CONCATENATE 'TABLES ' table '.' INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    APPEND 'FORM DYN1 USING FILE.' TO code.
    CONCATENATE 'SELECT * FROM ' table '.'
    INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    CONCATENATE 'TRANSFER ' table ' TO FILE.'
    INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    APPEND 'ENDSELECT.' TO code.
    APPEND 'ENDFORM.' TO code.
    GENERATE SUBROUTINE POOL code NAME prog
    MESSAGE msg LINE lin WORD wrd OFFSET off.
    IF sy-subrc <> 0.
       WRITE: / 'Error during generation in line', lin,
                    / msg,
                    / 'Word:', wrd, 'at offset', off.
    ELSE.
       PERFORM dyn1 IN PROGRAM (prog) USING file.
       WRITE: / 'Esportati ',sy-dbcnt,' records.'.
    ENDIF.
    Program to upload
    REPORT Ztable_upload.
    PARAMETERS: FILE(50) lower case,
                               TEST AS CHECKBOX.
    DATA: CODE(72) OCCURS 10,
                W_CODE(72),
                PROG(8),
                MSG(120),
                LIN(3),
                WRD(10),
                OFF(3).
    DATA: BEGIN OF RECTEST,
          TPREC(1) VALUE '0',
          NOMETAB(16),
          UTENTE(20),
          DATA TYPE D,
          ORA TYPE T,
    END OF RECTEST.
    DATA: BEGIN OF RECTOT,
          TPREC(1) VALUE '2',
          TOT(9),
    END OF RECTOT.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE.
    READ DATASET FILE INTO RECTEST.
    WRITE:/ 'Tabella..:',RECTEST-NOMETAB.
    WRITE:/ 'Utente...:',RECTEST-UTENTE.
    WRITE:/ 'Data.....:',RECTEST-DATA,RECTEST-ORA.
    IF TEST = 'X'.
        APPEND 'PROGRAM SUBPOOL.'  TO CODE.
       CONCATENATE 'TABLES ' RECTEST-NOMETAB '.'
       INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'FORM DYN1 USING FILE.' TO CODE.
      APPEND 'DATA W_COUNT TYPE P.' TO CODE.
      CONCATENATE 'SELECT * FROM' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      CONCATENATE 'DELETE' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'ENDSELECT.' TO CODE.
      APPEND ' DO.' TO CODE.
      CONCATENATE 'READ DATASET FILE INTO' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND ' IF SY-SUBRC NE 0.' TO CODE.
      APPEND ' EXIT.' TO CODE.
      APPEND ' ENDIF.' TO CODE.
      CONCATENATE ' INSERT ' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'ADD 1 TO W_COUNT.' TO CODE.
      APPEND 'ENDDO.' TO CODE.
      APPEND ' write: / ''Importati'' ,W_COUNT, ''records''.' TO CODE.
      APPEND 'ENDFORM.' TO CODE.
      GENERATE SUBROUTINE POOL CODE NAME PROG
      MESSAGE MSG LINE LIN WORD WRD OFFSET OFF.
      IF SY-SUBRC <> 0.
         WRITE: / 'Error during generation in line', LIN,
         / MSG,
         / 'Word:', WRD, 'at offset', OFF.
      ELSE.
         PERFORM DYN1 IN PROGRAM (PROG) USING FILE.
      ENDIF.
    ENDIF.
    Edited by: robcom69 on Feb 23, 2010 2:35 PM

  • RFC to Download table Contents

    Hi  All,
    I am looking for an RFC function module  through which I can select all the contents of a given table and subsequently download the table contents  to a flat file.
    Regards
    Martin

    Hi Martin,
    Try This:
    Get the data for Userid(l_user) & password(l_pwd) & host string(l_host).
    DATA: l_slen TYPE i,
    l_error,
    l_pwd(30) TYPE c.
    CONSTANTS: c_dest TYPE rfcdes-rfcdest VALUE 'SAPFTP',
    c_key TYPE i VALUE 26101957.
    connect to ftp server
    l_slen = STRLEN( l_pwd ).
    CALL FUNCTION 'HTTP_SCRAMBLE'
    EXPORTING
    SOURCE = l_pwd
    sourcelen = l_slen
    key = c_key
    IMPORTING
    destination = l_pwd.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
    text = 'Connect to FTP Server'.
    To Connect to the Server using FTP
    CALL FUNCTION 'FTP_CONNECT'
    EXPORTING
    user = l_user
    password = l_pwd
    host = l_host
    rfc_destination = c_dest
    IMPORTING
    handle = w_hdl
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Get the path to which the data file needs to be moved (w_outfile).
    PERFORM download_to_ftp TABLES it_coacode USING w_outfile.
    FORM download_to_ftp TABLES it_tab
    USING l_string TYPE char64.
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = w_hdl
    fname = l_string
    character_mode = 'X'
    TABLES
    text = it_tab[]
    EXCEPTIONS
    tcpip_error = 1
    command_error = 2
    data_error = 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
    RAISING invalid_output_file.
    ENDIF.
    ENDFORM. " download_to_ftp
    Asvhen

  • Download table content into CSV format in background

    Hi,
    I would like to download some 50 tables data content locally into csv file format. As the number of tables are quite more, I am planning to run this in background. GUI_DOWNLOAD doesnt help me here. Can you plz suggest how can I go ahead to download files then.
    I am using the FM 'SAP_CONVERT_TO_CSV_FORMAT' for converting the internal table to csv format. Suggest me if there is any other way.
    Your suggestions would be very valuable.
    Thank you in advance.

    go through this  link...
    Re: how to create a CSV file

  • Upload and download tables  from sap

    hi!
    i need to download tables from sap 46c in order to upload them again in anther sap system.
    is it possible lie doing with programs?
    regards
    yifat

    hi, about download table content, you can using this one, RFC_READ_TABLE.
    It's a RFC FM, so you can call it from your target SAP system, with a available RFC destination already built.
    After call it, do modify TABLE in target system.
    By the way, I think if you really need to copy data to onther SAP system, you can try client copy, or transportation.
    thanks

  • Downloading blob content from a custom table

    In our hosted Apex application, the following code from the Application Express Developer's Guide works great for allowing a user to download blob content from one of our custom tables via a download button. However, the code doesn't work on the Oracle Cloud because the "owa_util" package is no longer available. The code is as follows:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    Besides using web services, does anyone know of a way to do this? Is there a way to add access to the "owa_util" package in the cloud? I have also tried apex_util.get_blob_file_src but that is also unavailable in the Oracle Cloud.
    Thanks,
    Steve

    Following Joel's advice:
    The way I solved this was to split the code between two page processes and one application process. The download button first calls a page process to move the report data into a blob column and then calls another page process which is of "run application process" type. This calls the application level process where the download code, shown below, is called.
    Notice the following changes to the code from the one posted earlier (also from Joel)
    1) added sys.htp.init;
    2) "sys." to all htp, owa and wpg_docload calls
    3) added apex_application.stop_apex_engine; after the wpg_docload statement at the bottom of the script.
    Now the download button launches a "save as" dialog box and the report content is downloaded to the client.
    The code now looks like:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM oehr_file_subject
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    sys.htp.init;
    sys.owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    sys.htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    sys. htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    sys.owa_util.http_header_close;
    -- download the BLOB
    sys.wpg_docload.download_file( Lob_loc );
    apex_application.stop_apex_engine;
    end download_my_file;
    Thanks Joel for your help.
    Steve

  • BSEG table contents download

    Hi,
    My requirement is to download the contents of the BSEG table for a given company code, account type. We have huge data in BSEG table and when I tried to use SE16 for just one month, it is getting timed out. Is there any way to acheive this? Like executing in background or something. It is OK if it is downloaded to application server.
    Thanks in advance.
    Kishore

    One way to do this is to use you date selection criteria and select data from BKPF first. There are indexes for posting date and document date. So that will go releatively quickly. Then use the document numbers and other keyfields to go directly to BSEG to get the data.
    I had a similar requirement a couple of years ago and this is how I did it.
    You can download to either application or presentation server. It's up to you.
    Rob

  • Download database table content into internal table using Function Module?

    HI,
    Experts,
    I need a function module which can download ddic table content into internal table.
    Thank u ,
    Shabeer Ahmed.

    >
    shabeer ahmed wrote:
    > HI,
    > Experts,
    >
    > I need a function module which can download ddic table content into internal table.
    >
    > Thank u ,
    > Shabeer Ahmed.
    Hi Shabeer,
      We don't require a function module to download ddic table content to an internal table. We can use the SELECT statement for the same. Example would be:-
    DATA: <INTERNAL TABLE> type table of <DATABASE>.
    SELECT * FROM <DATABASE> into corresponding fields of <INTERNAL TABLE>.
    Also, function module might be required when you need the data from a remote system, but then it is the developer's task create this function module and the function module should be remote enabled function module.
    This remote enable function module should have the above SELECT query as its code.
    Many Regards,
    Ravi.

  • How to downlaod the complete table contents

    Hi,
    I have got one Z table which has got around 108 columns/field ...now I need to download the contents/data of the table in a spreadsheet with all the fields and also need to download the fields of the table in the other spreadsheet.
    so can you please guide me how can I do this.
    Thanks,
    Rajeev

    hi All.
    I have tried the following code but it didn't transfer anything to the file and it displays the following message:
    0 bytes transmitted, code page 1160
    DATA: it_data LIKE ztable_data OCCURS 0 WITH HEADER LINE.
    DATA: v_fullpath TYPE string,
          v_length TYPE i.
    SELECT * INTO TABLE  it_data
    FROM ztmztable_data  .
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        filename                        =  v_fullpath
        filetype                        = 'DAT'
      APPEND                          = ' '
      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                      = ' '
    IMPORTING
       filelength                      = v_length
      TABLES
        data_tab                        = it_data.

  • Dynamic inmternal table content O/P in BGD ?

    Dear All,
    I've content in my dynamic Internal Table.
    When I'm trying to print the values of that table on the List the output is not proper .
    The problem is not with the values but the alignment of each of the column.
    It's giving some absurd output alignment. (But the data is correct )
    But the same is working fine on the grid.
    But when I'm trying to execute in the BGD and then see the spool output then there is a problem in the alignment .
    So, my Qn is how to resolve this alignment problem ?
    I've a problem even from the Grid.
    The ouput is correct when I see it on the grid.
    But, when I download the content onto the XL then the same problem is coming as of the above scenario.
    Hope I'm clear in explaining my problem !
    Thnaks & regards,
    Deepu.k

    Actually I passed the Table name to the fieldcatalog.
    My internal table is a Dynamic Int. Table and so I've passed the table name for the static fields and for the dynamic fields I dint pass the Table name
    Now, when I removed the table name for the static fields also tehn it's working fine.
    Thanks,
    Deepu.K

  • Tranfer table content in to excel file format

    HI
    I have Created one table .and I want to download this table in to excel file format.how can i do this.

    Hi Vijay
    1) Type the t-code SE16
    2) Type the table name, for example USR02
    3) Press F7 to view the table contents
    4) If you need filter the data in the next screen you could do it.
    5) Press F8 or press the execute bottom.
    In the next screen you will find the result.
    In the menu, follow the options:
    System->List->Save->Local File->Spreadsheet
    Type the excel name, and click generate
    Hope it helps, and please reward points if helpful
    Regards

  • How to extract HTML table contents

    Does someone know how to extract HTML table contents? I want to download a html file which contains table from internet and extract the table contents. Finally, insert the table contents into database.

    To do this you have to user a Parser to parse your html file and retrieve the information you want.
    Please have a look at the following classes:
    HTMLEditorKit.ParserCallback
    ParserDelegator()
    Here is an example which retrives the FRAMSET src of an html file. The purpose here is to find if the html file describes a multi-frame page or not. If so it add the frame src name to a Vector
    HTMLEditorKit.ParserCallback callback =
    new HTMLEditorKit.ParserCallback() {                      public void handleSimpleTag(HTML.Tag t,      MutableAttributeSet a, int pos)
         if (t.equals(HTML.Tag.FRAME))
    {                                          Logger.debug(this, "Frame tag found in "+f.getURL());                      Enumeration e = a.getAttributeNames();
    while (e.hasMoreElements())
                             Object name = e.nextElement();
                             if (name.toString().equals("src"))
                                  Object ob = a.getAttribute(name);                     
                                  Logger.debug("found an src "+ob);
                                  currentFrameSrc.add(new String(ob.toString()));
                   Reader reader = new FileReader(aFile);
                        new ParserDelegator().parse(reader, callback, false);
    It's not clean but I hope it will help :-)
    Stephane

  • Extracting table contents to PC

    Hi
    I would like to know how to download or extract any table contents to an excel work sheet and also in any other format?
    For eg: SE16n, we go to any table (ZTEST); I am unable to download the contents.
    Or for Eg: TABLE USR40, how to extract the list?

    Hello KRP,
    Some of the system doesnot have SE16n and however I have used the same t-code in 4.6c, 4.7 based system and now its not showing in systems based on 7.0 atleast I dont have in CRM ..
    All you can do it goto SE16  >> Enter the table name >> Click on Table Contents >> Click on Settings >> Fields for Selections >>  Choose whatever field you need for your output.
    Now You need to click on run and you have your table contents on your screen >> Now from top menu click System >> List >> Save >>Local File >> Here you need choose Spreadsheet >> Choose the directory from you would like to save the file (desktop) >> Give the filename SIDCLNT100.xls >> Generate
    Second Option Simple one... > Once you have your contents displayed on screen >> instead of clicking System >> List >> save >> Local file .. just issue the command %pc (you will directly get the option to save the file...
    Hope this will clear any doubts ...

  • HT3209 Unable to Download HD Content

    I am somewhat confused and VERY irritated. I have been dealing with the iTunes Library sharing not working since upgrading the software on my Apple TV as well as iTunes, but now on top of that, I can't even download a purchased HD movie to my laptop. I cannot wait over 3 hours while the movie downloads and buffers in the background before I can watch it, what would be the point?
    I have a Windows Vista Professional laptop at home. I am saving up for an iMac, but they are quite pricy, and if I am going to purchase one, I want to get the top of the range, so it will be a little while yet before I can afford to get it.
    Either way, between my husband and I, we have 3 iphone 4's, a 4S, 2 iPhone 5's, an iPod Nano, an iPod Touch, 1 iPad 2nd Generation, 1Pad 3rd Generation, and 2 3rd Generation Apple TV's.
    We don't have a very fast internet connection at home, and I am not going to upgrade it, but we have always coped, because I download our purchases onto the local network, and we are then able to stream the content without much delay.
    HOWEVER, since yesterday, I am receiving the following notification when attempting to download an HD movie purchased:
    >>>
    This cannot be played in HD on this computer.
    If you buy the HD version, you will have to transfer it to an HD-compatible device in order to watch it. Or, you can buy the SD version and watch it on this computer.
    3 Button Options of Cancel | Buy SD for $14.99 | Learn More
    <<<
    1.     My laptop is capable of FULL HD 1080 Playback.
    2.     I am trying to download the content, so that I can stream it on my HD TV using my 3rd generation Apple Tv's, which I have always done. I don't actually want to sit and watch a movie on my laptop.
    What on earth is going on? Are all of my friends and colleagues justified in mocking me for being such a great supporter of Apple and their products and quite right in advising that I rather buy a generic media server and I'll be able to stream anything from any platform to pretty much any device?
    I know that Apple don't really seem to care about the opinions of their subscribers, who would when you're at the top of the stock market with a value of just under $500 Billion dollars, but are you telling me that as a consumer who has vested so much money and time in your products and software that I now need to cut my losses and seek an alternate solution?
    Somehow I don't see this as fair and I look forward to receiving a response from you?
    Kind regards,
    Ursula Bianchina

    >>>
    This cannot be played in HD on this computer.
    If you buy the HD version, you will have to transfer it to an HD-compatible device in order to watch it. Or, you can buy the SD version and watch it on this computer.
    3 Button Options of Cancel | Buy SD for $14.99 | Learn More
    <<<
    I'm not entirely sure this will solve your problem, but . . . here's what I did to be able to download purchased HD movies onto my pc whn I got the 3 button option you described and I quoted.
    Open iTunes and click on the iTunes Store shopping bag. Now, scroll down to the bottom and click on "Purchased" (Important - this is not the "Purchased" playlist thing under the shopping bag). You should see all the movies you've purchased. Go down and "un-check" the box that says "Download HD when available". You can now download your purchased in HD movies on your computer in non HD format. They can now be played via airplay to your atv, but not in HD unless you cloud play them.
    I'm still bothered that I can't download the format I paid for, but this is certainly better than waiting for my apple tv to finish buffering.
    If there's a better solution I hope someone will share.

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

Maybe you are looking for