Hi Occoro,
If you know the program name and field name, you can fetch the TR type inside implicit enhancement using Dynamic field symbol concept.
Please find the below code.
FIELD-SYMBOLS: <FS_VAL>TYPE BNAME. "Use the datatype name
"Program Name Declaration
DATA: L_STR TYPE STRING VALUE'(PROG_NAME)FIELD_NAME'.
"Get the Field value
ASSIGN(L_STR)TO<FS_VAL>.
"Check Field value is assinged or not to prevent the dump during runtime
IF<FS_VAL>ISASSIGNED.
"Update/Use the variable here
ENDIF.
Regards
Rajkumar Narasimman