‎2007 Jan 21 9:40 PM
Hello,
please help me!
This is my code:
WHEN 'delete'.
IF tv IS NOT INITIAL.
DATA: tv_data1 TYPE REF TO cl_htmlb_event_tableview.
tv_data1 = tv->data.
IF tv_data1->prevselectedrowindex IS NOT INITIAL.
FIELD-SYMBOLS: <row1> LIKE LINE OF LV.
READ TABLE LV INDEX tv_data1->prevselectedrowindex ASSIGNING <row1>.
DELETE FROM ZZ07_LV WHERE LVID = <row1>-LVID.
else.
message = 'Tv is initial!!!'.
navigation->set_parameter( 'message' ).
ENDIF.
navigation->goto_page( 'anzeigen.htm' ).
ENDIF.
Of course i have LV as attribute of tabeltyp and this shall hapend in oninputrocessing. But i have no idea why nothing happen. I can't delete any row!
Please help mee as soon as possible.
YOu can write me as well: merian_z@yahoo.de
Thank you very much
‎2007 Jan 22 5:42 AM
move this thread to BSP area.
is LVID is the key field of the internal table?
is ZZ07_LV an internal table or DB talbe?
Raja
‎2007 Jan 22 7:01 AM
Thank you very much for reply:).
LVID is the key of DB table and ZZ07_LV
is the DB.
I'm really confused and I don't know why is still not working...
.Please help me.
Thank you
‎2007 Jan 22 7:19 AM
Hi Raja,
I think that probably the problem is with this <row>. It doesn't realy rcognise the row....
Is there another way or why is like this what do think?
The Error is:
"500 SAP Internal Server Error
Fehlermeldung: Feldsymbol ist noch nicht zugewiesen. ( Abbruchsart: RABAX_STATE )"
This means something like: The field symbol has not been associated
‎2007 Jan 22 7:21 AM
change this line
FIELD-SYMBOLS: <row1> LIKE LINE OF LV.
to
FIELD-SYMBOLS: <row1> type any .
place and HTTP break point and analyze which line is causing error.
Regards
Raja
‎2007 Jan 22 7:41 AM
Hi Raja,
thank you very much.
I change it and now he tells me that in this case <row1>-LVID. row diesn't have this LVID any more beacuse is missing struktur.
Do you think he doesn't recognize this row and that why I can't delete the row.
Thank you very much
Mariana
WHEN 'delete'.
IF tv IS NOT INITIAL.
message = 'Tv is not initial'.
navigation->set_parameter( 'message' ).
DATA: tv_data1 TYPE REF TO cl_htmlb_event_tableview.
tv_data1 = tv->data.
IF tv_data1->prevselectedrowindex IS NOT INITIAL.
FIELD-SYMBOLS: <row1> type any.
READ TABLE LV INDEX tv_data1->prevselectedrowindex ASSIGNING <row1>.
DELETE FROM ZZ07_LV WHERE LVID = <row1>-LVID.
else.
message = 'Tv is initial!!!'.
navigation->set_parameter( 'message' ).
ENDIF.
navigation->goto_page( 'anzeigen.htm' ).
ENDIF.
‎2007 Jan 22 7:46 AM
FIELD-SYMBOLS: <row1> type any ,
<field> type any .
READ TABLE LV INDEX tv_data1->prevselectedrowindex ASSIGNING <row1>.
assign component 'LVID' of structure <row1> to <field> .
if not <field> is initial .
DELETE FROM ZZ07_LV WHERE LVID = <field> .
endif .
Raja
‎2007 Jan 22 7:57 AM
Hi RAJA,
I think this is in the right direction, but is still not working. This is my code now. I implement your suggestion:But there is still error: 500 SAP Internal Server Error
Fehlermeldung: Feldsymbol ist noch nicht zugewiesen. ( Abbruchsart: RABAX_STATE )
That's mean that fielssymbol is not correct or something like that. Here is my code again:
WHEN 'delete'.
IF tv IS NOT INITIAL.
message = 'Tv is not initial'.
navigation->set_parameter( 'message' ).
DATA: tv_data1 TYPE REF TO cl_htmlb_event_tableview.
tv_data1 = tv->data.
IF tv_data1->prevselectedrowindex IS NOT INITIAL.
FIELD-SYMBOLS: <row1> type any , <field> type any .
READ TABLE LV INDEX tv_data1->prevselectedrowindex ASSIGNING <row1>.
assign component 'LVID' of structure <row1> to <field> .
IF not <field> is initial .
DELETE FROM ZZ07_LV WHERE LVID = <field> .
ENDIF.
navigation->goto_page( 'anzeigen.htm' ).
ENDIF.
ENDIF.
‎2007 Jan 22 8:02 AM
as i said earlier you have to go thru debugger and let me know exactly in which link this problem is happenning.
Raja
‎2007 Jan 22 8:57 AM
Hi RAJA,
I tries to debugg, but it is not debugging my code. This code is written in eventhandler in the BSP and it is not reaching it. I tries couple times.
The error is stil the same like it was with the field.
Di you think is beacuase of the row? Probably is not understanding wich row...
Is there another way to delete this row..
Thank a lot for help.
Mariana
‎2007 Jan 22 9:19 AM
without debugging you wont find answer for this problem.
in se 80 go to utilities->settings->abap editor->debuggin->activate external debuggin.
now place a external break point at
IF tv_data1->prevselectedrowindex IS NOT INITIAL.
now execute the page and click on "delete button" which triggers the server event. the debugger should start now.
Regards
Raja
‎2007 Jan 22 10:08 AM
Hi Raja,
I tried this bit the debugger go into another mehtod ...i realyy don't understand why the debuuger is not showing my code..
‎2007 Jan 22 8:10 PM