+ Reply to Thread
Results 1 to 8 of 8

Extract table data from SAP using excel macro

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    60

    Extract table data from SAP using excel macro

    So, I've tried and tried... I need to copy nested data out of a table that I can not seem to get, here is the basic code. I've tried many different ways and have failed miserably so i'm now looking to you fine nerds that may be a bigger nerd than I... I need to capture data from a nested SAP table (table name below), and cannot seem to find a command that will copy the data from SAP into anywhere. Even if this would include writing a script in SAP, if anyone is willing to work with me to figure this out, I can give you mad rep points? :-) or send you one of my bands albums for free? (www.weliketorock.com) Or maybe just sent you a virtual hug and high five?

    If it helps... I know the exact size of the table, and the elements in the table, some cells filled, some empty. But even if it's a generic size, I could still work with that if I could just get the damn data out of SAP and into Excel. Also, I don't have admin rights, so I can't use many (probably helpful) transaction codes.

    HTML Code: 
    Last edited by billyjo182; 06-07-2017 at 09:59 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract table data from SAP using excel macro

    If you have at least read-only access to the SAP database, you can use MS-Query to import it. I can help you with getting MS-Query set up, and show you how to use Excel Tables and a dozen lines of VB code to alter the query "on the fly" so you can pass parameters to queries too complex for MS-Query to display graphically.

    You will need the appropriate Oracle drivers on your machine.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-29-2017
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    60

    Re: Extract table data from SAP using excel macro

    dflak, I sent you an inbox message, if you have time check it out please.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract table data from SAP using excel macro

    Here is the instructions on ODBC if you need them.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-29-2017
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    60

    Re: Extract table data from SAP using excel macro

    Ok, I followed most of that, I'm attaching some pictures of the options my work computer is giving me, maybe you can guide me from here?

  6. #6
    Registered User
    Join Date
    03-29-2017
    Location
    Florida
    MS-Off Ver
    2010
    Posts
    60

    Re: Extract table data from SAP using excel macro

    Ok, I followed most of that, I'm attaching some pictures of the options my work computer is giving me, maybe you can guide me from here? I'll have to upload it when I get home, work computer is not working very well right now.

  7. #7
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract table data from SAP using excel macro

    Standing by

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Extract table data from SAP using excel macro

    You can get Oracle Drivers here: http://www.oracle.com/technetwork/da...ft-098155.html.

    You'll need to know the version of Oracle you have. Your DBA should have that answer.


    Also, if you don't have a tool to run Oracle queries, WinSQL works well and there is a free version: http://web.synametrics.com/WinSQLDownload.htm. If you can get it to run in WinSQL, you can get it to run in MS-Query.
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 AM
  2. Extract data from Excel table in PowerPoint
    By gshockxc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2013, 05:51 PM
  3. Extract Data from Powerpoint Table to Excel
    By nouri31 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 10:10 AM
  4. Macro to extract table data from website into my excel file
    By garbisrobert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2012, 02:38 PM
  5. Macro to extract a complete data table from one WB to another
    By AGrace in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-14-2010, 12:34 AM
  6. [SOLVED] Extract data from SQL Server table into excel
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2010, 07:02 AM
  7. Need macro to extract data from 2D table
    By wingie in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2008, 01:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1