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/?topic=jim-asc

Function

ABAP declaration (Hex code)

Tab (09)

CONSTANTS: con_tab TYPE x VALUE '09'.

Carriage return (0D)

CONSTANTS: con_cr type x value '0D',


Related Articles

SAP applications and ABAP reports that process data files stored on your PC or within SAP
Display files on SAP Application Server(UNIX)
Browse files on SAP Application Server(UNIX)
Downloading files to PC(Presentation Server)
Downloading files to SAP Application Server
Popup window to select a File using function module WS_FILENAME_GET
Get list of files within specific directory or SAP Application server
Directory selection for ABAP report using SAP method DIRECTORY_BROWSE
File Selection for ABAP report using SAP object method FILE_OPEN_DIALOG
Save file location popup on ABAP report selection screen using FILE_SAVE_DIALOG
ABAP Upload and download Function Modules in SAP
SAP File Selection Window - various methods of adding a file selection popup to your ABAP report
Upload Tab delimited file from PC into ABAP internal table
Upload and download files into and out of SAP or your PC
ABAP to check if file exists before downloading from SAP
SAP Upload Excel document into internal table
ABAP to Upload Excel document into internal table on SAP system including .xlsx
Upload Excel document into ABAP internal table
ABAP Uploading files from PC to SAP R/3 system
ABAP to Upload files from SAP Application Server
Upload Tab delimited file from PC into ABAP internal table
Upload Tab delimited file from application server into ABAP internal table
Example Excel Spreadsheet used to demo SAP upload and download using ABAP
Download file from SAP unix system to your desktop using transaction SXDA