Application Development 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: 

Write and rename file in the application server

Former Member
0 Kudos
97

hi,

I need to write a file to a directory in the application server, but i have a problem because i have a application that cyclical executes a script ftp that cuts all .DAT files to another directory in another system and I’m afraid that during my write process the scripts catches my file and ruin my write process .

How can I resolve this issue.

Is there any atomic rename process that I can use to write the file with a txt extension and then rename to .DAT file?

thanks and regards.

Luis Constantino.

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos
62

Check this link -

Regards,

Amit

reward all helpful replies.

2 REPLIES 2

amit_khare
Active Contributor
0 Kudos
63

Check this link -

Regards,

Amit

reward all helpful replies.

ferry_lianto
Active Contributor
0 Kudos
62

Hi,

Perhaps you can use the following combination of function modules:

- EPS_FTP_PUT (copy file) -> leave IMPORTING parameter RFC_DESTINATION empty

- EPS_DELETE_FILE (delete file)

Regards,

Ferry Lianto