Dear SAP HANA Experts,
Recently, I am digging on AMDP for leveraging performance of programs. Meanwhile, I need some help to change/adapt AMDP method concurrently as applying dynamic SQL in AMDP. I know it causes leading performance regression, but I require to use it for creating universal AMDP method to adapt everywhere.
These are the questions on the below I need answers:
1. Is it possible to apply Dynamic SQL in AMDP?
(For example)
DECLARE LV_SEL STRING;
LV_SEL = 'SUM(VV500) AS VV500, SUM(VV501) AS VV501, SUM(VV500+VV501) AS VF501;
LV_TABLE = 'CE1XXXX';
ET_CE1XXXX = SELECT <LV_SEL>
FROM <LV_TABLE>
WHERE MANDT = '100'
AND KOKRS = 'XXXX'
AND BUKRS = 'XXXX'
AND SPMON = '201509';
2. Or, is it possible to use Dynamic procedures in AMDP? (if yes, can you give me sytax for example?)
The purpose of two questions are the same. I want to use dynamic colums with conditions into SELECT statement.
Is any other way to solve this problem? Please feel free to give me any answers to solve this.
Thanks,