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

Justify function

Former Member
0 Likes
606

Hi,

I'm using FM READ_TEXT to get the invoice item text and I get it as a tline table but it's 132 char line size and I need to be able to show it on a 60 char line size, is there any FM to adjust the text in order to get something like that?

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
535

I think there's lots that do this - have you looked??

Rob

Read only

Former Member
0 Likes
535

Just declare a variable of length 60 and assign the tdline output of the FM READ_TEXT to it.



data: var(60) type c.
var = tdline-tline

Read only

Former Member
0 Likes
535

Yes I've look for it in fact right now I'm using FM CONVERT_ITF_TO_STREAM_TEXT to get the text with the right length but it splits the text without any validation, it means, it split words or numbers in a wrong way.

I need this text to be printed out on a Smartform thatu2019s why I canu2019t send it to a 60 char variable.

Thanks.