10-06-2007 11:37 PM
Hi Experts,
my code:
<i><b> MESSAGE e000(z1) WITH 'Missing material' xlips-matnr
'batch' xlips-charg.</b></i>
I wuld like to hv:
<i><b>MESSAGE e000(z1) WITH 'Missing material' xlips-matnr
'batch' xlips-charg
'plant' xlips-werks.</b></i>
Issue: system saying that, ONLY 4 fileds r allowed for WITH clause in Message!!
Pls let me know that, Wht is the alternative to get the same result?
thanq.
10-07-2007 12:24 PM
Try the following code:
data: l_msg(250) type c.
concatenate 'Missing material'
xlips-matnr
'batch'
xlips-charg
'plant'
xlips-werks
into l_msg separated by space.
message l_msg type 'E'.
Works in ECC5 or ECC6, not sure about earlier versions.
Andrew
10-07-2007 12:15 AM
Why not concatenate 'batch' xlips-charg and 'plant' with xlips-werks to reduce the amount of variables passed with the message statement.
10-07-2007 12:24 PM
Try the following code:
data: l_msg(250) type c.
concatenate 'Missing material'
xlips-matnr
'batch'
xlips-charg
'plant'
xlips-werks
into l_msg separated by space.
message l_msg type 'E'.
Works in ECC5 or ECC6, not sure about earlier versions.
Andrew
10-07-2007 2:19 PM
Hi Srikhar,
This is the limitation with the SAP.
The better way is get all the messages in a single line using CONCATENATE and then use MESSAGE.
Regards,
Atish