File Adapter (UNIX) to Windows Share

Hi,
I am still quite confused how SAP can call this a File Adapter until it is not possible to use the most common transfer method: UNC Paths
When I start thinking about this I am getting sick, but ok.
So I want to send a file from anywere to a Windows Share, which in general should not be that difficult. Again, this is one of the most used scenarios and this is not supported by SAP because my XI is on Unix. The possible solutions I found are:
1) Samba
2) Mount
3) FTP Adapter
For me Mount is no possible because I do have a WAN in between and this connection would be too vulnerable, FTP not as well because there is no FTP Server where I want to go.
Does anyone of you use a script called from the file adapter which transfers the file via Samba? Any experience with that?
BR Markus

You can as well use a J2SE adapter to perform the requirement using XI. I am not sure if you have tried that option.

Similar Messages

  • Transfer file from UNIX to windows application server G:\ drive

    Dear Expert,
    Really need some help on this, very urgent !
    The download program schedule in background to allow file store in unix.
    Can we do a unix command in abap program to transfer the file from unix to windows application server G:\ drive.
    The gateway for that application server is ukblmqg02.emea.astrazeneca.net .
    Anyone have the sample source code ?
    Thanks&regards
    Nislina

    Hi,
    1.
    There is  a FM 'ARCHIVFILE_SERVER_TO_CLIENT'.
    If the requirement need not necessarily require a FM to transfer a file, then you can also use transaction 'CG3Y' to transfer a file
    from application server to presentation server.
    2.
    Try to use FM  DOCFILE_SERVER_TO_CLIENT. I am using it to download a file from SAP application server to desktop.
    Source path should be application server file path along with file name i.e. /tmp/sample.xls.
    Target path should be something like c:\file.xls.
    Best regards,
    Prashant

  • Problem with NFS file adapter using a network share as source of files

    Hello,
    I have set up a sender cc with NFS format file adapter, with at the source directory a network share (
    server\sharename ). The share is on another system and not mapped to a local drivename, but it is open for everybody.
    The problem is, the adapter seems to not pick up the files in the directory, so there must be something I'm overlooking.
    - Both servers run on Windows
    - Share is available normally and open for everybody for all actions (including the SAPServiceSID user)
    - Files themselves are okay. If I put a file on a local drive and make the source directory the local drive instead of the network path, the file gets processed correctly
    - Because of the need for a file completion check, FTP is not an option
    Does anybody know what is going wrong, or what I could check for trace / logging info on possible cause of the problem?

    Hi,
    While using NFS mode you are supposed to put the file on XI server directory NOT to a common share directory of any other machine. And this is the reason your adapter in not picking the file.
    You can upload the file on XI server directory by using the tcode "SXDA_TOOLS", morevere you can check the file on the same directory with tcode "AL11". It is otherway-around, you can first select or chose the dir by AL11 and then put the file in the same dir by tcode SXDA_TOOLS.
    If you need more info about SXDA_TOOLS, let me know.
    Regards,
    Sarvesh

  • FTP of text file in unix to windows OS

    Hello,
    While doing FTP of the text file generated from XI(outbound/filename.txt) to windows, some new character([]-rectangle) is getting added to the new line character in the text file. This character is not seen if the same text file is viewed in unix directory. Is there any precaution to be taken in XI or in unix. Pls advise.
    Regards,
    Manoj

    Hi Manoj,
    I think you are facing this problem because it is not recognising the newline. Hence, giving you a rectangle([])instead of showing the data in a newline.
    Check the parameter that you have given for endseparator in content conversion.
    All normal Java related settings should work, for ex:- \t (for tab), \n (for newline) etc...
    Sometimes, normal editors like notepad may not show the newlines. you can check with something like textpad, ultraedit, edit plus etc.
    You can also try hexadecimal values in the endseparator:
    *new line (line feed) -> hex byte: 0x0A
    *return -> hex byte: 0x0D
    Go through the follwing thread which discuss exactly the same issue!:-
    Re: New line character in File adapter
    Regards,
    Sushumna

  • XI3.0 Receiver file adapter write to windows shared drive

    Hi,
    Our XI server SP09 currently runs on windows 2003 server,  I wish to use the receiver file adapter to create a file on another windows server.  I have created a folder on the other server and set permissions so that anyone can read and write to it. 
    The communication channel has been set-up with a target directory of //server/shared_folder/folder and a transport protocol of 'File system(NFS)'
    When I try and send an XML message to the file adapter I get the following error on the runtime workbench :-
    Last message processing started 09:47:10 2005-06-09, Error: Message processing failed with java.lang.Exception: Message processing failed - configuration error in file receiver adapter (Directory does not exist / cannot be created)
    My questions are as follows :-
    a) Do I have the target directory on the communication channel set-up correctly?  i.e. do I use / or \
    b) What username will need to be set-up on the other server so that the file adapter can write to the shared folder
    c) Is there another way of providing user and password information for connecting to the other server?
    Many thanks
    Ian

    Hi Ian
      as i understood from ur description is that u want ur file to b generated in some other machine then u have to mention that machine in ur SLD using correct specification..
    u go thru this link in order to get more Clearance..
    http://help.sap.com/saphelp_nw04/helpdata/en/31/f0ff69551e4f259fdad799a229363e/frameset.htm
    Hope this ll help u.
    Regards
    Shailesh

  • Files/folders created in Windows share are read-only... why and how to fix?

    Client: MacBook Pro running 10.7.5
    Server: Windows 7 desktop
    I'm sharing a folder from the Windows 7 machine and mounting it on my Mac using Finder's "Connect to Server..." and an smb:// URI. I'm providing a user ID/password for an account on the Windows 7 box that has full control over the shared folder, via smb://userid:password@server/share.
    The volume mounts properly on my desktop, can I can see files/folders there as expected. However:
    If I create a folder, it's read-only. I cannot create any files inside (or even see inside), rename the folder, or delete the folder. The folder has a badge: red circle with bar.
    If I create a file, it's read-only. I cannot rename it, delete it or edit it.
    If I examine File Info via Finder on any of these files or folders, under Sharing & Permissions it says "You have custom access."
    If I try to delete these files/folders, I get error code -8072. I can delete them from the command-line, but I can't otherwise manipulate them.
    I've verified on the Windows box that the user ID I'm using has full control of the folder. I've also set it so Everyone has full control, with no difference.
    This seems to have been a recent change in behaviour (a few weeks ago I was copying data to this drive, no problem), and it's driving me crazy because I can't figure out how to fix it.

    L145:
    It is always good counsel to Repair Disk Permissions (from the internal HDD) before and after any new installation.
    To change permissions in our Applications Folder:
    Select Applications Folder.
    Get Info (Command + i)
    Go down to Ownership & Permissions
    Click on arrow next to Details to expand.
    Click on lock and authenticate
    Owner is system
    Group is admin
    Change all permissions to Read & Write except Others
    Other can Read only.
    Please do not hesitate to post back should you have any further questions or comments.
    Good luck.
    cornelius

  • Files not showing on windows shares

    Hello.
    I have a windows XP desktop machine and an OS X Tiger macbook.
    I've enabled sharing on a folder on the Windows XP machine and can access the folder, but certain folders show as empty, when they are most definitely not.
    This share works just fine with a Linux box and with other windows XP machines.
    Any ideas?
    Thank you in advance,
    Lior Cohen.

    I had similar problems. I could always mount the directory but couldn't see any of the files. I finally tracked the problem down to the user name I was using to login from the Mac being in a different XP security group than I had assumed. Once I changed the group membership, it worked as it should.
    The solution took awhile to find because my XP laptop is also used on my work LAN and therefore uses "professional" sharing not "simple" sharing. Professional sharing is much more complicated to troubleshoot. You have professional sharing on your XP machine if you see a "permissions" button on the share tab when you click properties on the file/directory.
    Here a two good links that might help.
    If you have professional sharing:
    http://www.practicallynetworked.com/sharing/xp_filesharing/index.htm
    If you have simple sharing:
    http://www.practicallynetworked.com/sharing/xp/filesharing.htm
    Good luck. My apologies if this is too basic for you but I've been working with computers since the early 1970's and still find networking a pain to configure.

  • Export file from unix to windows

    hi,
    i need your suggestions about an issue.
    my problem is that i have a oracle db on unix machine. i will create a procedure on that database which will produce a text file. however, i need to place this file to a windows machine and want to make it with pl/sql code no other tool or something. is this achievable?

    hi again, let me clarify my problem.
    the procedure will run in unix and create the file on windows.
    the pl/sql code will generate an xml output , i want to save this output to windows.
    is this achievable, if so, how?

  • File adapter(receiver) to generate file in remote windows share folder?

    Hello gurus,
    1.Is that possible, to use the file adapter(NFS) to generate a file in a remote windows share folder?
    How can i specify the target directory field?
    2.Another question, when i specify the target directory like rootFolder/subFolder, then the file is generated in the folder
    /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/rootFolder/subFolder.
    Why did it put my path as sub-folder of /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0?
    Can i put it in another place? or even start from the root?
    Best regards, Charlie

    > 1.Is that possible, to use the file adapter(NFS) to generate a file in a remote windows share folder?
    This is possible only, when your PI system is installed on Windows OS also.
    > How can i specify the target directory field?
    The same way as you access it from your Windows Explorer.
    > Why did it put my path as sub-folder of /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0?
    Because this is the working directory of the Adapter Engine
    > Can i put it in another place? or even start from the root?
    Yes, of course. Why you do not simply try it?

  • Upload file to windows share folder running on unix

    Hi, I am having requirement to upload the files into windows share folder, It works fine If I run the application on windows, but we moved the application to UNIX, so right now the client has to upload the files to windows shareholder , server is running on the UNIX,
    as I am using the simple File file = new File(//share/shareholder),
    so the problem is once we move to UNIX, how can I handle ., any example will really helpful.
    Thanks
    Srikanth

    k, when I run the UNIX, I am getting below error, It works fine If I run in windows, but when I run in Unix getting error, as all are inside the network.
    jcifs.smb.SmbException: Failed to connect to server
    java.net.UnknownHostException: shareServer
    at jcifs.UniAddress.getByName(UniAddress.java:297)
    at jcifs.UniAddress.getByName(UniAddress.java:201)
    at jcifs.smb.SmbFile.getAddress(SmbFile.java:792)
    at jcifs.smb.SmbFile.connect(SmbFile.java:820)
    at jcifs.smb.SmbFile.connect0(SmbFile.java:797)
    at jcifs.smb.SmbFile.open0(SmbFile.java:852)
    at jcifs.smb.SmbFile.open(SmbFile.java:881)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:139)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
    at jcifs.util.FileTest.main(FileTest.java:37)
    at jcifs.smb.SmbFile.connect0(SmbFile.java:799)
    at jcifs.smb.SmbFile.open0(SmbFile.java:852)
    at jcifs.smb.SmbFile.open(SmbFile.java:881)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:139)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:97)
    at jcifs.smb.SmbFileOutputStream.<init>(SmbFileOutputStream.java:67)
    at jcifs.util.FileTest.main(FileTest.java:37)

  • Physical Path in File Adapter for Windows Server

    Hi There,
    I am trying to read a file from a directory on a windows server and write it to the same server in a different directory.
    In the file adapter I gave the value for physical path as below:
    "\\10.xx.34.xxx\Share\input".
    However I am getting below message in the debug:
    "Value specified for input Physical/Logical Directory is not a directory or is not readable."
    Hence my question is what should be the value in the physical path for windows server.
    Thanks in Advance
    Krishna
    Edited by: user452458 on Jul 19, 2010 11:30 AM

    Thanks for your reply again.
    Actually they are not on the same file system.
    I have successfully used FTP Adapter to connect to a UNIX server.
    However is it possible to use FTP Adapter for Windows Server. If so how should be the corresponding JNDI defined.
    I am getting below error when I use FTP Adapter for Windows Server:
    Unable to send file to server. [Caused by: A remote host refused an attempted connect operation.]
    ; nested exception is:
         ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server. [Caused by: A remote host refused an attempted connect operation.]
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    Please Advise.
    Thanks
    Krishna

  • Windows, File Adapter, UNC path

    Hi <experts>
    Does somebody have experience with UNC paths in a file adapter?
    According to SAP note 821267 Q38 it should be no problem in a Windows environment.
    I'm in a pure Windows environment, and want my receiver file adapter to write files to server XXX which has a share called YYY.
    I have entered
    XXX\YYY in my target directory field but com. channel keeps saying that the directory does not exist.
    I have created user SAPService<SID> on server XXX with full rights.
    Are there any other prerequisites .... anything I've overlooked ?
    Help highly appreciated (with points)

    Vitor,
    You speak about Samba and mount. Isn't that only relevant in an AIX/UNIX environment ?
    My environment is 100% Windows. All hosts are running Windows.
    Hans

  • FTP Receiver File adapter  -- CRLF In output File in Windows environment.

    Hi All,
    Idoc to File : Receiver File adapter.
    I use the endseparator 'nl' and the output file is coming correctly with NFS and It is not working when we are doing with with FTP.
    Tested with NFS (Unix environment)
    I used the endseparator 'nl' and the output file is coming with CRLF.
    Tested with FTP (Windows environment)
    When I tested the same the output file is coming with LF.
    I tried by using the module "SAP XI Sample/ConvertCRLFfromToLF" which will convert from LFToCRLF.But it is serving my purpose.
    Can anyone please suggest how I can get the CRLF in the file while putting in the output directory which is in windows environment.
    Thanks
    Seema

    Do not mention endSeparator in content conversion parameters...by default XI puts newline as endSeparator
    It should work for NFS and FTP on Windows

  • File Adapter - WinXP at compile time, Unix at run time

    Regarding File Adapter - WinXP at compile time, Unix at run time
    I want to specify polling of a directory using Unix type directory notation but this doesn't compile under windows. (I'll read up re. logical directories)
    Has anyone done polling of a unix directory using BPEL (but compiled this under windows JDeveloper)?
    thanks,
    Allan

    Using a logical directory should help you with this problem.

  • Sender file adapter is not picking the file from windows server

    Hi Experts,
    We have a sender file adapter running on Unix server. Now we have changed the source directory path from Unix to Windows in file access parameters.  It is not picking the files from windows directory and not showing any error.
    In this scenario, input file for sender adapter is *.xml and no content conversion.
    Could any one please let me know is there anything needs to changed in file adapter.
    Thanks in advance,
    Sridhar. M

    Sridhar,
    What do you have in the directory path?
    If it is a shared drive in unix then the directory in windows should also be a shared drive from XI system. Else if it is FTP check the address.
    Regards,
    ---Satish

Maybe you are looking for