Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function returning message text

david_fryda2
Participant
0 Likes
1,024

Hi everyone,

Is there a function that returns the message text depending on the message class and message id ? (instead of reading from table T100).

Thanks.

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
952

MESSAGE_TEXT_BUILD

6 REPLIES 6
Read only

Former Member
0 Likes
952

hI

write_message

Max

Read only

Manohar2u
Active Contributor
0 Likes
953

MESSAGE_TEXT_BUILD

Read only

former_member188829
Active Contributor
0 Likes
952

FM:FORMAT_MESSAGE

Read only

santhosh_patil
Contributor
0 Likes
952

Hi ,

check with

RS_MSG_TEXT

RSAP_GET_MSG_TEXT

-


santhosh

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
952

Hi,

Check this sample.

DATA: T_MESSTAB TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

DATA: W_TEXTOUT LIKE T100-TEXT.

LOOP AT T_MESSTAB.

IF T_MESSTAB-MSGTYP = 'E'.

CALL FUNCTION 'MESSAGE_TEXT_BUILD'

EXPORTING

MSGID = T_MESSTAB-MSGID

MSGNR = T_MESSTAB-MSGNR

MSGV1 = T_MESSTAB-MSGV1

MSGV2 = T_MESSTAB-MSGV2

MSGV3 = T_MESSTAB-MSGV3

MSGV4 = T_MESSTAB-MSGV4

IMPORTING

MESSAGE_TEXT_OUTPUT = W_TEXTOUT.

IF SY-SUBRC = 0.

write w_textout.

ENDIF.

ENDIF.

ENDLOOP.

Read only

0 Likes
952

Thanks to everyone.

The "MESSAGE_TEXT_BUILD " function does really help.

Regards.