2008 Jun 03 10:13 AM
Hi,
i have an internal table, containing multiple records.
the problem is when i m going to read this internal table in METHOD HANDLE_ITEM_DOUBLE_CLICK..
Error is comming - "Statement "I_FINAL" is not defined. Check your spelling. .
i have al ready declare this internal tabl globly.
Edited by: Anshuman Singh on Jun 3, 2008 11:13 AM
Hi,
As you are using Methods, it does not allow internal table with header line.
If you have used i_final with header line, change the code into itab and workarea.
Thanks
2008 Jun 03 10:15 AM
2008 Jun 03 10:17 AM
2008 Jun 03 10:21 AM
I understood that, can you post the code lines in errors. Remember there is a more severe check in object/method Abap programing, many restrictions exist in OO context.
Here you have a syntax error. If the check did not found the table you should have get an error reporting a missing field or interface.
If it were on work area you got an error stipulating that INTO or TRANSPORTING NO FIELDS are required.
Regards
2008 Jun 03 10:19 AM
Hi,
As you are using Methods, it does not allow internal table with header line.
If you have used i_final with header line, change the code into itab and workarea.
Thanks
2008 Jun 03 10:39 AM
hi,
please check if you have declared your class before the declaration of the internal table. if yes, declare your internal table first before the class.
regards,
Peter
2008 Jun 03 11:52 AM
Hi,
Please Post ur sample Code where the error has been.Probably there could be a syntax error at Loop At statement.Check it out.
Loop at i_final into w_final.
endloop.
2008 Jun 04 6:32 AM
METHOD HANDLE_ITEM_DOUBLE_CLICK.
G_EVENT = 'ITEM_DOUBLE_CLICK'.
G_NODE_KEY = NODE_KEY.
G_ITEM_NAME = ITEM_NAME.
ENDMETHOD.
Actually i want to read my internal table under above section.
when i am going to read internal table or Work Area like this:
METHOD HANDLE_ITEM_DOUBLE_CLICK.
Read itab index 1.
G_EVENT = 'ITEM_DOUBLE_CLICK'.
G_NODE_KEY = NODE_KEY.
G_ITEM_NAME = ITEM_NAME.
ENDMETHOD.
error is comming:
Field "Itab" is unknown. It is neither in one of the specified
tables nor defined by a "DATA" statement. .
i have already define internal table and fill above class calling
Edited by: Anshuman Singh on Jun 4, 2008 7:33 AM
2008 Jun 04 6:39 AM
Hi,
there is a syntax issue for READ..
METHOD HANDLE_ITEM_DOUBLE_CLICK.
Use READ TABLE ITAB INDEX 1.
G_EVENT = 'ITEM_DOUBLE_CLICK'.
G_NODE_KEY = NODE_KEY.
G_ITEM_NAME = ITEM_NAME.
Edited by: Shruthi R on Jun 4, 2008 7:39 AM
2008 Jun 04 6:45 AM
2008 Jun 04 6:48 AM
Yes,
Syntax of read statement using index is:
READ TABLE <itab> index 1
2008 Jun 04 6:50 AM
READ TABLE ITAB INDEX 1.
i have already use this.
but same error is comming
2008 Jun 04 6:53 AM
where is the table declared and does it have a header line ?
it should be declared globally.
2008 Jun 04 7:31 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |