cancel
Showing results for 
Search instead for 
Did you mean: 

Message while processing Adobe form

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Prabu,

We are using HCM forms and the message is been display above the form which is in portal. I have written all the code in an Enhancement which runs the process of the HCM form.

Regards,

Kumar.

Former Member
0 Kudos

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