‎2010 Feb 02 1:18 PM
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.
‎2010 Feb 02 1:22 PM
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
‎2010 Feb 02 1:22 PM
Hi
In the INITIALIZATION event.
Write the following logic.
IF p_a is intial OR p_b is intial.
Message e(XXX).
Endif.
‎2010 Feb 02 1:22 PM
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
‎2010 Feb 02 1:26 PM
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.