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: 

Plz give me syntax to display simple masseage in abap

Former Member
0 Kudos

Plz give me syntax to display simple masseage in abap

6 REPLIES 6

Former Member
0 Kudos

there are several message types

i - information message,

w-warning msg.

s-success msg,

e-error msg,

a-abend msg,

x-short dump.

syntax is

MESSAGE I888(SABAPDOCU) WITH text-014 .

tht i used tht 888 and sapabapdocu to use standard message class

or else u can create u r own

as

MESSAGE I100(MSGCLASS) WITH TEXT-000.

0 Kudos

Thanks for help can u give any example without any message class.

0 Kudos

if it_final[] is not initial.

message ' The materials have a lesser stock ' type 'I'.

endif.

Former Member
0 Kudos

Syntax for MESSAGE:

MESSAGE (MESGNO.) (MESSAGE CLASS) WITH (VARIABLE)

MESGNO: refers to Message Number (ex. E123)

there are several message types

I - information message,

E-warning msg.

S-success msg,

E-error msg,

A-abend msg,

X-short dump.

MESSAGE CLASS: Is a class under which the messages are defined.

Variable is the value to be passed to the message class.

ex. MESSAGE E001 (ZNEWMESG) WITH VAR1.

Rewards if useful.

Former Member
0 Kudos

Hi,

instead of e u can give any message type.

message e888(sabapdocu) with ' ur message '.

rewards if it helps.

Former Member
0 Kudos

plzzzz reward points if useful plzzzz dont forget and feel free to ask any quiers

my mail id mutyalasunilkumar@gmail.com