Hello,
I would like to calculate dynamically the name of the table where I want to select in my AMDP for example like in normal ABAP l we do:
1. ABAP PROGRAM
DATA: source_syntax TYPE string.
SELECT customer amount INTO TABLE lt_table
FROM (source_syntax).
then in ABAP I would asign the source_syntax depending on the sales org at runtime.
IF domain = '01'.
source_syntax = table_1
ELSEIF domain= '02'.
source_syntax = table_2
ELSE.
source_syntax = table_3.
EIDIF.
2. AMDP
lt_table = SELECT "CUSTOMER" , "AMOUNT" FROM (source_syntax) <--???? How I do dinamic this part?
Thanks