on 05-16-2006 7:32 PM
Guys,
I have an FTP adapter question. We are trying to both
send and receive a file using FTP. To do this we use
the server, user ID, password (etc) and the directory
name. The directory is mandatory.
After connecting to the ftp server, XI always seems to
issuing a "cd <directory>" command, however this fails
because this target company doesn't want to give
anybody the option to do a "cd" command on their FTP
server, therefore the whole file transmission fails.
Is there any way for XI not to use a "cd"?
We could just place the file on our server and run a
Unix scripts to FTP it over, but it would be such a
backward solution.
Any ideas?
It would be a disappointment if SAP didn't think of
this.
Your help would be much appreciated, thanks a lot,
Viktor
Hi Viktor,
What i could understand from your question is that in the FTP server you'll be writing a file in folder A and once the writing is done you need to get it moved to Folder B using a 'CD' OS command. But this OS command is not allowed in the FTP server.
If that is the case then it will be better to write the file directly into the Folder B. But in the file adapter use the option 'Use Temporary File'. In that case until and unless the file is written fully the file will be having the name .tmp or so.
The advantage will be the third party server could be polling the folder B for a file *.txt in that case it won't pick this .tmp file.
Cheers
JK
PS: Award points if this helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry guys, I probably created some confusion by
saying "CD" where I should have said "CWD".
To clarify the issue this is what I want to do:
I want to FTP a file to one of our client's site.
Using the given user ID, the sign on takes me to the
right directory (say: /usr/data/inbox, BUT: after the connection is established by XI, it also issues a
"cwd /usr/data/inbox" command and that is what's not
allowed by this client. This fails, so then XI tries
to create the direcory which, again ,fails.
And the same issue the other way when we try to pick
up a file from the FTP server.
I also asked SAP about this and their response so
far was:
"As far as I am aware this is hardcoded into the file
adapter. I will make inquiries to see if it can be
disabled but I do not think so."
I will make another post if they come back with a solution...
Viktor,
I think the FTP adapter design is as per the standards. It seems to be a genereic code which tries to issue a CD command and does a CD to the same(ftp root) directory if you specify "/" or to the directory specified. And note that specifying the directory paramter is mandatory so at least as of now...you cant avoid this.
-- Amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Viktor
I dont think you require to run unix scripts in your scenario? A standard approach should be ok with you.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Viktor,
As you mentiond, you need to do workaround like Shell script execution etc..
As of now, I don't think so it is possible in the standard way..
Thanks,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.