Ads

How to Create Messages in WebDynpro ABAP

How to Create Messages in WebDynpro ABAP


To trigger error ,warning and display messages in WebDynpro ABAP component ,is another important mandate for webdynpro consultants.In the previous lessons ,we have learnt reading attributes,structures and writing data to context elements  .The next step is learning triggering messages in components .This is very important lesson because , we must be learn the displaying message coding part to complete a dynpro component.For that i am sharing my knowledge here with you to develop message part.


For this ,first of all , we have to integrate messages message log using the message manager.Next message manager is integrated into webdynpro code wizard.

First of all, we have to get message manger .


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.
MESSAGE_MANAGER=L_MESSAGE_MANAGER.

Report a message.
Call Method L_MESSAGE_MANAGER->REPORT_T100_MESSAGE.
EXPORTING
MSGID = 'SV'
MSGNO = '005'
MSGTY ='E'
*P1 =
*P2 =
*P3 =
*P4 =
MESSAGE_USER_DATA = 

From this lesson,we have learnt ,how to create or trigger messages in WebDynpro ABAP components ,in next lesson,i will come one more useful for dynpro consultants.

Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced