cancel
Showing results for 
Search instead for 
Did you mean: 

Add a message in a standard WD

Former Member
0 Kudos

Dear Friends:

    We are going to use this WD for our W2 online: HRESS_C_ONLINE_W2_REPORT, we would like to add a message there, so that all employees can see it while seeing their W2.

   I was thinking about enhancing method WDDOINIT so that a popup is triggered once this WD is accessed, or add an static text somewhere in the webdypro view. Which option do you think is the better in terms of easiness to implement? Also, do you know a way to trigger a popup in the WD (possible in the method WDDOINT)  which does not affect the rest of the logic?

Thanks and regards!

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi,

I suggest you to go for view enhancement and add a text view ui element in view layout. Here you can add your text and even you can colour the text.

Hope this is easier to implement

Regards,

Rama

nishantbansal91
Active Contributor
0 Kudos

Hi Federico,

For this add the custom message directy to the class at dynamic time

CALL METHOD /sapsrm/cl_pdo_msg=>/sapsrm/if_pdo_msg_provider~add_message_static

     EXPORTING

       it_messages        = lt_messages

     CHANGING

       co_message_handler = co_message_handler.

lt_message contains the message and add the message as per your requirement.

Regards.

Nishant Bansal