Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Add 1B - ESC Character

Hello  Experts,

We are writing a file to application server using class- cl_rsan_ut_appserv_file_writer=>appserver_file_write

This is working good.

There is a requirement to add ESC Character (Hex value 1B) at specific position in the file, so that another system can read the file in correct way.

Now my question is how to add the ESC character in ABAP.

I saw there is class CL_ABAP_CHAR_UTILITIES - it has many different options such CR_LF, Backspace, new line etc, but I did not see any option to add ESC character.

Any suggestions?

Tags:
replied

At the appropriate position, you may write:

data: str type string.

str = cl_abap_conv_in_ce=>uccp( '001B' ).


and then, transfer the variable str to file.


Thanks,

Juwin

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question