‎2007 Apr 11 10:06 AM
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!!
‎2007 Apr 11 10:08 AM
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
‎2007 Apr 11 10:10 AM
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
‎2007 Apr 11 10:12 AM
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
‎2007 Apr 11 10:12 AM
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
.
‎2007 Apr 11 10:25 AM
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