Access sap tables directly

hi
i am trying like this using jdbc.... to sap connection
conn = DriverManager.getConnection(
"jdbc:oracle:thin:@10.10.88.111:50000","username","password");
but it is throwing ioException: get minus one from a read call
pls help me....
thanks

Please refrain from opening a new thread with the exact same question. There are plenty of resources on the net with examples on how to create and use a jdbc connection. Simply search for "jdbc example" or something similar in google and you will get thousands of results.
JDBC connections to a DB used by SAP are no different then any other jdbc connection to a DB, so any example would be valid.
regards,
Dion

Similar Messages

  • Accessing sap tables data and display in webi

    Hi all,
    i installed business objects edge series.
    i want to access SAP tables data and display in webi for adhoc reporting.
    Is there any process to achieve this.

    Hi
    currently (April 2010) you have the following options:
    1. You load your R/3 data into an SAP BW and use universes based on BEx queries to create WebI reports
    2. You can use SAP rapid marts. They contain Data integrator mappings (you need an installation of the DI for this) to extract and load your SAP R/3 data into a relational database. Additionally they provide universes (based on a relational schema) hich ill allo you to build WebI reports.
    3. You can use the R/3 connector for the Data Federator (You need a DF installation for this). Please note that the R/3 connector is not yet a product rather just a PROTOTYPE. Take a look here: SAP BusinessObjects Web Intelligence Reporting for SAP ERP [original link is broken]
    4. You can try to access the underlying database directly using the appropriate DB drivers. Please note that this is NOT RECOMMENDED. This way you cannot leverage security defined on the R/3 side in your WebI reports and you will not be able to access all data as available in R/3 since some of them are stored encoded/compressed in the underlying tables.
    5. Instead of WebI you can use Crystal Reports and the R/3 drivers (eg. SAP Tables, Functions, Cluster) provided when installing the integration kit for SAP.
    Regards,
    Stratos

  • SAP PI 7.1 can access SAP tables

    Hello Friends,
                        can we access SAP tables using SAP PI 7.1.

    Hi Uday,
    If you are asking about the Master Tables related to SAP modules...
    Then No.. As these doesn't exist in PI 7.1
    Sachin

  • Access SAP Tables from Java Program

    Hi All,
    We have a requirement to integrate attendance portal(which is done in java) with SAP.
    Our problem is how to access SAP tables from a Java program?
    Database is Sybase.
    Please suggest us a good solution.
    Thanks in advance...

    Did you go through Sap Help?
    Calling BAPIs from Java - BAPI User Guide CA-BFA) - SAP Library
    Regards,
    Philip.

  • Accessing SAP Tables from a Java application

    Hi,
    I know, the forum is called "Web Application Server" but because it's Java question I hope to get answers here.
    I have a small stand-alone Java application that needs to access (read-only) all records from a SAP table. Is there a possibility to do this without writing a BAPI before?
    thanks a lot
    Paul

    Hi Paul,
    You can use JCo to call the standard remote-enabled function RFC_READ_TABLE. There is one annoyance involved with this function, though: each row of data returned is packed into a single string, so you must either specify a delimiter and use e.g. String.split(...) to parse out the column values or use the returned metadata to extract each value based on position and length attributes of the column.
    Another option (although this is usually not allowed in a productive environment) is to establish a direct JDBC connection to the database, thus bypassing the ABAP application layer entirely.
    Regards,
    Thorsten

  • Modifying SAP Tables directly

    Hi Friends,
    As per SAP, no one should update SAP standard tables diectly. I mean direct modification of data in standard table is not a good practice. But my query is, whether it is been mentioned in any Notes or Best Practice? <removed_by_moderator>
    Thanks And Regards
    Pradipta Kumar Mishra
    Edited by: Julius Bussche on Sep 1, 2008 8:43 AM

    >
    Pradipta Kumar Mishra wrote:
    > As per SAP, no one should update SAP standard tables diectly. I mean direct modification of data in standard table is not a good practice. But my query is, whether it is been mentioned in any Notes or Best Practice? <removed_by_moderator>
    It's not mentioned in precisely the terms you specify in any SAP official note or good practice document I've ever seen.  But then also there's no note that says that if you delete all your backup tapes and then reformat your harddrives, SAP won't help you recover your data.
    I like note 415983 about using unreleased function modules potentially leading to a violation of license agreement.
    The problem you described is caused by the fact that unreleased function modules were used for a customer development or modification. This is a violation of the software agreements with SAP.
    The consequences are as follows:
    o   If malfunctions occur after changes have been made to unreleased function modules or if unreleased function modules were used, you are not entitled to any support nor does SAP provide support in these cases.
    o   In case of violations, SAP reserves the right to dun the violation of the terms of use and to make a claim for compensation.
    There's nothing quite as explicit that I've found about updating tables directly.  (Though given the above, I'd be surprised if something similar wasn't found in the licensing legalese)  The nearest is note 890379, where it's clear you won't get support for errors caused by "the use of User Exits, Z-Transactions and Modifications to or Custom Developments created in addition to, the Standard SAP code".
    So, there's nothing to stop you updating BSEG directly if you want, possibly even it doesn't violate your license.  But it will be a custom development that does it, and if it goes horribly wrong, then according to note 890379 you're stuffed.  Whether it is bad programming practice or not is utterly irrelevant.  Direct changes are carried out at your own risk.
    matt

  • Writing a java program to access SAP tables using SAP JCO

    Hi all,
           I have a requirement where I need to access the VBAK table and get some values out of it based on a query on some of it fields. I would like to know how this can be done via a Java program by utilising the SAP JCo library. Has anyone done this before? A sample program would be very helpful.
    Thanks in advance!

    Hi SAM,
    Welcome to SDN!!!!!!
    Chk this help doc.
    http://help.sap.com/saphelp_nw04/helpdata/en/35/42e13d82fcfb34e10000000a114084/frameset.htm
    Also chk these thread.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8798be90-0201-0010-d093-85f728778d37
    Re: How to access SAP database tables with Java (Jco)
    Regards.
    Maha

  • Roles / rights for a technical ABAP user to access SAP Tables via code

    Hy @all,
    does anybody know which roles / rights a technical user must have to acess SAP Tables and read / write from or into it?
    Are tey any basic roles?
    kind regards
    Micha

    Please see note [382318|https://service.sap.com/sap/support/notes/382318] for further information.
    Additionally, if you would use it nevertheless at your own risk, be careful with granting read permissions to whole tables as you might easily end up there with disclosing confidential or privacy data.
    In general, function modules of this type that read arbitrary SAP tables are regarded as a security threat by a responsible administrator and you might not get the permission for it at all.
    In my personal opinion, I would classify most software that require the availability of the function module RFC_READ_TABLE to have a major design bug. At least I would not bet on that the developer for this really understood the difference between a database and an ERP system. It is always the recommended way to use specialized function modules for reading data from and even more for storing data into an ERP. Specialized modules normally do not go around fine-grained authorization checks and/or destroy the consistency of the stored data.

  • Report on direct SAP table updates?

    Is there a SAP (audit) report that will list customer developments that update SAP tables directly? (a listing of Z* programs that INSERT, DELETE, MODIFY, UPDATE SAP tables). Thank you, Adrian

    Hello Adrian,
    the 50 object restriction should not apply if you define an object set and do not use the on the fly search but save a pattern. I have run the code inspector for 1000 and more objects w/o problems.
    Kind Regards
    Roman

  • Optimized sql not properly generated when using SAP tables

    Hi Experts
    We are using BODS 4.1 sp2.
    We have a simple dataflow where we pull data from SAP r3 using direct download and push it in our database.
    Basically its like this:
    SAP Table-->Query Transform-->Oracle Database
    Inside query transform,we have applied some conditions in where clause,which are combinations of 'or' and 'and' operator.
    However when we are generating optimized SQL for the same,we observe that the conditions in where clause are not being included in the optimized query.
    But if we replace all conditions by only 'or'  or by only 'and' condition,the optimized sql query with condition  is generated.
    Somehow the optimized sql with conditions is not generated if where clause has mixer of 'and' and 'or' conditions.
    The issue is only observerd for SAP Tables
    However the same dataflow in bods 4.0,generates an optimized sql containing the mixed conditions of 'and' and 'or' in where clause.
    Please help me on this.

    Dear Shiva
    We e
    Let me explain this in detail to you:
    We have a simple dataflow where we push data from the sap table directly into our oracle database.
    The dataflow has a query transform where we have some conditions to filter the data.
    The method used to pull data from R3 is direct download.
    System Used:
    BODS 4.2 SP1
    SAP R3 620 release(4.7)
    The where clause has mixed 'and' and 'or' operators.The problem is that this where clause is not getting pushed in the Optimized sql.
    Eg: Table1.feild1=some value and Table1.feild2=some value or Table1.feild3=some value.
    If this is the condition in  where clause,the where clause does not appear in optimized sql.
    Also the condition in where clause is from same table.
    However if all the condition in where clause are either all 'and'  or either all 'or',the condition gets pushed and appears in optimized sql.
    But if their is mixed 'and' and 'or' it fails.
    The same was not the case when we used BODS 4.0 with R3 620(4.7).
    We investigated further and used R3 730 with BODS 4.2.With R3 720,we the where condition was getting pushed into optimized sql for mixed 'and' 'or' predicated.
    SAP support too confirmed the same.They were able to reproduce the issue.
    We will use ABAP dataflow and see if if resolves the issue.
    Regards
    Ankit

  • Access a table on Oracle 8 Ver into Oracle 10g

    Hello All,
    Could you please tell me how to access a table directly sitting on Oracle 8.1.6 version database into Oracle 10G database. Appreciate your time.
    Thanks & Regards,
    Ariean.

    Hello,
    If you runninng from a client machine then you can use sql script to extract and use sqlldr to load from it. But if you want to extract using pl/sql procedure (utl_file) then you need to write a procedure which generates .csv format on 8i db server, then you ftp .csv formatted and use sqlldr. Setting up utl_file in 8i is easy but it might requires a restart. But in this case, write a small sql script to generate (spool) a data file (csv) and loaded up in 10g using sqlldr. Here a small script to genereate a sql script which in turn will generate "|" delimited datafile.
    Just replace "MY_OBJECTS" with your table name and it will generate sql script which you can run from client to generate .csv ('|" ) delimited. You can change it to generate ","
    {code}
    SET pagesize 0
    SET verify off
    SET feedback off
    SET linesize 400
    SET termout off
    SET TRIMSPOOL on
    SET TRIMOUT ON
    SPOOL mytest.sql
    SELECT 'spool test.csv' FROM DUAL;
    SELECT DISTINCT
    'set termout off'
    || CHR (10)
    || 'set feedback off'
    || CHR (10)
    || 'set heading on'
    || CHR (10)
    || 'set pagesize 0'
    || CHR (10)
    || 'set linesize 800'
    || CHR (10)
    || 'set TRIMOUT on'
    || CHR (10)
    || 'set trimspool on'
    || CHR (10)
    || 'set long 2000'
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS');
    SELECT 'select '
    FROM DUAL;
    SELECT (CASE
    WHEN column_id = 1
    THEN
    (CASE
    WHEN data_type LIKE '%CHAR%'
    THEN
    column_name
    WHEN data_type = 'DATE'
    THEN
    'to_char(' || column_name || ',''DD-MON-YYYY'')'
    ELSE
    column_name
    END)
    ELSE
    (CASE
    WHEN data_type LIKE '%CHAR%' AND data_length = 4000
    THEN
    '||''|''||substr(' || column_name || ',1,4000)'
    WHEN data_type LIKE '%CHAR%'
    THEN
    '||''|''||' || column_name
    WHEN data_type = 'DATE'
    THEN
    '||''|''||to_char('
    || column_name
    || '|''DD-MON-YYYY'')'
    ELSE
    '||''|''||' || column_name
    END)
    END)
    FROM user_tab_columns
    WHERE table_name = UPPER ('MY_OBJECTS')
    ORDER BY column_id;
    SELECT '||''DELIM'''
    FROM DUAL;
    SELECT ' from MY_OBJECTS;'
    FROM DUAL;
    SELECT 'spool off'
    FROM DUAL;
    {code}
    Regards
    Edited by: OrionNet on Mar 18, 2009 10:15 AM

  • How to access a table of SAP standard SAP method from external program

    Hi Friends,
    I have to access a table and modified it defined in a standard SAP method (PROCESS_INPUT_FILTER) of class (CL_HANDLE_MM).
    As we normaly do it in case of Standard program
    for example: ('(SAPLMEPO)ett[]') here we are accessing internal table ett defined in SAPLMEPO.
    so how we can do the same thing if some thing defined in standard SAP method.
    Pl. help.

    Thanks for the info guys, it will come in handy.
    I need to validate that a number is entered with zero or one decimal place, then make sure it is evenly
    divisible by .5 in order to test for whole or half numbers only. If not, I use an alert to
    display a message when the user leaves the field.
    If there is a better way to achieve this, I am all ears!
    Thank you for your time,
    Gary

  • Is it possible to give a user read access to an SAP table but to restrict it to a subset of columns?

    Hi,
    is it possible to give a user read access to an SAP table but to restrict it to a subset of columns?
    Thanks,
    Digesh

    Hi Digesh,
    If your requirement is to restrict the excess to specific rows it is possible to use S_TABU_LIN, but it works only for table which contains org units, like plant, company code, etc.
    Please search for S_TABU_LIN if this is your requirement.
    Otherwise please follow Alex's suggestion.
    BR,
    Mangesh

  • Accessing SAP HANA table via Lumira

    Hi folks,
    I just tried to access a table in HANA via SAP Lumira. Unfortunately I´m just able to access Analytic Views and Calc Views with SYSTEM user per default. Which rights are necessary to grant to the user to get access. It worked with PA on another client before.
    Regards, Christoph.

    Hi,
    the Help docu suggests (page 27)http://help.sap.com/businessobject/product_guides/vi01/en/lum_117_user_en.pdf
    With SAP Lumira you can create charts on data available as:
    Analytic views
    Calculation views
    Yes, I believe the PA jdbc HANA 'reader/writer' component has different capabilities.
    Regards,
    H

  • Updating SAP table field directly?

    Hi all,
    The client is using SAP for 2-3 years and this will be replaced by new SAP system ( same version - 4.6c) in few months.
    So as to get data from old system we are doiong conversion right now. In this client, PO creator name is very important and it drives so many things. When we will do conversion and convert old PO into the PO in the new system, the username ( created by) will be "batch user".
    Client somehow want to retain the username, the original username of old POs.
    For this, they are asking to update the EKKO-ERNAM field directly once the new POs are created ( we will have old PO - new PO mapping and user name).
    In my view, it is not advisable to update the SAP standard table directly. But i want the opinion from you guys that what are the implications of updating field directly. Is it advisable? Is there any other way to meet this requirement?
    Thanks,
    Pratik

    Hi palaniappan,
    1. Good question and good concern !
    2. Your concern is absolytely correct.
    3. Sap does not advise to
       update SAP standard tables directly
       thru any z program
      (It may stop support in future)
    4. But for your requirement,
       it the po user will be "batch user",
       then
       thru some Z program,
       u may do so.
    5. BUT
       Please take care that
       a) u have signed specifications of this logic
          and concern from the FUNCTIONAL CONSULTANT !
         (only after that one should do)
    regards,
    amit m.

Maybe you are looking for

  • HT1296 I lost music on my computer. Can I restore from my phone?

    I  lost music on my computer.  How do I sync from my phone back to the computer?

  • Post process bank statements in FEBA

    Hi expert, I received a customer payment via a bank transfer and I have loaded the bank statement via transaction FF_5. The G/L has been posted. When I wanted to post process the subledger, via transaction FEBA, the open items did not appear immediat

  • Translate PO Output form into chainese

    Hi Experts, How to translate the existing custom smart form into chainese language, the output will be print  in chainese language. So please help me in this. Thanks in Advance, Gs Reddy. Moderator Message: Basic Question. Edited by: kishan P on Dec

  • Plant Maintenance Forum

    Does anyone know if a Plant Maintenance Forum exists in this network?  I have several Plant Maintenance questions that I would like to post but do not know where to post them. I didn't see a Plant Maintenance link anywhere. Thanks

  • What are the good PRs Report ?

    Dear Al, I have used ME5K and ME5A .. but i have ome issues with them because they don't display what i really want ..  and there some conflict in ME5A "Closed Prs indicator for example display the prs which not yet even released" and "Released Only