ABAPCLOSE_DATASET - CLOSE DATASET
BAL_S_LOG - Application Log: Log header data Addresses (Business Address Services)This documentation is copyright by SAP AG.
CLOSE DATASET
Syntax
CLOSE DATASET dset.
Effect
This statement closes the file specified in dset. dset must be a character-like data object that contains theplatform-specificname of the file. If the file is already closed or does not exist, the statement is ignored and the return value sy-subrc is set to 0.
If the operating system buffers data before it is written to a file and there is still data in the buffer, this data is written to the file before closing.
Note
An opened file that was not explicitly closed using CLOSE DATASET is automatically closed when the program is exited.
System fields
If a file was opened without the FILTER addition, sy-subrc always contains the value 0.
If a file was opened using the FILTER addition, sy-subrc contains the return value ofthe filter program, which is returned by the operating system. This value is generally 0 if the statement was executed with no exceptions.
Exceptions
Catchable Exceptions
- Cause: The file could not be closed. Insufficient memory space is a possible reason for this.
Runtime Error: DATASET_CANT_CLOSE (catchable)
General Material Data TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 2107 Date: 20120518 Time: 205607 triton ( 60 ms )






