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

need to save text

Former Member
0 Likes
712

hi

i need to save text that has no fixed length,but table tline can only hold '132' char..need some way to wrap text??

data : text type string.

text ='can be 500 char'.

Have to use FM 'SAVE_TEXT'...

any thoughts are appreciated..

Regards.

mob.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
661

just create one more line item @ LINES table.

like.

loop at itab.

lines-tdline = itab-text.

append lines.

endloop.

Regards

Prabhu

hi

i need to save text that has no fixed length,but table tline can only hold '132' char..need some way to wrap text??

data : text type string.

text ='can be 500 char'.

Have to use FM 'SAVE_TEXT'...

any thoughts are appreciated..

Regards.

mob.

3 REPLIES 3
Read only

Former Member
0 Likes
662

just create one more line item @ LINES table.

like.

loop at itab.

lines-tdline = itab-text.

append lines.

endloop.

Regards

Prabhu

Read only

Former Member
0 Likes
661

Hi ,

you can add as many records in the table and pass it to the FM .

eg :

TYPES: BEGIN OF ty_tline,

tdformat LIKE stxitfd-tdformat, " Tag column

tdline LIKE stxitfd-tdline, " Text line

END OF ty_tline.

DATA: i_text

TYPE STANDARD TABLE OF ty_tline

INITIAL SIZE 0

WITH HEADER LINE.

Loop at i_tab.

i_text-tdformat = sy-langu.

i_text-tdline = i_tab-text

APPEND i_text.

endloop.

And pass this i_text to the save_text Fm.

Regards

beena

Read only

Former Member
0 Likes
661

assume you have TEXT to be saved in the field have more than 132 characters,

IT_LINE-TDFORMAT = '*'.

IT_LINE-TDLINE = V_TEXT+0(132).

APPEND IT_LINE.

IT_LINE-TDLINE = V_TEXT+132(132).

APPEND IT_LINE.

Like this you can proceed.

regards

srikanth.

Message was edited by: Srikanth Kidambi