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: 

message class

Former Member
0 Kudos

hi i am trying to give a message that will be like this:

1234(say) g/l account is valid for the profit center 2345(say)

1235(say) gl account is valid for the cost center 2345(say)

1345(say) g/l account is invalid for the profit center 2345(say)

1345(say) g/l account is invalid for the cost center 2345(say)

i want to display any of the message depending upon the conditions.

so how can i do it???

points promised!! thanks in advance!!

5 REPLIES 5

Former Member
0 Kudos

Hi,

Declare some Placeholders like &&&& in message class

and in the message give

Message e000 with itab-hkont 'g/l account is valid' ' for the profit center' itab-kostl.

reward if useful

regards,

ANJI

Former Member
0 Kudos

Go to SE91 Create a message class(ZMSGID) or use which is already existing

against the three digit message number write

ex

003 & g/l account is valid for the profit center &

in ur program

Message S003(ZMSGID) with < g/l account> <profit center>.

S-Success

W-Warning

I-Information

E-Error

A-Abend

X-Exit

santhosh

hope it helps.

santhosh

Former Member
0 Kudos

In a message class define a message as & & & & and take the message number of this.

suppose say the message id is ZZ. ( u can create message id's in SE91 )

now u can use this in your program !!

as

message e<mesgnumber>(ZZ) with w_glaccount 'text' 'text1' 'text2'.

You can use a maximum of four place holders for a message

regards,

sai ramesh

former_member632991
Active Contributor
0 Kudos

Hi,

write like this

define a message no with &1 &2 i.e. variables

message e003(zt) with variable 'g/l account is valid for the profit center' variable.

e.g.message e003(zt) with l_mblnr 'g/l account is valid for the profit center' l_mblnr.

Regards,

Sonika

.

Former Member
0 Kudos

hi,

Go to SE91 Create a message class(ZMSG)

against the three digit message number write

ex

000 g/l account is valid for the profit center

001 g/l account is not valid for the profit center

write what ever u want to display

in ur program

in first row write i.e the default row showing ur report name(let it bbe zreport ) add this line ...

<b>Report zreport MESSAGE-ID ZMSG.</b>

now in the condition where u want to show this msg write it as

<b>Message E003(ZMSG) with < g/l account> <profit center></b>.

here u can use E,S,X...what ever ur req is the meanig are

S-Success

W-Warning

I-Information

E-Error

A-Abend

X-Exit

if this info is helpful plz reward

ravi