i have a requirement where i have to check if the FM is dynamically called using a variable and that variable is declared locally in the report.
i am using below code where lv_stat will have each line of the report.
IF lv_stat CS 'CALL FUNCTION'.
SPLIT lv_stat AT 'CALL FUNCTION' INTO lv_first_str lv_sec_str.
shift lv_sec_str left DELETING LEADING space.
- i have to check if lv_sec_str is a variable
- if it is a variable then check whether its declared locally.
I am not getting logic to write this.can anyone help.