Good evening guys.
I set the following code in enhancement method (pre-method) of ONACTIONNAVIGATE method, which is triggered after push the "Review" button in WebDynpro Application FITE_REQUEST:
method PRED78YJIDJ8M8KXTC2MXQI1XK5O . "Exit of ONACTIONNAVIGATE (in ZENH_FITV_FPM_02 )
data: L_CURRENT_CONTROLLER type ref to IF_WD_CONTROLLER,
L_MESSAGE_MANAGER type ref to IF_WD_MESSAGE_MANAGER,
TEKSTO TYPE STRING.
IF NAVIGATION_TYPE = 'FORWARD'.
L_CURRENT_CONTROLLER ?= WD_THIS->WD_GET_API( ).
call method L_CURRENT_CONTROLLER->GET_MESSAGE_MANAGER
receiving
MESSAGE_MANAGER = L_MESSAGE_MANAGER.
report message
CALL METHOD l_message_manager->REPORT_T100_MESSAGE
EXPORTING
MSGID = '00'
MSGNO = '398'
MSGTY = 'E'
P1 = 'Test'
P2 = 'Test2'
P3 =
P4 =
MSG_USER_DATA =
IS_PERMANENT = ABAP_FALSE
SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW =
SHOW_AS_POPUP =
CONTROLLER_PERMANENT_MSG =
MSG_INDEX =
CANCEL_NAVIGATION = 'X'
ENABLE_MESSAGE_NAVIGATION =
RECEIVING
MESSAGE_ID =
.
ENDIF.
endmethod.
Unfortunately, this code is not working, because the message is not appearing. I generated this piece of code with the WebDynpro Code Wizard, but even so is not working.
The standard application generates standard messages an places them in WDR_MESSAGE_AREA WD component, in the View MESSAGE_AREA, regarding blanks in text fields that are located on another WebDynpro component (FITE_VC_GENERAL_DATA, view GENERAL_DATA_VIEW). I put my own code in WD component FITV_FPM, in the LAYOUT_VIEW. But I wanna the messages also appear at WDR_MESSAGE_AREA WD component, MESSAGE_AREA view.
Do you know why I am having trouble generating an error message in this standard Webdynpro? It is not possible to generate an error message to appear in another Webdynpro component, but the same WD application?
Regards guys!