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: 

Message Class with several variables

d4xtian
Participant
0 Kudos
573

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

FredericGirod
Active Contributor
466

try transaction ABAPDOCU and enter MESSAGE (select ABAP message)

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

Sandra_Rossi
Active Contributor
466

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

raymond_giuseppi
Active Contributor
0 Kudos
466

former_member808116
Participant
0 Kudos
466

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.