2010 Feb 03 4:29 PM
I'm trying to transfer a file on the server by compressing it, always gives me an Exception : CATCH cx_sy_pipe_reopen..
CONCATENATE p_dirsap '/file.zip' INTO p_dirsap.
TRY.
OPEN DATASET p_dirsap FOR OUTPUT FILTER 'compress'
IN TEXT MODE ENCODING DEFAULT.
.
LOOP AT i_file.
TRANSFER i_file-campo TO p_dirsap .
ENDLOOP.
CLOSE DATASET p_dirsap .
CATCH cx_sy_file_open.
CATCH cx_sy_pipe_reopen.
CATCH cx_sy_file_io.
ENDTRY.
help
Edited by: francesco aiello on Feb 3, 2010 5:49 PM
2010 Feb 03 10:58 PM
Hi,
there is a note in ABAP documentation regarding your issue.
Note:
When working with pipes, you need to ensure that the pipe only exists in the current work process. If a change of work process takes place during the time that the file is open, the pipe is lost and an attempted read or write access leads to a treatable exception of the class CX_SY_PIPE_REOPEN.
But I am not exactly sure what they mean by that.
Cheers
I'm trying to transfer a file on the server by compressing it, always gives me an Exception : CATCH cx_sy_pipe_reopen..
CONCATENATE p_dirsap '/file.zip' INTO p_dirsap.
TRY.
OPEN DATASET p_dirsap FOR OUTPUT FILTER 'compress'
IN TEXT MODE ENCODING DEFAULT.
.
LOOP AT i_file.
TRANSFER i_file-campo TO p_dirsap .
ENDLOOP.
CLOSE DATASET p_dirsap .
CATCH cx_sy_file_open.
CATCH cx_sy_pipe_reopen.
CATCH cx_sy_file_io.
ENDTRY.
help
Edited by: francesco aiello on Feb 3, 2010 5:49 PM
2010 Feb 03 10:58 PM
Hi,
there is a note in ABAP documentation regarding your issue.
Note:
When working with pipes, you need to ensure that the pipe only exists in the current work process. If a change of work process takes place during the time that the file is open, the pipe is lost and an attempted read or write access leads to a treatable exception of the class CX_SY_PIPE_REOPEN.
But I am not exactly sure what they mean by that.
Cheers
2010 Feb 04 8:06 AM
I read the note but I have not figured out how to solve, the first time the file has transferred me from the time gave me the secodna Exception
2010 Feb 04 8:49 AM
2010 Feb 08 9:41 AM
Since this error to me semrpe there is a solution to reopen the 'pipe'.
thk.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |