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

String fields in smartform

Former Member
0 Likes
977

Hello,

I have a structure which has one of the component of type String. I want to print the contents of this String field [which has more than 255 chars] into smartforms. I have searched for the thread similar to this and broke the contents in the table but the format is getting lost. Is there anyway I can get large string printed in smartform without loosing its format.

Thanks,

Navneet

7 REPLIES 7
Read only

Former Member
0 Likes
801

Hi,

By Using INCLUDE STATEMENT we can get more than 255 chr.

Regards

Ranga

Read only

0 Likes
801

Hi,

Thanks. But for that I should have a text object. I dont have text object, I have a string type field.

Thanks.

Navneet

Read only

Former Member
0 Likes
801

can you explain a bit more, what formatting is lost? Cant you get all the characters?

Regards

Karthik D

Read only

raja_narayanan2
Active Participant
0 Likes
801

Hi

try this type .... XSTRING

Regards

Raja

Read only

Former Member
0 Likes
801

Hai,

Kindly try the following function module.

READ_TEXT , which is used to bring the long texts.

Regards,

Harish

Read only

0 Likes
801

Hi,

Thank you all for your responses.

using of String or XSTRING wont help me as I am assigning my string field to a TEXT element which has limitation of 255 chars.

Now I have a string field which has more than 1000 characters with bullets and numbered bullets plus there are carriage returns for new paragraph/new line. All these formatting placeholders does't work if I break my string in String table and print it in loop thru text element which takes 255 chars at a time.

Harish can you explain more abt thie READ_TEXT. Do I have to use it in TEXT MODULE Type? I tried putting it in there but gave me error saying READ_TEXT doesnt exist.

Is there any way out?

Thank you,

Navneet

Read only

Former Member
0 Likes
801

I was able to find the solution for this by splitting the string at the carriage return and further splitting it by offset at required characters.

Thank you for your responses.