Skip to Content
0

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

Jan 03 at 10:51 AM

72

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers