3 weeks ago
Hello,
I have a requirement where i have to continue batch job even after error and the job should not cancel and the message should appear as error not like information or warning in the job log.
Hello Sandra,
Thanks for the response, I am creating a delivery using batch job for program RVV50R10C and inside this we have implemented some validation at IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_FINAL_CHECK and raising an error using message statement (TYPE E) for manual process (VL01N, VL02N) and we need to implement the same error for the batch job (RVV50R10C) without terminating the job.
As per your suggestion i am going to create a new custom function module with exception error_message to handle validation inside IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_FINAL_CHECK using message statement.
Am i following the correct procedure, please guide me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sandra_Rossi,
RVV50R10C running through background job only but i can't make message as success because it will create the delivery for the current record, want to stop the execution for the current record when the validation is success and store the message in the job log and go for the next record to process.
Will it work like this, if i write like below?
Inside the Implicit enhancement if i create a custom function module like below
call zfunc
exporting v1
exceptions
error_message = n_error
zfunc (implementation)
if xyz = '1'.
message ' Throw error' type 'E'.
endif.
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.