Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.