Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Declaring field size dinamicaly

Former Member
0 Kudos

Hi experts,

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.

tks, friends

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try declaring it as string.

Data: begin of it_Test
var1(10) type c,
var2  type  STRING,  "change here
end of it_test.

Thanks

Naren

1 REPLY 1

Former Member
0 Kudos

Hi,

Try declaring it as string.

Data: begin of it_Test
var1(10) type c,
var2  type  STRING,  "change here
end of it_test.

Thanks

Naren