Documentos de Académico
Documentos de Profesional
Documentos de Cultura
IF i_matnr IS INITIAL.
l_fun = 'Z_OBTENER_DETALLES_MATERIAL'.
l_exc = 'DEBE_INFORMAR_MATNR'.
* Texto de la Excepción
CALL FUNCTION 'SWO_TEXT_FUNCTION_EXCEPTION'
EXPORTING
language = sy-langu
function = l_fun
exception = l_exc
IMPORTING
shorttext = l_txt.
ELSE.
ENDIF.