Application Development and Automation 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: 
Read only

Dynamic Internal Table Creation

Former Member
0 Likes
595

Hi All,

Based on requirement, i need to create a dynamic internal table with some text fields of length 5000 which are dynamic.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = tb_fieldcat

IMPORTING

ep_table = dref.

ASSIGN dref->* TO <itab>.

CREATE DATA wa LIKE LINE OF <itab>.

ASSIGN wa->* TO <fs>.

So while building the fieldcatalog, am declaring the outputlen = 5000.

In some cases, there may be a possibility to create the 20 text fields of 5000 length each

which exceed the SAP defined length(error am gettiing is:The length of the structure in a non-unicdoe syste 69 DATA ). Kindly suggest me whether it is possible to create the 20 text fields of 5000 length.

Thank you.

Regards,

Padmasri.

1 ACCEPTED SOLUTION
Read only

former_member222860
Active Contributor
0 Likes
577

Hi,

from the database (oracle) point of view-

Allowed maximum Column length is 4000.

thanks\

Mahesh

4 REPLIES 4
Read only

MarcinPciak
Active Contributor
0 Likes
577

Hi,

I think you may try with string type for these fields. Then you don't need to provide output length.

Regards

Marcin

Read only

rainer_hbenthal
Active Contributor
0 Likes
577

Use strings instead of c-like variables.

Nevertheless, you can not display those fields in ALV. Columnwidth is ,imitied to 250 chars, i think.

Read only

0 Likes
577

Hi Rainer,

Iam extracting the data into an excelsheet not an ALVdisplay.

Kinldy suggest me is it possible to build the fieldcat to adjust the 5000 chars of length for 20 fields.

Regard,

Padmasri.

Read only

former_member222860
Active Contributor
0 Likes
578

Hi,

from the database (oracle) point of view-

Allowed maximum Column length is 4000.

thanks\

Mahesh