on 05-19-2008 3:44 PM
Hi,
Iam new to webdynpro.Iam displaying a success message in a message area by using message manager.I need to display the current date at the end of the message.
Please anybody suggest me the way.
Thanks,
Kumar.
Hello,
Get the date (system variable sy-datum ) format it (you can use the command write to it) and then concatenate to your message.
Command write:
DATA: date_short TYPE c LENGTH 8,
date_long TYPE c LENGTH 10,
date_mask TYPE c LENGTH 8.
WRITE sy-datum TO: date_short,
date_long,
date_mask DD/MM/YY.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks to all.Its working fine. But i need to display the message in bold letters.suggest me the process.
Thanks,
Kumar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use the following code :
In your messase in the message class use the & symbol at the end of the messae.
In webdynpro code pass the date in msgv1 attribute as shown below.
data: l_current_controller type ref to if_wd_controller,
l_message_manager type ref to if_wd_message_manager.
l_current_controller ?= wd_this->wd_get_api( ).
l_message_manager = l_current_controller->get_message_manager( ).
l_message_manager->report_t100_message(
exporting
msgid = return-msgid
msgno = return-msgno
msgty = return-msgty
msgv1 = sy-datum
).
Regards,
Shruthi R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sathish,
Check this below code for success message.
DATA : MSG(100).
MSG = 'THE CURRENT DATE IS : '.
CONCATENATE msg sy-datum into MSG.
* get message manager
data: l_current_controller type ref to if_wd_controller,
l_message_manager type ref to if_wd_message_manager.
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_SUCCESS
EXPORTING
MESSAGE_TEXT = msg.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.