Application Development 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: 

message

Former Member
0 Kudos

Hi,

How to concatenate 2 messages which are declared in message class.

(For ex:100,101 messages in message class zy.)

3 REPLIES 3

former_member195698
Active Contributor
0 Kudos

Use BAPI_MESSAGE_GETDETAIL to get the Text related to the Messages and then you can concatenate the two into a Text variable.

call function 'BAPI_MESSAGE_GETDETAIL'

exporting

id = Message Class

number = Message Number

language = sy-langu

textformat = 'ASC'

importing

message = w_message.

Regards,

Abhishek

Former Member
0 Kudos

data: begin of wa,

mtext type string,

end of wa.

data: itab like table of wa.

data: fulltext type string.

select text from t100 into table itab where arbgb = 'zy' and ( msgnr = '100' OR MSGNR ='101' ).

loop at itab into wa.

concatenate fulltext wa-mtext into fulltext.

endloop.

message fulltext type 'I'.

0 Kudos

Hi ramu,

Thanks,

But already i have created 2 messages ( Msg number 100 and 101) in message class zy.I want to concatenate tht 2 msg numbers and display it in customer exit.

Pls guide me to acheive this...