File Adapter: need to include filename in content being written

I want to use the file adapter to write a file, using the filename convention to generate part of the name dynamically.
However, I need to include the filename used for the output file in the actual content too.
Any ideas if this can be done?
Thanks
Toby

At a customer we implemented the file adapter to create a file based on a specic name for appending:
<assign name="AssignStaticFilename">
<copy>
<from expression="'Output.csv'"/>
<to variable="gFileAdapterOutboundHeader" part="outboundHeader" query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
</copy>
</assign>
In de FileAdapter WSDL we set:
<jca:operation
LogicalDirectory="OutputDirectory"
InteractionSpec="oracle.tip.adapter.file.outbound.FileInteractionSpec"
FileNamingConvention="%SEQ%"
NumberMessages="1"
OpaqueSchema="false"
Append="true" >
</jca:operation>
Does this help you, based on a given input to set the filename and this variable to put it into the file?

Similar Messages

  • File Adapter - special character in Filename

    Hi,
    i have a question concerning file adapter.
    Scenario: we are polling files via file sender adapter (FTP).
    Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
    Scope: Special character in filename (not in payload)
    Installed: XI 3.0 SP 19 on Linux
    Questions:
    - what FTP implementation does XI use?
    - What do i have to check/upgrade to unicode?
    - is it an OS problem or an Java problem or a XI problem?
    - or is it not possible copiing files with special characters in filename?
    Thank you very much in advance.
    Michael

    Hi Michael,
    The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
    The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under  www.ietf.org/rfc/rfc0959.txt.
    For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
    Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
    If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
    Just for your information; I haven't encounter a problem with filenames in other projects.
    Good luck!

  • File adapter: how to change filename

    Hi all,
    In my scenario I need to add specific time stamp (current date actually) to filename when it's copied to target system. In the properties of file adapter there is an option to add time stamp, but I need it to be in format YYMMDD.hhmm, while XI default suggests another one. How can I solve the problem? Use variable substitution or m.b. dynamic configuration? In addition want to say that there is no any mapping in the scenario.
    Thank you.

    Hi Dmitriy,
    pls do chk this links
    An interesting usage of Variable Substitution in XI
    Solution to the problem encountered using Variable Substitution with XI-SP12
    The specified item was not found.
    do g with dynamic configuration
    Regrads
    Sampath

  • File Adapter -- Need to limit the number of files picked up

    One of my trading partners sends a .zip file.  The zip file contains check images and an index file.  The Index File is the same name every time.
    So, if the trading partner sends two zip files, we will lose the index file.  We need to limit the contents to a single file at a time.
    Secondarily, the file adapter also runs at a specific interval...evey X seconds.  Is there a method to "fire" the FTP channel at a specific time?  Say for example at 6:30am every day?

    Hi,
    To handle ur first requirement, you can use the OS Commands option in the file adapter. (you have to play around with the options like archiving etc )
    For scheduling the sender File CC:
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    /people/deepak.shah/blog/2010/03/29/polling-vs-atp-in-sap-pi

  • Sender file adapter Need to Get Only one record Using FCC

    Hi All,
                  I am using File to ABAP Proxy interface, where i need to Trigger my proxy so in my sender file adapter , i need to configure as such it is should take only one record, from whole file i am using Key field parametrs in FCC but it is taking all the records which is not having the key fields also
    please help me
    Thanking you
    Sridhar

    2A64310       1 6V83970       03751650016001154000                    1 6V9961XT-3   13236157001160
    2A64310       1 6V83970                        000                    1 6V9962XT-3   23236162
    2A64730       1 6V83970       03751650016000106000                    1 6V9962XT-3   13236162000112
    2A64730       1 6V83970                        000                    1 6V9961XT-3   23236157
    2A64741 6V99481 6V83971 4S541403751650016000152360                    1 6V9964XT-3   13236168000166
    2A64741 6V99471 6V83971 4S5414                 000                    1 6V9963XT-3   23236167
    2A64772 6V99492 6V83982 3S860605001650017000244000                    2 6V9965XT-3   13289090000248
    2A65690       1 6V97460       07501226872000110000                    11242153L&MP   1
    2A65690       1 6V97460                        000                    11242121L&MP   2
    EOF
    this is sample file , i need to have any one line , cause i need to just trigger a proxy , i am not to going tp take entire file cause in real time i will getting 100 MB file which will be a performance issue

  • File-adapter with Dynamic Directory/Filenames in Header-variables

    Hi,
    I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
    Is it also possible to use the dynamic names using the header-variables?
    I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
    The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
    Thanks in advance.
    Regards,
    Martien

    Hi,
    I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
    Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
    I planned to put the details in my blog.
    Regards,
    Martien

  • File adapter Need to wait When Other Applicatio is writing the file

    Hi All,
    This is File to File Interface, iam using NFS here.
    While other application is writing the file to the Folder, XI Sender File Adapter shld wait for certain time and then pick it up.
    We have the Option " MSecs to Wait Before Modification Check" on File Sender Advanced TAB.
    But it is no Use, it is not behaving correctly.
    Please assist me on this
    Regards

    Hey Vamsi,
    I think you're good to go here. The behaviour is exactly as it should be. The polling interval takes priority when there is no file there but when there is a file there the modification check will take priority over polling interval so it will still wait the mandatory 2 minutes to ensure that no modification is taking place & that's exactly what you want. You don't want to pick up an incomplete file irrespective of when it was put there. So there will always be just over a 2 minute delay (or whatever you set the Msecs value to + a few seconds depending on where the polling cycle is when a file is written out but a max of 2 minutes & 19 seconds delay) when there is a file there but at least you'll have consistent data. If there is no file there the adapter will just poll every 20 seconds until a file arrives.
    The 2 minute 'wait' step is exactly that. The adapter will see the file then wait 2 minutes & probably does a timestamp comparison or something. It doesn't do a modification check within those 2 minutes. Having said that, I don't see why you can't reduce the Msecs interval. My reasoning is that you basically want to establish whether it's still being wriiten out before you pick it up. Even if you set it to 5 seconds you should still be able to pickup whether the file is being modified (I'm assuming that the check is doing a timestamp comparison). That will significantly reduce your time wait period.
    My assumption on the timestamp comparison was wrong It's actually does a comparison on file size when it reads the data in, see SAP Note (Point 3): [http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_xi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383231323637%7d]
    Another suggestion made on the note: Get the writing application to write the file out with an extension different to the one you're polling for. Then, after they have completed writing out the file, they can do a re-name to the extension that you're polling for. That could also speed up things.
    Regards, Trevor
    Edited by: Trevor Naidoo on Oct 8, 2009 9:38 AM

  • File adapter error, because the filename contains "u00D1"

    Hi,
    I'm working in a spanish project, I've an interface FTP --> PI --> IDOC, my problem is because in spanish the letter "Ñ" is used and when there are one file in the folder with this letter the communication channel fails because the communication channel cann't read the file.
    Any idea how to configure the communication channel to avoid this problem?
    Thanks, in advance.
    Jose Manuel

    @ Nabendu
    Nabendu Sen wrote:
    Create a Custom Adapter EJB which can remove this type of unwanted characters. You need to call this in the sequence before Call Adapter so that before XML parsing, this types of characters are removed.
    "Ñ" is a valid letter in Spanish and I don't think removing it is a good option.
    @ Jose
    Check what encoding is being used?

  • File adapter dynamic configuration - Multiple filenames

    Hi
    Can anyone explaing the following.
    We are using the sender file adaper to pick up files from an ftp location. The dynamic config is used to store the filename.
    We are getting 1 PI message per file, but the dynamic config in SXMB_MONI is sometimes showing multiple filenames for one message.
    This makes it impossible to get the correct filename and do something usefull with it:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx1.PDF</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx2.PDF</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">xxxxxxxx3.PDF</SAP:Record>
      </SAP:DynamicConfiguration>
    Kind regards
    Thierry Boeve

    Hi.
    Pls. Check the following SAP Note.
    https://websmp230.sap-ag.de/sap%28bD1lcyZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1078455
    It will be help you.
    Regards

  • "Sidecar file has conflict", keyword changes in LR not being written to JPEGs

    I am new to Lightroom and evalutating 3.6 on a trial.
    I performed the following test:
    1. Imported 3 pictures into Lightroom from my hard drive
    2. In Lightroom, I made a keyword change to one photo (removed a keyword).
    3. All three photos' Metadata icon show the arrow, indicating that there has been a change. (I only changed the keyword on one photo.)
    4. I click the icon for the photo whose keyword I changed.
    5. I get the message "The metadata for this photo has been changed in Lightroom. Save the changes to disk?"
    6. I click "Yes".
    7. The photo's Metadata icon shows an exclamation point. When you hover over the exclamation point, it shows the message "Sidecar has conflict".
    I have two questions:
    1. My expectation is that when I changed a keyword, or any other metadata, in LR, it will show up on the photo outside of LR. My understanding is that this is a functionality of LR. Am I wrong? (The Help files seem to indicate that this is a reasonable expectation.)
    2. I am assuming, having read many posts on the forum, that the error message "Sidecar has conflict" is a bug. Am I right? (My understanding is that JPEGs don't have sidecar files, which just makes this message even more odd.)
    I am on Windows 7 Home Premium (upgraded from Vista Home Premium), 32 bit.
    Thanks for your help,
    --Elisabeth.

    Beat, Thanks for taking the time to answer.
    Your expectation is not quite right:
    Any change to metadata will primarily be recorded in your catalog, and nowhere else. Only if you perform "Save Metadata to File" (which can be set to be done automatically in your catalog settings) or "Save the Changes to Disk" after pressing the arrow, the changes will be written into your JPEGs (or into *.xmp sidecard files for Raw images) and can be seen from outside of LR.
    Yes, you are right. What I should have written was: My expectation is that when I change a keyword, or any other metadata in LR, the change will show up outside of LR, after I "Save Metadata to File". This is not happening, instead I get the error message and different keywords in LR than outside.
    Where do your originals reside? Could it be you don't have the proper authority to rewirte the JPEGs?
    My originals reside on my Public drive: I definitely have rights. In fact, I did many other change to photos in the same drive after I posted this on the forum.

  • Need information on File Adapter

    Hi all,
    I am passing more than 25 lines of payload to be written in the file using File Adapter. But i see only the first line written on the file.
    Is there any configuration to be setup in the file adapter configuration so that all the contents are written in the file. Please advice

    Pls find below the xsd:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.api.org/pidXML/v1.1" xmlns:pidx="http://www.api.org/pidXML/v1.1">
    <xs:element name="Invoice">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:InvoiceProperties"/>
    <xs:element ref="pidx:InvoiceDetails"/>
    <xs:element ref="pidx:InvoiceSummary"/>
    </xs:sequence>
    <xs:attribute name="transactionPurposeIndicator" use="required" form="qualified" type="xs:NCName"/>
    <xs:attribute name="version" use="required" form="qualified" type="xs:decimal"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="InvoiceProperties">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:InvoiceNumber"/>
    <xs:element ref="pidx:InvoiceDate"/>
    <xs:element maxOccurs="unbounded" ref="pidx:PartnerInformation"/>
    <xs:element ref="pidx:InvoiceTypeCode"/>
    <xs:element ref="pidx:PrimaryCurrency"/>
    <xs:element ref="pidx:ServiceDateTime"/>
    <xs:element ref="pidx:ReferenceInformation"/>
    <xs:element ref="pidx:Comment"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="InvoiceNumber" type="xs:NCName"/>
    <xs:element name="InvoiceDate" type="xs:NMTOKEN"/>
    <xs:element name="PartnerInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:PartnerIdentifier"/>
    <xs:element ref="pidx:PartnerName"/>
    <xs:element ref="pidx:AddressInformation"/>
    <xs:element ref="pidx:ContactInformation"/>
    </xs:sequence>
    <xs:attribute name="partnerRoleIndicator" use="required" type="xs:NCName"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="PartnerIdentifier">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:integer">
    <xs:attribute name="partnerIdentifierIndicator" use="required" type="xs:NCName"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    <xs:element name="PartnerName" type="xs:string"/>
    <xs:element name="ContactInformation">
    <xs:complexType>
    <xs:choice>
    <xs:element ref="pidx:ContactIdentifier"/>
    <xs:element ref="pidx:ContactName"/>
    </xs:choice>
    <xs:attribute name="contactInformationIndicator" use="required" type="xs:NCName"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="ContactIdentifier">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:NCName">
    <xs:attribute name="contactIdentifierIndicator" use="required" type="xs:NCName"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    <xs:element name="ContactName" type="xs:string"/>
    <xs:element name="InvoiceTypeCode" type="xs:NCName"/>
    <xs:element name="PrimaryCurrency">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:CurrencyCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="Comment" type="xs:NCName"/>
    <xs:element name="InvoiceDetails">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:InvoiceLineItem"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="InvoiceLineItem">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:LineItemNumber"/>
    <xs:element ref="pidx:InvoiceQuantity"/>
    <xs:element ref="pidx:LineItemInformation"/>
    <xs:element ref="pidx:PurchaseOrderInformation"/>
    <xs:element ref="pidx:JobLocationInformation"/>
    <xs:element ref="pidx:Pricing"/>
    <xs:element ref="pidx:AllowanceOrCharge"/>
    <xs:element ref="pidx:Tax"/>
    <xs:element ref="pidx:LineItemTotal"/>
    <xs:element ref="pidx:ServiceDateTime"/>
    <xs:element ref="pidx:PaymentTerms"/>
    <xs:element maxOccurs="unbounded" ref="pidx:ReferenceInformation"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="LineItemNumber" type="xs:integer"/>
    <xs:element name="InvoiceQuantity">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:Quantity"/>
    <xs:element ref="pidx:UnitOfMeasureCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="Quantity" type="xs:decimal"/>
    <xs:element name="LineItemInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:LineItemIdentifier"/>
    <xs:element ref="pidx:LineItemDescription"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="LineItemIdentifier">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:integer">
    <xs:attribute name="identifierIndicator" use="required" type="xs:NCName"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    <xs:element name="LineItemDescription" type="xs:string"/>
    <xs:element name="PurchaseOrderInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:PurchaseOrderNumber"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="PurchaseOrderNumber" type="xs:string"/>
    <xs:element name="JobLocationInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:WellInformation"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="WellInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:WellIdentifier"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="WellIdentifier" type="xs:NMTOKEN"/>
    <xs:element name="Pricing">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:UnitPrice"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="UnitPrice">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:MonetaryAmount"/>
    <xs:element ref="pidx:UnitOfMeasureCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="AllowanceOrCharge">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:AllowanceOrChargePercent"/>
    <xs:element ref="pidx:AllowanceOrChargeTypeCode"/>
    </xs:sequence>
    <xs:attribute name="allowanceOrChargeIndicator" use="required" type="xs:NCName"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="AllowanceOrChargePercent" type="xs:integer"/>
    <xs:element name="AllowanceOrChargeTypeCode" type="xs:NCName"/>
    <xs:element name="Tax">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:TaxTypeCode"/>
    <xs:element ref="pidx:TaxLocation"/>
    <xs:element ref="pidx:TaxRate"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="TaxTypeCode" type="xs:NCName"/>
    <xs:element name="TaxLocation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:AddressInformation"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="TaxRate" type="xs:integer"/>
    <xs:element name="LineItemTotal">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:MonetaryAmount"/>
    <xs:element ref="pidx:CurrencyCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="PaymentTerms">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:Discounts"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="Discounts">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:DaysDue"/>
    <xs:element ref="pidx:DiscountsDueDate"/>
    <xs:element ref="pidx:PercentDiscount"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="DaysDue" type="xs:integer"/>
    <xs:element name="DiscountsDueDate" type="xs:NMTOKEN"/>
    <xs:element name="PercentDiscount" type="xs:integer"/>
    <xs:element name="InvoiceSummary">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:TotalLineItems"/>
    <xs:element ref="pidx:InvoiceTotal"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="TotalLineItems" type="xs:integer"/>
    <xs:element name="InvoiceTotal">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:MonetaryAmount"/>
    <xs:element ref="pidx:CurrencyCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="AddressInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:sequence minOccurs="0">
    <xs:element ref="pidx:POBoxNumber"/>
    <xs:element ref="pidx:BuildingHouseNumber"/>
    </xs:sequence>
    <xs:sequence minOccurs="0">
    <xs:element ref="pidx:StreetName"/>
    <xs:element maxOccurs="unbounded" ref="pidx:AddressLine"/>
    <xs:element ref="pidx:CityName"/>
    </xs:sequence>
    <xs:element ref="pidx:StateProvince"/>
    <xs:sequence minOccurs="0">
    <xs:element ref="pidx:PostalCode"/>
    <xs:element ref="pidx:PostalCountry"/>
    </xs:sequence>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="POBoxNumber" type="xs:NCName"/>
    <xs:element name="BuildingHouseNumber" type="xs:NCName"/>
    <xs:element name="StreetName" type="xs:NCName"/>
    <xs:element name="AddressLine" type="xs:NCName"/>
    <xs:element name="CityName" type="xs:NCName"/>
    <xs:element name="StateProvince" type="xs:NCName"/>
    <xs:element name="PostalCode" type="xs:string"/>
    <xs:element name="PostalCountry">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:CountryCode"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="CountryCode" type="xs:NCName"/>
    <xs:element name="CurrencyCode" type="xs:NCName"/>
    <xs:element name="ServiceDateTime">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:NMTOKEN">
    <xs:attribute name="dateTypeIndicator" use="required" type="xs:NCName"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    <xs:element name="ReferenceInformation">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="pidx:ReferenceNumber"/>
    <xs:element ref="pidx:Description"/>
    </xs:sequence>
    <xs:attribute name="referenceInformationIndicator" use="required" type="xs:NCName"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="ReferenceNumber" type="xs:string"/>
    <xs:element name="Description" type="xs:string"/>
    <xs:element name="UnitOfMeasureCode" type="xs:NCName"/>
    <xs:element name="MonetaryAmount" type="xs:decimal"/>
    </xs:schema>

  • Dynamic Filename in File adapter

    Hi,
    I am doing idoc-file scenario.I get the filename as a field in one of the segments of my idoc.Can anyone please let me know how i can get the filename from my idoc and use this filename in my file adapter.
    --Thanks

    Hi all,
    Thanks a lot for your replies.
    Please find below the inbound message that i get. Now i need to get the filename that i get in one of the segments and use that in the file adapter.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ZSSV_GENERIC_IDOC>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
        <TABNAM>EDI_DC40</TABNAM>
        <MANDT>100</MANDT>
        <DOCNUM>0000000000203015</DOCNUM>
        <DOCREL>620</DOCREL>
        <STATUS>30</STATUS>
        <DIRECT>1</DIRECT>
        <OUTMOD>2</OUTMOD>
        <IDOCTYP>ZSSV_GENERIC_IDOC</IDOCTYP>
        <MESTYP>ZSSV_GENERIC_MSG</MESTYP>
        <SNDPOR>SAPYRA</SNDPOR>
        <SNDPRT>LS</SNDPRT>
        <SNDPRN>YRACLNT100</SNDPRN>
        <RCVPOR>YXDTEST_GI</RCVPOR>
        <RCVPRT>LS</RCVPRT>
        <RCVPRN>IDES_LS1</RCVPRN>
        <CREDAT>20060420</CREDAT>
        <CRETIM>184948</CRETIM>
        <SERIAL>20060420184948</SERIAL>
        </EDI_DC40>
    - <Z1SSV_ITEMS_SUMMARY SEGMENT="1">
        <IDOC_SEQ_NUM>1</IDOC_SEQ_NUM>
        <TOTAL_REC_COUNT>50</TOTAL_REC_COUNT>
        <IDOC_SEG_COUNT>50</IDOC_SEG_COUNT>
        <OUTPUT_REC_LENGTH>90</OUTPUT_REC_LENGTH>
       <INTERFACE_DESCRIPTOR>OUT_RYDER_0001</INTERFACE_DESCRIPTOR>
      <b><HOST_FILENAME>TEST1</HOST_FILENAME></b>
      <RECORD_DELIMITER>^</RECORD_DELIMITER>
      <SEGMENT_DELIMITER>|</SEGMENT_DELIMITER>
      </Z1SSV_ITEMS_SUMMARY>
    In the file adapter, I have specified "%filename%.xml" as my file name and in variable substitution the reference is  "payload:ZSSV_GENERIC_IDOC,1,IDOC,1,EDI_DC40,1,Z1SSV_ITEMS_SUMMARY,1,HOST_FILENAME,1".
    I still get the same error "Message processing failed: Error during variable substitution: "
    Waiting for your help in this matter.
    Regards,

  • 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

  • Setting dynamic file name in Receiver file adapter - not from payload

    Guys I just remember reading a weblog but can't find it now that I need it, on how to set the file name in message mapping dynamically but not using any payload field.
    Please let me know if you remember this.
    Thanks a lot,
    Viktor Varga

    also u can check in
    <a href="/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II</a>
    <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>

  • Receiver File Adapter Issue

    Hi,
    I have a scenario like R3(IDOC)->XI(Mapping)->FTP(Content Conversion)
    I am trying to FTP a file across to a vendor's FTP server using the reciver file . adapter. The target filename is of the form %ABC%IJK%%b.However on posting the file i get a message like.
    An error occurred while connecting to the FTP server '<hostname>:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 200 Command Okay. ID: <userid>, Current TR - Recv: <userid>, APRF: *BINARY, Dir: S. Get option: single. '. For details, contact your FTP server vendor.
    It seems although the connection is established, the ftp put does not work
    Can anyone help on what is the cause of the error and possible solutions.
    Regards,
    Alex.

    There can be following things:
    - Target Dir is not present or you dont have an authorization to create it.
    - Check the Access to put the file in that directory.
    Check the same for other interface also. If other interfaces are running fine then try to put the file in that DIRECTORY for test purpose.
    Thanks
    Farooq.

Maybe you are looking for

  • Ipad airplay (mirroring) via apple tv on samsung tv does not work at all

    I try to mirror my ipad (version 3) with the latest IOS via apple tv (version 2, latest IOS) on to a samsung tv. It doens't work. Although i'm able to select airplay on my ipad it won't show on the samsung tv. Apple TV is working, i can watch movies

  • Things to try before a HD erase

    Hi everyone-- I'm having a myriad of problems with my iMac G5 (latest pre-iSight) which has never really happened with any Mac I've owned. Problems: ---Freezes (yeah, it's like OS9 or Windows-- its frustrating) This happened three times as I tried to

  • Spry select list code to wire it to html data table SET column?

    I am making a page based on Figure 15-14, Pg 878, in David Power's book, "Dw CS4 with CSS, Ajax and PHP. I have two separate html data tables hidden in the page, one for the specialties drop down select list and the other for the teachers master/deta

  • Get Sales Order price from delivery

    Hi Folks, I need your help. I have a smart form to print a ticket that shows the total amount to be paid. Iu2019m using the FM GN_INVOICE_CREATE to simulate the prices and sum the items (Table xvbrp), passing the material and quantity. The problem he

  • Manual Document Number

    Hi All, I am not able to set up external numbering for documents to be raised in business one. Request help in doing this. Thanks, Srikanth