cancel
Showing results for 
Search instead for 
Did you mean: 

How to limit Input Field to 255 Chars

Former Member
0 Kudos

Hi Experts,

I need to have an input field on my view that has a langth of 255 chars. This field needs to be passed to a BAPI later on that expects an input of 255 chars.

My problem is that I have added an input field to my view (this input field is actually a column of a Table Tree Control) and it seems like setting the "length" property of this field to 255 has no effect! I mean even though I set the length to 255 it seems you can enter more characters than this.

Please advise,

Many tks

Christiaan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

define a simple type of String and set the maximum length to 255 in definition tab of Simple Type.

bind this simple type to your attribute thats it.

Regards,

ramesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi All,

Below is very elaborative answer for novice people.

Go To Dictionaries-> Local Dictionaries->Data Types->Simple Types ->Right click->Create Simple Type Then Specify the Simple Type Name and Package.

Now it will Open the Simple Type Screen Where you need to select Built-In Type as String and in Below you can specify Maximum length = 255

Regards

Narendra

Former Member
0 Kudos

Hi Christiaan,

For This You need to create a sinple type. there you can specify the max size and it will work for you.

If you require more info i can help you out.

Regards

Narendra