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

read_text - text display

Former Member
0 Likes
418

I have used read_text to read text from sales order, now while displaying it i have just 20 char sapce for it, so after 20 char it should go to next line.

I have entire text in table t_tline.

How to display just 20 char eaxch line, any suggestions?

Thanks,

Shweta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
373

Hi

Declare some varaiables with type CHAR 20 fields and split the text to them by offsetting

data: var1(20), var2(20), var3(20).

var1 = t_tline+9(20)

var2 = t_tline+21(20)

...

and display the variables one below other

Or straight away you can display the t_tline(20) in first line

next t_tline+21(20) in second line like that

Reward points for useful Answers

Regards

Anji

2 REPLIES 2
Read only

Former Member
0 Likes
374

Hi

Declare some varaiables with type CHAR 20 fields and split the text to them by offsetting

data: var1(20), var2(20), var3(20).

var1 = t_tline+9(20)

var2 = t_tline+21(20)

...

and display the variables one below other

Or straight away you can display the t_tline(20) in first line

next t_tline+21(20) in second line like that

Reward points for useful Answers

Regards

Anji

Read only

0 Likes
373

Anji,

Say i have 10 lines in t_tline, for each line i will have to pass like this and then display? I won't be knowing the length of each line.

var1 = t_tline+9(20)

var2 = t_tline+21(20) this logic worked. Thanks!!!

Message was edited by:

Shweta Verma