2015 Aug 24 8:01 PM
Does anyone know if it's possible to handle error messages is submit statement?
I need it because I'm using submit inside a loop, and when error message occurs, it stops.
LOOP AT t_customer INTO w_customer.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
SUBMIT rfdkli41
WITH kunnr = w_customer-kunnr
WITH kkber = p_kkber
WITH rasid = p_rasid
WITH xc30 = p_xc30
WITH horda = p_horda
EXPORTING LIST TO MEMORY AND RETURN.
....
Thanks!
2015 Aug 24 8:24 PM
Hi. It is not possible to catch error messages using SUBMIT, use call transaction instead and get error messages in an internal table.
Does anyone know if it's possible to handle error messages is submit statement?
I need it because I'm using submit inside a loop, and when error message occurs, it stops.
LOOP AT t_customer INTO w_customer.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
SUBMIT rfdkli41
WITH kunnr = w_customer-kunnr
WITH kkber = p_kkber
WITH rasid = p_rasid
WITH xc30 = p_xc30
WITH horda = p_horda
EXPORTING LIST TO MEMORY AND RETURN.
....
Thanks!
2015 Aug 24 8:09 PM
Thiago,
For SUBMIT not. You can do is put a Try Catch.
Warm regards,
Raphael Pacheco.
2015 Aug 24 8:15 PM
Thanks, but I have already test it before post here
Any other suggestion?
2015 Aug 24 8:31 PM
Hummm... Another way is check if this "object" has been completely exported.
Sorry for indicate to you the statement "Try - Catch", this statement does not work in these cases.
Warm regards,
Raphael Pacheco.
2015 Aug 24 8:24 PM
Hi. It is not possible to catch error messages using SUBMIT, use call transaction instead and get error messages in an internal table.
2015 Aug 24 8:59 PM
2015 Aug 24 9:02 PM
Hi Mauro,
But, his original requirement to get back the list in memory will not work through CALL TRANSACTION, correct?
So, I think it is better to submit the program as a job and retrieve the list from the spool. Since job is run in a different session, even if the job cancels due to an error, the original program execution will not be stopped.
Thanks,
Juwin
2015 Aug 24 9:21 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |