2010 Mar 18 10:04 AM
Hiii
i have a code as below
DATA:
lc_oref TYPE REF TO cx_root.
LOOP AT ITAB.
TRY .
DELETE FROM DATABASE " Try catch if delete from database fail
CATCH cx_sy_open_sql_db INTO lc_oref.
lv_text_change = lc_oref->get_text( ).
ENDTRY.
ENDLOOP.
My question is do we need to clear or refresh lc_oref? since this is a local class. how do we do it?
Hiii
i have a code as below
DATA:
lc_oref TYPE REF TO cx_root.
LOOP AT ITAB.
TRY .
DELETE FROM DATABASE " Try catch if delete from database fail
CATCH cx_sy_open_sql_db INTO lc_oref.
lv_text_change = lc_oref->get_text( ).
ENDTRY.
ENDLOOP.
My question is do we need to clear or refresh lc_oref? since this is a local class. how do we do it?
2010 Mar 18 11:05 AM
no, you don't need to do it as it is local
even if global, you would not need it as catching exception would overwrite it anyway
but if you needed, you should use CLEAR or FREE.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |