‎2009 Feb 09 7:13 PM
Hello,
I am using following to select data froma table. Now the table is determin at runtime. I canbe anything from TOA01, TOA02, TOA03, TOAHR. I don't want to use nsted if-endif. How can make following query work with name of table is detrmined at runtime.
select single
RESERVE
from <TOA01>
into gt_alv-doc_type
where
SAP_OBJECT eq zdocu_conn-SAPOBJECT and
OBJECT_ID eq zdocu_doc_conn-OBJECT_ID and
ARCHIV_ID eq zdocu_doc_conn-ARCHIV_ID and
ARC_DOC_ID eq zdocu_doc_conn-ARC_DOC_ID.
Regards,
Rajesh.
‎2009 Feb 09 7:24 PM