I am making a program which checks whether a program uses data declarations and makes a list with the found data elements. For example program below will result in following list.
Name is the name of the variable, objectname is the name of the type and local can be set in case of a like (objname can be a Z without it being a custom data element).Name
DATA: ut_code TYPE rsfb_source
data:lw_code TYPE string. data ls_return TYPE bapiret2. "CALL FUNCTION
* lw_objects TYPE gty_objects.
DATA: lv_cc LikE zv_c.
Now I've found FM WB_TREE_GET_OBJECTS but this only results in a list of global data declaration elements. If there is a subroutine it should also be checked.
Is there anything I can use to retrieve a list of variables and its typing?
Wim van Erp