cancel
Showing results for 
Search instead for 
Did you mean: 

How to use messages in WebDynpro-ABAP

senthil_kumar29
Participant
0 Kudos

Hi,

How to use messages in WebDynpro-ABAP.

Does it has any class to manage messages like IWDMessageManager or we can just use standard SAP Message types.. like E,W,X,I,S..

I hope it have a message container to display messages.

Thank U for Ur time.

Cheers,

Sam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

see the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d8/2a934259a5cb6ae10000000a155106/frameset.htm">documentation</a> on messages...

Regards, Heidi

Answers (2)

Answers (2)

senthil_kumar29
Participant
0 Kudos

Thank U Guys..

Cheers,

Sam

former_member758419
Active Participant
0 Kudos

Hi,

Go through the below link for the documentation regarding using Messages in Webdynpro Abap.

http://help.sap.com/saphelp_erp2005/helpdata/en/0d/2ca9423961c96ae10000000a155106/frameset.htm

In Webdynpro Abap we have a interface IF_WD_MESSAGE_MANAGER.

In the above link u can also find the sample code on how to use messages in ur coding.

By default position of the message area is on top of the page, If a position different from the default message area position is desired,the "MessageArea" container UI element has to be used.

Hope this helps,

Sachi

senthil_kumar29
Participant
0 Kudos

Hi,

Thank U for Ur answer. Where to define these messages.

Cheers,

Sam

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi Sam,

Got to transaction SE91 to create a 'Z' Message Class,

there you define all the messages.

Regards

Abhimanyu L

former_member758419
Active Participant
0 Kudos

Hi Sam,

U can hard code the message or u can use the Assistance class's text elements to store the messages.

1) Code to display hard coded message:

  • report message

CALL METHOD l_message_manager->report_attribute_error_message

EXPORTING

message_text = "Enter the correct Connection ID"

element = elem_flightinfo

attribute_name = 'CONNID'.

2) Code to display message from text element of assistance class:

lv_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).

  • report message

CALL METHOD l_message_manager->report_attribute_error_message

EXPORTING

message_text = lv_text

element = elem_flightinfo

attribute_name = 'CONNID'.

Where Message "Enter the Correct Connection ID" is stored in Text Element with key '002'

Hope this helps,