Skip to Content
author's profile photo Former Member
Former Member

Problem: SAPTLIST_TREE_CONTROL_DEMO

Hi all,

right now i m working with SAPTLIST_TREE_CONTROL_DEMO program.

now the problem is that, i have an internal table which have multiple records, now i want to print all records in internal table through

INCLUDE TLIST_TREE_CONTROL_DEMOF01

my code is look like :

LOOP AT I_FINAL.

CLEAR ITEM.

item-node_key = c_nodekey-new1.

ITEM-ITEM_NAME = '2'.

ITEM-CLASS = CL_GUI_LIST_TREE=>ITEM_CLASS_TEXT.

ITEM-LENGTH = 4.

ITEM-USEBGCOLOR = 'X'.

ITEM-TEXT = I_FINAL-MTART.

"ITEM-TEXT = '01'.

APPEND ITEM TO ITEM_TABLE.

CLEAR ITEM.

item-node_key = c_nodekey-new1.

ITEM-ITEM_NAME = '3'.

ITEM-CLASS = CL_GUI_LIST_TREE=>ITEM_CLASS_TEXT.

ITEM-LENGTH = 11.

ITEM-USEBGCOLOR = 'X'. "

"ITEM-TEXT = 'Zert'.

ITEM-TEXT = I_FINAL-IDNRK+9(9).

APPEND ITEM TO ITEM_TABLE.

  • CLEAR ITEM.

  • item-node_key = c_nodekey-new1.

  • ITEM-ITEM_NAME = '4'.

  • ITEM-CLASS = CL_GUI_LIST_TREE=>ITEM_CLASS_TEXT.

  • ITEM-ALIGNMENT = CL_GUI_LIST_TREE=>ALIGN_AUTO.

  • ITEM-FONT = CL_GUI_LIST_TREE=>ITEM_FONT_PROP.

  • item-text = ''(006).

  • APPEND ITEM TO ITEM_TABLE.

ENDLOOP.

but dump error is occured when record is greater than one.

with one record report is running successfully.

plz reply as soon as possible

thanx in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 02, 2008 at 07:20 AM

    make sure that the item-node_key is unique for each record.

    whats the dump message?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.