11-30-2007 12:08 PM
Hi,
How to concatenate 2 messages which are declared in message class.
(For ex:100,101 messages in message class zy.)
11-30-2007 12:10 PM
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
11-30-2007 12:18 PM
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'.
11-30-2007 1:43 PM
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...