DTW using ODBC and Excel

Has anyone tried using ODBC to an Excel workbook as the input for DTW?  I have gotten the ODBC process to work from Access but I can't figure what is needed for the "simple SQL" when using Excel.  Any thoughts will be greatly appreciated.
Ross Unger
Business-First

Dear Ross,
For data records selected through ODBC, you can use SQL statements to
extract data records from the database.
To prepare data through ODBC, perform the following steps:
Choose Control Panel->Administrative Tools-> Data Sources (ODBC) to
create a Data Source Name (DSN).
Prepare object and sub-object data respectively for importing or
updating the data records selected through ODBC.
For example, when importing the Business Partner's object with the
Contact Person and Address, you separately select the data for Business
Partner and the data for Contact Person and Address through ODBC.
To Extract Data from Different Source, perform the following steps:
In the DTW Wizard Step 2, choose "ODBC" from the drop-down list "Source
Data Type".
Press Browser button, the Extract through ODBC dialog box will appear.
Select DSN from the drop-down list, then enter UserID and Password.
In the Simple Select Statement field, enter the SQL statement to extract
data through ODBC. To preview, press "Test" icon.
Press "Open" icon to specify the selection results to the object.
Note:
If the data files contain both header and item files, you must define
the primary keys, such as RecodKey. For example, for the SQL statement
"Select CardCode as RecordKey", * from OCRD can be applied to
BusinessPartners of the object oBusinessPartners. For the SQL statement
"Select CardCode as RecordKey", * from CRD1 can be applied to
BPAddresses.
If the data files contain only header files, you do not need to define
the primary keys. For example, you can retrieve data from table OACT
using the SQL statement "Select * from OACT" to apply to the object
oChartOfAccounts.
Regards,
Rakesh Pati
SAP Business One Forum Team

