2006 Aug 04 4:52 AM
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.
2006 Aug 04 5:11 AM
just create one more line item @ LINES table.
like.
loop at itab.
lines-tdline = itab-text.
append lines.
endloop.
Regards
Prabhu
2006 Aug 04 5:11 AM
just create one more line item @ LINES table.
like.
loop at itab.
lines-tdline = itab-text.
append lines.
endloop.
Regards
Prabhu
2006 Aug 04 5:25 AM
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
2006 Aug 04 7:20 AM
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