Application Development and Automation 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: 
Read only

Code page conversion?

Former Member
0 Likes
589

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
553

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

3 REPLIES 3
Read only

Former Member
0 Likes
554

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

Read only

0 Likes
553

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

Read only

0 Likes
553

Sorry if it's too late.

Check the syntax for open dataset. You need to add: IN BINARY MODE