‎2008 Aug 26 4:45 PM
Hello Abapers,
I have an issue with the file I write into application server. The operationg system is Unix. Initially, i just open dataset , transfer records and then close the dataset. This was, by default introducing a line feed at the end, but the user of the file wanted the Carriage return as well.
Then i introduced l_Car_ret(2) Type C value cl_abap_char_utilities=>cr_lf, "carriagereturn
and concatenated the line with l_car_ret+0(1), since the first byte is for carriage return. This was okay, but this introduced a # at the end of everyline, which is a nusense right now. Can anyone tell me, how to get rid of this #, keeping the carriage return and the line feed?
Thanks in adance for the answers.
Regards
Shrirama
‎2008 Aug 26 4:57 PM
Too complicated.
IF I remember correctly (I could be wrong) you could also transfer it as binary data,
That way, just concatenate the whole cl_abap_char_utilities=>cr_lf to the end of the line and just pass the lines, but in binary mode.
Try that and see what happens
‎2008 Aug 26 4:57 PM
Too complicated.
IF I remember correctly (I could be wrong) you could also transfer it as binary data,
That way, just concatenate the whole cl_abap_char_utilities=>cr_lf to the end of the line and just pass the lines, but in binary mode.
Try that and see what happens
‎2008 Aug 26 4:59 PM
Hello,
Thanks for the quick reply, but how can i use the binary mode? Am not a great ABAPer, as my main area is SAP BW.
Regards
Shrirama
‎2008 Aug 26 8:05 PM
Sorry if it's too late.
Check the syntax for open dataset. You need to add: IN BINARY MODE