sapdev logo background
sapdev logo sapdev logo
Comments

HEX codes and there associated ABAP declaration within SAP




When creating files from within ABAP(SAP) programs it is sometimes necessary to insert Hex codes in-order for the target application software to deal with the file appropriately. For example if you are creating a excel spreadsheet file you will need insert the hex code for 'TAB' so that excel knows where each new column starts See example code. Below is few example HEX codes and there associated ABAP declaration. Other codes can be found from various sources including the folowing website: http://www.jimprice.com/jim-asc.htm

Function

ABAP declaration (Hex code)

Tab (09)

CONSTANTS: con_tab TYPE x VALUE '09'.

Carriage return (0D)

CONSTANTS: con_cr type x value '0D',




comments powered by Disqus