Copy Tables between SAP's SQL DB to non-SAP SQL db

Hi All,
We have a requirement in which we have to extract selection fields from Material master, material BOM's, Process orders, material selling prices, etc.. from our SAP system ( runs on SQL DB )and send it to a non-SAP SQL db.  Our non-SAP IT staff wants to copy the tables at the DB level, but our SAP resources suggest that a program be written to do the extract. Kindly advice which is the best and recommended option. The data has to be sent periodically.
Regards,
S

It is always not a good practice to access the base tables directly for any reason. You can either write a program or research on SQL Server Integration Services (SSIS) and identify OLE DB drivers to connect to SAP System. I know you can connect to SAP BW from SSIS using SAP BW OLE DB Driver. You can also connect to SAP System from .NET applications. I hope this information helps you.
Regards
RT

Similar Messages

  • Copying tables between schema owners

    In Timesten, can you copy tables across schemas/owners?
    i.e. OWNER_A.TABLE_Y to OWNER_B.TABLE_Y
    Where TABLE_Y has the same definition? Basically, I'd like to be able to backup one datastore and restore it in another datastore that has the same table definitions, but may have a different owner name.
    Thanks,
    Larry

    I'm not completely clear on exactly what you are looking to do. On one hand you ask about copying tables between schemas. This is easily done:
    CREATE TABLE OWNER_B.TABLE_Y AS SELECT * FROM OWNER_A.TABLE_Y;
    This only works for TimesTen tables that are not part of a cache group; specifically the source table can be part of a cache group but the target table cannot. if the target table is part of a cache group then you need to:
    1. Create the cache group containing the target (cached) table.
    2. INSERT INTO OWNER_B.TABLE_Y SELECT * FROM OWNER_A.TABLE_Y;
    But then you mention backup and restore. Since TimesTen backup/retore (ttBackup/ttRestore) works at a physical level you cannot rename/copy tables as part of that. You might be able to use ttMigrate with the -rename oldOwner:newOwner option but there are some constraints around this (one being that PL/SQL cannot be enabled in the database).
    Chris

  • Copy tables between two different computer?

    Hi experts,
    I don't know if is this the correct place to make this question, but I need help with independent tables. Is it possible to copy independent tables to one 6.0 computer to other computer with the same version 6.0?
    Thanks in advance for your answers,
    Best Regards,
    Rebeca

    > We want to copy independent tables from one system in 6.0 to another system in 6.0. We have system A (that was in 4.7 and now is in 6.0) with data relative to Spain and another system, system 2,  that is also in 6.0 with data from other countries. In system B we have a particular mandant for Spain and the problem is that we want to include all the independent tables information from system A to system B and we don't know how to do that... is there anyway that we can do this?
    There is no standard way of putting data of two systems to one system together. It's not just copying tables around (many HR tables are cluster tables and can't be read through SQL without a logic on top) but also speaking of dependent things.
    The only supported way of doing such things is booking an SLO service and let SAP assist you in doing it. Only then you can be sure that it works as expected. But don't underestimate the whole thing. Check
    http://service.sap.com/slo
    --> Consolidate and unite system landscapes
    --> Optimization for HCM
    SAP has the tools and the knowledge to do such things and you can be sure it works. I would not do it on my own by copying tables (most HR tables are client dependent, you'd have to map client numbers, plants, adapt T512W and all that stuff manually).
    Markus

  • How to copy tables between diff data source ?

    if copy tables in same datasource, the problem is easy , just
    CREATE TABLE DESTDB.TABLE as select * from SOURCEDB.TABLE
    but in diff data source, such as copy access table to a non-exsit oracle table,
    need to create the target table first . my problem is how to create the target table by source table structure. though the source table structure can be read out, but parse it and make the SQL statement to create the table is a tough job.
    anyone have good idea ??
    thanks.

    You are explaining a huge topic in simple terms.
    You are trying to do Database Migration from MS-Access to Oracle. It's not all that easy. But if you are restricting to creating few tables then, do a small exercise.
    1. Use ResultSetMetaData to get the no of coluns and their data types.
    2. Construct a create statement by using above information.
    3. Then query the table1 for all the records and insert those records into created table.
    Sudha

  • COMAPRING TABLES BETWEEN ORACLE AND SQL

    HI GUYS
    I HAVE 2 DIFFRENT SERVERS(ORACLE(ERP),SQL SERVERS)
    I WANT TO COMPARE THESE 2 TABLES IN A BEST AND EASY WAY I CAN CREATE PACKAGE CONTAIN SOURCE LOOKUP ETC
    BUT I WANTED TO DO IT IN STORED PROC
    HOPE IT IS A CHALLENGING QUESTATION
    THANKS IN ADVANCE
    ADKR

    Hi ADKR,
    then linked the Oracle server to the SQL Server one and then you can write a stored procedure that for example encapsulates the T-SQL Merge statement (if supported by your SQL Server version).
    Arthur
    MyBlog
    Twitter

  • Sharing tables between relational models

    Can I share (not copy) table between two relational models in SQL Developer Data Modeler? Something like sharing tables between application systems in Oracle Designer. I have one database schema for reusable kernel of many applications and I want to have one relational model for it. And I need to use tables from kertnel in other applications (database schemas). I need for example to make FK between application and kernel table. How can I do it?

    Hi,
    you can use drag&drop from browser to diagram of target model in order to do that. Table becomes read-only in target model. You can use "Synchronize remote objects" to get actual status of such "remote" table
    Philip

  • How to copy the Data From Oracle Table To SAP Table

    Hi Friends,
    We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
    I appreciate any suggestions regarding this.
    Regards
    CSM Reddy

    Hi,
    since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
    To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
    Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement. 
    Regards
             Frank

  • Flow between SAP tables

    Dear Friends;
    I just wanna know the flow between SAP Sales And Distribution Tables.
    Please help me out.
    Regards;
    Parag

    Hi,
    <u><b>Link Between SAP SD, MM & FI</b></u>
    1. In SAP you will always get integration with other modules. SD will interact with FI, MM will interact with SD :-
    1a. Looking at MM and SD interaction first, take the scenario of a third party order process. This process uses a purchase order (which is sent to your vendor). Also invoice verification is used further along the process to check that the invoice you send to your customer is the same material and quantity as that which the vendor sends to you (but obviously shipped 
    directly to your customer). 
    1b. Billing is an SD function. But SAP needs to know, when processing a customer's payment, to which GL account the payment has to be processed. For instance payment of a UK based material would be placed in a different GL account to that of a non-UK based material. Furthermore, a UK based customer may have a different GL account to that of an Export customer. This is configured in Account Determination.
    2. ABAPers are there to essential do some bespoke development. Your integration, or interaction, with them would be when specifying the tables, fields, input fields, a simple process explanation, data mapping (if doing an interface from one system to another) etc.
    <b>The link between SD and MM :-</b>
    1. When you create sales order in SD, all the details of the items are copied from Material master of MM.
    2. MRP and availibility check related data is also taken from MM although you control this data in SD also.
    3. While you create inbound/outbound delivery with reference to a sales order,the shipping point determination takes place with the help of the loading group, plant data, shipping conditions etc. This also refers to Material Master.
    4. The material which you are entering in a sales order must be extended to the sales area of your sales order/customer otherwise you cannot transact with this material.
    There are many such links between SD and MM.
    <b>Now the link between SD and FI :-</b>
    1. Whenever you create a delivery with reference to a sales order, goods movement takes place in the bacgground. eg. In case of standard sales order, you create an outbound goods delivery to the customer.
    Here movement 601 takes place. This movement is configured in MM. Also, this movement hits some G/L account in FI. Every such movement of good s hits some G/L account.
    2. The accounts posting in FI is done with reference to the billing documents (invoice, debit note, credit note etc) created in SD. Thus this is a link between SD and FI
    3. Tax determination: In case of a tax determination also, there is a direct link between SD and MM
    <b>SD Integration points with other modules</b>
    SD module is highly integrated with the other modules in SAP.
    Sales Order –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Costing                        -       CO/ MM
    •Tax Determination              -       FI
    •Transfer of Requirements       -       PP/ MM
    Delivery & Goods Issue –
    Integration Points                      Module
    •Availability Check             -       MM
    •Credit Check                   -       FI
    •Reduces stock                  -       MM
    •Reduces Inventory $            -       FI/ CO
    •Requirement Eliminated         -       PP/ MM
    Billing -
    Integration Points                      Module
    •Debit A/R                      -       FI/ CO
    •Credit Revenue                 -       FI/ CO
    •Updates G/ L                   -       FI/ CO
      (Tax, discounts, surcharges, etc.)
    •Milestone Billing              -       PS
    Return Delivery & Credit Memo -
    Integration Points                      Module
    •Increases Inventory            -       MM
    •Updates G/ L                   -       FI
    •Credit Memo                    -       FI
    •Adjustment to A/R              -       FI
    •Reduces Revenue                -       FI
    <b>SD Transaction Code Flow: </b>
    Inquiry / Document type IN
    Tcode for creation VA11,VA12,VA13. tables VBAK,VBAP
    Quotation / QT
    Tcode for creation VA21,VA22,VA23. tables VBAK,VBAP
    Purchase Order PO
    Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
    Sales Order OR
    Tcode for creation VA01,VA02,VA03. tables VBAK,VBAP
    Delivery LF
    Tcode for creation VL01,VL02,VL03. tables LIKP,LIPS
    Billing MN
    Tcode for creation VF01,VF02,VF03. tables VBRK,VBRP
    To create a sales order we need purchase order number and custmer number.  Before that, to create a purchase order we need to have material no, vendor no.
    To create vendor tcode is 
    xk01(create), xk02(change) , xk03(display)
    Tables are lfa1.
    To create custmer tcode is xd01, xd02, xd03.
    Table is kna1.
    After creating sales order using this no we can create delivery note tcode is vl01.
    Regards,
    Bhaskar

  • Copy single table between two servers

    Hi... I perform a remote copy (SCC9) yesterday, a few months i did another copy and exclude some tables, in the expert setting, now in my copy, we need a table that was excluded in the last copy (yesterday).
    Do you know how to copy that table??
    Thanks in advance..

    Hi
    Check this out
    [Link1|http://sapbasis-security.blogspot.com/2008/04/copying-tables-entries-between-two.html]
    [Link2|http://books.google.co.in/books?id=ASekwAiAXdMC&pg=PA426&lpg=PA426&dq=howtoCopysingletablebetweentwoserversin+sap&source=bl&ots=BS7d2sSz4C&sig=9QWwA7Mlg_7Q6tj_lS4lcMqZz4k&hl=en&ei=T1xVSuTyK6bU6gPh6oXCDw&sa=X&oi=book_result&ct=result&resnum=1]
    Regards
    Uday

  • How to upload sap r/3 table data to ms-sql 2000?

    Dear Friends
    any one can help me out step by step to upload sap r/3 table data to ms-sql 2000.
    Thanks in advance

    hi
    good
    go through this link
    http://www.itcserver.com/blog/2006/06/29/data-transfer-methods/
    thanks
    mrutyun^

  • Join between two tables in SAP ( actual sales vs budget sales)

    I have one table with  actual data sales in SAP .This table has a name   CE11000
    This table contain amounts about : customers ,Products, Quantity of Sales ,amount of sales ,month witch did the sales and the year.
    The other table from SAP has the budget sales . This table is CE21000
    This table contain the same fields : customers ,Products, Quantity of Sales ,amount of sales ,month witch did the sales and the year but all this for budget .
    In the budget table ( CE21000)there are no records for a particular make if it was not budgeted to make a sale.
    Sometimes i have the same problem with the actual data table (CE11000) ...I have not records witch can use to join the results for a report witch take the comparison between actual sales and budget sales.
    I would like to remind you that the report should have four "dimensions"
    a) year
    b) month
    c) customer
    d) type of product
    I try to use left outer join with a customer fields in two tables but i have  simultaneously the field with type of product .
    I want to see in one year (for example february of 2011)  for one customer the type of products (quantity and anmounts) witch buy (ACTUAL)  and that to  compare with the corresponding data if available
    Any help would appreciate
    thanks

    Haggar
    Your first query matches on two conditions BOTH being true. If there is a D and no matching E, you'll see the columns from D but none from E.
    Your second query takes all Emplyees, and lines up 2 (possibly different) rows from D against each
    E columns | D columns (match e.deptid=d.dept_id) | D columns (match ep_id=de_id)
    So you may have any mix of:
    E       | D1      | D2
    E       | nothing | D2
    nothing | D1      | D2
    E       | D1      | nothing
    E       | nothing | nothing
    nothing | D1      | nothing
    nothing | nothing | D2(NB I'm assuming FULL OUTER JOIN is commutative - ie the order is unimportant - but I may be wrong in which case the last row won't occur)
    You will get a different number of rows (as well as different columns) in each case.
    Try it!
    Regards Nigel

  • Flow of tables information between sap and java

    How should i pass the table information from sap to java.
    and how to process the data of a table in the java program. i had seen the examples of JCO. BUT I IS VERY CONFUSING (BCOZ I DON'T KNOW JAVA).
    PLZ IF U DON'T MIND SEND ME CODE SNIPPET TO
    1.GET THE TABLE INTO THE JAVA PROGRAM
    2.PROCESSING THE TABLE INFORMATION IN JAVA PROGRAM
    3.MODIFYING THE TABLE INFORMATION IN JAVA PROGRAM
    4.SENDING BACK THE TABLE TO SAP FROM JAVA PROGRAM

    hi,Kondani
    as JCO offers both Client side and server Side programming.
    you can use JCO to connect SAP ABAP.outbound and inbound.
    1) JCO example 5 is about Server side programming java code. And you can see the data mapping is this example.And you must use sm59 to define the connections in SAP before you start.
    2) example 1 is about client side programming.
    try example 1 first. you can get a table from SAP using BAPI.
    Lots of JCO weblog you can see here
    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&query=jco&selected=9&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv%3Fprttheme%3DCSIN%26QueryString=jco%26SearchPluginName=sdn_weblog%26SelectedCustomProps=resourcetype(value=sdn_weblog)
    Regards

  • Flow of tables informaion between sap and java

    How should i pass the table information from sap to java.
    and how to process the data of a table in the java program. i had seen the examples of JCO. BUT I IS VERY CONFUSING (BCOZ I DON'T KNOW JAVA).
    PLZ IF U DON'T MIND SEND ME CODE SNIPPET TO
    1.GET THE TABLE INTO THE JAVA PROGRAM
    2.PROCESSING THE TABLE INFORMATION IN JAVA PROGRAM
    3.MODIFYING THE TABLE INFORMATION IN JAVA PROGRAM
    4.SENDING BACK THE TABLE TO SAP FROM JAVA PROGRAM

    hi,Kondani
    as JCO offers both Client side and server Side programming.
    you can use JCO to connect SAP ABAP.outbound and inbound.
    1) JCO example 5 is about Server side programming java code. And you can see the data mapping is this example.And you must use sm59 to define the connections in SAP before you start.
    2) example 1 is about client side programming.
    try example 1 first. you can get a table from SAP using BAPI.
    Lots of JCO weblog you can see here
    https://www.sdn.sap.com/sdn/search.sdn?contenttype=url&query=jco&selected=9&content=/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fSDN!2fiViews!2fWCM!2fcom.sap.sdn..wcm.search.search_adv%3Fprttheme%3DCSIN%26QueryString=jco%26SearchPluginName=sdn_weblog%26SelectedCustomProps=resourcetype(value=sdn_weblog)
    Regards

  • How to create database link between oracle and SQL Server

    Hello Everyone,
    Here i have Oracle Database 9i and SQL Server 2005 databases.
    I have some tables in sql server db and i want to access from Oracle.
    How to create a database link between these two servers
    Thanks,

    Thanks for Everyone,
    I was struggle with this almost 10 days....
    I created Database link from Oracle to SQL Server
    Now it is fine.........
    Here i am giving my servers configuration and proceedure how i created the db link...@
    Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
    Machine (1)
    DB Version : Oracle 9.2.0.7.0
    Operating System : HP-UX Itanuim 64 11.23
    IP : 192.168.0.31
    Host : abcdbt
    Machine (2)
    Version : SQL Server 2005
    Operating System : Windows server 2003 x86
    IP : 192.168.0.175
    Host : SQLDEV1
    User/PW : sa/abc@123! (Connect to database)
    Database : SQLTEST (exsisting)
    Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
    Prerequisites in Machine (2):
    a)     Oracle 10g software
    b)     User account to access SQL Server database (sa/abc@123!)
    c)     Existing SQL Server Database (SQLTEST)
    d) Tables (testing purpose) (T)
    Steps:
    1)     Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
    2)     Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
    Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
    You can follow this link also.....
    http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
    I created DSN as
    DSN name : SQLTEST
    User : SA/abc@123! (Existing user account)
    Host : 192.168.0.175 (machine 2)
    Already I have 1 database in SQL Server with the name SQLTEST
    You can create DSN with different name also (not same as db name also)
    3)     Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
    Create init<DSN NAME> file
    Ex: initSQLTEST
    Copy inithsodbc to initSQLTEST
    And edit
    initSQLTEST file
    HS_FDS_CONNECT_INFO = SQLTEST    <DSN NAME>*
    HS_FDS_TRACE_LEVEL = OFF*
    save the file....@
    4)     Configure Listener.ora *(Machine 2)*
    LISTENER_NEW =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    SID_LIST_LISTENER_NEW =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc))
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc) )
    :> lsnrctl start LISTENER_NEW
    5)     Configure tnsname.ora *(Machine 2)*
    SQLTEST11 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = SQLTEST))
    (HS=OK)
    :> tnsping SQLTEST11
    If No errors then conti….
    6)     Configure a file *(Machine 1)*
    Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
    Create a file
    $ vi TEST_abcdbt_ifile.ora
    something=
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
    (CONNECT_DATA=
    (SID=SQLTEST))
    (HS=OK)
    $ tnsping something
    $ sqlplus system/manager
    Your connected to Oracle database *(machine 1)*
    create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
    select * from t@xyz;10 rows selected.
    Thanks,
    Edited by: ram5424 on Feb 10, 2010 7:24 PM

  • Diff between sap query and abap query

    diff between sap query and abap query

    Hi,
    ABAP query is mostly used by functional consultants.
    SAP Query :
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query,:
    As far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    regards,
    vasavi.
    reward if it is helpful.

