Ask the Expert

Getting users to enter right amount of characters in materials field

We have the number range from ABC11111111111 to ABC99999999999(14 digits) for materials. When we create a material in MM01 -- If we enter, say ABC222 -- it accepts it because we know that this lies within the number range. But what we want is that as soon as the user enters less than 14 characters... It should show an error message and this should happen as soon as the user goes to the next field.


    Requires Free Membership to View

Use a field exit. Prior to 4.6c, this is accessed from the CMOD menu. On 4.6c, execute RSMODPRF from SE38. Instructions for how to use it are in the program documentation.

Your field exit will just need to check that the material number is 14 digits.

You can also use transaction OMSL to configure other properties of the material number, such as maximum length.


This was first published in June 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: