Variable substitution - Pseudo Path Variable - file adapter

Hello,
I am sending an purchase order fro SRM to the file adapter and like to create an filename like purchaseordernumber.xml. Can anyone give me some help because I do not understand the sap help regarding this topic. The XML starts as follows:
<?xml version="1.0" encoding="utf-8"?>
<nr1:PurchaseOrderRequest xmlns:nr1="http://sap.com/xi/SAPGlobal/Global">
<MessageHeader>
<ID schemeID="0101">41000000290000000020051123164420</ID>
<CreationDateTime>2005-11-23T16:44:20Z</CreationDateTime>
<SenderParty>
<InternalID schemeID="PartnerID" schemeAgencyID="M06CLNT100">11</InternalID>
</SenderParty>
<RecipientParty>
<InternalID schemeID="PartnerID" schemeAgencyID="M06CLNT100">LIEFERANT2</InternalID>
</RecipientParty>
</MessageHeader>
<PurchaseOrder>
<ID schemeAgencyID="M06CLNT100" schemeAgencySchemeAgencyID="ZZZ">4100000029</ID>
regards
Stefan

Thanx,
I have tried:
var1               payload:PurchaseOrder,1,ID,1
but its not working.
Does anyone know my mistake?.
best regards
Stefan

Similar Messages

  • Variable Substitution settings for Receiver File Adapter

    Hi All,
    I wanna use variables for File Name Sheme in the File Access Parameters.I had used by enclosing the variable names within %. When i wanna substitute values for those variables, it is given in the documentation(help.sap.com) that v need to set the Enable indicator. only after setting the indiactor, v can use the variables and can then enter the values for those variables in a table. but i can't see either the indicator or the table in my editor. how can i provide the values for the variables used in file name scheme/Target Directory. and for ur information,i'm using sp12.
    any help wud b appreciated.
    thnx
    Anil

    Hi Anil,
    Please check out the following link ...
    Re: Variable substitution - Pseudo Path Variable - file adapter
    Re: Variable substitution problem
    Regards,
    Raj

  • File Path using file adapter

    Hi Experts.
    I have a file to proxy scenario where I just want to get the file path and dont want to read the whole file using sender file adapter.
    Is there any way where i can just get the file path and the file should not get prosessed in XI/PI.
    Thanks,
    Aditya.

    use ASMA with Dynamic conf.
    Ref:
    Accessing ASMA -
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Dynamic Conf vs variable substitution - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    Note:
    the get method will help you retrieve the FileName ref. the code in this blog also - Same file name -
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14

  • 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

  • Question about pass file name and path to file write adapter

    I need to pass file name and path to file adapter for write. I got partial answers from thread Re: Get File name using File Adapter , but seems InboundHeader_msg or outboundHeader_msg only takes file name, how do I pass file directory?
    since I still have to specify file format (like xxx_%xx%.txt) in the file adapter wizard. Will this name conflict with what the name defined in InboundHeader_msg ?
    Similarly, how can I pass a file name and path to a file synchread adapter?
    Thanks,
    Message was edited by:
    user531689

    Just overwrite the filename in the WSDL file that was generated

  • Sender File Adapter- Incrementing the counter in file name

    Hello,
    We have a requirement to read a different file name with every read. Every subsequent file would have a numeric counter updated when we receive it, we need to read that file as the directory would hold the previous files as well.
    File structure :- EP<counter>.txt ; so first file would be EP001.txt, next one would be EP002.txt.
    How could i do this in Sender file adapter, as there is no variable substitution available like receiver file adapter.
    I cannot use wild card characters as the directory would contain previous files as well and we ned to pick the latest file.
    Regards

    Hi,
    >>How could i do this in Sender file adapter, as there is no variable substitution available like receiver file adapter.
    Yes true this is not available in sender channel
    >>I cannot use wild card characters as the directory would contain previous files as well and we ned to pick the latest file.
    You can use EP* as the filename and use processing mode as Set to Read-Only
    Regards
    Suraj

  • Need Help-SOA 11g File Adapter unable to delete input file and its crashing

    Hi All
    Please find the details below:
    1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
    and then use Outbound File Adapter Write to move the file to a output directory.
    2. File Adapter needs to delete the file after successful read/retrieval.
    3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
    4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
    Issue Details_
    1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
    2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
    [*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
    Delete failed, the operation will be retried for max of [0] times
    [2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
    BINDING.JCA-11042
    File deletion failed.
    File deletion failed.
    File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
    Delete the file and restart server. Contact oracle support if error is not fixable.
    If any one has faced similar issues, kindly provide pointers on how to resolve it.
    Regards,
    Dibya

    Hi,
    Using the file adapter, you can poll from multilple locations...
    Keep the following property in your .jca file
    <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    Hope this helps...
    Thanks,
    N

  • File Adapter in ESB

    Hi,
    Am creating a file adapter to read a fixed length file.I have hand written the schema and configured the adapter to poll a directory every 10 secs and the file name filter expression to be *.txt.
    First time every thing seems to work as expected.I make change to the schema and reconfigure the adapter, adapter does not pick up the file.It picks up the file after OAS is restarted.What is the problem here??
    It works if I specify schema is opaque.
    will the adapter not pick up files, which does not conform to the input schema ?
    Can some one clarify???

    Hi,
    Actually in file and ftp adapters, we can poll from multiple locations...
    Keep the following property in your .jca file <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    If you want to write the file in multiple locations, may be you can try the same, if that doesn't work, please create two file Adapters as references each having different writing locations...
    Hope this helps...
    Thanks,
    N

  • File Adapter - NFS - Windows NT

    I am trying to drop file into another server.
    Both PI and Target Server are in Windows environment.
    From PI Server, I am able to reach target folder  from Windows Explorer (
    <Target IP>\<folder> )
    But when I give the same path in File adapter its shwoing error "Target directory '
    <Target IP>\<folder>' does not exist and cannot be created
    If I give path as ''C:\folder' , its creating in C drive of PI Server
    I mapped the network drive ( 
    <Target IP>\<folder> ) into Z drive and gave the path as "Z:\folder', I am getting the same error does not exist and cannot be created
    So how do we give path in file adapter (NFS) for a different target server ?
    Any other config required in making target folder as shared ?
    Thanks in advance

    Hi,
    I mapped the network drive ( <Target IP>\<folder> ) into Z drive and gave the path as "Z:\folder', I am getting the same error does not exist and cannot be created.
    If you already mapped <IP>\<folder> as the virtual Z drive, then just use Z:\ in your communication channel.
    In case this does not work either, you can also use the FTP transfer protocol to access an external server from PI. The name is somehow misleading, because the target server does not have to be an FTP server, it can be any resource, and FTP is just a transmission protocol there.
    Hope this helps,
    Greg

  • File Adapter in linux

    Hi
    i am using file adapter to read a file ,but my development environment is windows.,but my server is on Linux.so when i am configuring the file adapter i have to give directory of incoming file.How can i give this path as the bpel process will read the file from linux machine(as it will deploy the bpel process in linux soa server).pls help me how to give this path in file adapter wizard(jdevelooper is on windows).Thanks in advance......
    With Kind Regards
    Soumitra

    Have you tried entering a directory on your linux server where the file adapter will look?
    It is a little odd that they put a browse button in the file adapter wizard. That implies that you will be running your bpel process manager locally. If deploying to a remote bpel server, it becomes redundant.
    -Barry-

  • Soa Suite 10g. ESB Project. File Adapter - load in 2 folders

    Hi, friends!
    Help me please to solve next task.
    A have some ESB Project, which has 2 adapters: DbAdapter (In) and FileAdapter(out). If new rows appears in some table in DB (in CLOB field), I must save it in folder on disk. It's simple to save it in ONE folder, but I need to save it simultaneously in 2 different folders (for example in C:\folder1 and C:\folder2). Which settings can help me?

    Hi,
    Actually in file and ftp adapters, we can poll from multiple locations...
    Keep the following property in your .jca file <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    If you want to write the file in multiple locations, may be you can try the same, if that doesn't work, please create two file Adapters as references each having different writing locations...
    Hope this helps...
    Thanks,
    N

  • File-Adapter: Variable substitution form payload XML-attribute

    Hi experts,
    is possible to use XML-attribute-content for variable substitution in file-Adapter?
    extract from XML:
    <?xml version="1.0" encoding="utf-8" ?>
    - <all>
    - <transaction <b>file="filename"</b>>
    - <table name="BPAADDRESS" options="insertIfUpdateFails">
    - <record id="1">
      <hkeycol name="BPAMAINHKEY">0010500345</hkeycol>
      <hkeycol name="USAGE">Invoice</hkeycol>
      </transaction>
    I want to get the value "filename" = attribute file of transaction.
    Is this possible?
    Thanks a lot,
    Florian

    I have done this taking a field from the XML.
    You have to map the location of the field within the XML...
    Taken from:
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,... corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (“Example Value”) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    &#9679;      To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.

  • Variable being overwritten in the Variable Substitution (File Adapter)

    In the File adapter Receiver Communication Channel, I am using variable substitution.
    The problem is that the first variable I use (userid) is being overwritten by the second variable (filenumber). How can I fix this problem?
    File Name Scheme: %userid%_%filenumber%.xls
    Target XML:
    ============
    <?xml version="1.0" encoding="UTF-8"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
    <Worksheet ss:Name="FileName">
    <Table x:FullColumns="1" x:FullRows="1">
      <Row>
        <Cell><Data ss:Type="String">0209519</Data></Cell>
        <Cell><Data ss:Type="String">32226v2 v1.1</Data></Cell>
      </Row>
    Variable Substitution:
    =======================
    userid          payload:Workbook,1,Worksheet,1,Table,1,Row,1,Cell,1,Data,1
    filenumber    payload:Workbook,1,Worksheet,1,Table,1,Row,1,Cell,2,Data,1
    Expected Output:
    ==============
    0209519_32226v2 v1.1
    Actual Output:
    ============
    32226v2 v1.1_32226v2 v1.1
    Thanks for your help.

    Thank you for all your suggestions. I decided to modify my target XML and concantinate all the fields into one string so I don't have to worry about the variables being overwritten in the variable substitution.
    Target XML:
    ============
    <?xml version="1.0" encoding="UTF-8"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
    <Worksheet ss:Name="FileName">
    <Table x:FullColumns="1" x:FullRows="1">
    <Row>
    <Cell><Data ss:Type="String">0209519_32226v2 v1.1</Data></Cell>
    </Row>
    Variable Substitution:
    =======================
    filename payload:Workbook,1,Worksheet,1,Table,1,Row,1,Cell,1,Data,1
    Expected Output:
    ==============
    0209519_32226v2 v1.1
    Actual Output:
    ============
    0209519_32226v2 v1.1

  • White lines generateds in a File Adapter when using variable substitution.

    Hi all,
    I have been a problem in File generated by XI, my File Adapter is using variable substitution with reference to a field of my message type. Because it, the files generated has white lines in top of file.
    What can I do to not apears these lines ?
    Thanks

    Regis,
    Try to give a more detailed description of your problem otherwise I don't know who's gonna answer...
    Alexx

Maybe you are looking for

  • Row selection in a JTable

    Hi; I have a panel with various textfields, buttons and a table. When I click on the search button, the table displays some data stored in my database. When I select a row from the table, I want the data to appear in their various textfields. For exa

  • Fetch URL from Application Server of Saved File

    Hi, I wrote a file on the Application Server using Open Dataset commands. i can see it in AL11 transaction as getting saved on the server. How can i fetch the path , where it got saved? Regards, Anantha

  • Port 5596 open and skype worm/trojan??

    I did a local port scan on myself and port 5596 is open Any Ideas what this might be or what commands I can enter to figure it out? Skype thing Skype 564 tyler 30u IPv4 0x8352a68 0t0 TCP 192.168.1.100:49975->modemcable058.32-203-24.mc.videotron.ca:56

  • Data filtering not activated for ALE processing of Outbound Deliveries

    Dear all, we're currently upgrading from 4.6c to ERP 6.0 and are facing a serious problem with our IDoc interfaces: In 4.6c, data filtering for Message Type SHP_OBDLV_SAVE_REPLICA was activated and use to extract some segments from the IDoc sent to o

  • Lost music voucher for newly purchased Nokia X-6

    I purchsed a Nokia X6-18GB in June, 2010 in India through internet shopping & shipped from UK. I lost my music voucher that came with my nokia X-6 phone. I contacted the shipping person but he told me to conctact Nokia. I registered a compliant to No