‎2009 Dec 23 3:57 AM
hello all,
can anyone please tell me that how can i fetch the message from message class?
because i have to take that message in one variable and have to pass it in function module.
regards saurabh.
‎2009 Dec 23 4:09 AM
Hi,
DATA : MESSAGE TYPE STRING.
Select TEXT from t100 into MESSAGE where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
msgnr = 'YOUR_MSGNR'
or if you want all the messages to fetch in a single query to avoid performance issue
Select * from t100 into itab where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'Cheerz
Ram
‎2009 Dec 23 4:05 AM
You can do this in this way :
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO mtext
‎2009 Dec 23 4:09 AM
Hi,
DATA : MESSAGE TYPE STRING.
Select TEXT from t100 into MESSAGE where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'
msgnr = 'YOUR_MSGNR'
or if you want all the messages to fetch in a single query to avoid performance issue
Select * from t100 into itab where SPRSL = 'EN' ARBGB = 'YOUR_MESSAGE_CLASS'Cheerz
Ram
‎2009 Dec 23 4:14 AM
Hi Saurabh,
After getting the message with the above syntax you can pass the variable into teh function module by declaring a import paramater of type STRING or BALMSGTXTP
Regards,
Swarna Munukoti