cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic table name in AMDP procedure

former_member202516
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

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

former_member202516
Participant

Scalar type are not allowed there