on 12-09-2004 3:10 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.