I think is better to use JDBC lookups, this is a graphic way to access a database table.
you can create a pimary key to get a fastest access
see this:
Defining JDBC Lookups Graphically - Enterprise Services Repository - SAP Library
Defining JDBC Lookups - Creating Design Objects using SAP NetWeaver Developer Studio - SAP Library
is something like this:
two elemets for query condition.
two elements result: