on 07-04-2011 9:34 AM
Hi,
I have a req in Webdynpro standard view to display error message when field have no value.
For this i have used enhancement and under that i am displaying error msg by
CALL METHOD cl_dp_wd_msghdl=>report_message
EXPORTING
iv_message = lv_message
iv_show_as_popup = ABAP_FALSE
iv_cancel_navigation = 'X'" ABAP_TRUE
io_api_controller = lr_controller
iv_message_type = 'E'
io_fpm_msg_manager =
wd_comp_controller->mo_fpm->mo_message_manager.
but it is stoping there ?
saved the order with sucess message and error message both.
Shilpi,
Use report_error_message...
report mesage will simply show the message, it wont stop the process. where as report_error_message will stop the process.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi..
pls post ur code, so that i can change. or follow this way...
***ls_value is field value
IF LS_value IS INITIAL.
report message
CALL METHOD LO_MESSAGE_MANAGER->REPORT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'Please enter the value.'
PARAMS =
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 =
RECEIVING
MESSAGE_ID =
.
else.
here write your actual logic, i mean if value is there ..
Endif.
Regards
Srinivas
Hi,
I have done like this .
this is enhancement in webdynpro.
CALL METHOD lr_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = lv_message
show_as_popup = 'X'"iv_show_as_popup
cancel_navigation = abap_true "iv_cancel_navigation
view = 'V_ADD_DATA'.
Shilpi,
Use report_error_message...
report mesage will simply show the message, it wont stop the process. where as report_error_message will stop the process.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.