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

Maximum length for a character variable.

former_member195383
Active Contributor
0 Likes
3,721

What is the maximum length that can be assigned to a character variable.

like..

wf_char(1000) type c.

wat is the maximum possible value that can be passed in the bracket.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,697

Hi,

Initial field length is '1'

Initial value is space

Valid field length for Data type 'C' is 1--65535

reward if helpful

raam

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,697

Hi Rudra,

It depends on which version u r using. In 4.7 version max length for char variable is 65535. Check in ur system by giving more than this.

I suggest u to declare the variable as string if u don't know the length of data that will come to the variable.

Thanks,

Vinod.

Read only

Former Member
0 Likes
1,698

Hi,

Initial field length is '1'

Initial value is space

Valid field length for Data type 'C' is 1--65535

reward if helpful

raam

Read only

Former Member
0 Likes
1,697

Hi,

You have plenty of room here, 1000 character no problem. Not sure that there is a limit, as I am working with really long strings right now in my assigment. I think the only limit would come from the memory cap of your session.

Refer

https://forums.sdn.sap.com/click.jspa?searchID=10931544&messageID=5048019

Regards

Kiran Sure

Read only

former_member195383
Active Contributor
0 Likes
1,697

Answered