Application Development and Automation 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: 
Read only

Message Class with several variables

d4xtian
Participant
0 Likes
2,851

I have create a message class to pop up if there is an error.

i have two way i want to solve...

I would if the conditions i am asking isn't true i can't allow the program to move foward...

And i would to know if it is possible to have two variable in the message?


hers is the part of the code

Thanks you

if P_long = 0 OR P_larg = 0.

Message I001(Zmp) with p_vol and with p_val.

else.

Message I002(zmp).

endif.


4 REPLIES 4
Read only

FredericGirod
Active Contributor
2,744

try transaction ABAPDOCU and enter MESSAGE (select ABAP message)

you will find the correct syntax to use with several variables (4 at max)

Read only

Sandra_Rossi
Active Contributor
2,744

A "message class" can't have variables, but a "message" can.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,744
Read only

former_member808116
Participant
0 Likes
2,744

At the message class, if you want to display more variables (up to 4 variables), you need to add : &1 &2 &3 &4 corresponding to the variables 1 2 3 4

Goto: SE91 or Se80 to display Message Class.