cancel
Showing results for 
Search instead for 
Did you mean: 

Iterator exception

MaG
Explorer
0 Kudos

i get this exception:

Business Server Page (BSP) Fehler

Was ist passiert?

Der Aufruf der BSP-Seite wurde aufgrund eines Fehlers abgebrochen.

Hinweis

Folgender Fehlertext wurde im System prozessiert:

Eine Exception vom Typ CX_SY_DYN_CALL_ILLEGAL_METHOD ist aufgetreten, wurde aber weder lokal behandelt noch durch eine RAISING-Klausel deklariert.

Exception Class CX_SY_DYN_CALL_ILLEGAL_METHOD

Error Id

Programm CL_HTMLB_TABLEVIEW============CP

Include CL_HTMLB_TABLEVIEW============CCIMP

Zeile 1766

Lang-Text -

I had read Brian McKellar weblog. After m_row_ref ?= p_row_ref it happened. My Problem is that I have an structure and not a table. So m_row_ref type ref to zstruc_xxx and not sflight. Anyone have an idea ?

thx

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Marcel,

Actually you already give a hint to the problem. Within the object CL_HTMLB_TABLEVIEW this error occurs when the program tries to set the next row (for a tableview) and when not found, leaves the method.

In your case you have created a type reference to a structure and via casting want to link an internal table or tabletype to it.

One solution is the create your own table based on your ZSTRUC_XXX (or SFLIGHT) structure. Do your casting assignment and after this read the one line from it into your structure.

Something like this:

DATA: ZSTRUC_XXX TYPE SFLIGHT.

DATA: ZTSTRUC_XXX TYPE ZSTRUC_XXX OCCURS 1.

DATA: M_ROW_REF TYPE REF TO ZTSTRUC_XXX.

M_ROW_REF ?= P_ROW_REF.

READ TABLE ZTSTRUC_XXX INDEX 1 INTO ZSTRUC_XXX.

Hope this gives you some clues.

Regards,

Rob.