cancel
Showing results for 
Search instead for 
Did you mean: 

(table) Attribute value is not a table

Former Member
0 Kudos

Hello All. I am still having difficulties with displaying data in a table.

Starting with the Type defination:


types: Begin of t_LongText,
        text_line type  BAPI2080_NOTFULLTXTE-text_line,
        end of t_LongText.

I then have two data statements in the Event Handler OnInitalization. I am in Stateful mode.


DATA: i_LongText type table of t_LongText
DATA: wa_LongText type t-LongText

I then load the table


loop at i_longtexts into wa_longtexts.
 tformat = wa_longtexts-format_col.
 tline = wa_longtexts-text_line.
 move wa_longtexts-text_line to wa_LongText-text_line.
 append wa_LongText to i_LongText.
 endloop.

Finally i define the page attribute LongText as


LongText	TYPE	BAPI2080_NOTFULLTXTE	BAPI Service Notification longtext

My code on the Layout page is


<hbj:tableView id        = "LongText"
                       design          = "standard"
                       footerVisible   = "FALSE"
                       visibleFirstRow = "1"
                       visibleRowCount = "50"
                       fillUpEmptyRows = "False"
                       table           = "<%=LongText%>"
                       />

I then execute the code with a break after the loop. I can see the data entered into i_LongText, but when I execute the rest of of the code I am getting the (table) Attribute value is not a table run time error.

I have looked at all the examples, and even had our sole ABAP developer look at it and she was not able to see anything wrong.

Thanks in advance

Edited by: John Esposito on Apr 13, 2010 8:45 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I found the problem I had to further define the type as:

types: htab10 type table of t_LongText.