Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table name at runtime in Select query...

Former Member
0 Likes
420

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.

1 REPLY 1
Read only

Former Member
0 Likes
353

Please press F1 on SELECT.

Rob