Maybe you are looking for

  • Report takes too long to display

    Post Author: NGCMatt CA Forum: Publishing I am using Crystal XI, Vsual Studio 2003, SQL Server 2000 and Windows Server 2003. I create a report in Crystal and then add it to my Visual Studio 2003 project. Then using the CrystalReportViewer in Visual S

  • My Adobe Reader toolbar that allows you to save, print, email, etc. the document in the browser window/tab has disappeared and I want to know how to get it back.

    I was unable to view PDF files in Firefox and would get a blank screen telling me I needed to re-install Adobe. I did that and was still unable to view PDF files in the browser window or tab. Now that I have upgraded to the most current version of Fi

  • OpenGL 3.0+ drivers update

    Hi all, When is apple finally updating the OpenGL drivers? This is becoming ridiculous. OpenGL 4.0 drivers are out for all other OSs! and we still have this OpenGL 2.1 drivers (from 2006!!!!) And why is my Geforce 9600 GT no performing as it should??

  • Apache/tomact/jsp/ "save as" popping up.

    Ok, im having a problem and i dont know how to fix it. Ive got apache 2 installed with tomcat and mod_jk installed on a dedicated server. My websites works fine when i go to http://localhost/xxx ... But if i go to the i.p i assigned in httpd.conf und

  • JInternalFrame

    I get no errors on compilation or runtime but my internal frame will not show. Here's the code:         //Options class needed for the Options menubar button         public class Options extends JInternalFrame implements ActionListener{