‎2009 Jun 09 11:13 AM
Hi,
I have a requirement to make the payment method RZAWE from REGUH as D or P only. How can i make this validate at selection-screen. when user will give another payment method it should prompt error and should give the selection to give D or P only.
Pls. help.
Thanks.
‎2009 Jun 09 11:17 AM
Hi,
you can validate the values entered by the user at selection screen event.
if payment method ne 'D' OR payment method NE 'P'.
MESSAGE 'Enter payment method as D or P' TYPE 'S' DISPLAY LIKE 'E'.
SET SCREEN 0.
endif.
KR Jaideep,
‎2009 Jun 09 11:40 AM
Hi,
use at selection-screen on P_RZAWE event.
And then raise error message if the user enters other than ' D' or ' P' payment methods type.
Regards,
Rajitha.
‎2009 Jun 09 11:48 AM
AT SELECTION-SCREEN OUTPUT on P_RZAWE.
if p_rzawe = 'd' or p_rzawe = 'P'.
Message i(000) with ' Incorrect entry'.
endif.
Revert back in case of issues
‎2009 Jun 09 12:02 PM
Use event at selection-screen output' .
Example.
At selection-screen output.
loop at screen where name = 'parameter name should be in upper case'.
if not parameter value = 'P' or parameter value = 'D'.
give the appropriate error message.
endif.
endloop.