Dynamically defined variable in ABAP
问题 Lets say I have a variable (char30) which contains a name of a Datatype and I would like to create another variable of this Datatype. Example: lv_type = 'BU_PARTNER' data: rt_value type range of ( lv_type ). Any tips how to achieve this in ABAP? Thanks! 回答1: RANGE table is just a STANDARD table with component like 'LOW', 'HIGH', 'EQ' and 'OPTION' . Using RTTS related API to create such a STANDARD table. data: lr_data type ref to data, lt_ra_string type range of string, ls_ra_string like line