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

Database table limit

Former Member
0 Likes
1,299

Hi,

Can any one let me know is there any limitation on the no of fields in a ztable?

Actaully i want to make a ztable with more than some 70- 80 fields.

thanks

10 REPLIES 10
Read only

Former Member
0 Likes
1,008

Hi PS,

For 70-80 fields there is no limit carry on.

Regards:-

Santosh

Read only

Former Member
0 Likes
1,008

I think you cannot have more than 255 fields.

Regards,

Ravi

Note :Please mark all the helpful answers

Read only

Former Member
0 Likes
1,008

Max is 249 fields.

Reward if useful.

Message was edited by: vinodh balasubramaniam

Read only

Former Member
0 Likes
1,008

Hi

you can maintain 70-80 fields in a table.

A table may not have more than <b>249 fields</b>.

The sum of all field lengths is limited to 1962

(whereby fields with data type LRAW and LCHR are not counted).

Kindly check the following link, under the section

<b>Tables -> Creating Tables</b>.

http://help.sap.com/saphelp_47x200/helpdata/en/cf/21f2e5446011d189700000e8322d00/frameset.htm

Hope this helps!

Best regards,

Thangesh

Read only

Former Member
0 Likes
1,008

Hi,

I think there is no limit for the fields in a ztable

for 70-80 fields you can do that.

Regards,

Laxmi.

Read only

Former Member
0 Likes
1,008

Hi All ,

Thanks for the reply ....

Is there any problem in the lenght of the fields also....

thanks,

pawan.

Read only

0 Likes
1,008

The sum of all field lengths can be 1962 as maximum.

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
1,008

Hi,

Maximum lenght of all the fields is 1962,

where a single field length is maximum of 255.

cheers,

Simha.

<b>Reward all the helpful answers..</b>

Read only

0 Likes
1,008

Hi

Kindly check this:

<b>Constraints for table creation</b>

<b>Character string:</b>

Fields of type CHAR may have a maximum length of only <b>255 in tables</b>.

If longer character fields are to be used in tables,

you must choose data type LCHR.

There are no restrictions on the length of such fields in structures.

All the key fields of a table must be stored together at

the beginning of the table. A non-key field may not occur

between two key fields.

A maximum of <b>16 key fields</b> per table is permitted.

The maximum length of the table key is 255.

If the key length is greater than 120, there are

restrictions when transporting table entries.

The key can only be specified up to a maximum of 120

places in a transport.

If the key is larger than 120, table entries must be

transported generically.

A table may not have more than <b>249 fields</b>.

The sum of all field lengths is limited to 1962

(whereby fields with data type LRAW and LCHR are not counted).

Fields of types LRAW or LCHR must be at the end of the table.

Only one such field is allowed per table.

There must also be a field of type INT2 directly in front of such a field.

The actual length of the field can be entered there by the database interface.

best regards,

Thangesh

Read only

abdul_hakim
Active Contributor
0 Likes
1,008

hi,

<b>maximun limit is 249 fields.</b>

Cheers,

Abdul Hakim