cancel
Showing results for 
Search instead for 
Did you mean: 

How to print only 2 lines on script from LONG TEXT

Former Member
0 Kudos

Hi All,

I need to print only up to 2 lines on script from long text. if more text exits, then i need to display ....

Example:

text text text text text text text text text text text text text text text text text text text text text text text text text text text text

text text text text text text text text text text text text text text text text text text text text text text text text text text text ......

Please give solution

regards,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use FM READ_TEXT to read the text.

you will get an internal table with the text, line by line.

transfer first 2 lines to char-variables (one for each line).

print your variables.

have a thrid char-variable which you set = '...' when more than 2 lines exist.

after printing of your 2 first variables now print third one. ready.

Answers (0)