Application Development 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: 

help,how to check a input type?

Former Member
0 Kudos

Dear all experts,

in the selection-screen,user need to key in the vendor consignment code ( vdrcsg for mslb-lifnr ) some user key in storage location ( mseg-lgort ) in this field. Is there anyway tat i can do verification before procees to the start-of-selection? how to check if the user key in correct data type to the selection screen? thanks

5 REPLIES 5

Former Member
0 Kudos

hi,

use <b>at selection-screen output</b> event for checking.

0 Kudos

how to check ya? i mean errm..wat syntax to use for checking the input type?

thx

Former Member
0 Kudos

Hi ,

You can use the event at selection-screen on field_name.

since your field in selection screen is vdrcsg (the parameter name)

so the statement would be

AT SELECTION-SCREEN ON vdrcsg.

select *  from lfa1
where lifnr = vdrcsg.
if sy-subrc <> 0.
"error message.
endif.

Similarly write the code for tour storage location , comparing the entered value with values in table T001L.

Regards

Arun

0 Kudos

Thanks Arun