cancel
Showing results for 
Search instead for 
Did you mean: 

Unix command in FTP connection through File Adapter

Former Member
0 Kudos

Hi All,

I have a scenario IDOC to file in which the user requested for pushing file to FTP server as below

put localfilename %localfilename%CITISECUFLATNA%CITIGPASSIN%%B

Here my file name is test.txt.

so I tried giving in communial channel as

File Access Parameters

Target Directoy : put test.txt %test.txt%CITISECUFLATNA%CITIGPASSIN%%B

File Name Scheme: text.txt

But I go the error in Communication channel as

An error occurred while connecting to the FTP server 'ftp-gw.dx.deere.com:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter. usage: %[recipient id]%[APRF] where either [recipient] or [APRF] can be omitted. (to change your current default SEND relationship). %% (places you in your 'HOME' TR). &['s'|'single'] ('get' command gets single file). &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor

Please let me know how we can specify in our FTP parameter in Communication chanel.

Regards,

Dhill.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dhil,

Check my reply in this thread. I think you are having the same issue:

---Satish

Former Member
0 Kudos

Hi Satish,

I already seen this thread but I can see your final reply as below

>Luis,

>I am not getting what we are trying to do. My email id is >satishguntaka@gmail.com. Lets chat in gmail for couple of minutes.

>---Satish

Please help out to solve this issue as this was in my critical situation. Your solution will be really helpful for me.

Regards,

Dhill

Former Member
0 Kudos

Dhil,

Its been some time. So I have forget what I have suggested to him. But no problem. Ping me at the same id.

Will try to help you out.

---Satish

Former Member
0 Kudos

Hi Satish,

Thank you very much I send invitation to your gmail id. My ID is sapsenthil.kumar@gmail.com.

Please let me know whether it could be possible or not. so that I can try accordingly.

Regards,

Dhill

Former Member
0 Kudos

Kumar,

I have added your name.

---Satish

Former Member
0 Kudos

Hi Satish,

Thank you very much for your help and your time. But I tried as you told

Target Directory as : \

File name scheme : test.txtCITISECUFLATNA%CITIGPASSIN%%B

and also tried as

Target Directory as : \

File name scheme : test.txt<b>%</b>CITISECUFLATNA%CITIGPASSIN%%B

still i got the same eror.... I am getting success only when I specify like

Target Directory as : %%

File name scheme : test.txt

but the vendor is saying he is not able to see the file anywhere in ftp.

Regards,

Dhill

Former Member
0 Kudos

Hi Satish,

Thank you very much, Successfully the issue is solved.

My vendor is able to see the file when we give

Target directory as %/%

File name scheme : %test.txtCITISECUFLATNA%CITIGPASSIN%%B

Thank you very much for your time satish.

Regards,

Dhill

Former Member
0 Kudos

Dhil,

Good to know it is solved.

Regards,

---Satish

Answers (0)