on 02-12-2014 9:08 PM
Hi,
I am trying to rename the file name from .flag to .done in local FTP server. For that I have written the script like below and given the file path in SAP PI receiver communication channel.I am able to create the file in the target directory. But I am unable to rename the file to .done.
File name in the PI receiver channel is /dir/file.bat and tried with cmd.exe /dir/file.bat
Script contains
open domain name
user username password
RENAME file.flag file.done
quit.
I have tried in several ways but getting the Error executing OS command . Please provide me the solution.
Thanks,
Satheesh
Hi Satheesh - The os commands will be executed on the PI server but not on the FTP server
Couple of checks..
Did you run the script manually on the PI server? Is it working fine?
If it's working fine, then the configuration in PI channel for executing the batch file might be wrong.
Also have a look at the below to debug further
http://wiki.scn.sap.com/wiki/display/XI/SAP+XI+File+Adapter+OS+Command+Line+Feature
Some sample codes - http://www.dostips.com/DtTipsFtpBatchScript.php
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satheesh -
I don't think you would be having the access run this batch file on the PI Operating System.
Take help from Basis team to upload and run it..
How did you configure the channel without knowing the batch file location ?
P.S. You can upload the file to PI NFS location using sxda_tools transaction but take Basis help as you need to run the batch file too..
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.