on 08-03-2010 12:01 PM
Hi,
I am trying to display error message while running through an adobe form. Am using the below code to display the message but its running through the code and not display any kind of message. Just wondering if am missing any thing.
DATA message_handler TYPE REF TO cl_hrbas_message_list.
DATA: message_dummy1 TYPE string.
DATA new_message TYPE symsg.
CREATE OBJECT message_handler.
MESSAGE e115(z_msg) INTO message_dummy1.
MOVE-CORRESPONDING sy TO new_message. u201Cgetting the desc of msg. in new_message
CALL METHOD message_handler->if_hrbas_message_handler~add_message
EXPORTING
message = new_message.
Thanks,
Kumar
Hi,
What kind of object you are executing?.
Is it a normal Adobe form or HCM process and forms?.
And where you wrote this code and where you wants to display this message and when?
Regards,
Prabu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used the same kind of code as shown below. For me it triggers perfectly.
data : MESSAGE TYPE SYMSG,
MESSAGE_DUMMY TYPE STRING.
MESSAGE E003(Z_EE_TEST) WITH INTO MESSAGE_DUMMY.
MOVE-CORRESPONDING SY TO MESSAGE.
MESSAGE_HANDLER->ADD_MESSAGE( EXPORTING MESSAGE = MESSAGE ).
RETURN.
Also please confirm whether the message class has been created correctly.
Regards,
Prabu
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.