on 04-09-2008 10:33 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.