Skip to Content
0
Oct 09, 2020 at 08:31 AM

check if the FM is dynamically called using a variable

36 Views

hi ,

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.

next

- 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.

thanks