Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem trasfer file to server

Former Member
0 Likes
988

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

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
912

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

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

4 REPLIES 4
Read only

mvoros
Active Contributor
0 Likes
913

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

Read only

Former Member
0 Likes
912

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

Read only

Former Member
0 Likes
912

????'

Read only

Former Member
0 Likes
912

Since this error to me semrpe there is a solution to reopen the 'pipe'.

thk.