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: 

Move file to application server or delete a file from application server

Former Member
0 Kudos

Hi all

I have one application in which if succeful uploading of BMP file from application server is not done , File has to move to another folder like 'ERROR' Folder

but i am unable to do that.

here is the code:

CONDENSE g_t_ws_move.

CALL 'SYSTEM' ID 'COMMAND' FIELD g_t_ws_move

ID 'TAB' FIELD g_t_ws_command_line[].

where

<b>G_T_WS_MOVE= 'MOVE /Y /sapin/XVZ/journeyplan/0000000.BMP /tmp/0000000.BMP'

means i have to move 000000.bmp file from XVZ to tmp directory ,</b>

3 REPLIES 3

Former Member
0 Kudos

If you are running UNIX or LINUX - use the syntax MV not MOVE

uwe_schieferstein
Active Contributor
0 Kudos

Hello Neetu

Alternatively you could use a combination of the following function modules:

- EPS_FTP_PUT
- EPS_DELETE_FILE

Regards

Uwe

Former Member
0 Kudos

In case you use UNIX as application server, use 'mv" in small case letters not even MV is correct, also ensure the paths are having correct casing as UNIX file and path names are case sensitive

MOVE will work on Windows app. server