‎2008 Mar 12 6:07 AM
hi i need to validate a field at the selection screen on filed event.
i field is allowed only to enter alfa character or *,how can i validate is there any key word please let me know.imm points are rewarded.thans alot
‎2008 Mar 12 6:14 AM
Hi,
Check this code.
At Selection-screen on P_FIELD.
if P_field CA sy-abcde.
if P_Field CO '*'.
---then correct.
else
---give error message.
endif.
Reward if helpful.
Regards.
‎2008 Mar 12 6:14 AM
Hi,
Check this code.
At Selection-screen on P_FIELD.
if P_field CA sy-abcde.
if P_Field CO '*'.
---then correct.
else
---give error message.
endif.
Reward if helpful.
Regards.
‎2008 Mar 12 6:16 AM
PARAMETERS : field1(10) TYPE c.
AT SELECTION-SCREEN ON field1.
IF field1 NA 'ABCDEFGHIJKLMNOPQRSTUVWXYZ*'.
MESSAGE 'Invalid Entry' TYPE 'E'.
ENDIF.
Regards,
V.Balaji
‎2008 Mar 12 6:17 AM
Hi,
REPORT ZTEST_SELE.
parameters: test type c.
at selection-screen.
if test ne '*' or test ne'#'.
message e000(sorry).
endif.
Award Points if useful.
‎2008 Mar 12 6:18 AM
hello
find below the code for validating the alfa and * .
if not i_filed CS all the alfa chars.
message '...........................' type 'E'.
endif.
‎2008 Mar 12 6:40 AM
Hi,
To validate a field on selection screen use the event----
At selection-screen on <field>.
If field NE '*' or alfa.
message e000(zmsg).
endif.
regards,
vineela.
‎2008 Mar 12 6:44 AM
Hi,
At Selection-screen on p_field.
if not p_field CO sy-abcde or p_field NE '*'.
message E001(zmsg).
endif.
rgds,
bharat.
‎2008 Mar 12 9:24 AM
Hi
You can check it using AT SELECTION-SCREEN ON FIELD < XYZ>
CHECK <XYZ> CA SY-ABCDE OR <XYX> EQ '*'.
MESSAGE < >.