File Adapter Directory Path

Hi,
I have hot coded the directory path.
I want to read the input directory path for fileadapter from a file(i will have a configuration file where i will set values for parameters).
Regards
Vishnu

Thanks Ashish, it is helpful.
Just one more question, I am not sure what value do I add from making physical to logical. Let's say if I have file polling read operation (not sync read), then if I configure physical path it will be hardcoded in jca wsdl file, if I configure logical it is hard coded in bpel.xml file.
Unlike other preferences I am not able to update my logical directory in bpel.xml at run time in descripter tab. So if my input directory changes for some reason, I have to replace it (via ANT) and redeploy the process no matter what.
Let me know if I understand it correctly.
Vishnu,
Please clarify which operation you are using, if you are using sync read or write, you can read your directory and file name from parameter file and pass it to adapter for reading that file. Adapter will give you content and also the name file/directory as header variable.
If you are using polling operation, "after reading" the file adapter will provide file name and directory in header. But if you want pass the name of directory to adapter for reading the file, then I have asked similar question to Ashish.
Regards,
Chintan

Similar Messages

  • Receiver File Adapter - Directory field - home directory

    How do I populate the Directory field in the receiver file adapter if I don't know the directory.  I want to use "home directory", but I don't know what that is.  I'm sending a file to a IBM i5 OS.

    I have already asked for the path.  This is the answer I got.
    Directory listings from FTP sessions are disabled.  We use IBM i5 OS for the FTP server because it's immune to exploits aimed at Windows and Linux based servers.  Since you can only "PUT" a file, it is analogous to a bank night deposit box (lots of companies can make deposits to this same metal box on the brick wall but none of them can use it to make withdrawals).

  • File adapter "Directory" parameter

    Hello colleague,
    While going through the documentation of file adapter the statement regarding directory of the file was not
    clear -> "The directory specified must be accessible by the service user of the Adapter engine, with appropriate read/write permissions".
    Where can i find the service user of adapter engine and how can i set its permissions. I want to use a directory on my local pc. But when i specify the absolute path -> //<pc name>/<location>/ the file is not picked up.
    Could you pls. help.
    Regards,
    Gajendra.

    Hi Gajendra,
    If u place a file in ur local pc, then giving the absolute path in the communication channel configuration wont help.
    For enabling XI to pick up a file from ur pc u should first install an FTP server in ur system.
    These servers are easily available on net. Foe ex u can download the GOLDEN FTP Server and install it on ur pc.
    Once this is done u need to create a folder in ur system where u will place all the files to be polled by XI. This folder needs to be added to the server with full control enabled.
    Next step is while configuring the communication channel, the file protocol should be FTP. Give the IP address of ur pc here.
    This will help xi in picking up files from ur local pc.
    Regards
    Neetu

  • 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

  • BPEL File Adapter Logical Path Issue

    I am trying to write the BPEL Error Messages using a file adapter. But I could not parameterize the logical directory. I need a solution of changing it in the BPEL console after deploying it
    I am Invoking a FileAdapter Web service using logical direcotry, in the FileService partnerlink I set the file_loc property with type"LogicalDirectory" and set the value to " D:/BPEL_Errors" etc. This is working fine but except in the BPEL Console I could not edit it, All the Partner Link properties seems to be read only and not editable. I tried creating a user property for the BPEL process which can be editable but How do I refer this user property in partner link since I cannot use XPATH expression there?.
    I guess this should be a very generic problem all I am looking for is parameterizing the File Location. Any Ideas?
    Thanks,
    Chitra

    Thanks James. It would be really nice if the first option works, do you have any idea why its not editable. I am having the following in bpel.xml
    <partnerLinkBinding name="FileService">
    <property name="wsdlLocation">FileService.wsdl</property>
    <property name="BPEL_LOG">D:\JDeveloper\jdev\mywork\BPEL_LOG</property>
    When I deploy the above, In the console I see BPEL_LOG as non editable field. Is am doing anything wrong?.
    Regarding the second option , I guess you are talking about modifying the Outbound message header by adding a new property called directory, as mentioned in the following link.
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACFFAHI
    Since there are many bpel processes which use the fileservice, I need to edit the fileAdapterOutboundHeader.wsdl in multiple places. Please let me know whether I can make the first option to work

  • Both file and directory path selection

    Hi,
    Is it possible to select both file path and directory path from one parameter using F4?If yes how?
    Thanks.
    Edited by: Ginger on Oct 5, 2009 7:51 AM

    >
    Ginger wrote:
    > No...file can be anywhere....file path selection means will have file name(c:\abc.txt) and directory selection means only select 'C:\'
    > from which files can be selected.
    >
    > Now I want to enable both the options in one parameter path.Is it possible?
    AFAIK, it is not possible.
    But you can try a workaround though :-P
    Make two radio-buttons:
    1. Select File (rb_file)
    2. Select Directory (rb_dir)
    Then based on the radio-button call the respective method
    IF RB_FILE = 'X'.
    Call Method CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    ELSEIF RB_DIR = 'X'.
    Call Method CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
    ENDIF.
    BR,
    Suhas

  • *ERROR: failed to open file " export directory path /ABAP/DATA/SAPSTR.LST

    Hello experts,
    I am doing system export.
    as per the system copy guide I follows all steps.
    when I tried for export preparation.
    I got following error in  "/tmp/sapinst_instdir/ERPEhP4/LM/COPY/DB6/EXP/CENTRAL/AS-ABAP/PREEXP/R3ldctlExport.log"
    ERROR: failed to open file "/db2/PRD/sapdata4/export_prd/ABAP/DATA/SAPSTR.LST"
    /db2/PRD/sapdata4/export_prd is my export directory.
    but I found that the "SAPSTR.LST" is not exist in the location.
    also I don't find any log regarding this error.
    how to resolve this? please guide.

    Hi Rupesh,
    In continuation of previous mail, there is keyboard problem hence spelling mistakes.
    Various possible solutions:
    Report SMIGR_CREATE_DDL has to be executed before starting export preparation.
    OR
    Download llatest kernel patch and apply them in /spmnt/<SID>/exe
    make sure download latest patch R3ldctl file and R3load from SAP Marketplace and apply them in to /sapmnt/<SID>/exe.
    Make sure export dump folder should be in local drives (in windows) or local filesystems i.e.do not  use network drives  (windows) or NFS (in case of unix).
    FInally check permission by using chmod 777 in exportdump folder in case of unix.
    Regards
    APR

  • Appending data in receiver file adapter

    Hi EveryBody,
    I have an IDOC to File Scenario.I need to create a flat file in the receiver file adapter directory and want to append the data in the same file every time the IDOC is trigged.I have File Construction Mode as Append but still i am not able to append the data.It gives the following error : <b>Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: file already exists and must not be overwritten</b>

    Hi,
    In Order to Append the files do the following. It worked in my case.
    >change the file creation mode to create and select the check box for overwriting the file
    >After selecting the check box change the file creation mode to Append.
    You should be able to append the files now. Please award points if it works.
    Regards,
    Saipriya.

  • Dynamic Configuration - Set Directory Path for File Receiver Adapter

    Hi Experts,
    I have a question regarding the dynamic configuration for the file adapter. Is it possible to set a directory path without a message mapping for the file receiver adapter? the problem is that I want to import a pdf document. this pdf document I want to store in a dynamic directory (depending on the filename). so I have to read the filename out of the dynamic configuration and generate (depending on the filename) a directory for this file. Is that possible without a message mapping? I cannot make a message mapping because the file has the pdf format and should not get changed.
    best regards
    Christopher Kühn

    Hi Gaurav,
    I use the ASMA (respectively the filename) for the sender adapter. After the pdf was imported into XI this filename is in the ASMA.
    But what then??? How can I get this filename with the help of the variable substitution? and if I have this filename I have to change this filename a bit to generate the name / path of the directory.
    Please explain it to me detailled
    Thanks and regards
    christopher

  • How to assign directory path of File/FTP adapter into a variable insideBPEL

    Hi,
    i need to get the directory path given to file/Ftp adapter (write/PUT) into a variable while invoking, which will be later used in some other BPEL service for processing.
    i am able to get the directory path easily using "jca.file.filename/jca.ftp.filename" in case of invokin Read\GET adapter but am struggling to get these details while invoking a file/Ftp adapter (write/PUT).
    kindly tell me is it possible to get these properties in case of file/Ftp adapter (write/PUT) !!!!
    Thanks
    Siva

    These documents may be helpful in discovering the functionality/use of variables to capture some of the file adapter properties.
    How to Manipulate SOA 11g Adapter Headers Using Oracle Mediator (Doc ID 1352248.1)
    How to Create an Outbound File with the Same Name as the Inbound File with FTP/FILE Adapter (Doc ID 745587.1)
    Hope it helps!
    Amy

  • Error in sender file adapter: source directory does not exist

    Hi,
    The PI system is 7.11
    I've created sender file adapter with following details:
    Transport Protocol : File System
    Source directory: /interfaces/In
    I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
    But still i get in Communication Channel Monitoring the following error:
    "Configured Source directory "/interfaces/In" does not exist.
    (i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
    Any suggestions as to what is wrong?
    kr
    Robert

    Actually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
    But wanted to try if that works..
    Also check directory name , path again as this is case sensitive...
    --Divyesh

  • Error in file receiver adapter (Directory does not exist / cannot be create

    I have a NFS reiceiver file NFS adapter with target directory:
    10.128.68.38\arbo2000\UploadPinfos\arbodev
    if I run this line in windows, windows access to this folder.
    Full Error log:
    Receiver Adapter v2123 for Party '', Service 'BS_0000_ARBO_DEV':
    Configured at 2006-04-06 18:08:26 CEST
    History:
    - 2006-04-06 18:08:35 CEST: Error: Message processing failed: Exception: Message processing failed - configuration error in file receiver adapter (Directory does not exist / cannot be created)
    Can somebody help me please??

    Hi Alvaro,
            If your XI server is running on Unix platform then you'll get the access only after mounting 10.128.68.38 this system as a drive. This is equivalent to the windows network mapping.
    Next thing is that once that is done then you can access the path /arbo2000/UploadPinfos/arbodev by mentioning it in your directory path.
    To check whether the above mentioned is the problem then pls do try by doing it with FTP protocol. If it works then for acting as a local directory for NFS you need to mount the drive.
    Cheers
    JK

  • Path in File Adapter Configuration [XI 3.0]

    Hi,
    when providing a relative path in the file adapter, which subdirectory will be used as parent directory?
    Furthermore, how can I address a network file system on a unix based host. Is it similar to
    hostname\dirfoo\dirbar\... like in a Windows environment?
    Thanks,
    Chris

    Hi Chris,
    The path provided to the File adapter should be the path on the sender/receiver system. For example, if your file is written to d:/usr/sap/trans/tmp this is the detail you should be providing to the file adapter.
    Note the use of '/' instead of backslash '\' used in the windows environment.
    Hope this helps.
    Kind regards
    Colin.

  • 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

  • Physical path and Logical name in File adapter

    Hi All-
    I am using a file adapter, in which i need to specify the physical path or logical path.
    In dev environment my file adapter's input path is /c01/interface/dev/input, but in my test environment it is /u01/interface/test/input.
    So everytime I have to change the path and deploy it in two different environment.
    I am using unix environment, is there any way i can use some environmental variable $INPUT_DIR and use it in logical name so that in logical name i can use as $INPUT_DIR/input, where in dev $INPUT_DIR will be /c01/interface/dev and in test environment it is /u01/interface/test.
    I have tried this but there is still some probelm, I want to know is the approach I am using is correct? or is there any other solution for it?
    Regards,
    Sreejit

    Hi,
    1. physical name: use a specific directory (e.g. /u01/....
    2. logical name: use a LogicalDirectory like "InputFileDir" and rewrite this inside the bpel.xml
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDEBBH
    and
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_deploydesc.htm#CHDBDIIF
    But what about creating a softlink like this on your testsystem:
    ln -s /u01 /c01

Maybe you are looking for

  • Balancing field "Profit Center" in line item 001 not filled

    When i am doing Posting with clearing(FB05) i am getting the below error message "Balancing field "Profit Center" in line item 001 not filled" Background: When we are doing the MIRO transaction we have used a diffrent profit center than it came from

  • Convert a web service which has userid/password hard coded......

    Hi, We have created a web service in our ECC 5.0 abap system. In SICF we hardcoded the userid/password, the web service works fine and can be called successfully to read the required data from SAP. Now we wish to change the process so that the users

  • How do you create a local zone that's not "stripped down"?

    Hi all, I've been exploring Solaris 11 Express a bit more after work, and I can't figure out how to create a new local zone that doesn't have a minimized package set. The ISV guide mentions that new local zones default to "minimal system software": h

  • Hierarchy - Product Categories

    Hello everyone! I´m starting to prepare the environment to  start working with CRM standalone (no integration with R/3). I need some help/tips/materials/etc on how to created Products, Hierarchies with product categories, etc. I am reading the Config

  • Is it possible to see the source code

    is it possible to see the source code when u know the transaction code for the same?