‎2020 Oct 23 7:39 PM
Hi,
I am getting dump 'The CONTROL "TC_VE" was searched for but not found.' when I am giving below statement in the program.
REFRESH control 'TC_VE' FROM SCREEN 0091.
What could be the reason for the dump?
Regards,
‎2020 Oct 23 8:04 PM
‎2020 Oct 24 1:44 PM
‎2020 Oct 24 1:56 PM
I guess you're not lucky. The first answer I find gives the solution: https://answers.sap.com/questions/4146502/runtime-error-control-variable-not-found.html
i.e. it does the short dump you indicate if TC_VE is not declared via CONTROLS ... TYPE TABLEVIEW ...
Example:
CONTROLS tc_ve TYPE TABLEVIEW USING SCREEN 0091.
REFRESH CONTROL 'TC_VE' FROM SCREEN 0091.(the literal is case insensitive)