SAP HCI SFTP Adapter
Hello,
With the SAP HCI SFTP adapter is it possible to connect to an SFTP site that only supports username and password authentication? Do I have to use key based authentication?
Thanks,
Krishneel
Hi Martín
Check this blog. He uses different modules for banking interfaces
http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/04/14/sap-pi-integration-to-different-banks-using-swiftnet-and-bcm
Hope it helps
Regards
Javi
Similar Messages
-
Hi All,
We've an existing interface that picks up IDocs from SAP using WCF-SAP adapter, these IDocs contain updates to data that are in turn subscribed by two other SAP systems via couple of Send Ports using the same WCF-SAP adapter. In production we've been facing
performance issues with this design as when there are mass updates in SAP, they push up to 7 to 10K IDocs through, which BizTalk struggles with and that also creates issues for SAP as the queue is not read in quick time which starts building up and creates
issues on the source system.
Now one of the solution proposed for above problem is to use a file based adapter like FILE, SFTP etc. where SAP will publish IDocs as flat files, I believe that'll solve the problem of backlog building on SAP queue and SAP can continue to write files without
impacting by BizTalk not picking them up but would it help in inside BizTalk performance as well? or we'll have to batch the files in using adapter properties (i think it works on SFTP adapter) say take in 100 files every 30 seconds? Any other solution which
can speed this up?
Thanks
SyedI was just reading this
Restrict the number files Picked up by BizTalk FTP Adapter msdn
thread and it says
"Not possible, the Maximum Files setting only controls how BizTalk creates the message batch
to write them into SQL. This also applies to the File adapters Number of messages in a batch"
So , you need to implement some kind of controller pattern in your solution to manage this floodgate.
Have a read of
How to implement Concurrent FIFO Processing in BizTalk technet wiki article, this for FIFO but this may give some idea to write a controller.
Greetings,HTH
Naushad Alam
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
Mark As Answer
alamnaushad.wordpress.com -
Flat file to XML in SAP SFTP adapter
Hello All
I am trying to convert flat file to xml using SAP SFTP adapter.
Flat File is like below:
AABEN;20141106;20141106;45;0.00
AABOL;20141106;20141106;45;0.00
ABGRI;20141106;20141106;45;0.00
ADDEA;20141106;20141106;45;0.00
ALADA;20141106;20141106;45;58.43
AMSCH;20141106;20141106;45;0.00
ANOLV;20141106;20141106;45;0.00
ANROY;20141106;20141106;45;0.00
AVMCD;20141106;20141106;45;0.00
Message Type structure I created like below
In Server SFTP adapter in Module tab I am using "AF_Modules/MessageTransformBean" and conversion type ="StructPlain2XML"
I am getting error = "Error: com.sap.aii.af.sdk.xi.adapter.trans.TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) Parameter 'xml.keyFieldType' is missing (4403) "
I am not using any key field then please let me know how to overcome this issue.
I searched on SDN but did not get any perfect answer.
Thanks
Dheeraj KumarHello Dheeraj,
Thanks for your reply. I created a new discussion,
Flatfile to XML
Thanks well in advance for your help!
-Satish. -
Receiver SAP SFTP adapter-errorlog on SFTP server
Experts,
I am using receiver SAP SFTP adapter to connect to an SFTP server and send files.Receiver SFTP server is a VMS system.I could able to write the files to home directory of the user that has been given,but apart from writing the files I am seeing warning log file in the the target folder on SFTP server like below description.I am giving dot(.) in the file path to write the files to the default directory that has been assigned to the user given by receiver SFTP server team.
WARNING: ssh_file_server_receive_proc: platform cannot stat() filename /home/dir1/dir2 ./TestFile(TestFile is my file name) .
Just to test,we placed files in the receiver SFTP server using same user and password as the PI recv SFTP channel with command line and winsCP client tool,but we don't see any error logs on the server with WinSCP tool or command line transfer of the files.Log file with above warning is generating only when we place files on the server using SAP SFTP adapter in the recv channel of PI.
Please let me know,if you have any insight or seen similar issue.
Thank you,
SriHi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
>>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
http://scn.sap.com/docs/DOC-35572
I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
>>> Yes. It is only possible with NFS.
You have to define multiple channels/interfaces... -
HI FRIENDS,
I need your help in two points -
1 -- Is there a document on sdn which covers the detailed information on SAP SFTP adapter? I found few links online but they are only covering few features. None of them talks about any limitation on the adapter.
2-- I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
Thanks for your time. PS.Hi Poonam - Blogs on SFTP : Just search for SFTP and filter by blogs/documents.. you can find many..
>>> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?QuickLink=index&overridelayout=true&57075820413417
http://scn.sap.com/docs/DOC-35572
I read in some of the SDN forum that SFTP adapter doesnt have the capability to read the files from multiple directories. So, if we get any requirement to read the files from multiple directories using sftP, why could be a possible solution for this requirement?
>>> Yes. It is only possible with NFS.
You have to define multiple channels/interfaces... -
Picking file in sequence/Queuing in sender SFTP adapter.
Hi Experts,
I am using SFTP adapter in sender side, it has no option of quality of service ( EOIO) and queue name as we have in FTP adapter configuration .Is there any predefined module provided by Sap which i use in the modules Tab in communication channel configuration to get the functionality of queuing ? just like we use strictXMlto plain bean etc.
I have 3 files which needs to proccess in a sequence one after another in order.I CANT USE BPM or Even FTP because of Security reasons.
please share you ideas.
Regards,
AnikaHi all,
I have tried using AF_Modules/DynamicConfigurationBean in module tab present is the sender SFTP adapter with the attribute qualityOfService.
parameter name Parameter value
key.0 insert http://sap.com/xi/XI/System/Messaging qualityOfService
value.0 ExactlyOnceInOrder
But in Moni i dont see the 3 messages didnt go in the same queue.But when i double click and open the dynamic configuration present in the soap header section i can see the values which i given in the module parameter.
Is there any way i can change the quality of service to EOIO at runtime ? how to change the default EO to EOIO.
Regards,
Anika -
How to configure SFTP Adapter in XI?
Hi All,
How to configure SFTP adapter in XI?, It would be great if anyone sends a step-by-step documentation on the same.
Thanks in advanceHi,
About SFTP .
1) SFTP (Secure File Transfer Protocol)
"SSH File Transfer Protocol" or SFTP is a network protocol that provides file transfer and manipulation functionality over any reliable data stream. It is typically used with the SSH-2 protocol to provide secure file transfer. SFTP encrypts the session, preventing the casual detection of username, password or anything that is being transmitted. One key benefit to SFTP is its ability to handle multiple secure file transfers over a single encrypted pipe. By using a single encrypted pipe, there are fewer holes in the corporate firewall.
SFTP:
As per the latest SAP PI/XI support pack, it does not support SFTP via File Adapter.
So alternative approach to cater this requirement from XI is to make use of Unix Script at OS level to transfer the files from/to third-party systems.
Inbound Interface - i.e. third-party system ->XI->SAP:
File is transferred to a folder in SAP XI landscape from the third-party legacy system using UNIX Script with secured protocol. Once the file is ready in the XI landscape, File Adapter will poll this directory and file is picked up by NFS protocol.
Outbound Interface i.e. SAP->XI->third-party system:
XI is responsible for writing a file into a folder in the XI landscape. These files are transferred to the third-party system by executing UNIX scripts with secured protocol i.e. via sFTP.
Pre-Requisites:
Public key should be exchanged between external systems and the PI system.
UNIX shell script has to be developed and scheduled.
Advantages:
Highly Secured.
Ability to handle multiple secure file transfers over a single encrypted pipe .By using a single encrypted pipe, there are fewer holes in the corporate firewall.
Disadvantages:
Two-Step process i.e. XI>Temporary folder>External System and vice-versa
Files have to be temporarily stored in XI server.
Multiple failure points i.e. XI and Unix script execution
Maintenance of an external UNIX script.
Difficulty in monitoring the execution of the shell script as it cannot be monitored thru XI.
Need to generate keys and install it in the SFTP site as a pre-requisite i.e. SFTP clients must install keys on the server.
SFTP uses keys rather than certificates. This means that it can't take advantage of the "chains of trust" paradigm facilitated through Certificate Authorities.
Files from the XI server should be deleted/archived in a periodic manner to increase the disc space so that it will increase the performance.
Note: UNIX shell Script can be executed as a background job or' can be triggered from SAP XI through OS command at File adapter level.
Check the links.
Secure FTP (SSH) with the FTP Adapter
Secured File Transfer using SAP XI
Secure FTP in SAP XI
Regards,
Phani
Reward points if Helpful -
Hi
Is there any way we can use dynamic configuration with sftp adapter ?
Requirement is that I need to retrieve input file name and use that somewhere
but for sftp sender I could not locate adapter specific message attributes.
Does that mean its impossible to retrieve file name during runtime?Hi Akhil
have a look on this links
Standrad File adapter shipped with XI does not support SFTP. You can may be consider using FTPS ( File Transfer Protocol using SSL/TLS ).
Check this link for further info,
http://help.sap.com/saphelp_nw04/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/content.htm
For HTTPS and FTPS, you need to define if your communication will have certificate authentication, user authentication, none or both. User/password you enter in the adapter parameters, it's simple. For certificates, you need to import (load) it on Key Storage service, service_ssl view, on Visual Administrator (or create the key pair certificate on XI and then sign then on some Certification Authority, on the same service). Check http://help.sap.com/saphelp_nw04/helpdata/en/f1/2de3be0382df45a398d3f9fb86a36a/frameset.htm for further information.
HTTPS / SFTP with XI
Need Some Pointers for adapter development
there's a sample adapter shipped with the XI
/people/gowtham.kuchipudi2/blog/2006/01/04/testing-sample-adapter
Fle Adapter connection to SFTP server ove SSH
sftp adapter creation
Thanks ! -
Dynamic directory for Sender SFTP adapter
Hi All,
Hope everybody is doing fine.
I need urgent help for below requirement for SFTP adapter ,client requirement is
We have deployed the SAP security Add ons (PGP-SFTP) for one of the requirements in our PI system (PI 7.11 SPS 11).
The SFTP adapter is configured to read files from the source system.As per the guidelines from the source system , we need to determine the source directory dynamically and then poll the files.
The source folder structure looks something like this :
\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface1
\Archive\FROM_System\<yyyy>\<mm>\<dd>\Interface2
That is we need to pick up the file every day from a new folder, say, for 24th July 2013 - \Archive\FROM_System\2013\07\24\Interface1
25 July - \Archive\FROM_System\2013\07\25\Interface2
Will the PI SFTP adapter support this kind of requirement? As this is sftp sender adapter Operating system level command option is also not available.
Do we have any standard module/Bean to dynamically change directory name in the sender SFTP adapter?
i will really appreciate your quick help.
Thanks
MonicaHi Monica,
Yes it should work. Did you check this thread:
http://scn.sap.com/thread/3376137
Also refer to the following documentation link for the SFTP sender adapter (scroll down to the adapter specific message attributes):
http://help.sap.com/saphelp_nwposc/helpdata/en/2e/99f0fb5a9e45b3b148c90e87fafcd1/content.htm?frameset=/en/c5/56eb8e7ec04435a0d54d96a18231e5/frameset.htm
Best Regards
Harald -
SFTP adapter error : Catching exception calling messaging system
Error: com.aedaptive.sftp.adapter.SFTPException : Not all messages were delivered succesfully
Could not deliver message to XI: com.sap.aii.af.lib.mp.module.ModuleException: senderChannel 'ca09269447583427adc545f8c23d244b': Catching exception calling messaging system
This is error message which i get in sender communication channel while working with SFTP adapter.Hi Pooja,
I think it would be better to add getcause() to get the cause of the issue.
Ref: http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/af/lib/mp/module/ModuleException.html
Thanks, -
Hi All,
I am sending file from file server to SFTP file server. The error that I receive in receiver SFTP adapter is :
<b>Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIDeliveryException: >> Description: Could retrieve address with ID <The specified item was not found.>. Root cause: Unable to execute query because: com.seeburger.xi.config.ConfigException: No To-party associated with ID: The specified item was not found.{:SFTPReceiver::SFTPReceiver}>> Details: Could retrieve address with ID <The specified item was not found.>. Root cause: Unable to execute query because: com.seeburger.xi.config.ConfigException: No To-party associated with ID: The specified item was not found.{:SFTPReceiver::SFTPReceiver}>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: CONFIGURATION_ERROR>>Retryable: false>>Fatal: false, >> Description: Could retrieve address with ID <The specified item was not found.>. Root cause: Unable to execute query because: com.seeburger.xi.config.ConfigException: No To-party associated with ID: The specified item was not found.{:SFTPReceiver::SFTPReceiver}>> Details: Could retrieve address with ID <The specified item was not found.>. Root cause: Unable to execute query because: com.seeburger.xi.config.ConfigException: No To-party associated with ID: The specified item was not found.{:SFTPReceiver::SFTPReceiver}>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: CONFIGURATION_ERROR>>Retryable: false>>Fatal: false</b>
Pls Advice:
Regards,
XIercan you double check you configurations associated with this CC,cos in the error it clearly says :
Unable to execute query because: com.seeburger.xi.config.ConfigException: No To-party associated with ID:
FaultCategory: CONFIGURATION_ERROR
and you might wanna look more on sorting out "No To-party associated with ID" -
SFTP adapter : generating certificates
Hi Gurus,
In our project we have file to file scenarios were we are using SFTP adapter.
The authentication has to be done uding keys.
The adapter has been installed properly I can see it in nwa-> component info.
PI will be picking up files form SFTP server.
I am confused If I should be sharing PI public keys from them or they will give their public keys to me.
I am refering document,
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/305eeb5b-81e7-2f10-d8aa-9216de04ca3e?overridelayout=true
But, I am not able to find any keys under Configuration ->Certificates and Keys for SFTP adapter.
Does it automatically comes over there or do we need to create them?
Thanks,Hi Dilip,
refer below blog :
Using PGP in Process Integration
Public Key:
Your public key is used by all your business partners to encrypt a message when sending that message to you. Therefore, you must send the public key to your partners first.
Your partner’s public key is used to verify the digital signature in the message when you receive that message from your business partner. Therefore, your partner must send you his public key first.
Private Key:
Your private key is used to decrypt a message when receiving it from your partner. Your business partner will use your public key to encrypt the message.
Your private key is used to digitally sign a message when sending it to your business partner. Your business partner will use your public key to verify the digital signature
- Harshit -
Query on Content conversion for Receiver SFTP Adapter
Hi Experts,
We have the receiver structre as follows:
<DT_Receiever>
<Header>
<field1>abc<\field1>
<field2>1234<\field2>
<\Header>
<Detail>
<field3>nhj<\field3>
<field4>bshsrt<\field4>
<\Detail>
<\DT_Receiever>
We should do content conversion for the above structure using SFTP adapter at the receiver end.
Kindly provide us some tips in achieving the same.
Thanks
Suganya.Hi Suganya,
You can use message tranform bean for ur case.
U have to use "StructXML2Plain"
Please follow below link for ur reference If you face any problem please let me know....
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
Thanks,
Enivass -
SFTP adapter Config in PI 7.1
Hi Experts
I am working on a SFTP adapter on the sender side to encrypt the file and send it to the Thirdparty, Can I configure multiple files to send to the different parties or banks (Different Bank may use different keys) in the same Receiver SFTP adapter to achive this
please help if there is any blog on SFTP Receiver adapter how to configure
Thanks
PRIt depends on the adapter you are using to achieve the SFTP protocol (seeburger, advantco,...?). However, most of them don't support multiple FTP connections with the same adapter. But this is easy to achieve by adding many communication channels to the Receiver Determination of the scenario.
Standard Receiver Determination
http://help.sap.com/saphelp_nw04s/helpdata/en/14/d5283fd0ca8443e10000000a114084/frameset.htm
Also, for overal information on SFTP adapters for PI, please check the document below.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0e0117a-3167-2d10-d2ae-f87dfa5e00f0?quicklink=index&overridelayout=true -
Sender SFTP adapter configuration
Dear Experts,
we have one requairement to convert CSV file to xml messages, we are using the sender SFTP adapter.
kindly let me kow, how to convert csv to xml messages.
Regards
kiranHi kiran kumar,
There is no FCC in SFTP.you need to use Message Transfoem Bean in Module to convert csv file to XML.Configure module parameter as below:
Transform.Class = com.sap.aii.messaging.adapter.Conversion
Transform.ContentType = text/xml;charset=utf-8
xml.conversionType = SimplePlain2XML / StructPlain2XML
xml.processFieldNames = fromConfiguration
xml.documentName = MyDocument
xml.documentNamespace = http://xi.com/DocumentTest
xml.documentNamespaceScope = root (default Value)
xml.structureTitle (SimplePlain2XML) = MyTitle
xml.recordsetName (StructPlain2XML) = MyRecordset
xml.recordsetNamespace (StructPlain2XML) = http://xi.com/RecordsetTest
xml.recordsetNamespaceScope (StructPlain2XML) = root (default Value)
xml.recordsetStructure (StructPlain2XML) = NameA,1,NameB,*,NameC,1
xml.recordsetStructureOrder (StructPlain2XML) = asc (for Ascending) / var (for Variable)
xml.allowEmptyRecordsets (StructPlain2XML) = YES / NO
xml.recordsetsPerMessage (StructPlain2XML) = * (default Value)
xml.documentSkipFirstRows (StructPlain2XML) = 0 (default Value)
xml.recordsetBeginSeparator (StructPlain2XML) = ~ (blank by default)
xml.recordsetEndSeparator (StructPlain2XML) = ~ (blank by default)
xml.keyFieldName (StructPlain2XML) = MyKey
xml.keyFieldType (StructPlain2XML) = CaseSensitiveString / Float / CaseInsensitiveString / Integer
xml.fieldNames (*) = MyKey,field-name1,field-name2
xml.fieldFixedLengths or xml.fieldSeparator (*) = 3,3,3 or ~
xml.endSeparator (*) = u2018nlu2019
xml.beginSeparator (*) = u2018nlu2019
xml. enclosureSign (*) = ~
xml.enclosureSignEnd (*) = ~
xml.enclosureSignEscape (*) = ,
xml.enclosureSignEndEscape (*) = ,
xml.enclosureConversion (*) = YES / NO
xml.checkForXMLPredefinedEntities (*) = YES / NO
xml.checkForISOControls (*) = YES / NO
xml.addBeginSeparatorAsField (*) = YES / NO
xml.addEndSeparatorAsField (*) = YES / NO
xml.fieldContentFormatting (*) = trim (default Value), nothing
xml.keyFieldValue (*) = 001
xml. keyFieldInStructure (*) = add (default Value)
Maybe you are looking for
-
Best specs to run Photoshop CS6 on a MacBook Pro.
Hi, I am considering a MBP for all my photoshop work. Currently using Photoshop CS6 From 2007-2010 I had my old MBP (late 2006 model). Then in 2011 I was using the 2011 iMac, 2.5ghz, 4gb ram. I sold the iMac as I felt more comfortble with the laptop
-
One order with multiple lines in OM is creating multiple invoices
Application: Oracle 11i (11.5.3) Modules implemented: GL, OM, AR, AP, PO and CM Business Requirement: Our client would like to create Order consisting of multiple lines in Order Management. The Orders created in OM with multiple lines could be booked
-
When I try to use Mail Drop Apple Mail responds 'Attachement can't be send by Mail Drop' - 'try later again' But it doesn't work. I have an iCloud account of course. Any ideas?
-
TCP/UDP Ports and site used by FEP to download updates - needed to allow on perimeter firewall
Can some one point me with information like what TCP/UDP ports are utilized by FEP and what DNS / site Name it uses to download FEP Updates. This is needed to tighten perimeter FireWall policies Thank you
-
Java will not update in the check for addon updates in Firefox 17.0.1
Firefox 17.0.1, xp, sp3 I got to tools>add-ons, check for updates. It shows both "Java(TM) Platform SE 7 U9" and "Java Deployment Toolkit 7.0.90.5" as out of date. I do the update part and download updates. But, when I recheck, Firefox tells me that