The goal of the following code is to help to extract data of TCODE: TVARV (Table TVARVC). Used a class for extract data, function module for create the code automatic and display for copy the code.
Access to Tcode: TVARV and click en new code "Generation Code" and display a Source code for extract data of the table TVARVC

Advantage:
Disadvantages:
The following video display "How do you do for extract data"



WHEN 'ZZCODE'.
DATA: lw_tvarvc TYPE tvarvc.
CASE 'X'.
WHEN rb_type_p.
READ TABLE i_tvarvc_params WITH KEY mark = 'X'.
MOVE-CORRESPONDING i_tvarvc_params TO lw_tvarvc.
CALL FUNCTION 'Z_TVARV_GEN_CODE'
EXPORTING
ex_tvarvc = lw_tvarvc.
WHEN rb_type_s.
READ TABLE i_tvarvc_selops WITH KEY mark = 'X'.
MOVE-CORRESPONDING i_tvarvc_selops TO lw_tvarvc.
CALL FUNCTION 'Z_TVARV_GEN_CODE'
EXPORTING
ex_tvarvc = lw_tvarvc.
ENDCASE.


000 & & & &
001 Not found variable in the string & sperated by &
002 Not found variable in the string & sperated by & position &
003 Not found the variable in TVARVC &
004 Error en Field Symbol &, en method &. Contact to Developer.
005 & line(s) copy to clipboard
The application only work ith table TVARVC " Table of Variant Variables (Client-Specific)", pending for incorporate the table TVARV "Table of variables in selection criteria".
Nugget Nugg
If you have any questions report error or need an object, please write me by email.
Mail: nicolascervantes@gmail.com
My name is Salvador Nicolás Cervantes. I’m System Engineer, SAP ABAP Consultant and Project Manager. I'm from Argentina.
My personal Page: CERVANTES, Salvador Nicolás
My Linkedin Profile: https://ie.linkedin.com/in/nicolascervantes