cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP adapter Filename issue.

r_s_kulkarni11
Participant
0 Kudos

Hi All,

I am using the SFTP add on provided by SAP and I have configured the simple file to file scenario.

I have given the correct details of the servers and all. the sender channel is picking the file but receiver SFTP channel is throwing the error - MP: exception caught with cause javax.resource.ResourceException: 4: Putting /[A-Z]*.csv failed."  I tried with SAP*.txt and all.

I want to know what configuration we need to do in Filename and path for the receiver SFTP channel?   Also I want to use the filename from sender File channel, so what configuration I need to do in the ASMA for this SFTP channel.

I went to several threads but was not able to find the exact configuration.

Thanks in advance.

Regards,

Rahul Kulkarni

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Rahul,

Correct me if I'm wrong, but for this scenario you need to use UDF or adapter module to set the filename for the receiver system. The reason is that even using ASMA for both adapters, the namespaces would be different (File http://sap.com/xi/XI/System/File SFTP http://sap.com/xi/XI/System/SFTP)  so a pass-through using the same filename will not work.

You need to:

1. Get FileName from sender File Adapter (ASMA with http://sap.com/xi/XI/System/File)

2. Set the FileName for receiver SFTP Adapter (ASMA with http://sap.com/xi/XI/System/SFTP)

Hope this helps,

Mark

Answers (5)

Answers (5)

r_s_kulkarni11
Participant
0 Kudos

Hi All,

I really appreciate your help on this issue, meanwhile testing the SFTP interface, I found that some of my interfaces which are using AeDAPTIVE solution's PGP encryption and decryption module are not working.

I was checking and found that the files for storing the key rings are deleted, I have contacted my Basis team for the issue but I want to know that is there really a impact of SFTP installation (from marketplace with PGP module) on my existing PGP AeDAPTIVE solution?

Thanks in advance.

Bhavani_Baisani
Participant
0 Kudos
r_s_kulkarni11
Participant
0 Kudos


Hi Guys,

Yes, I think its working, Can you please tell me what should I ideally put in SFTP for file name?

If I put anything (as I am using ASMA) it will work right?

Also Can you tell me in case of Sender SFTp, what will be the configuration needed for filename, path and the ASMA?

Thanks in advance.

Former Member
0 Kudos

Hello,

>>If I put anything (as I am using ASMA) it will work right?

Yes

>>Also Can you tell me in case of Sender SFTp, what will be the configuration needed for filename, path and the ASMA?

Check this blog for filename pattern

Thanks

Amit Srivastava

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You can put anything under the FileName since it gets overwritten at runtime if you use ASMA.

For Sender SFTP (if path is supported by ASMA), then there is no need to set it via UDF. Just check FileName and Directory for both Sender and Receiver SFTP and the values should be populated at runtime.

Regards,

Mark

Former Member
0 Kudos

Hi Rahul

You can not put a file name like SAP*.txt in the receiver adapter. The sender adapter allows this as file masking but receiver adapter will not.

Remove the * from the name and then test. let us know if it worked or not.

If you want to pass dynamic name then check this blog

http://scn.sap.com/docs/DOC-49712

Former Member
0 Kudos

Hello,

In the receiver SFTP adapter change the default namespace given in ASMA and then try to check?

http://scn.sap.com/thread/3178909

Thanks

Amit Srivastava