The code seems pretty the same to me.
the only thing i would try is
ls_object-objkey = p_vbeln. <------concatenate SY-MANDT & P_VBELN
ls_object-objtype = 'VBAK'.
The code seems pretty the same to me.
the only thing i would try is
ls_object-objkey = p_vbeln. <------concatenate SY-MANDT & P_VBELN
ls_object-objtype = 'VBAK'.