Hello César,
within an AMDP respectively SQLScript coding it is not possible to specifiy only a specific element in a dynamic way. The only option you have is to use Dynamic SQL (Dynamic SQL - SAP HANA SQLScript Reference - SAP Library) with the workaround to fetch your results via a temporary table.
Please consider the possible negative impacts regarding security and performance for Dynamic SQL.
Regards,
Florian