Hello Khushdeep,
in a CDS view the table name cannot be specified in a dynamic way. The only - very ugly and therefore not recommend - option would be the usage of a CDS table function available since NW 7.50 (ABAP News for Release 7.50 - CDS Table Functions Implemented by AMDP ).
You could pass the table name and do a dynamic select. But the interface of the table functions of course must still have a fix interface.
Regards,
Florian