Dear All,
I need to put white-space char (2 chars) at the end of line for my 73 chars of line using cl_abap_char_utilities=>get_simple_spaces_for_cur_cp( ).
Unfortunately when I check the output file I find that my first space & the second space have different length (the second one is longer than the first one).
That one happened when I put white-space in for position 72 & 73 (while setting for position 71 & 72 is ok).
Heres my logic :
*************************************
DATA : lv_string1(100) VALUE '123456789012345678901234567890123456789012345678901234567890123456789012 ',
full_file TYPE pathextern VALUE '/interface/outbox/new/method'.
lv_string1+71(2) = cl_abap_char_utilities=>get_simple_spaces_for_cur_cp( ).
OPEN DATASET full_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "**Open dataset.
TRANSFER lv_string1 TO full_file.
CLOSE DATASET full_file.
*************************************
After downloading this file into my local folder and open it using notepad/wordpad/DOS-editor, I will have that the second space will be longer than the first one.
If I replace lv_string171(2) = cl_abap_char_utilities=>get_simple_spaces_for_cur_cp( ) with lv_string170(2) = cl_abap_char_utilities=>get_simple_spaces_for_cur_cp( ), the first space will be same with the second (but I need to put the line of 73 chars with to space at the end of line).
Does Anyone know why and any advices for me ?
TQ Regards,
(Taufik K.)