Thanks for your reply.
Can you please elaborate by reverse method what do you mean? If I reset the error flag its giving a dump at ASSIGN ch_struc TO <fs>.
TRY.
CALL BADI lr_badi->map2i_extensionin
EXPORTING
im_container = im_container
im_name = im_name
im_error = lf_exit
CHANGING
ch_struc = ch_struc.
CATCH cx_mmpur_root.
EXIT.
ENDTRY.
CHECK lf_exit EQ cl_mmpur_constants=>no.
TRY.
ASSIGN ch_struc TO <fs>. (this is where short dump)
- convert container data to target structure
im_nls->cont_to_struc( EXPORTING cont = im_container
langu = sy-langu
IMPORTING struc = <fs> ).
CATCH: cx_root.
ENDTRY.