Display error page in Floorplan Manager
Various reason can be for terminating a Floorplan Manager application, like unsufficient authorization to launch the application. This can be done with the pattern below.
DATA:
ls_message TYPE symsg,
lo_fpm TYPE REF TO IF_FPM.
lo_fpm = cl_fpm_factory=>get_instance( ). "Access to FPM
ls_message-msgty = 'E'.
ls_message-msgid = 'ZBC'.
ls_message-msgno = '001'.
lo_fpm->display_error_page(
cl_fpm_error_factory=>create_from_t100(
is_t100 = ls_message
iv_technical_exception = CONV fpm_text( 'Explanation text'(001) )
iv_error_id = 'NO_AUTH'
)
).
Share this content: