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: 

Handling Messages

Former Member
0 Kudos

Hi all,

I need to handle messages, with values in the message dynamically. Like 'Material number 1000 created'.

Mat. no 1000 is to be passed dynamicaly.

Please let me know how to handle this.

Thnks

Nandha

1 ACCEPTED SOLUTION

former_member533584
Contributor
0 Kudos

HAI,

iin message class u create one message like 'Material number &1 created'.

in program you call the message as

message iXXX with t_mara-matnr.

regards,

ananth

5 REPLIES 5

former_member533584
Contributor
0 Kudos

HAI,

iin message class u create one message like 'Material number &1 created'.

in program you call the message as

message iXXX with t_mara-matnr.

regards,

ananth

ChandraMahajan
Active Contributor
0 Kudos

Hi,

Create message class using Tcode SE91. as 'Material number & created'.

and use the same in the report using message statement.

Regards,

Chandra

Former Member
0 Kudos

hi,

try this,

DATA: var(20) TYPE c VALUE 'material no',

var1 TYPE string.

var1 = 1000.

CONCATENATE var var1 INTO var1 SEPARATED BY space.

MESSAGE var1 TYPE 'I'.

Regards,

Bijal

abdul_hakim
Active Contributor
0 Kudos

Hi,

You need to use the Place holders while creating messages:

For Instance:

While Creating message use the below statement:

Material Number &1 Created

While Calling from the program

MESSAGE IXXX(MSG.CLASS) WITH MATNR.

Regards,

Hakim

former_member194623
Participant
0 Kudos

Hi Nandha,

Ur question has been answered well by the guys. Award points and close this thread.

Don't clutter-up forum.

Regards,

Manish Joshi