Skip to Content
author's profile photo Former Member
Former Member

How to manage the name of a table on a SELECT

Hi guys,

I'd like to do this operation on a select.

This is the rigth way to write a select:

SELECT SINGLE * FROM MARA WHERE ...

I'd like to have the name of the table as a parameter.

So i'd like to use this way to write my SELECT:

Form take USING tab.

SELECT SINGLE * FROM tab WHERE ...

ENDFORM.

Is it possible to do it ? If yes, could you show me how.

Best regards

Giampiero

Moderator message: please search for available information and read ABAP documentation before asking.

locked by: Thomas Zloch on Oct 12, 2010 3:20 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 12, 2010 at 01:05 PM

    Just put the variable inside ().

    select * from (tabname) where ...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.