Since v7.40, it is possible to check if a value is into TVARVC table in 1 line of code 😎 :
IF NEW /dmbe/cli_db_tvarv( )->is_value_in_tvarv( i_variant = 'ZTVARVC_NAME' i_value = |{ lv_value }| ).
" Your code here...
ENDIF.
This is one possibility, there are many others…
About the author