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 Handling

Former Member
0 Likes
680

Hi All,

I want to populate parameters dynamically to a text message.Can any one tell me how to do it.If I use the & as 'The & exists',the message comes up as follows:

The ¶meter& already exists.

Kindly help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
621

v_meter = <soemvalue>.

message e000(zz) with v_meter.

Regards,

ravi

5 REPLIES 5
Read only

Former Member
0 Likes
622

v_meter = <soemvalue>.

message e000(zz) with v_meter.

Regards,

ravi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
621

Define your message in SE91 with a place holder.

THis is the message right &1.

Now, in your program, write the message like this.


message eXXX(XX) with 'Here'.

Regards,

Rich Heilman

Read only

andreas_mann3
Active Contributor
0 Likes
621

hi,

tr:

data : var01, var02.

message e001(00) with 'entries' var01 var02

'already exist'.

A.

Message was edited by: Andreas Mann

Read only

Former Member
0 Likes
621

Hi Debashree,

1).You need to create a message class in SE91 first.

Consider you have created the message class <b>ZMESS</b>

in SE91 with the message.

<b>Message  Message short text</b> 
000	 Plant & entered by user

Then you can use them in your program.


REPORT zarun.
PARAMETERS : plant TYPE marc-werks.
MESSAGE ID 'ZMESS' TYPE 'S' NUMBER '000' WITH palnt.
*or
MESSAGE s000(zmess) WITH plant. "your parameter or variable


Or you can declare your message class initially and then use it in the rest of the program. No need to specify Message ID (i.e.. Message class ) for each message.

REPORT  zarun
MESSAGE-ID zmess. "Message class declared in SE91

PARAMETERS : plant TYPE marc-werks.
MESSAGE s000 WITH plant .
  

Regards,

Arun Sambargi.

Message was edited by: Arun Sambargi

Read only

Former Member
0 Likes
621

Hi

If you don't need to create an your own class message, you can use this message of std class 00:

- 208: here you can insert only one text

- 368: for two texts;

- 398: for four texts;

and so (for example)

MESSAGE E398(00) WITH V_TEXT1 V_TEXT2 V_TEXT3 V_TEXT4.

Max