Application Development and Automation 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: 
Read only

Message printing problem.

Former Member
0 Likes
814

Dear All,

I have did like this for dynamic message printing.

" select * FROM mara INTO table it_mara up to max ROWS.

DESCRIBE TABLE it_mara LINES VAR1.

MESSAGE I005(ZMESG) WITH 'Found' var1. "

005 is the message with text 'Record'.

but while displaying message it coming only

'Record' on message window but it should come 'Record Found 20'.

It is not coming like that what is problem please tell me .

and if 005 message number, i make it blank then it is coming like

'I:ZMESG:005 Record 20'.

I want to show combine message on that message window, how to do that.Please give me your inputs.

Regards,

Sanket.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
787

Hi Sanket,

In Message class u need to declare as follows,

005 Record & &

instead of

005 is the message with text 'Record'.

Define this in message class and use ur code (MESSAGE I005(ZMESG) WITH 'Found' var1.) u ll get the desired answer.

Success...

6 REPLIES 6
Read only

Former Member
0 Likes
787

Hi Sanket.

Use &1 in Texe element after Record.

This will do

Sridhar

Read only

former_member745780
Active Participant
0 Likes
787

give "&" this to the messge in message class where you want to show the variable.

Read only

Former Member
0 Likes
788

Hi Sanket,

In Message class u need to declare as follows,

005 Record & &

instead of

005 is the message with text 'Record'.

Define this in message class and use ur code (MESSAGE I005(ZMESG) WITH 'Found' var1.) u ll get the desired answer.

Success...

Read only

Former Member
0 Likes
787

Define TEXT-005 like "Record found %".

After that:

move text-005 to variable.

replace % with var1 into variable.

message i208 with variable.

hope this helps

Regards

Read only

0 Likes
787

Dear all,

I am very thankful for your immediate reply's .

My problem i solved thanks you all.

I have given respective points too.

Regards,

Sanket.

Read only

Former Member
0 Likes
787

Hi Sanket,

define your message in your program as given bellow.

MESSAGE i000(ZMESG) WITH 'Message' 'test' variable.

Now create message '000' in your message class 'ZMESG' as '& & &'.

now your program will do as you desired.

thanks