Skip to Content
0
Former Member
Jun 08, 2009 at 03:21 PM

How to assign length of internal table dynamically

52 Views

In a Function Module the limit of 30 values for the input file and now client would like the limit to be increased to 256 values.

DATA : dynamictype TYPE c length 10.

BEGIN OF ys_file_skf,

value01 TYPE longer_keyf_value,

value02 TYPE longer_keyf_value,

value03 TYPE longer_keyf_value,

value04 TYPE longer_keyf_value,

value05 TYPE longer_keyf_value,

value06 TYPE longer_keyf_value,

value07 TYPE longer_keyf_value,

value08 TYPE longer_keyf_value,

value09 TYPE longer_keyf_value,

value10 TYPE longer_keyf_value,

END OF ys_file_skf,

Now I need to create a internal table with 256 fileds. I mean till

value256 TYPE longer_keyf_value.

Is there any smarter way of declaring it ,instead of going for writing 256 fileds like this.

Thank U very Much

Edited by: annapurna p on Jun 8, 2009 5:39 PM

Edited by: annapurna p on Jun 8, 2009 5:43 PM