Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error message with variable

Former Member
0 Kudos

Is it possible to include a variable in message box?

For example, i have a variable v_name and i want to include it in my error message.

MESSAGE i001.

1 ACCEPTED SOLUTION

former_member598013
Active Contributor
0 Kudos

Hi Enrique,

Offcourse you can add your message in the message box only thing is you nedd to create a Message id with the below format.


001      &  Not Found in the Database.

in your statement you have to write:


Message I001 v_variable.

Then automatically the '&' will be replaced by V_Variable. and you will get the output as.

989898 Not Found in the Database.

Thanks,

Chidanand

3 REPLIES 3

former_member598013
Active Contributor
0 Kudos

Hi Enrique,

Offcourse you can add your message in the message box only thing is you nedd to create a Message id with the below format.


001      &  Not Found in the Database.

in your statement you have to write:


Message I001 v_variable.

Then automatically the '&' will be replaced by V_Variable. and you will get the output as.

989898 Not Found in the Database.

Thanks,

Chidanand

0 Kudos

Thanks Chidanand.

Its clear now.

Former Member
0 Kudos

The exact thing to do