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.

Former Member
0 Likes
685

hi all,

i want to display one variable value in message( type E or I ).

how can i do that.

example > Create record for type ' 01' in infotype 2006.

here 01 is a variable value.

thanks in advance.

kaustubh

4 REPLIES 4
Read only

Former Member
0 Likes
659

goto SE91 transaction and create a message class & message no. say 010 with & & &

010 & & &

In your program

MEssage i010(ZMSG) with 'Create record for type ' &L_no 'in infotype' &l_year.

Message was edited by:

Prashant Patil

Read only

Former Member
0 Likes
659

Hi Vinod,

Create a message in your message class with only value & & &.

Now when giving the message use like :

MESSAGE E999 WITH text-001

w_parameter

text-002.

Thanks and Best Regards,

Vikas Bittera.

Read only

Former Member
0 Likes
659

Hi,

create a message in message class as below.

Create record for type<b> &1</b> in infotype 2006. while calling this message

write like this.

DATA:VAR(2).

VAR = '01'.

MESSAGE E001(ZMSGCLS) <b>WITH VAR</b>.

like this u can pass 4 variables(&1&2&3&4)

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
659

Hi,

U can create message using tcode SE91 with a Message Class Name.

Also, u can refer <b>ABAPDOCU</b> tcode for various types of message usage.

Follow the steps and see it.

1. ABAP - Overview Articles

2. ABAP - By Theme

3. User Dialogs

4. Messages

5. Messages

Check it and reward if found useful.