Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

function module to move a file from a directory to directory in application server.

$
0
0

Hi ,

 

  I am trying to move a file from one location to another location on the application server. I have used FM ' ARCHIVFILE_SERVER_TO_SERVER' which is actually copying the file but not moving.

 

then I have tried using external commands in Windows NT.

 

SM49 :

 

Command name              ZMV

Operating system          WINDOWS NT

Operating system command CMD

Parameters for operating system command  /C MOVE E:\sapio\import\psp e:\sapio\import\psp\archive

 

and using FM :

 

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'

   EXPORTING

     commandname                        = 'ZMV'

     additional_parameters              = l_para

IMPORTING

   status                              = l_stat

 

but it is giving an error message saying command not found.  I do not want to use OPEN DATASET concept.

 

would you please help me?

 

Murali


Viewing all articles
Browse latest Browse all 8735

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>