on 02-24-2007 8:02 AM
hi guys,
in java we writing program to connect to oracle using jdbc driver...
to get the data from the table like that
any way is there to connect to sap and retrieve the data... from the sap table...
without using bapi or idoc ........
with regards,
swathi
Hi,
you have to configure in your SAP J2EE server a DATA SOURCE ( with oracle jdbc driver) with Visual Administrator. This data source points to the Oracle database. Here you need the oracle database logon credentials. Then you can call this DATA SOURCE with JNDI in your java code and fire SQL statements. That is the standart in java/sql programming.
An other way to get data from a R/3 Table is to create a function module (type remote) that fetches the data with obensql (z.B. SELECT * FROM TABLE INTO TABLE IT_TABLE WHERE field =?????.)With JCo you can call this function module and get the internal table as interface. You can call this function module with Java WebDynpro and Adaptive RFC Model as well.
have a nice day
Message was edited by:
Martin Hastik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Swathi,
You cannot directly commumicate R/3 tables directly without using JCo. You have to use BAPI or RFC's to get the data.
BAPI's are remote enabled and can be accesed in Java
where as RFC has limited usage i.e. within SAP environment only.
regards
Anil Dichpally
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.