on 03-29-2012 12:36 PM
Hi all ,
I want to display an information message in portal using webdynpro abap .
So i tried in WDDOINIT method but not displaying message eventhough the code executed .
Used IF_WD_MESSAGE_MANAGER-->REPORT_MESSAGE for displaying .
Coula anyone please share any information so that i can display an information message using WDDOINIT option .
Regards ,
Sijin K P.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sijin,
Raise Warning message in WDDOMODIFYVIEW method and check.
IF first_time = 'X'.
* get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = lo_message_manager
.
* report message
CALL METHOD lo_message_manager->REPORT_MESSAGE
EXPORTING
MESSAGE_TEXT = 'This is an info msg'
MESSAGE_TYPE = if_wd_window=>co_msg_type_information.
ENDIF.
Hope this helps u.,
Thanks & Regards,
Kiran.
Hi Sijin,
As you said you are working on FITV_FPM component, my assumption is you are using this component to create trip or expenses right? You must be navigating to different components which are conned to FITV_FPM.
Can you please elaborate on what action do you want to display the message? What i wanted to know this since various components are called when you create/edit/delete expense or trips.
Execute your application and right click on window ->Display more help to exactly identify the webdynpro component you want to display message on.
PS:There is already a message area on the view layout of FITV_FPM i dont think you need to add another message area.
Bhanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sijin,
When you create expense report the first component is general data FITE_VC_GENERAL_DATA so in the wdoinit or wdomodifyview (depends on your requirement) method of component FITE_VC_GENERAL_DATA you should display the message.
For help either you dont have authorisation or its disabled in configuration
Paste the code, Have you passed 'I' to this MESSAGE_TYPE of the above method. Is the message displayed when run through SE80.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi lekha ,
code ,
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
DATA lv_msg_id TYPE string.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->report_message
EXPORTING
message_text = 'please make zoom level 100% '
* message_type = 'I' "CO_TYPE_ERROR
* 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 =
* enable_message_navigation =
* component =
receiving
message_id = lv_msg_id
.
i am not able to pass 'I' to message type as it is of type Integer .
Regards ,
Sijin K P.
Hi Sijin,
Please use the below code
CALL METHOD lo_message_manager->report_message
EXPORTING
message_text = 'please make zoom level 100% '
message_type = 1.
Since, there is no feasibility to report information message, instead we can display Warning.
and if you wanna display information in popup.. then just use the confirmation popup concept, and display, if user clicks on Ok then only your initial page can be displayed.
Hope this would be helpful.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.