Declaring field size dinamicaly
I need to declare a Dynmic Variable. For exemple :
Data: begin of it_Test
var1(10) type c,
var2(val) type c
end of it_test.
In the example above, I have one internal table (test) with too fields and the size of the Field var2 must to be dynamic. Ho can I do it, please.
Try declaring it as string.
Data: begin of it_Test var1(10) type c, var2 type STRING, "change here end of it_test.