ABAP OO Class Methods

SHOW_FILE SAP Method - Display Data Stream as File on the Client PC







Below is documentation, parameters and attributes of ABAP Method SHOW_FILE within SAP class EDX_UTIL. There is also a number of example ABAP code snipts to help you implement this method.

This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name EDX_UTIL into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the contributions below to view or add related hints, tips, example screen shots and any other information.


SAP Class method belongs too

EDX_UTIL

Method Name

SHOW_FILE

Method Type

Static Method:  This is a Static Method so you can call it directly






Importing Parameters:

Below is a list of importing parameters associated with this method, including its name, description and data type


I_FILENAME " SAPoffice: Path for a PC application TYPE SOXPC-PATH
I_FILE_EXTENTION " File Extension for PC Application TYPE SOOD-FILE_EXT

Exceptions:


ERROR_CANT_CONVERT_BIN_TO_TXT - Cannot Convert Binary to Text Data
ERROR_FILE_NOT_SAVED - Cannot Save the File on the Client PC
ERROR_NO_FILE_READER_FOUND - Unable to find display program on the client PC
ERROR_CANT_SHOW_FILE - Cannot Display the File on the Client PC



Example ABAP coding


DATA:
ld_I_FILENAME TYPE SOXPC-PATH ,
ld_I_FILE_EXTENTION TYPE SOOD-FILE_EXT.

" ld_I_FILENAME = "
" ld_I_FILE_EXTENTION = "

CALL METHOD EDX_UTIL=>SHOW_FILE(
EXPORTING
I_FILENAME = ld_I_FILENAME
I_FILE_EXTENTION = ld_I_FILE_EXTENTION
EXCEPTIONS
ERROR_CANT_CONVERT_BIN_TO_TXT = 1
ERROR_FILE_NOT_SAVED = 2
ERROR_NO_FILE_READER_FOUND = 3
ERROR_CANT_SHOW_FILE = 4 ).