Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Checking maximum length

Former Member
0 Likes
892

Hi everyone!

I would like to ask how to check the maximum number of characters that field can take?

Thank you!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
857

Hi,

Go to SE11, enter the field name in data type and display.

7 REPLIES 7
Read only

Former Member
0 Likes
857

Hello,

It depends upon the definition of the field,

If u r declaring the field like this

data: char(255).

Then the field CHAR can accomadate 255 characters max.

Vasanth

Read only

Former Member
0 Likes
858

Hi,

Go to SE11, enter the field name in data type and display.

Read only

0 Likes
857

Yes, I know how to do that...

What I mean is in code... _

Read only

0 Likes
857

Hi..

Using Describe Field statement we can get the Length of the field.

Eg:

DATA: FLD(8),

LEN TYPE I.

DESCRIBE FIELD FLD LENGTH LEN IN CHARACTER MODE.

write:/ Len.

<b>Reward if Helpful</b>

Read only

0 Likes
857

> Hi..

>

> Using Describe Field statement we can get the Length

> of the field.

> Eg:

>

> DATA: FLD(8),

> LEN TYPE I.

> DESCRIBE FIELD FLD LENGTH LEN IN CHARACTER MODE.

> write:/ Len.

> ]Reward if Helpful</b>

Thank you very much!

Read only

Former Member
0 Likes
857

Hi,

I think maximum character length is 1045

Read only

Former Member
0 Likes
857

Hello,

It depends upon the definition of the field,

If u r declaring the field like this

data: char(255).

Then the field CHAR can accomadate 255 characters max.

if helpful reward some points.

with regards,

Suresh Aluri.