cancel
Showing results for 
Search instead for 
Did you mean: 

Message class

Former Member
0 Kudos

Hi,

I have declared a variable l_string of type string.

I have concatenated the text ''Price family of the material is 00MB in line item' and vbap-posnr into this variable l_string.

If a particular condition is not satisfied,then it should give an error message.I have declared the message statement like this.

MESSAGE e999(ZI2C) WITH l_string.

When I checked in debugging mode,both the text and the value of vbap-posnr are coming into l_string variable like this 'Price family of the material is 00MB in line item 0080'.

But the message is showing only the text.It is not showing vbap-posnr(0080) value.Can anyone tell me why this is happening?

Regards,

Hema

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi hema,

Just now i ve handled this issue...

Do like this it may solve ur issue..

1) MESSAGE e999(ZI2C) WITH text-001 posnr.......

 if still not solved...

use the function module        FC_POPUP_ERR_WARN_MESSAGE
importing
 POPUP_TITLE       = 'give title text here'
 IS_ERROR            = 'X'
 MESSAGE_TEXT   = l_string.
 START_COLUMN   = 25
 START_ROW         = 6

it should resolve ur issue...

Regards,

Sreenivasa sarma k

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The variables that are passed to a message are limited to 50 character, so what is happening is the contents of l_string is getting truncated.

You approach should be to define the static part of the message (Price family of the material is 00MB in line item &1) in the message ID and number, then pass vbap-posnr only to the message.

Regards,

Nick