Application Development 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: 

Character field length restriction

Former Member
0 Kudos

Hi, I have an issue. I have a field in my smartform. I have declared it as char1024. But still it considers only 256 characters,rest values are no entering into the field. I tried it with string , lchar but no use. Even if I declare the field with increased length it always considers only 256 characters. I have the same issue in programs also. Is this restriction of 256 lengh done by the basis.Because SAP provides an option for more than 1024 characters but in my case only 256 lenght characters are only being considered.

Thanks & Regards,

Siva.

1 ACCEPTED SOLUTION

former_member217316
Contributor
0 Kudos

Hi Siva

Create a new temporary itab with 4 fields each of character type. SPLIT the required text and store them into each of these fields of this temp itab. Then use the Function Module: RKD_WORD_WRAP and pass this itab to it. You can print the result which will be of 1024 length.

Hope this helps.

Regards

Harsh

3 REPLIES 3

Former Member
0 Kudos

fill one table from the variabel value and print the data from that table.

Create a Program lines

Split your text in smaller parts and fill the internal table. You can use FM RKD_WORD_WRAP for that

Create LOOP and assign the internal table there

Print the text.

former_member217316
Contributor
0 Kudos

Hi Siva

Create a new temporary itab with 4 fields each of character type. SPLIT the required text and store them into each of these fields of this temp itab. Then use the Function Module: RKD_WORD_WRAP and pass this itab to it. You can print the result which will be of 1024 length.

Hope this helps.

Regards

Harsh

Former Member
0 Kudos

Thanks for ur replies. Though they are similar. But it has helped my purpose. I have rewarded it accordingly. Thanks.