on 09-04-2009 9:30 AM
Hello everybody,
i have some interfaces whit FTP-XI-Idoc scenarion.
we decided to save files after elaboration in different directory depending on month (yy-mm).
Example:
/Rxarchivio/0901
/Rxarchivio/0902
....
I see this link
https://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature
very helpfull but i don't know how to parameterize variable of year and month.
i try with this but don't work:
SET CC=%DATE:6,4%%DATE:3,2%
open ftp
VCE01\selzsapd
dpas_zles
cd /Rxarchivio
mkdir %CC%
mget
cd /Rxarchivio/%CC%
mput
quit
any suggestion?
Hey,
Scenario is fine. Your unix script is wrong. Just try this script in Putty wether it is working fine or not.
Thanks and Regads
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I m not taking about FTP server. Your PI is on Windows or Unix.
Id it is on UNIX the put the UNIX script to PI file system and give the path.
FTP adapter pick the file from FTP location and the pick the UNIX script from PI FIle system and run script ..archive the files and then send message for further processing.
Thanks
Aman
User | Count |
---|---|
84 | |
9 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.