When executing below code,
i am not getting message 'TEST' as
error message. why.
WITH option is not working i guess.
anything should be added.?
Report ......message-id zfi000.
AT SELECTION-SCREEN.
IF NOT V_BUKRS IN S_BUKRS.
MESSAGE E106 WITH 'TEST'.
ENDIF.
when i check this condition i get only value
stored in E106 row at table.
ambichan.
Hi Ambichan,
1. Go to SE91. Give the Message Class as ZFI000. See if there's an '&' in the message number 106.
OR
2. Double click the message E106 in your program code. See if the message contains any '&' symbol.
The & symbol in a message is called a <i>placeholder</i>. Only if a message is defined with an '&' you can supply the variables / strings to the message using the WITH addition.
For example, in your case, you can define the message (in SE91) as :
Company code & is excluded in the Select-Option.
and in your code you can issue the message as:
message e106 with v_bukrs.
Regards,
Anand Mandalika.
Add a comment