READ_BINARY_FILE SAP Method Loads binary files from the database
Below is documentation, parameters and attributes of ABAP Method READ_BINARY_FILE within SAP class /SCMTMS/IF_BINARY_FILE_ACCESS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/IF_BINARY_FILE_ACCESS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method READ_BINARY_FILE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_BINARY_FILE
.| Name | Type | Data Type | Description | Default Value |
| IT_FILE_ID | Importing | TYPE /SCMTMS/T_FILE_ID | Table of File IDs | |
| IT_RANGES | Importing | TYPE RSDS_FRANGE_T | Selection Range | |
| IV_FILE_ID | Importing | TYPE /SCMTMS/FILE_ID | File ID | |
| ES_FILE | Exporting | TYPE /SCMTMS/S_BINARY_FILE | Binary File | |
| ET_FILE | Exporting | TYPE INDEX TABLE | Table of Binary Files | |
| CO_MESSAGE | Changing | TYPE REF TO /BOBF/IF_FRW_MESSAGE | Interface of Message Object |
Exceptions of Method READ_BINARY_FILE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCMTMS/IF_BINARY_FILE_ACCESS.
DATA: lv_CO_MESSAGE TYPE /BOBF/IF_FRW_MESSAGE,
lv_ES_FILE TYPE /SCMTMS/S_BINARY_FILE,
lv_ET_FILE TYPE INDEX TABLE,
lv_IT_FILE_ID TYPE /SCMTMS/T_FILE_ID,
lv_IT_RANGES TYPE RSDS_FRANGE_T,
lv_IV_FILE_ID TYPE /SCMTMS/FILE_ID,
lv_other TYPE c.
CALL METHOD lo_class=>READ_BINARY_FILE(
EXPORTING
IT_FILE_ID = lv_IT_FILE_ID
IT_RANGES = lv_IT_RANGES
IV_FILE_ID = lv_IV_FILE_ID
IMPORTING
ES_FILE = lv_ES_FILE
ET_FILE = lv_ET_FILE
CHANGING
CO_MESSAGE = lv_CO_MESSAGE ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects