09-16-2010 7:45 AM
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
09-16-2010 9:56 AM
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