Application Development 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: 

Saving Text lines from Texts Areas without new line special character

Former Member
0 Kudos

I am trying to save a text area from Transaction VA43 (Texts Tab). I want to save the first three lines (max length 60) into 3 text fields in ABAP Program. I am using READ_TEXT function but I am getting the line feed special character saved into the field in my program.

Is there a way to remove this new line/carriage return character before saving it in my program?

1 REPLY 1

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

Function module READ_TEXT returns LINES table of structure TLINE, which contains two fields.

1. TDFORMAT(2) :Tag column

2. TDLINE(132) :Text Line

READ TABLE LINES INDEX 1.

FIELD1 = LINES-TDLINE

READ TABLE LINES INDEX 2.

FIELD2 = LINES-TDLINE

READ TABLE LINES INDEX 3.

FIELD3 = LINES-TDLINE

Thanks,

Ramakrishna