Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fields fetched from an external DB connection.

Former Member
0 Likes
846

Hi Gurus,

I am analysing an already implemented code.

The DB connection is stored in the DBCON table.

After fetching DB name,

EXEC SQL.
          CONNECT TO :DB_CONNAME AS :SY-UNAME
      ENDEXEC.

Now my question, how can i find what are the fields fetched from this DB_CONNAME, can it be found from SAP system itself ?

Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Oct 13, 2009 8:58 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
817

Hi Deepan,

I am not sure I understand well your question, but if it is to know what are the values contained in variable DB_CONNAME, since it is an ABAP variable (without the ":" at the beginning), you can search it in the program where you have the EXEC SQL and try to pass the program in debug to see where it is filled, isn't it?

Best regards!

Samuel

Hi Gurus,

I am analysing an already implemented code.

The DB connection is stored in the DBCON table.

After fetching DB name,

EXEC SQL.
          CONNECT TO :DB_CONNAME AS :SY-UNAME
      ENDEXEC.

Now my question, how can i find what are the fields fetched from this DB_CONNAME, can it be found from SAP system itself ?

Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Oct 13, 2009 8:58 AM

5 REPLIES 5
Read only

Former Member
0 Likes
818

Hi Deepan,

I am not sure I understand well your question, but if it is to know what are the values contained in variable DB_CONNAME, since it is an ABAP variable (without the ":" at the beginning), you can search it in the program where you have the EXEC SQL and try to pass the program in debug to see where it is filled, isn't it?

Best regards!

Samuel

Read only

0 Likes
817

Hi Samuel,

Thanks for the reply.

Yes you got it wrong. I know the name of the connection. ( i.e DB_CONNAME's value).

I want to know how to find what are the fields fetched from the DB through this connection. since that is from a different system (SQL), how to find this.

Thanks,

Deepan.

Read only

0 Likes
817

I try again

You want to search the other EXEC SQL command that appears for this connection? I guess that just below in your code there is a SELECT using this connection no?

Samuel

Read only

0 Likes
817

Hi Samuel,

Thanks Again.

Yes, there is another EXEC SQL statement

followed by a select statement.

Does this SELECT answers my question ?

Are these fields fetched using this SELECT are the fields selected from DB connection.

Is it possible to know the details of these fields ? (because on clicking on them it says object doesnt exist).

Thanks,

Deepan.

Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
817

Hi

> Does this SELECT answers my question ?

> Are these fields fetched using this SELECT are the fields selected from DB connection.

yes, this is most likely the case.

> Is it possible to know the details of these fields ? (because on clicking on them it says object doesnt exist).

details on tables and fields of remote databases are only availalbe in the remote database.

Kind regards,

Hermann