Task description

Solution

Sample code, images Restrictions, R/3 Release, Sapgui version, GuiXT version
13 Checking a special material number layout You created an InputField for the material number:

InputField (12,1) “Material” (12,20) size=9 name=”matnr” -numerical -required

 In your InputScript, you  want to check that the entered value is of format dddddddd (8 digits) or dd.dddddd (with a point after 2 digits). So, for example, the values “123456789″, “123456″, 1.2345678″, “12 345678″ would all be invalid.

Solution You use substring notation and a comparison. It is a little bit tricky (that’s why it is included in Tips&Tricks).

Sap Guixt sample Checking a special material number layout GuiXT script

Last update: December 13, 2002

InputAssistant

Checking a special material number layout