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

Payment Method

Former Member
0 Likes
639

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.

4 REPLIES 4
Read only

jaideepsharma
Active Contributor
0 Likes
602

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,

Read only

Former Member
0 Likes
602

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.

Read only

Former Member
0 Likes
602

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

Read only

Former Member
0 Likes
602

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.