‎2007 Oct 04 7:45 AM
hi...
for parameters option how can i check the input value is valid or not
‎2007 Oct 04 7:53 AM
hi
do
at selection-screen.
check for the value entered by user in its master table.
eg: for valid material no.
tables: mara.
parameters: p_matnr like mara-matnr.
at selection-screen.
select single * from mara where matnr = p_matnr.
if sy-subrc <> 0.
error message
endif.
‎2007 Oct 05 8:10 AM
hi..
thanks a lot for replying.
is their any other possibilities fior finding the validating input values in selection-screen.
any function modules..
‎2007 Oct 05 8:12 AM
hi..
thanks a lot for replying..
is their any possibilities to validate the input values in the parameters..
like FM.
plz reply..
‎2007 Oct 04 7:53 AM
Check this code
TABLES : t001.
PARAMETERS : p_ccd TYPE t001-bukrs.
AT SELECTION-SCREEN.
IF NOT p_ccd IS INITIAL.
SELECT SINGLE * FROM t001 WHERE bukrs = p_ccd.
IF sy-subrc NE 0.
MESSAGE e000(ztest_gopi) WITH 'Incorrect Company Code'.
ENDIF.
ENDIF.Regards
Gopi
‎2007 Oct 04 7:55 AM
do the validation in at selection screen on field event...............
reward points if helpful.............