cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms - Text in a cell

former_member1038687
Active Participant
0 Kudos

Hi friends! I need some help!

I have an LOOP and inside this a Program Lines. After I have a TEXT. All this things is in a table.


HEADER_TEXT TYPE STRING.

LOOP AT T_LINES INTO W_LINES.
          CONCATENATE W_LINES INTO HEADER_TEXT.

After Loop.
TEXT_ELEMENT with &header_text&.

The problem is when I print the form, TEXT_ELEMENT prints only part of HEADER_TEXT, some like this:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXX -> rest of text is missing...

Anyone can help me?

Thanks a lot!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There's a maximum lenght of text for smartforms, so you should cut the text in smaller 255 character pieces, and then show them all.

Answers (2)

Answers (2)

former_member1038687
Active Participant
0 Kudos

Thanks for replies. The problem was limit of 255 lenght. I has to do this concatenate because the text comes in some lines of table T_LINES, but I have to print a continous text in Form.

Thanks all!

Regards!

former_member156446
Active Contributor
0 Kudos

Looks like you concatenate has an issue :

CONCATENATE W_LINES INTO HEADER_TEXT.

CONCATENATE field1 field2 INTO HEADER_TEXT. "<<syntax...

former_member1038687
Active Participant
0 Kudos

Ops, sorry, I made a mistake in first post, but in program the concatenate is correct!

Thanks Gustavo, I'll try to break the variable with only 255 lenght.

Edited by: Fulvio Valente on Jul 21, 2009 7:14 PM

former_member156446
Active Contributor
0 Kudos

Also make sure...the window was got enough room to accommodate all the data...

Former Member
0 Kudos

Hi

But why u don't call the text directly in the smartform?

Max