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

ABAP Logic

Former Member
0 Likes
434

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
Read only

Former Member
0 Likes
409

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.

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 REPLY 1
Read only

Former Member
0 Likes
410

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.