cancel
Showing results for 
Search instead for 
Did you mean: 

Error with iterating

Former Member
0 Kudos

Hi, Plese have a look at this problem.

<b>500 SAP Internal Server Error</b>

Error message: Conversion of type TVIEWNODE to type g not supported. ( type of termination: RABAX_STATE )

class ZCL_MY_ORG_TABLEVIEW_ITERATOR definition.

public section.

interfaces IF_HTMLB_TABLEVIEW_ITERATOR.

  • DATA: m_rowref TYPE REF TO sflight.

DATA: m_rowref TYPE REF TO tview.

endclass.

I tried to execute the same with transparent table sflight(sflight-planetype) it is working fine. Where as when i tried to execute with tview-target, It is giving the above error.

i did field definition like this

  • col1_inputField->value = m_rowref->PLANETYPE.

col1_inputField->value = m_rowref->TARGET.

The main difference is

sflight is a transparent table and

tview is a table type.

Please, suggest me on how to come up with this problem

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Swaroop,

You should declare tview as structure not the table type.

If tview is the datadictionary table type, then you can declare m_rowref like this.

DATA : temp_stru type line of tview,

m_rowref TYPE REF TO temp_stru.

This should solve your problem.

-Suresh

Former Member
0 Kudos

HI Suresh, <b>Thanks a lot</b> , it worked for me with a little modification.

Former Member
0 Kudos

I am glad that it worked for you. Could you please mark this as answered.

thanks,

Suresh