Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Select Query

Hi Freinds,

I have a small doubt.

What I am doing is....I have a custom table,which will contain entries this way.

<u>CONDITION</u> <u>TABLE NAME</u>

A MARA

B VBAK

C EKKO

So,based on the condition I need to fire a Select Query on the respective table.

I am doing the selection in a subroutine.

Now,I am Selecting from v_tabname...v_tabname contains table name.

But,this is an error, coz Select query always allows to select from DB table.

Is there any way to dynamically get the table name in Select Query.

Any Object Programming ?

Eg., SELECT FROM <u>TABNAME</u>

Regards,

Imran.

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question