Skip to Content

Dynamic table name in AMDP procedure

Hi,

I my AMDP procedure I need to use table which is created dynamically, which means that the name of the table will not be the same when we transport our development to QA. All I know, and what will be the constant across the landscape, is the particular customizing value based on which I could fetch mentioned dynamic table name in one of the system tables.

Table in question is marked in yellow in the screenshot bellow. Any ideas how could I use dynamic value for the table name in there, and I'm pretty new to AMDP but I know that tables need to be declared as USING parameters of the procedure and I'm not even sure if this is possible

Thanks

Capture.PNG (26.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 28, 2016 at 11:08 AM

    Hi Mijodrag,

    You can use variable in AMDP and pass it in SQL Query.

    Select * from :VarName where .....

    In variable VarName, you can pass value from ABAP.

    Regards,

    Chintan

    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.