SFTP adapter Module

Hi All
I need to find a way to handle sftp, I looked at developing a custom adapter but think doing it in a adapter module would be much easier. The question I have is, is it possible to add a adapter module to the existing file adapter to handle the sftp. I have had some experience on developing adapter module but not sure if this can be done. If anyone has some experience with this or tryed it before any help will be appreciated.

Hi,
Have you looked in to below blog,
/people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way
try this way...
Regards,
Raj

Similar Messages

  • Need Help in Creating adapter module for SFTP Sender in NWDS

    Hi experts,
    I have a scenario where i should write an adapter module for SFTP sender in NWDS.. need your help in achieving this..

    Hello,
    >>i have followed the procedure of FTP but, adapter is not picking the file
    Make sure u have written proper expression to pick file.
    >>do we have any different adapter parameters for SFTP... the input file is .csv..
    I don't think there are any specific parameters needed for SFTP (but in case u are reading file name in AM then u might have to adjust SFTP namespace)
    Thanks
    Amit Srivastava

  • PI SFTP RECEIVER ADAPTER MODULE CONFIGURATION

    Hi,
    I am new in SFTP adapter. I want to transfer file from proxy to SFTP. I want to output file is in csv format. But now it is in  xml format.
    Please help me!!!
    My module configuration is in attachment..

    Hi
    I have got the problem. You have to modify your target structure in the below format
    <row>
    <column-name1>ABC</column-name1>
    <column-name2>12345</column-name2>
    <column-name3>Text1</column-name3>
    </row>
    Create any parent node and inside that create the sub-eliment STATUS and USERID
    something like
    MT_Succefactor
       <record>
       <STATUS>
       <USERID>
        </record
    Then you will get the desired output. Use the below content conversion paramters

  • MalformedInputException Error in Adapter module for SFTP channel

    Dear All,
    I am using MessageTransformBean in adapter module for Plain to XML conversion. The channel works fine in all the cases but when I recieve     "  ì " or few more special characters in the file my channel does not pick file and show below error.
    Error: com.aedaptive.adapter.sftp.SFTPException : Aborting processing: com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    I am using below parameter value in adapter module.
    Transform.Class : com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType : text/xml;charset=ISO-8859-1
    Please help me if any of you have faces such error in your developments.
    Avanish

    Hi Grzegorg,
    I have tried using UTF-8 encoding in my channel but this doesn't work. Communication cahnnel is still giving same problem.
    Error: com.aedaptive.adapter.sftp.SFTPException : Aborting processing: com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    The file which we are trying to process have character  Ì and as far as my serach is concerned i think this belongs to charset ISO-8859-1.
    Any more suggestion Guys to solve this problem.
    Thanks and Regards
    Avanish

  • Need to read source file without deleting it - Sender SFTP adapter

    Dear friends,
    The data from the source file needs to be read by PI on a daily basis. The file should not be deleted.
    Vendor  updates the file on a daily basis with file name DataFeed.xml
    How to acheive this in Sender SFTP adapter ?
    Kindly guide me
    Renu

    Hi Renu,
    Unfortunately as of latest release of SFTP adapter. Arching is not possible :(. really dont know why :).
    as a work around what you can do is  create a scenario as 1 sender and 2 reicever.
    here: 1 sender: will be the sender fileadapter which will pick the file from souce.
             1st receiver: will be a receiver file channel which will palce back the file in the source Archive folder.
             2ed Receiver: this will be the actual receiver to which the data has to be given.
    Or write a Module in Sender adapter which will archive the files in new location.
    Note: Here i am assuming that each time the source creates a new file with same name which contains new data in it everytime.
    Regards,
    Senthilprakash.

  • 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,
    Anika

    Hi 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

  • 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 Kumar

    Hello Dheeraj,
    Thanks for your reply. I created a new discussion,
    Flatfile to XML
    Thanks well in advance for your help!
    -Satish.

  • Receiver SFTP adapter giving spaces between characters in the Output file

    Hi PI Experts,
    My Scenario is: Paymul (EDI file ) ECC -> PI -> SFTP server.
    Source Sender File adapter able to pickup this Paymul D96A file and able to send messages to target SFTP server using SFTP receiver adapter.
    But, Generated Output file having single space between each character. I am not using any content conversion modules in Receiver SFTP adapter.
    Also not having any mappings to transform the messages. it is just pass through interface.
    I have attached example Output file. I have changed the .Dat file to .txt just to attach here.
    Could any one try to help me on this. Please let me know incase need any more details.
    Thanks,
    Govindu.

    Hi Govindu,
    Please see if the below Endcoding settings wont resolve your issue.
    File Type - Text
    File Encoding - ISO-8859-1
    Regards,
    Jannus Botha

  • Help on adapter module configuration

    Hi Folks,
    I want to pick a file and placed in the archive location.  I want to develope a adapter module for this. Can any one please let me know how would I develope an adapter module for this.
    Your help is highly appreciated.
    Thanks,
    Enivas

    Hi,
    It depends which SFTP adapter you are using as some vendors support archiving such as AEDAPTIVe SFTP Adapter (http://www.aedaptive.com/index.php/solutions/sftp-for-sap-netweaver) but I guess you are using Seeburger SFTP adapter ?
    However, if your adapter does not support archiving and you want to write an adapter module, you can refer the following link:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81

  • 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
    Monica

    Hi 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,

  • 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
    kiran

    Hi 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)

  • PI 7.4 - SFTP Adapter - Logs successful - No File Written

    All,
    We are on PI 7.4 Dual stack -
    Scenario:
    IDOC to FlatFile via Reciver SFTP adapter - FCC is done by XML2Plain adapter module.
    The receiver comm channel logs are looking good. Please see below.
    But we dont see any file on the SFTP server.
    Please note that -
    1. We were able to write a file to the SFTP server without using XML2Plain bean
    XML2Plain module parameters.
    Receiver Comm Channel - logs:
    09/16/2014 04:03:38.457 PM Information Message was received by the messaging system. Protocol: XI URL: http://<PISERVER>:50000/MessagingSystem/receive/AFW/XI Credential (User): PIISDX1
    09/16/2014 04:03:38.459 PM Information Using connection SFTP_http://sap.com/xi/XI/SFTP. Trying to put the message into the receive queue
    09/16/2014 04:03:38.471 PM Information Message successfully put into the queue
    09/16/2014 04:03:38.474 PM Information The message was successfully retrieved from the receive queue
    09/16/2014 04:03:38.493 PM Information Delivering to channel: CC_GoodsMovementsFileRcv
    09/16/2014 04:03:38.493 PM Information MP: processing local module localejbs/AF_Modules/MessageTransformBean
    09/16/2014 04:03:38.493 PM Information Message status set to DLNG
    09/16/2014 04:03:38.494 PM Information Transform: using Transform.Class: com.sap.aii.messaging.adapter.Conversion
    09/16/2014 04:03:38.495 PM Information Transform: transforming the payload ...
    09/16/2014 04:03:38.496 PM Information MP: processing local module localejbs/CallSapAdapter
    09/16/2014 04:03:38.496 PM Information The message was successfully delivered to the application using connection SFTP_http://sap.com/xi/XI/SFTP
    09/16/2014 04:03:38.496 PM Information Transform: successfully transformed
    09/16/2014 04:03:38.498 PM Information Message status set to DLVD

    Hi Naveen
    There are a few typo errors in your configuration.
    First one is xml.conversionType - your value have a lower case p while it should be in upper case (SimpleXML2Plain)
    The next one is xml.endSeperator - should be xml.endSeparator.
    Try to make these typo corrections to see if it helps.
    Also, you have configured a lot of parameters that are not applicable for the SimpleXML2Plain conversion, i.e. documentName and documentNamespace, fieldNames, lastFieldsOptional, processFieldNames and structureTitle. These can be removed. You can refer to my blog below for the list of parameters that are applicable.
    FCC parameter reference for MessageTransformBean module
    Rgds
    Eng Swee

  • Help req in Seeburger SFTP adapter

    Hi All,
                I have a scenario where i need to send a file to SFTP server. I used Seeburger SFTP adapter to connect to SFTP.
              This is a pass through interface and i havent used any party at the confiuration( normal configuration without party)
                 In SFTP channel  @ modules i configured it as:
    localejbs/Seeburger/solution/<solutionName>            Local Enterprise Bean                solutionid
    localejbs/ModuleProcessorExitBean                            Local Enterprise Bean               exit
    Module Key                                    Parameter Name                                   Parameter Value
    exit                                                 JNDIName                                    deployedAdapters/SeeXISFTP/shareable/SeeXISFTP
    When i test the scenario i facing the following error in the receiver communication channel( SFTp Adapter) @ RWB
    Delivering the message to the application using connection SFTP_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of ModuleProcessorExitB ean..
    Can someone please help how to resolve this problem.
    Thanks,
    Siva

    Hi,
    can you share how you solved this issue? i am having the same issue with the sftp and receiving the same error.
    Thanks in advance.

  • Can we make server fingerprint field optional instead on mandatory in SFTP adapter

    Dear All,
    We are integrating SAP HCM with Success-factor only for Employee profile as client is only using the "SF PMS" module.
    ABAP program(installed through SH addOn provided by SAP) is generating the Employee profile ".csv" file.
    I am developing a bypass scenario to transfer that ''.csv" file to SuccessFactors SFTP server. However, SuccessFactors SFTP server team is not ready to provide me their "server fingerprint", and they are claiming this info is not required to develop interface in PI. The Authentication mode in SFTP communication channel is "Password" based instead of "Private key".
    Experts please help me understand is there any possibility to make this field optional? if not what else I can try here?
    Thanks,
    Farhan

    Hi Farthan,
    Server Fingerprint is the mandatery field to fonfigure the SFTP adapter. kindly check with your admin team to login thorough CoreFTP, it will be genarte and display the Server fingerpring.
    please go through the below log.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/04/11/sap-sftp-sender-adapter-a-quick-walkthrough
    Regards
    Srinivas

Maybe you are looking for