Skip to Content
avatar image
Former Member

Write file to another server with file adapter

Hi

I have following problem:

I'm reading files via ftp from server A and want to put them on server B. However, ftp to serverB is not an option here. Can I use plain file adapter and enter
serverB\<path> ?

I.e

ServerA <--- Polling with sender channel --- SAP PI --- writing with receiver channel --- > server B

Usually one enters (or me at least) "C:\mySapfiles\" or similar in the target dir on the receiver channel. This because the file is supposed to stay on same server as PI. But now I want to write "
serverB\mySapfiles"

The path on server B goes like this : "g:\usr\sap\myfiles\"

Is this possible? If so, does anybody know the syntax? Shall I use commands too?

/Best Regards

Joakim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 11, 2010 at 04:03 PM

    Hi,

    >>>
    serverB\mySapfiles"

    if your XI server can access this folder so can XI 😊

    just use NFS instead of FTP at receiver

    BTW


    serverB\mySapfiles must be a shared folder accessible from XI server machine

    Regards,

    Michal Krawczyk

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Praveen Gujjeti

      Problem solved!

      It was the path.

      The sharing started on the "sap"-directory. Therefore it was not possible to enter drive + "usr"

      So when I entered


      serverB\sap\myfiles

      instead of


      serverB\g$\usr\sap\myfiles

      it worked 😊

      Thank You all for your contributions, they were very helpful.

      /Best Regards

      Joakim

  • avatar image
    Former Member
    Mar 11, 2010 at 04:10 PM

    Hi Joakim,

    Make
    serverB\mySapfiles as shared folder and use NFS as michal suggested and you should be good to go. You dont need any script or anything in IR. You can skip IR and just config part. Please see this blog for the same integration:

    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

    Regards,

    ---Satish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      serverB\ has been shared folder all the time and also the folder
      serverB\g:\usr\sap\

      I tried
      serverB\ and
      serverB\g:\usr\sap\ in target directory in rec channel. I still get the same error.

      ..."Target directory '
      serverB' does not exist and cannot be created"

      ..."Target directory '
      serverB\g$\usr\sap' does not exist and cannot be created"

      syntax error perhaps?

      /BR

      Joakim