on 02-10-2007 5:32 PM
Dear All,
Someone had told me that one of the reason we use JAVA mapping for Database lookup during runtime mapping. But how do you achieve database lookup during runtime mapping, how is the database retrieved, is it using java API's or by using JDBC adapter. Please advice on the complete setup.
Regards,
Ashish
Ashish,
JDBC receiver adapter supports lookup. To execute calls to an application system by using the lookup API, we can use either a generic or special lookup API.
Refer this help for further information:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ashish,
Database lookup at runtime mapping can be achieved using preconfigured
JDBC Adapter.
Code snipet would look like this :
//Determine a channel, as created in the Configuration
channel = LookupService.getChannel("DBORA","CC_JDBC_IN");
//Get a system accessor for the channel.
accessor = LookupService.getDataBaseAccessor(channel);
//Execute Query and get the values in resultset
resultSet = accessor.execute(Query);
Regards
Kavitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ashish,
Its not mandatory to use JDBC .
Access to DB can be achieved from java code using SystemAccessor class
Please go through this link for ur java code
https://www.sdn.sap.com/irj/sdn/javadocs
Regards
Kavitha
Dear Ashish,
To my knowledge thru JDBC adapter it is possible,
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.