Hi Rurangwa,
You would use a select query and a formatted search on the field.
Create and save the query, then under Tools>Customisation Tools> User defined Values you assign the query to a field, and select a trigger field.
You would need to check the SAP help files for this.
UDF's at line level cannot be updated after add, even DTW will not allow this