on 2008 Jul 16 1:05 PM
Hi all,
i created some message in Assistance class.
i m displaying it as a error message based one condition in my program.
now i need to pass 2 attribute values to that message .how can i pass the values to the message at runtime..
anyway in general abap ,in function module FORMAT_MESSAGE ....to the variales v1 ,v2,....we are passing the values...
How can i get the same in WDA.
Regards,
Ravi
Hi Bhargava,
You can call the method REPORT_T100_MESSAGE of the message manager interface and pass the attributes.
data: lr_message_manager type ref to IF_WD_MESSAGE_MANAGER.
**instantiate the message manager reference , get the text you have created in assistance class inthe variables lv_p1.. .
call method lr_message_manager->report_t100_message
exporting
msgid = 'MESSAGECLASS'
msgno = '100'
msgty = 'E'
p1 = lv_p1
p2 = lv_p2
p3 = lv_p3
p4 = lv_p4.
Regards
Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
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.