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 CLAUSE

Former Member
0 Likes
613

HI

When i created a record ' 001' in the message bar

"001 is created"

for this what i have to do

3 REPLIES 3
Read only

naveen_inuganti2
Active Contributor
0 Likes
575

Hi...

So you can use that message in you r program.

1. Declare that message clas name with report name(top).

as...

> report Zsample no standard page heading message-id <your message class name>.

2. Write following code where ever you want to call that message.

> message e001(your message class name )

here 'e' indicate error message...

I for information.

W for warning.

A for abend

X for exit

S for status ... you can use.,

Thanks,

Naveen.I

Read only

vinod_vemuru2
Active Contributor
0 Likes
575

Hi Sreekanth,

Create the message in transaction SE91(Use appropriate message class).

Message text:

& is created.

Here & is the place holder where u can pass the dynamic values.

In ur program give message like this.

MESSAGE s123(Messageclass name) WITH l_record.

ur l_record have value 001.

So it display a message 001 is created.

Hope it is clear.

Thanks,

Vinod.

Edited by: Vinod Reddy Vemuru on Aug 20, 2008 4:13 PM

Read only

Former Member
0 Likes
575

hi,

once you have created a message class, you can use it anywhere in the report program.

syntax for calling that message is :

message < type of message><message id >(message class name)

for example,

message e001(zmy_message class).

In case you have dont want to create a message class, you can use messages directly by using this syntax,

message '<your message here'> type '<message type>'.

for example,

message 'information message' type 'I'.