Unc path in SAP XI

How we can develope an UNC Path in SAP XI?
Try to Provide usefull links and code, if possible.

hi,
You can use following java class to create OS independant path,
http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html
regards,
sachin.

Similar Messages

  • Unable to write to a UNC path from a SAP program

    Hi All
    We have just migrated our first server in an OS/DB migration from UNIX to Windows and the developers are trying to convert all our jobs/programs in SAP to write to Windows UNC paths instead of unix directories but we cannot get it to write files to the UNC paths.
    OS = Win 2008 SR2
    DB = Oracle 11.2
    SAP = ERP 6 / ECC 6
    Example path =
    hostname.domainname\directory$
    Can anybody help us please.
    Thanks
    Steve

    Thanks Tony & Manuel
    We believe that we have checked and rechecked all the necessary permissions on the share itself and we know we can resolve the FQDN from the SAP server. The server team here were able to monitor which user SAP was using to try and access these shares and it turns out to be the service account SAPService<SID>. Which surprised me a bit as I thought it would be <sid>adm. Next we tried logging into the SAP server as SAPService<SID> and mapping the UNC path and we were able to write to it so the inference is that the permissions are OK.
    I was wondering if there's something within SAP itself that we need to turn on to make it understand UNC paths. We ran function module EPS_GET_DIRECTORY_LISTING in SE37 and were able to read from the UNC path. But as yet we can't get any of our SAP programs to write to them.
    Thanks
    Steve

  • PcdStartUp.properties  - Setting PCD Import Folder to UNC path

    Hi All,
    Has anyone managed to successfully configure the pcdStartUp.properties so that the PCD import parameter Pcd.TransportApplication.ImportRootDir points to either a share or UNC path on another server?
    I want to configure  Pcd.TransportApplication.ImportRootDir  to point to our development server's export folder 
    \\devport\f$\usr\sap\PD1\SYS\global\pcd\Export
      but I can't get it to work.
    I've tried every variation I can think of but none works.
    The value I am currently setting is:
    Pcd.TransportApplication.ImportRootDir = \\\\devport\\f$\\usr\\sap\\PD1\\SYS\\global\\pcd\\Export
    The error I get is:
    Root directory for import not found:
    \\devport\f$\usr\sap\PD1\SYS\global\pcd\Export.
    Check the transport application configuration.
    I've also tried using a drive mapping rather than UNC but can't get that to work.
    Cheers,
    Steve
    Edited by: Steve Archer on Apr 23, 2009 3:44 PM

    This happens with the AS Java world! It looks like the Java runtime process owners (<sid>adm and SAPService<sid>) can only read local disks. I have been caught with the before and gave up trying to work it out. The issue also comes up with any Java apps that try to access non-local drives.
    Edited by: Michael Nicholls on Apr 24, 2009 5:41 AM

  • UNC Path

    Hi
    I just installed service pack 10 on my clients' server an now can't run the import package.
    I can successfully upload and preview the upload file. I even validated and processes my transformation file with the upload file and it ran successfully.  My import package fails with every attempt. I get the message:
    The UNC path should be of form
    server\share.
    Does anyone have any suggestions please?
    Regards,
    Mosa

    Hi all,
    My issue has been resolved.
    Solution
    It occurs when Fileserver is set to FQDN like this "
    test.qa.com\osoft"
    [Impact] Running DM package always failed.
    [Workaround] Do not use FQDN for fileserver data path
    The Note 1233199 means that you have to avoid using the Fully Qualified
    Domain Name for FileServer Datapath in the tblServerInfo table of the AppServer SQL Server database.
    This can be done directly in SQL Server Management Studio as follows:
    - open SQL Server Management Studio,
    - select the AppServer database,
    - create a backup for the tblServerInfo table by running the query: select * into tblserverinfo_save from tblserverinfo
    - in the row FileServer / DataPath, replace the Fully Qualified Domain Name of the server by the name of the server, for example if the path is
    SERVER01.SAP.COM\Share, change it to
    SERVER01\Share
    - try to run the import package again.
    Thank you all for your contribution.
    Regards,
    Mosa

  • 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

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • Full path and filename in wwv_flow_files after upload from UNC path in IE

    I have a page with a file browse item. After page submit I move the file from wwv_flow_files to another table.
    Normally the column wwv_flow_files.filename only contains the filename. However, when using IE9 and selecting a file from an UNC path the column contains the full path+filename.
    Does anybody have an idea what happens here?
    How can I make sure I only get the filename?
    Using Apex 4.02.007
    Edited by: Rene W. on Feb 28, 2013 6:39 AM

    Rene W. wrote:
    I have a page with a file browse item. After page submit I move the file from wwv_flow_files to another table.
    Normally the column wwv_flow_files.filename only contains the filename. However, when using IE9 and selecting a file from an UNC path the column contains the full path+filename.
    Does anybody have an idea what happens here?
    How can I make sure I only get the filename?For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"—and this monstrosity has sadly had to be enshrined in the HTML spec. A reasonably compatible way to strip the path in JS is provided there, or you should be able to do it fairly easily in PL/SQL when moving the file.
    The fact you are getting the full path suggests that the IE security config setting "Include local directory path when uploading files" (or IE9 equivalent) is used in your browser/environment to enable the path to be exposed in IE. This may be necessary to support dismal legacy applications. Consult whoever is responsible for browser security configuration at your site to see why/if this setting is necessary.

  • Creating a symlink directory on a network share to a path below a mapped drive letter, local path, or UNC path does not work

    Am I correct in assuming I can not create a `symlinkd` to a network share, local path, or a UNC path on a network share that will be accessible by clients?
    ###Mapped drive letters don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a hardlink:
    mklink /d test_sharedir t:\directory\
    dir .\test_sharedir
    #Directory of Z:\test_sharedir
    #File Not Found
    UNC paths don't work:
    1) navigate to a network share:
    pushd \\windows2008server\share\
    2) make a symlink:
    mklink /d test_dirunc \\windows2008server\share
    dir .\test_dirunc
    #Directory of Z:\test_dirunc
    #File Not Found
    I can create a functional `symlinkd` on a local drive to a mapped drive letter or a UNC path.
    Are my assumptions above correct?
    We are in the middle of a migration and have created two symlinkd to UNC paths for shared DLLs, one below c:\windows\system32\ (directing to a share containing 64-bit DLLs) and one below c:\windows\syswow64 (directing to a share containing 32-bit DLLs).
    On the file server, we have had a path to 32-bit DLLs (from Windows 7 clients: s:\dll\).  I am attempting to rename this directory so that it is accessible via "s:\dll32\" and would like to create a symlinkd that links "s:\dll" to
    "s:\dll32" [again where S: is a mapped drive on a Windows 2008 server].  How do I do this?
    Thanks,
    Matt

    Hello Mandy,
    The link you sent me is for Netapp CIFS server daemon contained within DataOnTap (the Netapp OS) to follow symlinks.  I am inquiring about the Microsoft products Windows Server and Windows 7.
    To gain a better understanding of the Microsoft Windows Server and client (Windows) CIFS stacks and interaction of the stacks, I have referred to Figure 6 "Server Message Block Server Model" within the following (albeit older) document: http://download.microsoft.com/download/2/8/0/2800a518-7ac6-4aac-bd85-74d2c52e1ec6/tuning.doc
    You will see the following:
    I assume that the Windows Server CIFS server service must be "smart enough" to determine that a CIFS client is attempting access to a SYMLINKD and actually fill the request by following the SYMLINKD.  The CIFS server service does not appear
    to operate like this.
    1) Am I correct in my assumption that the CIFS client (redirector) and the CIFS server (server) do not following symbolic links (whether they be file or directory)?
    2) If not, how do I submit a feature request for this so that it can be reviewed and approved or not approved for inclusion/hotfix release?
    Thanks for your time,
    Matt Brown
    [UPDATE]
    Note that you can use a `directory junction` instead of using a SYMLINKD, to link to LOCAL resources (source). However, `directory junctions` do not allow access to resources over UNC.

  • Intermittent loss of UNC path access on Windows Server 2012

    Hi All,
    I hope someone can help with a major headache we've been having on two Windows Server 2012 boxes since September this year. Basically, these servers will intermittently lose the ability to browse network shares from windows explorer and the only way we have
    found to resolve this is to reboot. When the issue happens, we can't even log into the server as it sits at 'applying user settings' - presumably as it is failing to access the netlogon share on our DCs. If we have an active RDP session when the issue occurs,
    we can connect. In this instance we see that if you enter a UNC path in Windows explorer and hit enter, nothing happens - no error messages or anything. The only way I can get any response is when trying to access the IPC$ share on another server, which gives
    the following response:
    \\server\ipc$ is not accessible. You might not have permission to use this resource, Contact the administrator of this server to find out if you have access permissions.
    The parameter is incorrect.
    Everything looks right from a physical network perspective, as we can ping from the affected servers and DNS queries are working fine. I can even run net view from powershell and see the local servers and shares on these, however any attempt to access shares
    just hangs the powershell session.
    If I look in the SMBClient event logs, I can see entries like the following:
    Event ID 30805
    The client lost its session to the server.
    Error: The transport connection is now disconnected.
    This is made worse by the fact that when this issue happens, we can't even cleanly reboot the server (it just hangs) and have to perform a cold boot.
    The firewall has been turned off and we have taken off our antivirus software to eliminate it as a possible cause. We have even rebuilt one of these servers on a clean install of 2012 R2, but the issue re-appeared. We have also tried using different NIC
    drivers (Broadcom NICs installed) to no avail. We have also tried disabling IPv6.
    We have logged a ticket with Microsoft support, who have come back telling us that this could be related to a known bug with DFS in 2012 for which a fix is being tested prior to release in a few weeks. However, I can't sit around on my hands until then on
    the off chance that this fix will resolve our problem. These servers are hosting our production Lync 2013 front end service and when this issue occurs it breaks the address book search and response group services, so this issue is of critical importance for
    us to get resolved asap.
    Any help on this would be greatly appreciated.

    Hi,
    That's right, if you hit enter absolutely nothing happens, no error messages. It makes no difference if I try name or IP address - even trying \\localhost doesn't work. A few minutes later after trying, an entry appears in the SMBClient event logs as mentioned
    in my original post. To me it looks like something deep within the networking operations of the OS is randomly breaking. Also, if I try to browse the network from Windows explorer, it just hangs. When I try to restart the workstation service, it just gets
    permanently stuck in a stopping state and the server has to be cold booted. Once it boots up, everything is working fine again....until the next time. There is absolutely nothing appearing in the application or system event logs indicating the root cause.
    I've checked and DNS resolution is working OK and I can telnet to other hosts on all the required ports.
    I had originally thought it might be related to the Broadcom NICs as we've had issues with them in the past, but we switched over to use the 2012 inbox driver for them and the same issue happens. I should also mention that one server is a blade and the other
    a rackmount box. Dell support have run full diagnostics on both and have come up clean, so it doesn't appear to be a hardware issue. The even more baffling thing is that we have a third server with identical spec and config that does not have the problem.
    The only difference with this third server is that it is not part of a Lync pool pairing using DFS and sits in a remote location on a different LAN.
    I had thought of trying to drop back to use SMB1 by disabling SMB2 and 3, but I'm not sure if this would adversely affect any other services.
    This one really has me stumped.

  • Acrobat Reader XI fail to open file from unc path "Access Denied"

    Hi,
    When we try to open a pdf file from an unc path by double-click on it there is an error message : "There was error opening this files. Access Denied"
    If we do "File -> Open" the file open correctly. Same if we copy the file localy.
    After looking around Internet and other thread Acrobat Reader X got the same problem but seemed to be resolved with an update.
    If we desable "Enable Protected Mode at startup" the file open correctly (it is not a solution).
    Does anyone have a solution to this problem ?
    OS : Windows XP SP3
    Acrobat Reader : 11.0.2
    Regards,

    I have also seen this occur with one user's computer.  Another user with similar privileges and software setup does not exhibit the same issue however.  Would love Adobe to investigate and address this issue.

  • Creating a directory on a remote machine using a UNC path

    Hi all,
    Is it possible to create a directory on a remote machine using a UNC path such as \\Server\Share\Directory?
    If so, how would i go about this? (Sorry for the newbie question, that's exactly what I am!)
    Thanks,
    Rob

    The tables on your pages are images. Not very convenient if the visitor wants to copy the information and use it.
    Read this how to use tables :
    http://www.wyodor.net/blog/archives/2010/01/entry_297.html
    http://www.wyodor.net/blog/archives/2010/01/entry_298.html
    Samples :
    http://www.wyodor.net/mfi/Maaskant/Seabreeze.html
    http://www.wyodor.net/mfi/Maaskant/Experiment.html
    http://www.wyodor.net/mfi/roodhout/Prices.html
    And here's a non-iWeb page with a sortable table :
    http://www.wyodor.net/htmlegg/TallCard/TallAjax.html?pg=tablesorter
    Or use a database on the server with MySQL and make tables with PHP :
    http://www.google.com/search?q=create+html+table+with+data+from+mysql+database
    Here's a very simple way to do it :
    http://home.wyodor.net/w3school

  • Can't add own application to RemoteApps - "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path....

    Hi, there
    I'm not really pro- at RDS in server 2012 (r1), but I have a problem and don't find anything suitable on internet:
    I'm trying to publish one of my own, unlisted programs to rdweb, but it keeps saying "You must specify a file from the RD Session Host server SERVERNAME by using the UNC path...."
    1) I provided the path in the unc name - when I click "Add.." then i browse the the .exe file via network share, not via local path. So that should be OK
    2) Firewall is turned off and eventhough the exeptions are enabled, both of then, checked
    What else should I do to make this work?

    Okej, I found the sollution:
    You have to specify the path like \\hostname\drive_letter$\path-to-the-program.
    I was doing wrong because i wrote it like \\hostname\ShareName\path-to-the-program.
    I was misleded because the wizard wants me to find the program by clicking, and not by entring the path manualy.

  • How do I create an installer for my project that allows for variable data entry like a server unc path?

    Hello All,
    I have a questions and a few hours of scouring the internet hasn't brought me much closer to an answer.
    Here's what I want to do. I have created a visual c# wpf application. I want to have an installer that during install time will have a text box or something where I can enter a server path as a string. Basically my application needs to know where to look
    for a server unc path \\server\somesharedfolder that it will be accessing primarily for its work. Secondly, how do I reference said information from within my code.
    I have come across application/user scoped settings, which appears to be what I'm looking for. However I can't find a way to have the installer prompt for a value "Server Path:" __________ that I could type into during installation. So far it appears
    the only way would be to edit the config.deploy file before running the installer, which isn't a big deal but you'd think there'd be an easy way to take in variables during install.
    EDIT: Apparently I can't edit the config.deploy file as I get an error message about the hash not matching.
    Thanks for your help!
    Lance

    Hello,
    The forums I found confusing, didn't know the best place to put this question so I put it here.
    I have found the answer over at stackoverflow and will detail here for anyone who may stumble across the same problem.
    The problem is ClickOnce seemingly doesn't support this feature. Installshield LE either doesn't or does but its incredibly too complicated if all you need is one variable passed to the registry during installation. And it seems the words used for googling
    this particular problem will never lead you to the solution.
    So here's how to do it (we will be first adding the Visual Studio Installer Add-on to restore original installer project functionality):
    1) Inside of visual studio 2013 go to Tools -> Extensions and Updates
    2) On the left-hand side click on Online -> Visual Studio Gallery
    3) In the upper-right search box search for "Visual Studio Installer"
    4) Download the extension labeled "Microsoft Visual Studio Installer Projects"
    5) Install, then open a new project under Templates -> Other Project Templates -> Visual Studio Installer -> Setup Project
    6) Now for the gold. In the solution explorer there are icons in a bar just below its title bar, highlight till you see "User Interface Setup" and open it.
    7) Now you can right click on Start, Progress, End etc any Category heading and hit Add Dialog.
    8) From here for my purposes, I used TextBoxes A
    9) Once you add it, click on it and observe its properties window. You will see Label, Property, and Value. Make a note of the property name as it will be used to store the data directly into the registry. *Note: there appears to be no way to perform data
    validation using the built in textbox dialogs, users can enter whatever they want and move on.
    10) Go to the registry editor on the same icon bar under solution explorer.
    11) Specify your registry folder, make a new value (I used string) and name it whatever you like. In the value section enter the property label formatted as such   [EDITA1]   depending on your value. 
    12) Now when you run the installer for your project, it will take data into that field and place it into the registry provided it has access to that key with the permissions you run the program under.

  • Passing UNC path as parameter in URL

    Hello All,
    I used the application creation wizard (APEX 3.1) to create an application (report + form) based on a table who's primary key is a UNC path to an image (\\servername\folder\image.tiff). The report page (page 1) has a link to the form where users can edit information for the record (page 2). Unfortunately, every time I click on a record's link, page 2 comes up with "No data found."
    I know this has to do with the fact that the data I'm passing has backslashes ("\") and they're not being escaped properly. The branch properties show the target as "Page in this Application" where the UNC path is being passed to an item on page two that is hidden and protected.
    I've tried a few different things to try and work around this problem:
    1.) In my main query, selected another field based on the original UNC Path, but with the backslashes replaced with pipes ('|'). I then have a process on page 2 at the "on load" point before the fetch row that converts it back to backslashes. This works so far as pulling the correct record onto page two, but whenever I update anything the update statement is still looking for the UNC with pipes rather than the backslashes. I'm assuming because the item that I'm sending the value to is hidden and protected, that any HTML on that page won't be able to alter that value, so the pipes aren't being replaced with the backslashes.
    2.) I also tried using a javascript:window.document.location.href... function and adding extra backslashes in the UNC path to escape the original ones, but this didn't work.
    I was wondering if anyone had any other suggestions on how to pass this value without changing the item to unprotected.
    Thank you,
    Teddy

    Teddy,
    No bother at all. A long time ago, perhaps in version 1.6, we added the feature that allows "item values" containing commas to be passed in the "f?p" URL. As you know, the comma is the token that separates item values (if there is more than one). But it was becoming increasingly common for developers to need to allow that character as part of an item value. This was implemented such that if an item value starts and ends with a backslash then we would treat any comma between the two as part of the item value and not as a "separator" character.
    When you tried to pass the UNC path as an item value, because this started with a backslash, the parser treated it as the beginning of a backslash-enclosed value. Failing to find a closing backslash, it yielded undesirable results and discarded the first backslash, and perhaps more.
    In other words, it's a bug that what you tried did not work. But the solution is straightforward so I'm going to leave it at that, if you agree.
    Scott

  • SharePoint 2013 Media Player using UNC path directly without using a Website in IIS (either out of the box or custom player using javascript only)

    Hi,
    There isn't much info on this and I am hoping its possible.
    I have come across the following article which explains how we can setup SharePoint 2013 Asset Library using video links using a website in IIS that is mapped to a UNC path.
    http://stevemannspath.blogspot.com.au/2012/12/sharepoint-2013-videos-in-sharepoint.html
    This is great. However we have an issue where I work and I need somehow to get SharePoint mediaplayer to point to a video directly using the UNC path like :- \\WINSP13\TempVideos\NTV_Carr_Indig.wmv without the use of a website in IIS.
    I understand that we won't be able to stream the video then thats ok.
    when trying to add a video link to an asset library using the UNC path, we get the following error: We don't support
    playing a video of that format from a file share.
    Is there a way or a workaround to do this? we are using only javascript to do this (AngularJS or any custom Javascript player such as MediaElement)
    Thanks
    Kind Regards,
    Will

    From a SharePoint architecture perspective, this is a BAD design, since you are rerouting the communications (from the client to the UNC) away from and outside of SharePoint... as a result, SP cannot provide any level of guarantee about the ability for videos
    to play on the client machine.
    Secondarily, I'm not sure that the browser will let you pull resources from such different locations (doing so has been the root of several type of attacks, such as "Cross Site Scripting").
    That said (and assuming the browser lets you), you can always use JS to handle creating the video player HTML and setting the UNC location... instead of using a site asset library to store the links, just create a list for the videos
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

Maybe you are looking for