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: 

ABAP Logic

Former Member
0 Kudos

I have 3 variables in the program.

I need to do the validation and check if any of those 3 fields are blank.

If any one of the variables does not have data, I have to stop processing rest of the program.

Can someone tell me how to do that?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

IF var1 is initial or

var2 is initial or

var3 is initial.

stop.

endif.

or put a message error....

IF var1 is initial or

var2 is initial or

var3 is initial.

message e208(00) with 'erro in process'.

endif.

1 REPLY 1

Former Member
0 Kudos

IF var1 is initial or

var2 is initial or

var3 is initial.

stop.

endif.

or put a message error....

IF var1 is initial or

var2 is initial or

var3 is initial.

message e208(00) with 'erro in process'.

endif.