10-07-2008 3:15 PM
Hi,
I have a requirement to log the message into application log
something like this
' Rundate for <file> is invalid for <cust>'
I hav to pass this msg text to a FM which will create the log (don't have problem here)
Right now i am coding like this
concatenate text-000 <file > text-002 <cust > into mymsg and pass this mymsg to FM.
text-001 , 002 are text symbols
It doesn't look gud option for me can anybody help me in framing the msg text .
can we use values in text symbols as we use in messages?
Also I have this message in a message class .(Rundate for & is invalid for & )
can i make use of it ? If yes How?
<removed_by_moderator>
TIA.
Rhea.
Edited by: Julius Bussche on Oct 7, 2008 5:06 PM
10-07-2008 3:20 PM
10-07-2008 3:20 PM
10-07-2008 3:30 PM
Hi Aman,
Thanks for reply.
But looking for inputs in framing the msg variable not with the procedure to log messages.
Rhea.
10-07-2008 3:32 PM
10-07-2008 3:40 PM
Hi,
Text-001 = Rundate for
text-002 = is invalid for
And also wat sh be the message no for Information message?
right know i am giving sy-msgno which is 616 .Is this Ok?
my code looks like this
concatenate text-006 ' ' wa_tab-file into mymsg.
concatenate text-007 ' ' wa_tab-cust into mymsg1 .
perform f_createlog using c_mesid c_msgtype sy-msgno mymsg mymsg1 .
Rhea.
10-07-2008 3:45 PM
You alread have a message class and number for "Rundate for & is invalid for &"
Use that to pass to your FORM.
Modify your FORM to pass message-id, message-type, message-number, message-variable1 through 4.
Then call it like:
perform f_createlog using your_message_id your_message_type your_msgno wa_tab-file wa_tab-cust '' ''.
I assume your FORM is calling some Function that is capable to handle the message type, id number and variables.
Edited by: Maen Anachronos on Oct 7, 2008 4:46 PM
10-07-2008 3:55 PM