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: 

need to save text

Former Member
0 Kudos
127

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

Former Member
0 Kudos
76

just create one more line item @ LINES table.

like.

loop at itab.

lines-tdline = itab-text.

append lines.

endloop.

Regards

Prabhu

3 REPLIES 3

Former Member
0 Kudos
77

just create one more line item @ LINES table.

like.

loop at itab.

lines-tdline = itab-text.

append lines.

endloop.

Regards

Prabhu

Former Member
0 Kudos
76

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

Former Member
0 Kudos
76

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