cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the messages from a message class to display

Former Member
0 Kudos

Hi all,

Could u help me capture the messages which are there in the message class.

Purpose:

I have collected the message numbers into a variable with the select statement, now i want display the message text with that varialble numbers.

syntax:

write message <variable> to < table-textlemnent>

but it is not working .

Regards,

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ravicharan,

You mean how to do this in ABAP? Like in an ABAP proxy?

If this is what you mean, then use this routine. If not, please further elaborate what you're trying to do.

Best Regards,

Ofer

form format_message using

value(P_ID) type BAPIRET2-ID

value(P_TYPE) type BAPIRET2-TYPE

value(P_NUMBER) type BAPIRET2-NUMBER

value(P_V1) type c

value(P_V2) type c

value(P_V3) type c

value(P_V4) type c

P_MESSAGE type BAPIRET2-MESSAGE.

message ID P_ID TYPE P_TYPE NUMBER P_NUMBER

WITH P_V1 P_V2 P_V3 P_V4

INTO P_MESSAGE.

endform.