Skip to Content

Iterator exception

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 06:52 PM

    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.

    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.