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

Sapscript

Former Member
0 Likes
655

Hi all,

I'm retrieving text using function module READ_TEXT & the text is coming in internal table that has the structure as TLINE. now i want to display the text in my script but the problem is that the text is not coming in full line of the script rather it's appaering as paragraph limited to characters less than the line size of script.

To be more clear I'll give the example as:

In script it's coming as

ABCDE ABCDE ABCDE ABDCDE ABCDE

ABCDE ABCDE ABCDE ABDCDE ABCDE

ABCDE ABCDE ABCDE ABDCDE ABCDE

I want it appear as follows:

ABCDE ABCDE ABCDE ABDCDE ABCDE ABCDE ABCDE ABCDE ABDCDE ABCDE ABCDE ABCDE ABCDE ABDCDE ABCDE ABCDE ABCDE ABCDE

Hope I'm clear in explaining my requirement.

Looking forward to your replies.

Helpful answers will be rewarded.

Regards,

Sipra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
617

two things may be there.

in your tline like table you are appending the text like that so it is coming by this way if it is so. then

data : text(240),

text1(80).

loop at tline.

text1 = tline-tdline.

concatenate text text1 into text.

endloop.

in script just pass &text&.

or

your window size is not enough to hold the value increase that in some cases it may show the blank area in the page but your window size may not be big enough.

regards

shiba dutta

4 REPLIES 4
Read only

Former Member
0 Likes
617

Check ur default paragraph setting... and the window width u r printing....it may be too short to hold all the data in a line...

regards,

sai ramesh.

Read only

Former Member
0 Likes
617

Hi,

Tline field length is of 132 char.

If you wants to print as per your req:

Concatenate the Texts into single line.

Declare a var of length say 132 char.

Read tline index 1 . put in v_var.

Read tline index 2. put in v_var1.

Concatenate v_var and V-var1+0(20) into v_field.

concatenate v_var1+20(30) and next line (3rd) into some other field.

Hope you understood.

Regards,

Anji

Read only

Former Member
0 Likes
618

two things may be there.

in your tline like table you are appending the text like that so it is coming by this way if it is so. then

data : text(240),

text1(80).

loop at tline.

text1 = tline-tdline.

concatenate text text1 into text.

endloop.

in script just pass &text&.

or

your window size is not enough to hold the value increase that in some cases it may show the blank area in the page but your window size may not be big enough.

regards

shiba dutta

Read only

Former Member
0 Likes
617

Thnx all in contributing towards solving my problem.

Regards,

Sipra