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

How do we validate input fields on the selection screen

Former Member
0 Likes
426

How do we validate input fields on the selection screen

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
406

Hi,

You can validate AT SELECTION-SCREEN OUTPUT or AT SELECTION-SCREEN events.

Please check this link for sample codes.

http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

Regards,

Ferry Lianto

Read only

harimanjesh_an
Active Participant
0 Likes
406

hi balram,

u can validate input fields using <b>AT SELECTION-SCREEN</b> Event.

PARAMETERS : p_werks TYPE marc-werks.

AT SELECTION-SCREEN ON p_werks.

SELECT SINGLE *

FROM t001w

WHERE werks = p_werks.

IF sy-subrc <> 0.

MESSAGE 'Invalid Plant' TYPE 'I'.

ENDIF.

Like this, we can validate user input for plant.

check this link:

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

Reware me if useful......

Harimanjesh AN