Yo lo hago asi
En todas las batchs inputs yo cargo un fichero de errores de la siguiente manera esperio k te sirva :
CALL TRANSACTION 'PA30' USING ITAB_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_ERRORES_1.
*Cargamos los errores en la tabla interna it-errores
if ( sy-subrc <> 0 ).
loop at it_errores_1.
select single TEXT from t100 into it_errores-txt
where ARBGB = it_errores_1-MSGID AND
MSGNR = it_errores_1-MSGNR AND
SPRSL = it_errores_1-MSGSPRA.
append it_errores.
endloop.
endif.
endloop.
endform. "cargar_datos
|