cancel
Showing results for 
Search instead for 
Did you mean: 

Text Edit: Restrict number of charecters to be entered

Former Member
0 Kudos

Hi Gurus,

I am using ABAP 701 version. I am exploring on how to restrict the number of charecters entered in a Text Edit UI element.

I mean when user enters the text in Text Edit UI elemet i have to restrict to enter up to 200 charecters only.

Please suggest if you have done this before or explored on this before.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Pavan,

One way of achieving it could be:

Create a domain in SE11 and give its lengh to be the say 200 (as per your requirment), then create a data type using that domain.

Now in your webdynpro component create a attribute of the type of your data type (which you have created in SE11). Bind it with the text edit. This way it could be achieved.

Former Member
0 Kudos

Hi Pavan,

In addition to creating the domain, you can also change the number of rows and columns of the text editor mentioned on the property pane

Former Member
0 Kudos

Its solved the problem. By creating using a dataelement of required length i can able to restrict the no of charecters entered in Text Edit UI elemnt.

Thankyou Arjun.

arjun_thakur
Active Contributor
0 Kudos

Welcome:)

Answers (0)