cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Messages ?

Former Member
0 Kudos

Hi all,

i created some message in Assistance class.

i m displaying it as a error message based one condition in my program.

now i need to pass 2 attribute values to that message .how can i pass the values to the message at runtime..

anyway in general abap ,in function module FORMAT_MESSAGE ....to the variales v1 ,v2,....we are passing the values...

How can i get the same in WDA.

Regards,

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

former_member205703
Participant
0 Kudos

Hi Bhargava,

You can call the method REPORT_T100_MESSAGE of the message manager interface and pass the attributes.

data: lr_message_manager type ref to IF_WD_MESSAGE_MANAGER.

**instantiate the message manager reference , get the text you have created in assistance class inthe variables lv_p1.. .


call method lr_message_manager->report_t100_message
exporting                                                    
  msgid = 'MESSAGECLASS'                                              
  msgno = '100'                                              
  msgty = 'E'                                                
  p1    = lv_p1                                              
  p2    = lv_p2                                              
  p3    = lv_p3                                              
  p4    = lv_p4.

Regards

Amol

Answers (0)