‎2009 Oct 30 11:47 AM
Hi,
I have a source field for text which is of length 2000.
The target table field is a table type(the table type field is of 132) and it is dynamic.i.e a field symbol.
Now I have to split the field 2000 length into lines of 132 and move to the dynamic table.
i.e in this case the total number of records will be 16 in the dynamic table.Later I have to download the table(Which is a field of the main target table).
Please help how to do.
‎2009 Oct 30 11:58 AM
check this logic.
len = strlen( lv_string ).
lv_offset_mx = 131.
lv_offset_mn = 0.
div = CEIL(len / 132).
do div times.
clear wa.
wa-line = lv_string+lv_offset_mn(lv_offset_mx).
append wa to itab.
lv_offset_mn = 131.
enddo.
‎2009 Oct 30 11:51 AM
‎2009 Oct 30 11:53 AM
Please not that I am working in CRM environment and few FM like 'RKD_WORD_WRAP ' does not exist.
‎2009 Oct 30 12:04 PM
‎2009 Oct 30 11:58 AM
check this logic.
len = strlen( lv_string ).
lv_offset_mx = 131.
lv_offset_mn = 0.
div = CEIL(len / 132).
do div times.
clear wa.
wa-line = lv_string+lv_offset_mn(lv_offset_mx).
append wa to itab.
lv_offset_mn = 131.
enddo.
‎2009 Oct 30 12:09 PM