Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Declaring field size dinamicaly

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

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question