Similar Messages

  • How can I connect to the database using ODBC within excel.

    Hi,
    How can I connect to the database using ODBC within excel and just refresh the data when needed.
    Thanks,
    Priyanka
    Edited by: user554934 on Jun 9, 2009 2:53 AM

    This is NOT an APEX relevant question, try posting it in the SQL/PL/SQL Forum..
    Thank you,
    Tony Miller
    Webster, TX

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • I have Microsoft Office 2008 and only use Word and Excel. It takes 980 mb. I am considering replacing it with Apple iWorks 2013. If I do, can I delete Office, and still access and modify my Word and Excel documents?

    I have Microsoft Office 2008 and only use Word and Excel. It takes 980 mb. I am considering replacing it with Apple iWorks 2013. If I do, can I delete Office, and still access and modify my Word and Excel documents?
    I have a MacBook Air and OS 10.9.4

    Ron
    Just adding to what CSound has said.
    Pages and Numbers will change Word and Excel documents when they open and close them.
    Sometimes the change is subtle and sometimes not. With the latest versions of Pages and Numbers, more likely not.
    So don't think you are going to work with MsOffice files without problems. You will always have something not right and in some cases really annoyingly not right. Like having all the text from Pages appear bold in MsWord, or page breaks in the wrong place or some objects and graphics not appearing in one or the other.
    If working between different Operating Systems and MsOffice files, I also recommend LibreOffice. It opens and saves nearly all file formats. Unfortunately not .pages or numbers. Yet. The folks at LibreOffice are busy adding to it all the time, and making sure it works in all Operating systems, Mac, Windows and Linux and they are promising iOS as well soon.
    Peter

  • DTW - Trouble using ODBC and Configuration Files

    I am using SBO SP1 PL2 and DTW 2005.
    I have been making use of saving the configuration for the import of an object and then using the command line to run it, as described in DTW help under "Schedule Run".
    I typically use tab-delimited files saved from Excel and the above method works very well.
    However, I would prefer to use ODBC directly from the template tables I have in a SQL database. It works perfectly using the GUI within DTW, and it lets me save the configuration file, but when I try to run DTW from the command line using ODBC, I get these error messages:
    Can not connect to ODBC data source.
    Can not get SQL handler.
    Does anyone have any suggestions on how I can use DTW from the command line while using ODBC sources?
    Thank you.

    I've got the same problem.
    I solve it once by editing the xml file's <ExID> tag from <ExID></ExID> to <ExID />
    So the problem resides at the XML syntax.
    My problem is that I lost the XML file I used and now I can't make it work again.
    Have anybody found the solution at this problem or is there an updated version of DTW?

  • Want to use MSword and excel docs with OS X10.8.5

    I need to work on my MSword and excel documents.
    I should have done something about that and acturally planned to handle that problem but them I saw "Update to OS X 10.8.5" and did it without daeling my problem of updating MS word and excel.
    Please let me know what I could do, hopelyfully with less cost.
    Thanks!

    Drag them to the OpenOffice icon in the Dock, or use the Open command from within OpenOffice, or select a document in the Finder, choose Get Info from the File menu, click on Open With, select the desired application, and press the Change All button.
    (92743)

  • Move from Windows to Linux or a RT system that uses ActiveX and Excel?

    So I have a Labview Windows application, which access an Excel file via an ActiveX VI.  I want to port this to Linux or even a RT system.
    Can this be done and still access the Excel file?
    Thanks.

    no.
    ActiveX is pure Windows, you can't use this technique on another platform. only thing you can do is to write your data to a file (text or binary) using the file IO functions and then re-read these files with a second app on a windows platform and write it to excel or access.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • Java and Excel

    I am using JTable to bring some information from the database, Is there a way that I can pass that data into an excel sheet so it can be printed in a better format.
    Thank you for your help

    Dear Friends ..................
    Some times i will get this error " [  Micro Soft  ] [ ODBC Excel Driver  ] the Micro Soft jet Data Base engine could not find the object .
    Make Sure this object is exist and that u spell it correctly................. "
    while connecting to excel . see my code ...............
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.text.*;
    * Name: Excel.java
    * Purpose: To demonstrate how to use ODBC and Excel to create
    * a table, insert data into it, and select it back out.
    * Version: Developed using JDK 1.3, but also works with JDK
    * 1.2.2
    * Instructions:
    * 1) Create a new Excel spreadsheet
    * 2) Create a new ODBC data source that points to this
    * spreadsheet
    * a) Go to Control Panel
    * b) Open "ODBC Data sources (32-bit) (wording may be
    * slightly different for different platforms)
    * c) Under "User DSN" tab, press "Add" button
    * d) Select the "Microsoft Excel Driver (*.xls)" and
    * press "Finish" button
    * e) Enter "Data Source Name" of "TestExcel"
    * f) Press "Select Workbook" button
    * g) Locate and select the spreadsheet you created in
    * Step 1
    * h) Unselect the "Read Only" checkbox
    * i) Press "Ok" button
    * 3) Compile and run Excel.java
    * 4) Open Excel spreadsheet and you will find a newly
    * created sheet, GOOD_DAY, with three rows of data.
    * Notes:
    * If you want to select data from a spreadsheet that was
    * NOT created via JDBC-ODBC (i.e. you entered data manually
    * into a spreadsheet and want to select it out), you must
    * reference the sheet name as "[sheetname$]".
    * When you create the table and insert the data using
    * Java, you must reference the sheet name as "sheetname".
    * Also, do not have the spreadsheet open when you are
    * running the program. You can get locking conflicts.
    public class Excel{
         public Excel(){
              setDefaults();
         private static void message(String pMessage){
              System.out.println(pMessage);
         private void setDefaults(){
              setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
              setUrl("jdbc:odbc");
              // ODBC data source named "TestExcel" defined from Control Panel
              setDataSource("TestExcel");
              setTableName("GREAT_CARS");
         public void openDatabase(){
              String file = "E:/projects/jbproject/edelapreport/classes/Excel.xls";
              //use this without setting an ODBC Data Source
              String lConnectStr = "jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=" + file + ";DriverID=22;READONLY=false";
              //use this in the case of an existing DSN
              //String lConnectStr = getUrl()+":"+getDataSource();
              try {
                   Class.forName(getDriver());
                   gConnection = DriverManager.getConnection(lConnectStr);
              }catch (Exception e) {
                   message("Error connecting to DB: " + e.getMessage());
         private void closeDatabase(){
              try{
                   getConnection().close();
              }catch (Exception e){
                   message("closeDatabase(): "+e.getMessage());
         private void createTable(){
              message("createTable() begin");
              Statement lStat = null;
              try {
                   lStat = getConnection().createStatement();
                   lStat.execute("CREATE TABLE "+getTableName()+" ("
                   +" ID INTEGER" +" ,NAME VARCHAR" +")");
              }catch (Exception e){
                   message("createTable(): "+e.getMessage());
              message("createTable() end");
         private void doInsert(){
              message("doInsert() begin");
              Statement lStat = null;
              try {
                   lStat = getConnection().createStatement();
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (10,'Audi')");
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (20,'Mercedes')");
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (30,'BMW')");
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (40,'Audi A6')");
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (50,'Audi S6')");
                   lStat.executeUpdate("INSERT INTO " +getTableName()+" VALUES (60,'Audi 80 Quattro')");
                   lStat.close();
              }catch(Exception e){
                   message("doInsert(): "+e.getMessage());
              message("doInsert() end");
         private void dropTable(){
                   message("dropTable() begin");
                   Statement lStat = null;
                   try {
                        lStat = getConnection().createStatement();
                        lStat.execute("DROP TABLE " + getTableName());
                        lStat.close();
                   }catch(Exception e){
                        message("dropTable(): "+e.getMessage());
                   message("dropTable() end");
         private void doQuery(){
              message("doQuery() begin");
              try {
                   Statement lStat = getConnection().createStatement();
                   ResultSet lRes = lStat.executeQuery("SELECT * FROM "+getTableName());
                   ResultSetMetaData lMeta = lRes.getMetaData();
                   // print out the column headers separated by commas
                   for (int i = 1; i <= lMeta.getColumnCount(); ++i){
                        if (i > 1){
                             System.out.print(", ");
                        String lValue = lMeta.getColumnName(i);
                        System.out.print(lValue);
                   System.out.println("");
                   // print out the data separated by commas
                   while (lRes.next()){
                        for (int i=1; i<=lMeta.getColumnCount(); ++i){
                             if (i > 1){
                                  System.out.print(", ");
                             String lValue = lRes.getString(i);
                             System.out.print(lValue);
                        System.out.println("");
                   lRes.close();
                   lStat.close();
              }catch (Exception e){
                   message("doQuery(): "+e.getMessage());
              message("doQuery() end");
         private void run(){
              openDatabase();
              createTable();
              doInsert();
              doQuery();
              //dropTable();
              closeDatabase();
         public static void main(String args[]){
              message("main() begin");
              Excel lExcel = new Excel();
              lExcel.run();
              message("main() end");
              System.exit(0);
         public void setTableName (String pValue){
              gTableName = pValue;
         public String getTableName(){
              return(gTableName);
         public void setSql(String pValue){
              gSql = pValue;
         public String getSql(){
              return(gSql);
         public Connection getConnection(){
              return(gConnection);
         public String getDataSource(){
              return(gDataSource);
         public void setDataSource(String pValue){
              gDataSource = pValue;
         public void setDriver(String pValue){
              gDriver = pValue;
         public void setUrl(String pValue){
              gUrl = pValue;
         public String getDriver (){
              return (gDriver);
         public String getUrl (){
              return (gUrl);
         private Connection gConnection = null;
         private String gDataSource = null;
         private String gTableName = null;
         private String gSql = null;
         private String gDriver = null;
         private String gUrl = null;
    * Connection to Access without existing DNS
    * Connection con = null;
    * Statement st = null;
    * String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    * String path = "c:/jdk1.3/jswdk-1.0.1/examples/jsp/list/base/bd.mdb";
    * String fullConnectionString = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + path;
    * Class.forName (driver);
    * con = DriverManager.getConnection (fullConnectionString);
    * st = con.createStatement ();
    //Example for SQLServer:
    //db = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=MyServerName;Database=MyDataBase","","");
    //Example for Excel:
    //db = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=c:/temp/test2.xls;DriverID=22;READONLY=false","","");

  • How do I save changes to a document using VPN, Safari and Excel Mac?

    Hi. I'm using VPN to reach documents on a server. I want to make changes to an excel document and save the changes back to the server. I'm using Safari and Excel Mac. When I'm finish making changes I tried to save the document back to the server. The changes was not saved? When I tried it on a PC it works well. Why can't I save the changes? Hope somebody can help me :-) Thanks a lot. Åke from Norway.

    I did this after I wrote this. I have looked at the documentation but I can't find what I am looking for. Is there another way to open a file for viewing that has the full capabilities or using the normal program...one that uses something besides AxAcroPDFLib.AxAcroPDF. The sample that did have a view used AxAcroPDFLib.AxAcroPDF so it wasn't helpful. All I need is normal program functionality of adobe standard or profession within the application. The users have a full version installed on their PC.
    Thanks again.

  • ODBC and XA

    Hi all.
    We are thinking about using ODBC in our tuxedo services to make easy the migration
    between one database and other of a different vendor. We also need to use XA.
    Have some of you information about using ODBC and XA, (conception, problems, ...)
    and how many DB ODBC drivers support it?
    Thx in advance.

    I suspect you're not going to be able to retrieve Spatial data via ODBC. The ODBC protocol doesn't have the capability to request an Object type, so it can't retrieve Spatial. Unfortunately, the ODBC standard doesn't provide any mechanism to reasonably ask for an object or for the ODBC driver to return one.
    Justin

  • Error while accessing excel file using ODBC

    Hi
    I am getting the below error message while accessing excel sheet using ODBC from Oracle:
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from EXCL
    Can anyone help me on this...
    Cheers
    Pradeep
    Message was edited by:
    user634393

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app,  any help?

    Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app,  any help?

    What does the error say?
    A couple of thoughts: the file is corrupted or is password-protected. Corruption is more likely to cause Numbers to crash & Numbers cannot open password-protected Excel files. Try using one of the free Office clones & see what happens.

  • Saving to PDF using VBA in Excel 2007 using security features such as password and print restriction

    Good Afternoon,
    I am wondering if there is a way to implement the security features such as password and print restriction while saving a document to PDF using VBA in Excel 2007. 
    Regards,
    Steve

    Bill,
    Thank you.  I was able to find the security setting section.  The problem I have now, however, is writing the VBA to save to PDF and incorporate the security settings.  I thought if i applied the settings to the Excel document I was working on it would carry over, but this does not seem to be the case.  Any idea's?
    Regards,
    Steve

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • With IPAD 2 may we use softwares similar to WORD and EXCEL?

    with IPAD 2 may we use softwares similar to WORD and EXCEL?

    There are a number of apps that are compatible with Office documents. Apple makes iOS versions of their own iWork apps (Pages, Keynote, Numbers) that can be purchased separately. There are also 3rd party combined suites that cost less than the separate Apple apps. Ones often recommended include Documents 2 Go,  Quickoffice and Office2 HD.
    If you can accept needing a network connection whenever you want to use the apps and have an Office 365 subscription, Microsoft has just released their Office Mobile app, though it has significant limitations. Or a server-based solution such as CloudOn might be an option for you.
    Regards,

Maybe you are looking for

  • One calendar all of a sudden doesn't display

    One of my calendars won't show any of it's appointments. It clicks between a checkmark and a horizontal line and in neither case does it show appointments. It doesn't click to blank in the box. The same calendar on mobile me retained it data but I'm

  • Which tools build a web service application

    i am a greenhorn in web services. i want to build a the example " <INSTALL>/javaeetutorial5/examples/jaxws/helloservice/" This are the steps am following -open the cmd prompt; -type cd C:\Documents and Settings\Guest\Desktop\francis\sun\tutorials\jws

  • What are the new tax patches to be attached for the FY 2008 in India....

    Hi Experts.... What are the new tax patches to be added for the tax calculations for the Financial year 2008.Please advice... regards, sai.

  • Where can I find Kerberos plugin for iDS 5.X?

    I use iDS 5.0 to replace NIS naming service in our Solaris 8 environment. I would like to get user authenticate through Kerberos but don't know what need to be done. Can someone please help. Thank You.

  • Frame around a page

    Hello, I'm using iWeb 3.04. I've made a site, I would like to draw a frame around my page (just a simple rectangle). Is this possible? Thanks!