Query on File Adapter - HeaderLine

Hi All,
     I've a query related to FCC - header line for the following structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Testxmlns:ns0="urn:test:file">
<Record>
<Record1><field1>X</field1><field2>B</field2></Record1>
<Record2><field2>C</field3><field4>D</field4></Record2>
<Record3><field3>E</field5></Record3>
</Record>
<Record>
<Record1><field1>K</field1><field2>L</field2></Record1>
<Record2><field2>M</field3><field4>N</field4></Record2>
<Record3><field3>O</field5></Record3>
</Record>
</ns0:MT_Test>
And the file output (after FCC) should be as follows, where H1, H2 and H3 are the headers and the rest are the file values.
H1,H2,H3
X;C;E
K;M;O
FCC Param is like: Record1.fieldSeparator = ; and Record1.headerLine = 1 and same for rest two. But the output file generated doesn't have the Header line generated. Please let me know the FCC setting for the same.
Thanks,
Joe.

Joe,
The parameter should be Record1.addHeaderLine = 1([http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm]
Kind regards,
Koen

Similar Messages

  • Query operation in file adapter

    Dear All,
    we have faced several issues in using polling for production env.
    We have to ensure sequential nature of data, which means FIFO order of inserts
    is there any alternative to using polling - Receive in file adapter ?
    Can we use {query database adapter  - invoke activity } in file adapter ?
    Please let me know if any body as any leads.
    Appreciate your response.
    Regards
    Arc

    we cant use Invoke activity for Read functionality for File Adapter but there is another way to achive this we can use two recieve activities in one BPEL please find the Sample here $BPEL_HOME\samples\tutorials\109.CorrelationSets
    Krishna

  • Tab delimitter in HeaderLine in FCC in receiver file adapter

    Hi Folks,
    I want to use tab as a field separator for (eg) NameA.Headerline.
    instead of comma in file content conversion in receiver File adapter communication channel.
    example:
    Recordset structure : NameA
    NameA.addHeaderLine : 3
    NameA:headerLine : MaterialID,Price,Quantity
    PS: In  NameA.headerline i want to use  tab instead of comma.
    How can i do that?
    Thanks
    Prabaharan

    Hi Beena,
    could you explain on which context we should use that option:
    NameA.addHeaderLine  - 1 ( Header line with column names from the XML document )
    what it does exactly?
    Thanks
    Prabaharan
    Edited by: Prabaharan on Aug 21, 2008 12:02 AM

  • File Adapter Query, when PI server restarts polling starts

    Hi Experts,
    I have one problem with File sender adapter if someone can suggest solution or easy way to handle situation.
    I have a interface with 50 file adapters.
    I am activating all file adapters with poling interval 24 Hours.
    And I am activating all adapters after 10 minutes interval so that all should not run at same time.
    So every thing is good.
    But the problem is that whenever BASIS team restarts the SAP-PI server. All 50 file sender adapters get restart at same time (i.e. all poling starts at same time which I do not want because of file size of all files and dependency of one interface i/p on other file o/p).
    So every time when server is getting re-started, I have to re-activate all 50 adapters by sitting for many hours after every 10 minute interval.
    Can someone suggest any solution for above problem, or itu2019s not possible to control sender file adapter poling start when server starts instead of time when I activate it originally?
    Regards

    Hi Rohan,
    As far as I know, it is not possible to schedule the adapter when the server gets restarted.
    Lets see what experts say on the same.
    Thanks,

  • Standard File adapter Query !!

    HI Guys,
    Does standard File adapter has got ability to pick a file  based on required file name.
    Ex: If we have 30 files in one folder, 6 file name are like xml_666778_001.xml, xml_666778_002.xml,xml_666779_001.xml, xml_666778_003.xml, xml_666779_002.xml, xml_666780_001.xml.
    First I need to pick xml_666778_001.xml,xml_666778_002.xml,xml_666778_003.xml process it and keep with the same name like xml_666778.xml
    Next I need to pick xml_666779_001.xml,xml_666779_002.xml process it and keep with xml_666779.xml etc.,
    In this customer landscape, We have got 20 distribution centres. Each Distribution center sends more than 5 files a day. File name comes like xml_divisionnumber_001,xml_divisionnumber_002.xml etc. One division all files comes in one shot like ex:10:30:52. Sometimes we get 2 divisions with only one minute difference, but I need to pick only one division all fiels at a time, first I need to process all that one division files to bundle it(i developed this interface) and keep it on application server folder.  I deleloped one more interface to pick this bundle message   and split this message into ABAP proxy.
    I am expecting your wonderful ideas please about this situation.
    Thanks in advance
    Kind Regards
    San
    Edited by: ASandhya on Jul 20, 2010 7:06 AM

    Hi Udo,
    I do agree and I have developed BPM messages merge. But my question is in 100 files I need to pick only 5 or 6 files with the file name like xml_00666787_001.xml like xml_00666787_005.xml  and bundle it with as a target file with the name of xml_00666787.xml. In next process again  I need to pick only 5 or 6 files with the file name like xml_00876778_001.xml like xml_xml_00876778_002.xml  and bundle it with as a target file with the name of xml_00876778.xml etc I need to pick all that 100 files by 20 times like this.
    Q. How can we take dynamic file name this in Sender side fileadapter to pick particular files??
    Many Thanks
    Kind Regards
    San

  • Query regarding file content conversion using file adapter

    Hi All
    I have a question regarding file content conversion in file adapter.
    I have a file coming in the following format.
    AA,111,222,333
    BB,444,555,666
    CC,777,888,999
    My incoming message structure has a hierarchy. The CC record is a structure part of BB record. BB record is a structure part of AA record. It is like this:
    AA,111,222,333
    <<BB,444,555,666>>
    <<<<CC,777,888,999>>>>
    After file content conversion, in the resulted xml, i am getting a flat hierarchy instead of nested hierarchy.
    Is it possible to get a nested hierarchy as a result of file content conversion?
    Please let me know
    Thanks
    Chandra

    Hi Udo
    According to your suggestion, I am trying to use mapping.
    I am getting a flat file and i am reading it.
    This is my source structure:
    AA,11,22,33
    BB,44,55,66
    CC,77,88,99
    This is my required targer structure:
    AA,11,22,33
    <<BB,44,55,66>>
    <<<<CC,77,88,99>>>>
    To explain this, BB record can have multiple records of CC records.
    AA records can have multiple records of BB record.
    I am using removecontext node function.
    CC (Source)  (removecontext)-> CC (target structure)
    But here, when i rightclick on source CC field in the mapping editor, i cannot see any other context except root node. So, how can i proceed here??
    Many Thanks
    Chandra

  • File Adapter to read from remote file server query

    Hi all,
    I want a SOA 11g application to read files on remote server using File Adapter. Is it possible to configure the File Adapter to read from remote location instead of locally. Is it possible. Is yes where can I find the associated remote file configuration documentation.
    Thanks
    Edited by: user5108636 on 19/09/2010 19:49

    I also changed one more properties the FTP connection factory called serverType=win. I get bits and pieces in each document. Is there any working example to connect to an FTP server running on Windows using Ftp Adapter. Still not working.
    These are the error logs related to it. Please suggest
    ####<Oct 12, 2010 1:17:22 PM EST> <Info> <Common> <server_name> <WLS_SOA> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <46e7c258a0e5cad6:-145e5cdb:12b99475c2b:-7ffd-0000000000046afa> <1286849842995> <BEA-000628> <Created "1" resources for pool "eis/Ftp/FtpAdapter", out of which "0" are available and "1" are unavailable.>\
    [2010-10-12T12:56:07.142+11:00] [WLS_SOA] [NOTIFICATION] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@170e13a9] [userId: weblogic] [ecid: 0000IiTsVSi9xWD_n91FiZ1CfLfc00006s,1:24709] [APP: soa-infra] [dcid: 46e7c258a0e5cad6:f9faea1:12b852b7f0f:-8000-00000000000005ed] FTP Adapter FetchAvlFiles Recovery still not possible after 1500 attempts due to javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/Ftp/FtpAdapter from JNDI and get a new Connection Handle.
    Thanks
    Edited by: user5108636 on 11/10/2010 19:05
    Edited by: user5108636 on 11/10/2010 19:22

  • Real time : File Adapter : query

    Hi Folks,
    At development time( file adapter) we test our scenario by creating a sample XML file using message mapping tool .
    The type of message we get from this contains Message Type tag with namespace Attribute.
    <ns0:MT_XYZ xmlns:ns0="urn:xyz">
    My question is in do in real time we need to tell them that create message type with the anmespace attribute we are using ? and also how to suppress namespace and will it bring any complications in the process ?
    Regards,

    Santosh,
    1.     When using the File adapter and Content Conversion to read the file into XI, you can allocate a specific message namespace
    2.     If the namespace does becomes an issue for your scenario then use an additional mapping step to remove the namespace.  For example we have the
    Mesage Type MT_NAMES which has a a type of NAMES
    Subelement NAMEREC (0 .. unbounded)
    Subelements NAME1 and NAME2
    Sample xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:MT_NAMES xmlns:ns1="http://namespace">
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </ ns1:MT_NAMES>
    Apply the XSL map
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"     
    xmlns:nsNN="http://namespace" >
         <xsl:template match="/">
              <xsl:for-each select="nsNN:MT_NAMES">
                   <NAMES>
                        <xsl:copy-of select="NAMEREC"/>
                   </NAMES>
              </xsl:for-each>          
         </xsl:template>
    </xsl:stylesheet>
    The namespace has been removed from the xml
    <?xml version="1.0" encoding="utf-8" ?>
    <NAMES>
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </NAMERS>
    Regards,
    Mike

  • File adapter query

    Hi,
    A custom XML document containing vendor information is picked from the file system by file adapter. The message is mapped to XML-IDOC format and then routed to the IDOC adapter
    While generating the IDOC in the receiver system the IDOC goes in error status 56.
    In this scenario is it not necessary to create partner profile and distribution model which i have not created.
    Kindly suggest what could be the problem.
    Regards
    Monzy

    Monzy,
    You always need a IDoc partner profile (transaction WE20) to get IDoc in and out of SAP R/3.  All the SAP XI IDOC adapter is doing to passing IDOC-XML data to SAP in metdata using an RFC function module (either  INBOUND_IDOC_PROCESS, IDOC_INBOUND_ASYNCHRONOUS or IDOC_INBOUND_IN_QUEUE) or receiving the IDoc data and converting into IDoc-XML
    Regards,
    Simon

  • 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?

  • File name in file adapter

    Hello Guys,
    I need to get a message from RFC, map it in a way that I wouldn't need to do any file conversions in file adapter and send it to FTP. How could I set the file name in this case?
    PS: the file name cannot be included in payload, while I don't want to do any conversations of that payload...
    Many thanks for your answers,
    Milan

    Hi Milan,
    Is your query related to  sending the file name from the source xml document to the reciever file adapter. If so this can be achieved.
    Pls. do the following.
    1.  in the mapping program that you are using populate the filename coming from the source into the target in any of the fileds.
    2.Sender adapters can write adapter-specific attributes to the message header; these can then be evaluated at configuration time
    3. To change the adapter-specific attributes of the message header by using message mappings, you access the required classes of the mapping API by using a mapping runtime constant.
    To access the classes DynamicConfiguration and DynamicConfigurationKey by using the mapping runtime constant DYNAMIC_CONFIGURATION, use the method getTransformationParameters() of the container object.
    Create an simple user defined function in the mapping and use the following code.
    Imports: com.sap.aii.mapping.api.*;
    Parameter: String filename
    Paramter: String filename;
    filename = fileName + ".DAT";
    DynamicConfiguration conf = (DynamicConfiguration) container
           .getTransformationParameters()
           .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    conf.put(key, filename);
    return filename;
    You donot need to hard code the value of the filename in the file adapter for your interface.
    In SXMB_MONI, when you see the pipeline services you would see that the value of the filename is populated in the message payload.
    Thanks
    Indranil

  • Receiver file adapter to handle multiple structure

    Hi all,
    I have an issue writing file to the file server using receiver file adpater, I am using file content conversion and my file adapter.
    My data type of the output file has 3 hierarchy.
    header
    Item
      subitem
    for every item ,multile subitem would occur, but i am getting error in the communication channel, the adapter takes the fixed field length of the "Item" and looks for the subitem while writing the file.
    Let me know if any one has come across this issue.
    thankx in advance,
    Shree

    Hello!
    Is there really no possibility to convert a structure with a deeper hierarchy of 2?
    I'm trying to convert a structure like this into a flat csv-file
    <root>
    <STRUCTURE1>
      <value1>value</value1>
      <value2>value</value2>
      <value3>value</value3>
        <STRUCTURE2>
          <valuea>value</valuea>
          <valueb>value</valueb>
          <valuec>value</valuec>
            <STRUCTURE3>
              <valueZ>value</valueZ>
              <valueY>value</valueY>
              <valueX>value</valueX>
            </STRUCTURE3>
        </STRUCTURE2>
    </STRUCTURE1>
    </root>
    I implemented that the values are printed in lines separated by ";". A new dataset is printed in a new line. I'm just missing my headerline. That won't work.
    Any idea?

  • Error Handling in File Adapter

    I have been working on a requirement where the file adapter picks up the file and gives to the BPEL for processing the data.
    So, in order to do Error Handling for file adapter, i have been reading the Oracle documentation for technology adapters. In that, some of the
    points which i felt valuable for my error handling when using file adapter are the uniqueMessageSeparator property, fault-policies for rejected messages,
    and one of the action for rejected messages could be writing the payload to a file or invoking any other webservice.
    In my composite, i have configured the file adapter as a service for reading files, and i defined the xsd using the native format builder....If i put some data like 'aaaa' in the attribute of type integer , the .csv file is being picked up and its being passed to the BPEL without any error ? I believe there should be a translation error...right...
    But i am not getting the error, please tell me if anything is wrong in my xsd....
    Here is my xsd...
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/InboundService"
    targetNamespace="http://TargetNamespace.com/InboundService"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    nxsd:version="NXSD"
    nxsd:stream="chars"
    nxsd:encoding="US-ASCII"
    nxsd:hasHeader="true"
    nxsd:headerLines="1"
    nxsd:headerLinesTerminatedBy="${eol}"
    >
    <xsd:element name="names">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="name" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="FirstName" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="LastName" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Number" type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy="${eol}" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    And for DB Adapter, there is a property called SchemaValidation, i think that is not there for File adapter, by default it will take care of validation i guess....In another composite, my file adapter is picking up the .xml file and if i put any wrong data over there, that is working fine, i am getting the translation error, but only here in the case of csv file, i am not getting the error. Experts, please help me in this regard...I am using SOA 11G
    Thanks,
    Naresh

    Hi Yatan,
    Thanks for the reply. I did the same way, where my composite is picking up an XML file and translation error is coming. Even the fault policies are working fine, like writing to a file and even invoking other web service. Its really good that you have achieved the same thing in csv files. But the same thing i am unable to achieve when my file adapter is picking up the csv file. I really cant understand where i am doing wrong.
    here is my XSD which i defined through my native builder format...
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/FileRecv"
    targetNamespace="http://TargetNamespace.com/FileRecv"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    nxsd:version="NXSD"
    nxsd:stream="chars"
    nxsd:encoding="US-ASCII"
    nxsd:hasHeader="true"
    nxsd:headerLines="1"
    nxsd:headerLinesTerminatedBy="${eol}"
    >
    <xsd:element name="Roots">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="FirstName" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="LastName" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;" />
    <xsd:element name="Number" type="xsd:integer" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    the jca file ..
    <adapter-config name="FileRecv" adapter="File Adapter" wsdlLocation="FileRecv.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="n*.csv"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property name="DeleteFile" value="true"/>
    <property name="MinimumAge" value="0"/>
    <property name="PhysicalDirectory" value="C:\files"/>
    <property name="Recursive" value="false"/>
    <property name="PollingFrequency" value="5"/>
    <property name="IncludeFiles" value="n.*\.csv"/>
    <property name="UseHeaders" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    I told that the file will contain only 1 record while defining xsd and i kept a record whose values are John , Peter and akjdkjdskj.
    Now if the data is like above, the file is still getting picked up without any translation error and the BPEL is getting completed successfully...
    Is it possible for you to send your sample project and the csv file from which you have defined the xsd to me if you dont mind ?
    Thanks,
    Naresh

  • Pdf files in FILE Adapter

    Hi All,
    I just wanted to know whether we can process pdf files through FILE adapter in XI.
    If yes, Kindly let me know the procedure.
    Thanks in advance,
    Sudhasree.

    There are a lot of info about processing PDF files on [SCN|http://www.sdn.sap.com/irj/scn/advancedsearch?query=howtoPDFconversionagent]
    One of them:
    [How to Receive and Convert PDF Documents with SAP Exchange Infrastructure (NW2004)|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e]
    BR,
    Dzmitry

  • File name naming convention in File Adapter configuration in ID

    Hi All ,
    I have a query related to xml filename created in IDOC-XI-FILE scenario based on value of one of IDOC field .
    The scenario is like this :
    I have to send one xml file per store for material master . In this case how can I define my file name with store name in File adapter configuration in ID .
    Naming convention should be
    <b><storename>_date_masterdataname.xml</b>where store name is one of field of IDOC .
    Plz help me .
    Thanks in Advance
    Regards
    Prabhat Ranjan

    Hi Prabhat,
    take a look at this weblog:
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    you have to specify variable substitution
    (in the file adapter)
    and give the path to the store name (in the variable sustitution table)
    you <b>file name schema</b> (from the file communication channel can look like this)
    %storename%_date_masterdataname.xml
    Regards,
    michal
    Message was edited by: Michal Krawczyk

Maybe you are looking for

  • Changing the label of a field in SAP GUI

    Hello SAP Guys, I would like to change the label of a field in SAP GUI. I already did it internally because for that field the Shor Text of the label changed: I went to SE11, and wrote down the appropriate data element, through Translation I changed

  • Error by registering a schema for designer

    hello, I have succesfully registered (jr_registration.register) the schema in sql. Then I tried to generate it, and got an error, that the name is too long. I shortened the name of the index and startet the generate procedure again and now get: begin

  • DMS object link to MIGO tcode - attach to GRN

    Hi, Our scenario requires us to link documents with specific GRN number via MIGO tcode. This is a non-std object and the logic 1.Program two screens for the following module pools for the SAP object that is to be linked additionally: u2013 SAPLCV00 u

  • Droid 3 -  enlarging fonts, Icons

    Does anyone out there know how to adjust the font size on the Droid 3.  I would like to be able to adjust the fonts to a larger size,  as I am having issues with being able to read it.  Also is there a way to enlarge the Icons?  Maybe an app for that

  • Sorting commeritem based on price desc

    hi, we have a requirement to sort the commerce items based on the highest price on the top, but the ATG OOTB implementation is giving sorting based on the sequence number, is there any ATG OOTB way in 9.4 for doing this? Thanks, Tijomon Mathew