2009 Jan 12 10:16 PM
Hi,
In preparation for Unicode upgrade, all of our HR programs have been upgraded and 'Unicode Checks Active' attribute turned on. In doing so, we made the following code change for "carriage return/line-feed" functionality in several programs.
FROM THIS -> dc_crlf(2) TYPE x VALUE '0D0A',
TO THIS -> ON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
Since making the change, it appears the 'CON_CRET' cr_lf is causing characters in the 51st or 52nd position to get dropped if it's the last character in the word. Word wrap is working correctly.
Thanks.
2009 Jan 13 4:47 AM
Hello Marco,
FROM THIS -> dc_crlf(2) TYPE x VALUE '0D0A',
TO THIS -> ON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
I think the declaration for ON_CRET should be
ON_CRET TYPE CHAR2 VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
I think it will solve the problem.
BR,
Suhas
Hi,
In preparation for Unicode upgrade, all of our HR programs have been upgraded and 'Unicode Checks Active' attribute turned on. In doing so, we made the following code change for "carriage return/line-feed" functionality in several programs.
FROM THIS -> dc_crlf(2) TYPE x VALUE '0D0A',
TO THIS -> ON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
Since making the change, it appears the 'CON_CRET' cr_lf is causing characters in the 51st or 52nd position to get dropped if it's the last character in the word. Word wrap is working correctly.
Thanks.
2009 Jan 13 1:02 AM
If some characters are dropping down then its some thing to do with the code.. how you are concatenating the line feed... lets see the code..
2009 Jan 13 4:47 AM
Hello Marco,
FROM THIS -> dc_crlf(2) TYPE x VALUE '0D0A',
TO THIS -> ON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
I think the declaration for ON_CRET should be
ON_CRET TYPE CHAR2 VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF
I think it will solve the problem.
BR,
Suhas