‎2006 Sep 04 1:26 PM
hi experts,
how to handle errore while file transfer in outbound interface.
regards,
siri.
‎2006 Sep 04 9:13 PM
Hello Sireesha
If the assumption of Appana about your requirement is correct then you could also use a TRY/CATCH/ENTRY block to handle errors.
TRY.
OPEN DATASET ...
CATCH cx_root INTO lo_error.
" ... do error handling
ENDTRY.Regards
Uwe
‎2006 Sep 04 1:48 PM
Hi,
I am not clear on your doubt , do you want to capture errors while creating the file. check below code for this :
data : begin of i_errmsg occurs 0,
x_msg(100) type c,
end of i_errmsg.
OPEN DATASET x_file FOR output
MESSAGE l_msg
IN text MODE ENCODING DEFAULT.
x_RCODE = sy-subrc.
IF x_RCODE <> 0.
<b>i_errmsg-x_msg = l_msg.
append i_errmsg.</b>
endif.internal table i_errmsg will contain the error message details.
Regards
Appana
‎2006 Sep 04 9:13 PM
Hello Sireesha
If the assumption of Appana about your requirement is correct then you could also use a TRY/CATCH/ENTRY block to handle errors.
TRY.
OPEN DATASET ...
CATCH cx_root INTO lo_error.
" ... do error handling
ENDTRY.Regards
Uwe