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'
	)
).
SAPDEV.EU
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.