Skip to Content
0
Former Member
Nov 21, 2005 at 04:20 AM

Widening Cast

19 Views

Hi,

I am using wideningcast operation for development purpose. In a particular include iam using two forms.

*&----


*& Form check_row_type

*&----


DATA: lref_meta_data TYPE REF TO xx_meta_data.

CATCH SYSTEM-EXCEPTIONS xxx_xxx_error = 4.

lref_meta_data ?= ps_meta_data_row.

endcatch.

*&----


*& Form check_row_char

*&----


DATA: lref_meta_data TYPE REF TO xx_meta_data.

CATCH SYSTEM-EXCEPTIONS xxx_xxx_error = 4.

lref_meta_data ?= ps_meta_data_row.

endcatch.

While using this two forms in a same include i am getting a warning like no read access to lref_meta_data (in extended program check).

in each form the declaration is needed seperately otherwise it will shows the error that lref_meta_data

is not declared in data.

Is there any ways to remove this warning?