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: 

Text message

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check this Blog.

-Aman

6 REPLIES 6

Former Member
0 Kudos

Check this Blog.

-Aman

0 Kudos

Hi Aman,

Thanks for reply.

But looking for inputs in framing the msg variable not with the procedure to log messages.

Rhea.

0 Kudos

What's in the text elements and what does your code look like?

0 Kudos

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.

0 Kudos

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

0 Kudos

Hi Maen,

Thanks alot you sloved my issue.

Rhea.