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

Validation check in selection screen

Former Member
0 Likes
445

Hi experts,

I have 2 parameters p_a and p_b in my selection screen.

What I need is that the users enters value in at least one of these parameters.

If not, he should get a proper error message to do so.

How and in which event should i do this?

Thanks,

Ajay.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
415

Hi,

You can check this with simple if else condition.

If p_a is initial and p_b is initial.
* Give error message saying at least one of the fields needs to be filled.
Endif.

Thanks,

Archana

3 REPLIES 3
Read only

jyotheswar_p2
Active Participant
0 Likes
415

Hi

In the INITIALIZATION event.

Write the following logic.

IF p_a is intial OR p_b is intial.

Message e(XXX).

Endif.

Read only

Former Member
0 Likes
416

Hi,

You can check this with simple if else condition.

If p_a is initial and p_b is initial.
* Give error message saying at least one of the fields needs to be filled.
Endif.

Thanks,

Archana

Read only

Former Member
0 Likes
415

Hi

In the event 'At Selection-screen' , use the code

if p_a is initial and p_b is initial.

  • Error Message

Message e001(ZXX).

endif.