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: 

Length of field TEXT in structure MTREEITM

Former Member
0 Kudos

Hello,

I would like to build up a tree control but the lenght of the field TEXT seems too less(72 chars) in structure MTREEITM. I would like to use strings with 255 characters in the tree.

Is any other way to build up a tree control and not using structure MTREEITM?

Best,

Gabor

1 REPLY 1

sitakant_tripathy2
Active Participant
0 Kudos

Hi Gabor,

you can use the Class CL_GUI_COLUMN_TREE for this requirement. In the method ADD_NODES_AND_ITEMS you have the following three importing parameters:

NODE_TABLE

ITEM_TABLE

ITEM_TABLE_STRUCTURE_NAME

The structure need not be the MTREEITM structure always. I would suggest you to create a new DB structure which would include MTREEITM and an extra field for your CHAR255...

When calling the ADD_NODES_AND_ITEMS method pass the new Structure name and Item table based on the new structure...

Hope this works for you....

Regards,

Sitakant