BAPI Return EAX Hata kontrolü
Bapiret2 ve bapireturn1 tablolarında hata mesajı kontrolü
form f_check_erros tables prt_returns structure bapireturn1 changing chn_error type c.
data: ls_return type bapireturn1.
loop at prt_returns into ls_return where type ca `EAX`.
chn_error = `X`.
perform f_show_message using text-err ls_return-id ls_return-type ls_return-number
ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
return.
endloop.
form f_check_erros tables prt_returns structure bapiret2 changing chn_error type c.
data: ls_return type bapireturn1.
loop at prt_returns into ls_return where type ca `EAX`.
chn_error = `X`.
* perform f_show_message using text-err ls_return-id ls_return-type ls_return-number
* ls_return-message_v1 ls_return-message_v2 ls_return-message_v3 ls_return-message_v4.
return.
endloop.
endform. "f_check_erros
endform. "f_check_erros