Skip to Content
avatar image
Former Member

ERROR: Dereferencing of the NULL reference (termination: RABAX_STATE)

Hi all,

Im getting this dump while create structures in my cross entity Badi.But gt_comp contains data.r_type_struct is initial.cx_sy_ref_is_initial dump im getting.can anybody help me on this.

TRY.
r_type_struct = cl_abap_structdescr=>create( gt_comp ).
CATCH cx_sy_struct_creation .
ENDTRY.
*
TRY.
r_type_table = cl_abap_tabledescr=>create( r_type_struct ).
CATCH cx_sy_table_creation .
ENDTRY.
*
CREATE DATA: r_data_tab TYPE HANDLE r_type_table,
r_data_str TYPE HANDLE r_type_struct.
*
ASSIGN: r_data_tab->* TO <lt_table>,
r_data_str->* TO <lv_system>.
*populating <lt_table> to write data
LOOP AT lt_tab INTO wa_tab.
MOVE-CORRESPONDING wa_tab TO <lv_system>.
APPEND <lv_system> TO <lt_table>.
ENDLOOP.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers