Ver Mensaje Individual
  #5  
Viejo 06/05/10, 17:28:22
AlexisChavero
 
Mensajes: n/a
Hola Gaos,
Prueba con lo siguiente.

CLASS error DEFINITION.
PUBLIC SECTION.
CLASS-METHODS msg EXCEPTIONS not_found.
ENDCLASS.

CLASS error IMPLEMENTATION.
METHOD msg.
MESSAGE e208(00) WITH 'texto' RAISING not_found.
ENDMETHOD.
ENDCLASS.
...
error=>msg( ).
error=>msg( EXCEPTIONS not_found = 4 ).
IF sy-subrc = 4.
...
ENDIF.

De esa manera puedes manerjar la excepcion. Sinseramente nunca lo utilice.
Otra cosa que se me ocurre, es que dentro de la solapa EXCEPCION de tu Funcion Z coloques el NOT_FOUND.
Espero te sirva.
Saludos,
Alexis.
Responder Con Cita