File Adapter fixed length Native format Builder schema not reading the data as expected

Hi
We are using a File Adapter for reading a fixed length data. Using the schema we are able to read the file but the places are incorrect. Following is the schema that we used and the payload.
At the last you can find our expected read of data how it should be.
With out the record type code we are not even reading the file. Hope there should be a correction in the schema. Please suggest
Schema that we are using:
<?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://xmlns.energy.com/CreateReturnedItemGENVNDRPReqABCSImplFileAdapterReadReturnedItem"
     targetNamespace="http://xmlns.energy.com/CreateReturnedItemGENVNDRPReqABCSImplFileAdapterReadReturnedItem"
     elementFormDefault="qualified" attributeFormDefault="unqualified" nxsd:version="NXSD" nxsd:stream="chars"
     nxsd:encoding="US-ASCII">
    <xsd:element name="GENVNDRReturnedItem">
        <xsd:complexType>
            <xsd:sequence minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="fixedLength" nxsd:length="1">
                <xsd:element name="HeaderRec" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:startsWith="1">
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="RecordTypeCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="PriorityCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="2" nxsd:padStyle="tail"/>
                            <xsd:element name="ImmediateDstn" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="10" nxsd:padStyle="tail"/>
                            <xsd:element name="ImmediateOrgin" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="10" nxsd:padStyle="tail"/>
                            <xsd:element name="FileCrDt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="6" nxsd:padStyle="tail"/>
                            <xsd:element name="FileCrTm" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="4" nxsd:padStyle="tail"/>
                            <xsd:element name="FileIdMdfr" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="RecSize" type="xsd:string" nxsd:style="fixedLength" nxsd:length="3"
                                 nxsd:padStyle="tail"/>
                            <xsd:element name="BlockingFctr" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="2" nxsd:padStyle="tail"/>
                            <xsd:element name="FormatCd" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="ImmediateDstnNm" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="23" nxsd:padStyle="tail"/>
                            <xsd:element name="ImmediateOrginNm" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="23" nxsd:padStyle="tail"/>
                            <xsd:element name="RefCd" type="xsd:string" nxsd:style="fixedLength" nxsd:length="8"
                                 nxsd:padStyle="tail"/>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name="BatchHdrRec" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:startsWith="5">
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="RecordTypeCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="ServClsCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="3" nxsd:padStyle="tail"/>
                            <xsd:element name="CmpnyName" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="16" nxsd:padStyle="tail"/>
                            <xsd:element name="CmpnyDiscretionaryData" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="20" nxsd:padStyle="tail"/>
                            <xsd:element name="CmpnyIdfn" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="10" nxsd:padStyle="tail"/>
                            <xsd:element name="StdClsCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="3" nxsd:padStyle="tail"/>
                            <xsd:element name="CmpnyEntryDesc" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="10" nxsd:padStyle="tail"/>
                            <xsd:element name="CmpnyDescDate" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="6" nxsd:padStyle="tail"/>
                            <xsd:element name="EffEntryDate" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="6" nxsd:padStyle="tail"/>
                            <xsd:element name="SettlementDate" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="3" nxsd:padStyle="tail"/>
                            <xsd:element name="OrgntrStatusCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="OrgntrBatchCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="15" nxsd:padStyle="tail"/>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name="FileControlRec" nxsd:style="terminated" nxsd:terminatedBy="${eol}"
                     nxsd:startsWith="9">
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="RecordTypeCode" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="1" nxsd:padStyle="tail"/>
                            <xsd:element name="BatchCnt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="6" nxsd:padStyle="tail"/>
                            <xsd:element name="BlockCnt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="6" nxsd:padStyle="tail"/>
                            <xsd:element name="EntryAddendaCnt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="8" nxsd:padStyle="tail"/>
                            <xsd:element name="EntryHash" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="10" nxsd:padStyle="tail"/>
                            <xsd:element name="TtlDbtEntryDlrAmt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="12" nxsd:padStyle="tail"/>
                            <xsd:element name="TtlCrdtEntryDlrAmt" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="12" nxsd:padStyle="tail"/>
                            <xsd:element name="Reserved" type="xsd:string" nxsd:style="fixedLength"
                                 nxsd:length="39" nxsd:padStyle="tail"/>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>
Sample data:
1011390714890 0910000191406110449A094101MCSCLDA_TESTIN    
XPLLS KNRGO CNNK         
5200MCSCLDA_TESTIN  e-Bill         
2390714890TELe-Bill     
1406100001091000017000001
6262759774891010000074743
0000033793102651-013  U  HOLBACH KARLA & JAMES   1091000013925011
799R01091000013925011 
27597748                                       
091000010000001
820000000200275977480000000337930000000000002390714890                    
091000010000001
9000060000025000001200995048661000001265867000000000000                                 
Read File receive Activity:
<GENVNDRReturnedItem>
  <HeaderRec>
    <RecordTypeCode>0</RecordTypeCode>
    <PriorityCode>11</PriorityCode>
    <ImmediateDstn>390714890</ImmediateDstn>
    <ImmediateOrgin>0910000191</ImmediateOrgin>
    <FileCrDt>406110</FileCrDt>
    <FileCrTm>449A</FileCrTm>
    <FileIdMdfr>0</FileIdMdfr>
    <RecSize>941</RecSize>
    <BlockingFctr>01</BlockingFctr>
    <FormatCd>M</FormatCd>
    <ImmediateDstnNm>CSCLDA_TESTIN X</ImmediateDstnNm>
    <ImmediateOrginNm>PLLS KNRGO CNNK</ImmediateOrginNm>
    <RefCd></RefCd>
  </HeaderRec>
  <BatchHdrRec>
    <RecordTypeCode>2</RecordTypeCode>
    <ServClsCode>00M</ServClsCode>
    <CmpnyName>CSCLDA_TESTIN e</CmpnyName>
    <CmpnyDiscretionaryData>-Bill 2</CmpnyDiscretionaryData>
    <CmpnyIdfn>390714890T</CmpnyIdfn>
    <StdClsCode>ELe</StdClsCode>
    <CmpnyEntryDesc>-Bill</CmpnyEntryDesc>
    <CmpnyDescDate>1</CmpnyDescDate>
    <EffEntryDate>406100</EffEntryDate>
    <SettlementDate>001</SettlementDate>
    <OrgntrStatusCode>0</OrgntrStatusCode>
    <OrgntrBatchCode>91000017000001</OrgntrBatchCode>
  </BatchHdrRec>
  <FileControlRec>
    <RecordTypeCode>0</RecordTypeCode>
    <BatchCnt>000600</BatchCnt>
    <BlockCnt>000250</BlockCnt>
    <EntryAddendaCnt>00001200</EntryAddendaCnt>
    <EntryHash>9950486610</EntryHash>
    <TtlDbtEntryDlrAmt>000012658670</TtlDbtEntryDlrAmt>
    <TtlCrdtEntryDlrAmt>00000000000</TtlCrdtEntryDlrAmt>
    <Reserved></Reserved>
  </FileControlRec>
</GENVNDRReturnedItem>
Expected Read data how we are looking:
<GENVNDRReturnedItem>
  <HeaderRec>
    <RecordTypeCode>0</RecordTypeCode>
    <PriorityCode>11</PriorityCode>
    <ImmediateDstn>39071489</ImmediateDstn>
    <ImmediateOrgin>0091000019</ImmediateOrgin>
    <FileCrDt>140611</FileCrDt>
    <FileCrTm>0449</FileCrTm>
    <FileIdMdfr>A</FileIdMdfr>
    <RecSize>094</RecSize>
    <BlockingFctr>10</BlockingFctr>
    <FormatCd>1</FormatCd>
    <ImmediateDstnNm>MCSCLDA_TESTIN</ImmediateDstnNm>
    <ImmediateOrginNm>XPLLS KNRGO CNNK</ImmediateOrginNm>
    <RefCd/>
  </HeaderRec>
  <BatchHdrRec>
    <RecordTypeCode>2</RecordTypeCode>
    <ServClsCode>200</ServClsCode>
    <CmpnyName>MCSCLDA_TESTIN</CmpnyName>
    <CmpnyDiscretionaryData>e-Bill</CmpnyDiscretionaryData>
    <CmpnyIdfn>2390714890</CmpnyIdfn>
    <StdClsCode>TEL</StdClsCode>
    <CmpnyEntryDesc>e-Bill</CmpnyEntryDesc>
    <CmpnyDescDate/>
    <EffEntryDate>140610</EffEntryDate>
    <SettlementDate>000</SettlementDate>
    <OrgntrStatusCode>1</OrgntrStatusCode>
    <OrgntrBatchCode>091000017000001</OrgntrBatchCode>
  </BatchHdrRec>
  <FileControlRec>
    <RecordTypeCode>0</RecordTypeCode>
    <BatchCnt>000060</BatchCnt>
    <BlockCnt>000025</BlockCnt>
    <EntryAddendaCnt>00000120</EntryAddendaCnt>
    <EntryHash>0995048661</EntryHash>
    <TtlDbtEntryDlrAmt>000001265867</TtlDbtEntryDlrAmt>
    <TtlCrdtEntryDlrAmt>000000000000</TtlCrdtEntryDlrAmt>
    <Reserved/>
  </FileControlRec>
</GENVNDRReturnedItem>

at step 8 of 9 of the file adapter wizard, the icon appears as a cog, on the right, with caption "define schema for native format".
I have JDev 11..1.1.3.0
The problem might be with the version of the SOA extensions you have installed....

Similar Messages

  • File Adapter - Native format Builder button not Appearing

    Hi,
    When We go through the file adapter wizard and on the screen where we define the schema, there is a button 'Native format builder'. But on Jdeveloper Version - 11.1.1.3.0, it is not appearing. Has this been removed in this release?
    regards,
    Rajesh

    at step 8 of 9 of the file adapter wizard, the icon appears as a cog, on the right, with caption "define schema for native format".
    I have JDev 11..1.1.3.0
    The problem might be with the version of the SOA extensions you have installed....

  • File Adapter Fixed Length File issue

    Hi,
    I have a fixed length flat file with each row 13 characters long. First character of each row represents a record type i.e. 0,1,2,3,4,5,6,7,8,9 here is my sample file:
    0123456     
    960373      
    A602710542583
    7602710542583
    1602750499275
    4602750499275
    1602750529800
    7602750529800
    1603030507732
    7603030507732
    1603030509055
    7603030509055
    1603030509229
    7603030509229
    2603600556240
    0603600566095
    2603600567460
    3603310536370
    5603310525810
    3603310531092
    3603310521842
    0603310521842
    3603310521842
    3603310521842
    860201450SA A
    560201451SA A
    560201452SA A
    560201453SAN
    1603630565355
    7603630565355
    1603630565500
    7603630565500
    9603460539390
    2603460535260
    3603790509870
    560200401ABIL
    660372TX066 
    660373TX01531
    660373TX01532
    860373TX066 
    660373TX068 
    360373TX09465
    660373TX09471Here is the schema
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://xmlns.oracle.com/pcbpel/tstSchema/SMP" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" targetNamespace="http://xmlns.oracle.com/pcbpel/tstSchema/SMP" elementFormDefault="qualified" attributeFormDefault="qualified" nxsd:version="NXSD" nxsd:stream="chars">
         <element name="SMP">
              <complexType>
                   <choice maxOccurs="unbounded" nxsd:choiceCondition="fixedLength" nxsd:length="1">
                        <element ref="tns:smpRecords" nxsd:conditionValue="0" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="1" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="2" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="3" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="4" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="5" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="6" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="7" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="8" minOccurs="0" maxOccurs="unbounded"/>
                        <element ref="tns:smpRecords" nxsd:conditionValue="9" minOccurs="0" maxOccurs="unbounded"/>      
                   </choice>
              </complexType>
         </element>
         <element name="smpRecords" type="tns:smpRecordsType"/>
         <complexType name="smpRecordsType">
              <sequence>
                   <element name="data1" type="string" nxsd:style="fixedLength" nxsd:length="2" nxsd:padStyle="tail" nxsd:paddedBy=" "/>
                   <element name="data2" type="string" nxsd:style="fixedLength" nxsd:length="3" nxsd:padStyle="tail" nxsd:paddedBy=" "/>
                   <element name="emp" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
              </sequence>
         </complexType>
    </schema>When I run the process I get the following output and that is not correct as the first character is also being shown in the output as opposed to be skipped as it is the record type and the output should start from second character.
    output
    <SMP>
    <smpRecords>
    <data1>12</data1>
    <data2>345</data2>
    <emp>6 </emp>
    </smpRecords>
    <smpRecords>
    <data1>96</data1>
    <data2>037</data2>
    <emp>3 </emp>
    </smpRecords>
    <smpRecords>
    <data1>A16</data1>
    <data2>027</data2>
    <emp>10542583</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>027</data2>
    <emp>10542583</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>027</data2>
    <emp>50499275</emp>
    </smpRecords>
    <smpRecords>
    <data1>46</data1>
    <data2>027</data2>
    <emp>50499275</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>027</data2>
    <emp>50529800</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>027</data2>
    <emp>50529800</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>030</data2>
    <emp>30507732</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>030</data2>
    <emp>30507732</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>030</data2>
    <emp>30509055</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>030</data2>
    <emp>30509055</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>030</data2>
    <emp>30509229</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>030</data2>
    <emp>30509229</emp>
    </smpRecords>
    <smpRecords>
    <data1>26</data1>
    <data2>036</data2>
    <emp>00556240</emp>
    </smpRecords>
    <smpRecords>
    <data1>06</data1>
    <data2>036</data2>
    <emp>00566095</emp>
    </smpRecords>
    <smpRecords>
    <data1>26</data1>
    <data2>036</data2>
    <emp>00567460</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>033</data2>
    <emp>10536370</emp>
    </smpRecords>
    <smpRecords>
    <data1>56</data1>
    <data2>033</data2>
    <emp>10525810</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>033</data2>
    <emp>10531092</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>033</data2>
    <emp>10521842</emp>
    </smpRecords>
    <smpRecords>
    <data1>06</data1>
    <data2>033</data2>
    <emp>10521842</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>033</data2>
    <emp>10521842</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>033</data2>
    <emp>10521842</emp>
    </smpRecords>
    <smpRecords>
    <data1>86</data1>
    <data2>020</data2>
    <emp>1450SA A</emp>
    </smpRecords>
    <smpRecords>
    <data1>56</data1>
    <data2>020</data2>
    <emp>1451SA A</emp>
    </smpRecords>
    <smpRecords>
    <data1>56</data1>
    <data2>020</data2>
    <emp>1452SA A</emp>
    </smpRecords>
    <smpRecords>
    <data1>56</data1>
    <data2>020</data2>
    <emp>1453SAN </emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>036</data2>
    <emp>30565355</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>036</data2>
    <emp>30565355</emp>
    </smpRecords>
    <smpRecords>
    <data1>16</data1>
    <data2>036</data2>
    <emp>30565500</emp>
    </smpRecords>
    <smpRecords>
    <data1>76</data1>
    <data2>036</data2>
    <emp>30565500</emp>
    </smpRecords>
    <smpRecords>
    <data1>96</data1>
    <data2>034</data2>
    <emp>60539390</emp>
    </smpRecords>
    <smpRecords>
    <data1>26</data1>
    <data2>034</data2>
    <emp>60535260</emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>037</data2>
    <emp>90509870</emp>
    </smpRecords>
    <smpRecords>
    <data1>56</data1>
    <data2>020</data2>
    <emp>0401ABIL</emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>2TX066 </emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>3TX015 </emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>3TX01531</emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>3TX01532</emp>
    </smpRecords>
    <smpRecords>
    <data1>86</data1>
    <data2>037</data2>
    <emp>3TX066 </emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>3TX068 </emp>
    </smpRecords>
    <smpRecords>
    <data1>36</data1>
    <data2>037</data2>
    <emp>3TX09465</emp>
    </smpRecords>
    <smpRecords>
    <data1>66</data1>
    <data2>037</data2>
    <emp>3TX09471</emp>
    </smpRecords>
    </SMP>As the output for the very first row comes up fine i.e. 0123456
    for this the output is
    <smpRecords>
    <data1>12</data1>
    <data2>345</data2>
    <emp>6 </emp>
    </smpRecords>But for all the rest it keeps adding the first character too i.e. 960373
    for this the output is wrong
    <smpRecords>
    <data1>96</data1>
    <data2>037</data2>
    <emp>3 </emp>
    </smpRecords>as the correct output should be:
    <smpRecords>
    <data1>60</data1>
    <data2>373</data2>
    <emp/>
    </smpRecords>Any idea what I am doing wrong or how I can fix the schema. Also if I add any character other than 0....9 for the first character it still picks up the record i.e. A602710542583
    as it should only process records starting with 0....9
    Thanks

    I tried using transformation to check if the starting 2 chars are 56 then output else continue but the ourput is blank even though I have multiple records that start with 56. Here is the xsl I have
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
      <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
      <mapSources>
        <source type="XSD">
          <schema location="test2.xsd"/>
          <rootElement name="SMP" namespace="http://xmlns.oracle.com/pcbpel/tstSchema/SMP"/>
        </source>
      </mapSources>
      <mapTargets>
        <target type="XSD">
          <schema location="test2.xsd"/>
          <rootElement name="SMP" namespace="http://xmlns.oracle.com/pcbpel/tstSchema/SMP"/>
        </target>
      </mapTargets>
      <!-- GENERATED BY ORACLE XSL MAPPER 10.1.2.0.2(build 060111.0746) AT [TUE OCT 31 08:47:08 CST 2006]. -->
    ?>
    <xsl:stylesheet version="1.0" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="http://xmlns.oracle.com/pcbpel/tstSchema/SMP" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:ns0="http://www.w3.org/2001/XMLSchema" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" exclude-result-prefixes="xsl tns ns0 nxsd ldap xp20 bpws ora orcl">
      <xsl:template match="/">
        <tns:SMP>
          <xsl:for-each select="/tns:SMP/tns:smpRecords">
            <xsl:if test="tns:data1 = '56'">
              <tns:smpRecords>
                <tns:data1>
                  <xsl:value-of select="tns:data1"/>
                </tns:data1>
                <tns:data2>
                  <xsl:value-of select="tns:data2"/>
                </tns:data2>
                <tns:emp>
                  <xsl:value-of select="tns:emp"/>
                </tns:emp>
              </tns:smpRecords>
            </xsl:if>
          </xsl:for-each>
        </tns:SMP>
      </xsl:template>
    </xsl:stylesheet>and here is the out I get
    <part   name="SMP" >
    <SMP/>
    </part>Any ideas what might be wrong in the xsl itself.
    Thanks

  • File Adapter: Fixed length file read fails when all data not present

    Hi
    We have a BPEL process that reads fixed length data files. It works fine when all the data elements are available in the file but fails with 'rejected:10002' when even a single data is missing.
    How to handle this situation in BPEL file adapter?
    Are we doing something wrong or is this a normal functionality.
    If yes, then is there any work around for this as this is a very usual business condition which may occur, where all data elements are not mandetory.
    fixedLength
    ==========
    2,3,3,2
    Data - Successful
    ============
    1234567890
    2345678901
    3456789012
    Data - Failed
    ===========
    1234567890
    2345678901
    345678901
    Thanks in advance
    Buddhadev

    Hi Naveen,
          Do check the following things,
    >>Note : I have been asked to give the Transport Protocol as "NFS" (Whether this is the problem???) I have summarized the complete details below. Please help me
           1.If your file resides on your local network/local computer give NFS(Network file system). if your file resides on a FTP location give FTP and also give the FTP log on parameters.
    Additional Parameters
    File_MT.fieldFixedLengths 10,10,5
    File_MT.fieldNames VendorNumber,VendorName,City
    File_MT.fieldSeparator
    File_MT..processFieldNames fromConfiguration 
           2.If this structure does not match with the input file structure the file adapter wont pick up the file. So check for the help document provided by SAP in the following path.
    help.sap.com  --> Documentation  --> SAPNetWeaver --> SAPNetWeaver '04 --> English --> process integration --> SAP Exchange Infrastructure --> connectivity --> Adapters --> File Adapter
           Your file contains three records
    V123456789 A123456789 Bosto
    V234567890 B123456789 Atlan
    V334587900 C123456789 Austi
    You have mentioned the fieldSeperator as space but there is no File_MT.endSeparator '/n'  which differentiates between each and every row (record).
            Parameters for Record set Structures mentioned in the sender adapter configuration does not match with the actual file structure .
            Try giving exact structures in the configuration of sender file adapter.
    regards,
    Aravindh.

  • Sender File Adapter - Fixed Length

    We have a Fixed File(Sender). With 3 fields. NO Header. Space is the separator for each fields
    VendorNumber  10 bytes
    VendorName    10 bytes
    City           5 bytes
    In the File we can have multiple records.
    The Root Node is Vendor.
    I am trying to define the SENDER FILE ADAPTER in the following way (I have referred mostly all the blogs) but my file is not picking up for some reason.
    File looks like this
    V123456789 A123456789 Bosto
    V234567890 B123456789 Atlan
    V334587900 C123456789 Austi
    Note : I have been asked to give the Transport Protocol as   "NFS" (Whether this is the problem???) I have summarised the complete details below. Please help me
    Adapter Type :  File       Sender
    Transport Protocol :  NFS
    Message Protocol   :  File Content Convervsion
    Adapter Engine     :  Integration Server
    FILE ACCESS PARAMETERS
    Source Directory :   /business
    file Name        :   vendor.txt
    Content Conversion Parameters
    Document Name :  Vendor
    Document NameSpace: http://sap.com/xi/XI/SplitAndMerge
    Recordsetname :  Message1
    Record Structure :  File_MT,*
    Recordset Sequence: Ascending
    Key Field type    :  String(Case Sensitive)
    Additional Parameters
    File_MT.fieldFixedLengths 10,10,5
    File_MT.fieldNames        VendorNumber,VendorName,City
    File_MT.fieldSeparator   
    File_MT..processFieldNames fromConfiguration.

    Hi Naveen,
          Do check the following things,
    >>Note : I have been asked to give the Transport Protocol as "NFS" (Whether this is the problem???) I have summarized the complete details below. Please help me
           1.If your file resides on your local network/local computer give NFS(Network file system). if your file resides on a FTP location give FTP and also give the FTP log on parameters.
    Additional Parameters
    File_MT.fieldFixedLengths 10,10,5
    File_MT.fieldNames VendorNumber,VendorName,City
    File_MT.fieldSeparator
    File_MT..processFieldNames fromConfiguration 
           2.If this structure does not match with the input file structure the file adapter wont pick up the file. So check for the help document provided by SAP in the following path.
    help.sap.com  --> Documentation  --> SAPNetWeaver --> SAPNetWeaver '04 --> English --> process integration --> SAP Exchange Infrastructure --> connectivity --> Adapters --> File Adapter
           Your file contains three records
    V123456789 A123456789 Bosto
    V234567890 B123456789 Atlan
    V334587900 C123456789 Austi
    You have mentioned the fieldSeperator as space but there is no File_MT.endSeparator '/n'  which differentiates between each and every row (record).
            Parameters for Record set Structures mentioned in the sender adapter configuration does not match with the actual file structure .
            Try giving exact structures in the configuration of sender file adapter.
    regards,
    Aravindh.

  • Forms Builder - form not pulling the data from the DB into the datablock

    I'm working on a school project, and I'm not sure if I'm doing something wrong, or if something is wrong with my setup.
    I created a basic form, 3 fields, and ID, firstname and lastname
    the wizard connected fine, pulled the three fields into forms builder
    I setup a canvas - type content with the a form format layout of the three fields.
    saved the form.
    When I run the form and it's displayed, nothing gets pulled into the fields (all blank).
    Shouldn't it pull at least the first row from the table?
    it says it's on record 1/1
    XP, Oracle 10g, Form builder 10.1.2,
    I'm not getting any errors
    I want to get this basic form working first, before I start adding to it, and it doesn't seem to want to cooperate.
    I've done the same steps as in the tutorials....

    I did find that, if I put data in the ID, first and lastname on the form, and click Execute & Save on the Menu, it does add it to the database.
    Maybe what I'm missing, is how do I get the form to read from the database when it starts up?

  • How to read the data of  a file using upload option....

    Hi Frndz..
    As per my requirment , i need to provide a upload UI to the user , so he can select file to be upload whenever user select the file n clicks on upload button i need to read the data of that fiel that user selects.
    I have a solutions for this in JSP/JAVA , but i was unable to handle this in web dynpro..c this link in jsp ..
    http://www.roseindia.net/jsp/fileupload.shtml
    Thanks in Advance..
    Regards
    Rajesh

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • Native Format Builder in File Adapter - NXSD:ConditionValue

    Hello,
    I am trying to build a schema using the Native Format Builder in the File Adapter. I am using the option "Multiple Records of different types"
    The CSV file will look like the one shown below, the first column will have either DS, Shipping or an alpha numeric value (not a static value). How should the condition value look like for a dynamic value?
    <xsd:element name="RECORD1" nxsd:conditionValue="OrderDetailSKU"> - Static value, the value SKU will not change
    *<xsd:element name="RECORD2" nxsd:conditionValue="1"> - This value differs per order, it can be any number or alphabet or a combination of a number and an alphabet*
    <xsd:element name="RECORD3" nxsd:conditionValue="DS"> - Static value, the value SKU will not change
    <xsd:element name="RECORD4" nxsd:conditionValue="Shipping"> - Static value, the value SKU will not change
    SKU,VendorID,PurchaseOrderNumber,RefNum,OrderStatus,Invoice#,InvoiceAmt,FreightCharge,ProcessingFee,Qty,QtyOrdered,QtyShipped,Price,Net,TotalNoBoxes,BoxNo,BoxWeight,BoxWidth,BoxHeight,BoxLength,ShipMethod,TrackingNumber,StatusDate
    1,266219,648290074,648290074,Shipped,648290074,17,0,0,1,1,1,15,17,1,1,5,,,,UPSG,,
    DS,,648290074,648290074,Shipped,648290074,17,0,0,1,1,1,2,17,1,1,5,,,,UPSG,,
    Shipping,,648290074,648290074,Shipped,648290074,17,0,0,1,1,1,0,17,1,1,5,,,,UPSG,1Z4R3E350366250200,
    1,,648290075,648290075,Shipped,648290075,77,0,0,5,5,5,15,77,1,1,11,,,,UPSG,,
    DS,,648290075,648290075,Shipped,648290075,77,0,0,1,1,1,2,77,1,1,11,,,,UPSG,,
    Shipping,,648290075,648290075,Shipped,648290075,77,0,0,1,1,1,0,77,1,1,11,,,,UPSG,1Z4R3E350366250201,
    1,,648290076,648290076,Shipped,648290076,32,0,0,1,1,1,15,32,1,1,7,,,,UPSG,,
    2,,648290076,648290076,Shipped,648290076,32,0,0,1,1,1,15,32,1,1,7,,,,UPSG,,
    DS,,648290076,648290076,Shipped,648290076,32,0,0,1,1,1,2,32,1,1,7,,,,UPSG,,
    Shipping,,648290076,648290076,Shipped,648290076,32,0,0,1,1,1,0,32,1,1,7,,,,UPSG,1Z4R3E350366250202,
    1,,648290077,648290077,Shipped,648290077,107,0,0,2,2,2,15,107,1,1,11,,,,UPSG,,
    5,,648290077,648290077,Shipped,648290077,107,0,0,5,5,5,15,107,1,1,11,,,,UPSG,,
    DS,,648290077,648290077,Shipped,648290077,107,0,0,1,1,1,2,107,1,1,11,,,,UPSG,,
    Shipping,,648290077,648290077,Shipped,648290077,107,0,0,1,1,1,0,107,1,1,11,,,,UPSG,1Z4R3E350366250203,
    1,,648290079,648290079,Shipped,648290079,122,0,0,2,2,2,15,122,1,1,11,,,,UPSG,,
    2,,648290079,648290079,Shipped,648290079,122,0,0,3,3,3,15,122,1,1,11,,,,UPSG,,
    5,,648290079,648290079,Shipped,648290079,122,0,0,3,3,3,15,122,1,1,11,,,,UPSG,,
    DS,,648290079,648290079,Shipped,648290079,122,0,0,1,1,1,2,122,1,1,11,,,,UPSG,,
    Shipping,,648290079,648290079,Shipped,648290079,122,0,0,1,1,1,0,122,1,1,11,,,,UPSG,1Z4R3E350366250204,
    I need the above CSV to be translated to the below format for each order,
    <ns1:order>
         <ns2:order_number>648290076</ns2:order_number>
         <ns2:order_status>Shipped</ns2:order_status>
         <ns2:order_inv_number>648290076</ns2:order_inv_number>
         <ns2:order_inv_amt>32</ns2:order_inv_amt>
         <ns2:order_freight_charge>0</ns2:order_freight_charge>
         <ns2:item_Data>
              <ns0:vendor_item_number>1</ns0:vendor_item_number>
              <ns0:quantity_ordered>1</ns0:quantity_ordered>
              <ns0:quantity_shipped>1</ns0:quantity_shipped>
              <ns0:unit_cost>15</ns0:unit_cost>
              <ns0:extended_cost>32</ns0:extended_cost>
              <ns0:package_id>1</ns0:package_id>
         </ns2:item_Data>
         <ns2:package_Data>
              <ns0:package_id>1</ns0:package_id>
              <ns0:package_Items>
                   <ns0:vendor_item_number>1</ns0:vendor_item_number>
                   <ns0:quantity_shipped>1</ns0:quantity_shipped>
              </ns0:package_Items>
              <ns0:TrackingNo>
                   <ns0:TrackingNum>123456789</ns0:TrackingNum>
              </ns0:TrackingNo>
         </ns2:package_Data>
    </ns1:order>

    Hi Vlad,
    Thanks for the Idea, I tried using the Choice Condition and I am not sure what would be the condition, in my case, there are 3 record, the value in SKU will vary and differentiate the records. The first record (s) (based on no.of items in an order), the value in SKU column will be any value (alpha/numeric/alphanumeric), the next record will have "DS" in the SKU column and the next one will will "Shipping" in the SKU column. The example does look for "Yes" or "No" starting from the "70"th character in the line. I am not sure how to accommodate the condition to check whether the column* "SKU" contains an Item Number or "DS" or "Shipping". The poistion of the column "SKU" may vary every time, so I am not sure how to add a condition to verify that.
    Here is the Schema when I used "Delimited" in the choice condition,
    <?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="OrderDetail">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=","*>
    <xsd:element name="ItemsRecord" type="tns:Items" nxsd:conditionValue="(!= DS) and (!= Shipping)" />
    <xsd:element name="DSRecord" type="tns:ProcessingFee" nxsd:conditionValue="DS" />
    <xsd:element name="ShippingRecord" type="tns:ShippingInfo" nxsd:conditionValue="Shipping" />
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="ShippingInfo">
    <xsd:sequence>
    <xsd:element name="OrderDetails" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="VendorID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="PurchaseOrderNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="RefNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="OrderStatus" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceAmt" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="FreightCharge" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="" />
    <xsd:element name="ProcessingFee" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="SKU" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTY" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYOrdered" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYShipped" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Price" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Net" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TotalNoBoxes" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxNo" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWidth" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxHeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxLength" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="ShipMethod" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TrackingNumber" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="StatusDate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Items">
    <xsd:sequence>
    <xsd:element name="OrderDetail" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="VendorID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="PurchaseOrderNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="RefNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="OrderStatus" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceAmt" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="FreightCharge" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="ProcessingFee" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="SKU" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTY" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYOrdered" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYShipped" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Price" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Net" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TotalNoBox" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxNo" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWidth" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxHeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxLength" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="ShipMethod" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TrackingNumber" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="StatusDate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ProcessingFee">
    <xsd:sequence>
    <xsd:element name="OrderDetail" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="VendorID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="PurchaseOrderNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="RefNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="OrderStatus" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceNum" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="InvoiceAmt" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="FreightCharge" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="ProcessingFee" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="SKU" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTY" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYOrdered" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="QTYShipped" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Price" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Net" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TotelNoBoxes" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxNo" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxWidth" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxHeight" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="BoxLength" type="xsd:float" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="ShipMethod" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="TrackingNumber" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="StatusDate" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    I thank you once again for your valuable ideas and suggestions.
    Thanks,
    Venkatesh

  • File Adapter - Native Format Builder

    Dear All,
    In File Adapter - Native Format Builder exists option "Number of rows to skip". But this means how many rows from beginning of file to skip,
    can somebody help to define how to skip n rows from the end of file.
    Thanks in advance!

    There is no option available to skip rows from end. But if you know how many rows are there in the file and how many you want to skip, then you can use the option of "Number of data rows to process" and process only number of rows you want to actually process.
    - Achilles

  • File Adapter Wizard - Native Format Builder - no spaces in header?

    My project uses a vendor supplied, delimited text file. The first row of the file is a header, followed by data rows.  The problem is that the header elements contain spaces, Which are not acceptable by the Native Format Builder.
    Has anyone experienced this before and know of a good work-around? Or, is this a known issue?

    You can make use of the attribute "headerLines" in the top level "schema" tag. It would look something like this nxsd:headerLines="1".
    This will skip first header line and will start from line number 2.
    More Info here : http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/nfb.htm#CHDBECJI
    Hope it helps.

  • Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error

    Hi
    According to the following link
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    In Adapter Monitor I got the following error,
    In sender Adapter,
    Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
      last retry interval started 23:47:35 2008-10-25
      length 15,000 secs
    some one help me out ?
    Thanks
    Ram

    from the blog you referenced -
    <u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    <b>goto step 4</b>
    <u>additional parameters</u>
    add as the last entry
    <recordset structure>.lastFieldsOptional            Yes
    e.g.,
      Substr.lastFieldsOptional            Yes

  • How to split a file by using Native Format Builder?

    Hi all,
    Please help me with this issue.
    In this project we need to split a file to save in the db.
    Following is the sample code and I would like to split this from 'BOH--------------' to 'BOT---------------' (as in BOLD)
    But as you can see sometimes 'BOT' line comes up multiple times so I need to skip few 'BOT's until I meet new 'BOH' line.
    I guess I have to use complex type in Native Format Builder, but I'm not sure how to..
    Please help me with this situation.
    Thanks in advance.
    BFH0000000101TYO988 203PROD1108021046JP000869
    BCH00000002020811110807D110801
    BOH000001690316300561110807                       JPY0
    BKT0000017006      000011                    015X 988                                               AXSS00000000 00000000 00000000
    BKS00000171241108010000119881734947154  0               0FFVV   16300561                    TKTTTYO/TYO           TDHAWK/JL
    *BKS00000172301108010000119881734947154  00000006200{0000000000{ SW      0000000200{BP      0000000215{0000007233{0000000000{     JPY0*  
    *BKS00000173301108010000119881734947154  00000000000{0000000000{ YQ      0000000618{        0000000000{0000000000{0000000000{     JPY0*  
    *BKS00000174391108010000119881734947154  0I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000175461108010000119881734947154  0                                1/2/NON-REF/MZP1M
    BKI00000176631108010000119881734947154  01 03AUG03AUG       HND  GMP  OZ   1035 M 03AUG 2020    OK20K MZPH1M
    BKI00000177631108010000119881734947154  02 04AUG03SEP       GMP  HND  OZ   1045 M 06AUG 1530    OK20K MZPH1M
    BAR00000178641108010000119881734947154  0   JPY62000/             JPY2000SW  JPY2150BP  JPY6180YQ   JPY72330    13150RX5              0
    BAR00000179651108010000119881734947154  0NAGASHIMA/HIDEKIMR
    BAR00000180661108010000119881734947154  01CASH
    BMP00000181731108010000119881734947154  0                                                                                       C
    BKF00000182811108010000119881734947154  0  103AUG11 TYO OZ SEL 387.28MZPH1M OZ TYO 387.28MZPH1M
    BKF00000183811108010000119881734947154  0  2 NUC774.56END ROE80.044
    *BKP0000018484110801000011CA        0000007233{                                                0000000000000000{0000007233{       JPY0*  
    BKT0000018506      000012                    015X 988                                               AXSS00000000 00000000 00000000
    BKS00000186241108010000129881734947155  1               0FFVV   16300561                    TKTTTYO/TYO           TDHAWK/JL
    *BKS00000187301108010000129881734947155  10000006200{0000000000{ SW      0000000200{BP      0000000215{0000007233{0000000000{     JPY0*  
    *BKS00000188301108010000129881734947155  10000000000{0000000000{ YQ      0000000618{        0000000000{0000000000{0000000000{     JPY0*  
    *BKS00000189391108010000129881734947155  1I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000190461108010000129881734947155  1                                1/2/NON-REF/MZP1M
    BKI00000191631108010000129881734947155  11 03AUG03AUG       HND  GMP  OZ   1035 M 03AUG 2020    OK20K MZPH1M
    BKI00000192631108010000129881734947155  12 04AUG03SEP       GMP  HND  OZ   1045 M 06AUG 1530    OK20K MZPH1M
    BAR00000193641108010000129881734947155  1   JPY62000/             JPY2000SW  JPY2150BP  JPY6180YQ   JPY72330    13150RX5              0
    BAR00000194651108010000129881734947155  1IWATA/HITOSHIMR
    BAR00000195661108010000129881734947155  11CASH
    BMP00000196731108010000129881734947155  1                                                                                       C
    BKF00000197811108010000129881734947155  1  103AUG11 TYO OZ SEL 387.28MZPH1M OZ TYO 387.28MZPH1M
    BKF00000198811108010000129881734947155  1  2 NUC774.56END ROE80.044
    *BKP0000019984110801000012CA        0000007233{                                                0000000000000000{0000007233{       JPY0*  
    BKT0000020006      000013                    017X 988                                               WSPN00000000 00000000 00000000
    BKS00000201241108010000139882898050606  0               0FFFF   16300561                    TKTTNGO/NGO           N7ZAXW/1P
    *BKS00000202301108010000139882898050606  00000005000{0000000000{ SW      0000000250{BP      0000000154{0000007539{0000000000{     JPY0*  
    *BKS00000203301108010000139882898050606  00000000000{0000000000{ KX      0000000199{YQ      0000001936{0000000000{0000000000{     JPY0*  
    *BKS00000204391108010000139882898050606  0I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000205461108010000139882898050606  0                                NON-ENDS/QZA14/
    BKI00000206631108010000139882898050606  01X02OCT02OCT       NGO  ICN  OZ     121Q 02OCT 1200    OK20K QLZA14D
    BKI00000207631108010000139882898050606  02O02OCT02OCT       ICN  REP  OZ     737Q 02OCT 1920    OK20K QLZA14D
    BKI00000208631108010000139882898050606  03X10OCT10OCT       REP  ICN  OZ     738Q 10OCT 2340    OK20K QLZA14D
    BKI00000209631108010000139882898050606  04 11OCT11OCT       ICN  NGO  OZ     122Q 11OCT 0910    OK20K QLZA14D
    BAR00000210641108010000139882898050606  0JPY   50000/           XT    21350SW     2500BP     1540JPY   75390    52350NT               9
    BAR00000211651108010000139882898050606  0WATANABE/FUMIE.MS
    BAR00000212661108010000139882898050606  01VI 4297 XXXXXXXXX 1870P0812
    BKF00000213811108010000139882898050606  0  1NGO OZ X/SEL OZ REP 312.32OZ X/SEL OZ NGO 312.32NUC624.64 END ROE80.044OZ XT1990KX 1936
    BKF00000214811108010000139882898050606  0  20YQ
    *BKP0000021584110801000013CCVI4297  0000007539{4297690004451870   0812     701410              0000000000000000{0000000000{       JPY0*  
    *BKP0000021684110801000013CA        0000000000{                                                0000000000000000{0000000000{       JPY0*  
    BKT0000021706      000014                    015X 988                                               INFI00000000 00000000 00000000
    BKS00000218241108010000149885195702276  678841696569480 5FFVV   16300561                    TKTTNGO/NGO           JMERJU/1F
    *BKS00000219301108010000149885195702276  60000002500{0000000000{ SW      0000000250{BP      0000000215{0000003583{0000000000{     JPY0*  
    *BKS00000220301108010000149885195702276  60000000000{0000000000{ YQ      0000000618{        0000000000{0000000000{0000000000{     JPY0*  
    *BKS00000221391108010000149885195702276  6I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000222461108010000149885195702276  6                                NON-REF/QZA7
    BKI00000223631108010000149885195702276  61O16SEP16SEP       NGO  ICN  OZ   123  Q 16SEP 1745    OK20K QKPMZA7
    BKI00000224631108010000149885195702276  62 22SEP22SEP       ICN  NGO  OZ   124  Q 22SEP 1500    OK20K QKPMZA7
    BAR00000225641108010000149885195702276  6JPY   25000/                2500SW     2150BP     6180YQJPY   35830INFI78840      99999999  N0
    BAR00000226651108010000149885195702276  6INUKAI/HIROKO MS                                 NTS REF 3607438
    BAR00000227661108010000149885195702276  61JC35875900009516110115/ C 018627*
    BMP00000228731108010000149885195702276  6                     NTS REF 3607438                                 ANU
    BKF00000229811108010000149885195702276  6  116SEP11NGO OZ SEL156.16OZ NGO156.16NUC312.32END ROE80.044
    *BKP0000023084110801000014CCJC3587  0000003583{3587590000951611   0115     018627              0000000000000000{0000000000{       JPY0*  
    *BKP0000023184110801000014CA        0000000000{                                                0000000000000000{0000000000{       JPY0*  
    BKT0000023206      000015                    014X 988                                               GDSL00000000 00000000 00000000
    BKS00000233241108010000159885340399785  458803403997853 6FFVV   16300561                    TKTTNRT/NRT           V7R5WC/1V
    *BKS00000234301108010000159885340399785  40000004000{0000000000{ YQ      0000000618{BP      0000000215{0000005087{0000000000{     JPY0*  
    *BKS00000235301108010000159885340399785  40000000000{0000000000{ SW      0000000204{OI      0000000050{0000000000{0000000000{     JPY0*  
    *BKS00000236391108010000159885340399785  4I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000237461108010000159885340399785  4                                NON-REF-QZA7
    BKI00000238631108010000159885340399785  41 08AUG08AUG       NRT  ICN  OZ   107  Q 08AUG 0900    OK20K QHA2ZA7
    BKI00000239631108010000159885340399785  42 10AUG10AUG       ICN  NRT  OZ   106  Q 10AUG 1510    OK20K QHA2ZA7
    BAR00000240641108010000159885340399785  4   JPY40000/              JPY500OI JPY10370XT              JPY50870    588002LNCK           U3
    BAR00000241651108010000159885340399785  4TAKAHASHI/AYA MS
    BAR00000242661108010000159885340399785  41CASH
    BKF00000243811108010000159885340399785  4  1FP CASH FC 8AUG TYO OZ SEL 249.86QHA2ZA7 OZ TYO 249.86QHA2ZA7 NUC499.72END ROE80.044 XT
    BKF00000244811108010000159885340399785  4  2 6180YQ 2150BP 2040SW
    *BKP0000024584110801000015CA        0000005087{                                                0000000000000000{0000005087{       JPY0*  
    *BOT000002469316300561110807       00000000030675{00000000019553{00000000000000{00000000006775{00000000000000{SALE 00000000000000{JPY0*  
    *BKT0000024706      000016                    010  988                                               INFI00000000 00000000 00000000 A*   
    *BKS00000248241108010000169885195419735  678841696711651 4       16300561                    RFND   /*                                   
    *BKS00000249301108010000169885195419735  60000005700}0000000000{ OI      0000000050}SW 0000000204}0000006087}0000000000{     JPY0*  
    *BKS00000250301108010000169885195419735  60000000000{0000000000{ BP      0000000215}YQ 0000000518}0000000000{0000000000{     JPY0*  
    *BKS00000251301108010000169885195419735  60000000000{0000000000{ CP      0000000600{        0000000000{0000000000{0000000000{     JPY0*  
    *BKS00000252391108010000169885195419735  6I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000253451108070000169885195419735  2                                                                  1200                110727
    BAR00000254651108010000169885195419735  6SATO/YUKIMR
    BKP0000025583110801000016 9889AZ5E61I6V
    BKP0000025684110801000016CA        0000006087}                                                0000000000000000{0000006087}       JPY0
    BKT0000025706      000017                    010  988                                               INFI00000000 00000000 00000000 A
    BKS00000258241108010000179885195419736  078841696711481 1       16300561                    RFND   /
    *BKS00000259301108010000179885195419736  00000005700}0000000000{ OI      0000000050}SW 0000000204}0000006087}0000000000{     JPY0*  
    *BKS00000260301108010000179885195419736  00000000000{0000000000{ BP      0000000215}YQ 0000000518}0000000000{0000000000{     JPY0*  
    *BKS00000261301108010000179885195419736  00000000000{0000000000{ CP      0000000600{        0000000000{0000000000{0000000000{     JPY0*  
    *BKS00000262391108010000179885195419736  0I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0*  
    BKS00000263451108070000179885195419736  3                                                                  1200                110727
    BAR00000264651108010000179885195419736  0KANG/SOONBOKMS
    BKP0000026583110801000017 9889AZ5E61I6W
    BKP0000026684110801000017CA        0000006087}                                                0000000000000000{0000006087}       JPY0
    *BOT000002679316300561110807       00000000012174}00000000012174}00000000000000{00000000000774}00000000000000{RFND 00000000000000{JPY0*  
    *BOT000002689416300561110807       00000000018501{00000000007379{00000000000000{00000000006001{00000000000000{     00000000000000{JPY0*  
    BOH000002690316300863110807                       JPY0                                                                                 
    BKT0000027006      000018                    015X 988                                               AXSS00000000 00000000 00000000     
    BKS00000271241108010000189881734547779  3               0FFVV   16300863                    TKTTNGO/NGO           47F8J6/JL            
    BKS00000272301108010000189881734547779  30000005000{0000000000{ SW      0000000250{BP      0000000215{0000006083{0000000000{     JPY0  
    BKS00000273301108010000189881734547779  30000000000{0000000000{ YQ      0000000618{        0000000000{0000000000{0000000000{     JPY0  
    BKS00000274391108010000189881734547779  3I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0  
    BKS00000275461108010000189881734547779  3                                1/2/NON-REF/MZP1M                                             
    BKI00000276631108010000189881734547779  31 07AUG07AUG       NGO  ICN  OZ   121  M 07AUG 1200    OK20K MZP1M                            
    BKI00000277631108010000189881734547779  32 08AUG07SEP       ICN  NGO  OZ   124  M 09AUG 1500    OK20K MZP1M                            
    BAR00000278641108010000189881734547779  3   JPY50000/             JPY2500SW  JPY2150BP  JPY6180YQ   JPY60830    13150OL2              0
    BAR00000279651108010000189881734547779  3KAMEGAI/NORIOMR                                                                               
    BAR00000280661108010000189881734547779  31CASH                                                                                         
    BMP00000281731108010000189881734547779  3                                                                                       C      
    BKF00000282811108010000189881734547779  3  107AUG11 NGO OZ SEL 312.32MZP1M OZ NGO 312.32MZP1M N                                        
    BKF00000283811108010000189881734547779  3  2UC624.64END ROE80.044                                                                      
    BKP0000028484110801000018CA        0000006083{                                                0000000000000000{0000006083{       JPY0  
    BKT0000028506      000019                    014X 988                                               AXSS00000000 00000000 00000000     
    BKS00000286241108010000199881734547801  4               0FFVV   16300863                    TKTTNGO/NGO           5Y5RQQ/JL            
    BKS00000287301108010000199881734547801  40000008350{0000000000{ SW      0000000250{BP      0000000215{0000009433{0000000000{     JPY0  
    BKS00000288301108010000199881734547801  40000000000{0000000000{ YQ      0000000618{        0000000000{0000000000{0000000000{     JPY0  
    BKS00000289391108010000199881734547801  4I        000000000000000{      000000000000000{000000000000000{0000000000{              JPY0  
    BKI00000290631108010000199881734547801  41      16AUG       NGO  ICN  OZ   123  C 16AUG 1745    OK30K CRTOZKR                          
    BKI00000291631108010000199881734547801  42      16AUG       ICN  NGO  OZ   9122 Y 18AUG 1835    OK20K YRTOZKR                          
    BAR00000292641108010000199881734547801  4   JPY83500/             JPY2500SW  JPY2150BP  JPY6180YQ   JPY94330    13150GI3              0
    BAR00000293651108010000199881734547801  4HIRAI/SHUJIMR                                                                                 
    BAR00000294661108010000199881734547801  41CASH                                                                                         
    BMP00000295731108010000199881734547801  4                                                                                       C      
    BKF00000296811108010000199881734547801  4  116AUG11 NGO OZ SEL 624.65CRTOZKR OZ NGO 418.51YRTOZ                                        
    BKF00000297811108010000199881734547801  4  2KR NUC1043.16END ROE80.044                                                                 
    BKP0000029884110801000019CA        0000009433{                                                0000000000000000{0000009433{       JPY0  
    BOT000002999316300863110807       00000000015516{00000000015516{00000000000000{00000000002166{00000000000000{SALE 00000000000000{JPY0  
    BOT000003009416300863110807       00000000015516{00000000015516{00000000000000{00000000002166{00000000000000{     00000000000000{JPY0  
    BOH000003010316300933110807                       JPY0                                                                                 
    BKT0000030206      000020                    009  988                                               INFI00000000 00000000 00000000 A   
    BKS00000303241108010000209885195510345  178840417924611 4       16300933                    RFND   /                                   
    BKS00000304301108010000209885195510345  10000005800}0000000000{ SW      0000000265}YQ 0000000259}0000006074}0000000000{     JPY0  
    BKS00000305301108010000209885195510345 10000000000{0000000000{ CP      0000000250{        0000000000{0000000000{0000000000{     JPY0  
    BKS00000306391108010000209885195510345 1I 000000000000000{      000000000000000{000000000000000{0000000000{              JPY0  
    BKS00000307451108070000209885195510345 4 1000 110727
    BAR00000308651108010000209885195510345 1SONG/YOUNGSUKMR
    BKP0000030983110801000020 9889AZ5E63G3T
    BKP0000031084110801000020CA 0000006074} 0000000000000000{0000006074} JPY0
    BKT0000031106 000021 009 988 INFI00000000 00000000 00000000 A
    BKS00000312241108010000219885195510346 278840417924641 0 16300933 RFND /
    BKS00000313301108010000219885195510346 20000004000}0000000000{ SW      0000000265}YQ 0000000259}0000004274}0000000000{     JPY0  
    BKS00000314301108010000219885195510346 20000000000{0000000000{ CP      0000000250{        0000000000{0000000000{0000000000{     JPY0  
    BKS00000315391108010000219885195510346 2I 000000000000000{      000000000000000{000000000000000{0000000000{              JPY0  
    BKS00000316451108070000219885195510346 5 1000 110727
    BAR00000317651108010000219885195510346 2KIM/WONBINMR
    BKP0000031883110801000021 9889AZ5E63G3U
    BKP0000031984110801000021CA 0000004274} 0000000000000000{0000004274} JPY0
    BOT000003209316300933110807 00000000010348}00000000010348}00000000000000{00000000000548}00000000000000{RFND 00000000000000{JPY0  
    BOT000003219416300933110807       00000000010348}00000000010348}00000000000000{00000000000548}00000000000000{     00000000000000{JPY0  
    BCT00021143950811 0014500000009520310F00000005400221G00000002821794}00000001540700F00000000000000{          00000000002785PJPY0  
    BFT0002114499TYO 0014500000009520310F00000005400221G00000002821794}00000001540700F00000000000000{           00000000002785PJPY0  
    Edited by: 964067 on Oct 14, 2012 11:26 PM
    Edited by: 964067 on Oct 14, 2012 11:26 PM

    Hi,
    Firstly please ensure that the file that you are reading is bound to have a format of some sort.
    I will relate this to one of the requirement we did it in previous projects.
    We have a requirement to read a csv file coming in:
    1) It will be having records for Header (ODH) and Detail (ODL)
    2) The Header and Detail records will be repeated 'N' number of times in the input file.
    The schema we used it something as below to poll the CSV file:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    xmlns:tns="http://TargetNamespace.com/ReadCSV" targetNamespace="http://TargetNamespace.com/ReadCSV"
    elementFormDefault="qualified" attributeFormDefault="unqualified" nxsd:parseBom="true"
    nxsd:version="NXSD" nxsd:stream="chars" nxsd:encoding="US-ASCII">
    <xsd:element name="Package">
    <xsd:complexType>
    <xsd:choice minOccurs="1" maxOccurs="unbounded" nxsd:choiceCondition="terminated" nxsd:terminatedBy=",">
    <xsd:element name="Header" nxsd:conditionValue="BOH">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RecordAction" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="VisitType" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="OrderAction" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="Route" type="xsd:int" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Lines" nxsd:conditionValue="BOD">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RecordAction" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="OrderCode" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="ShippingUnitNumber" type="xsd:int" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="ProdOptDesc" type="xsd:string" minOccurs="0" nxsd:style="terminated"
    nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    So the approach we followed is as below:
    1) Design two DB tables. One to put the header records in Header table
    2) Put the detail records in Trailer table.
    3) Poll from these two tables to trigger next business requirements.
    Hope this helps.
    Thanks,
    Deepak.

  • Send a flat file with fixed lengths to XI 3.0 using a Central File Adapter?

    Hello,
    I'm wondering if someone have experience setting up conversion for different record structures. The example shown,
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter,
    (in a greate way) only picture one kind of structure.
    How should it be done if the file would contain
    10Mat1
    20100PCS
    The first record structure has columns
    ID(2),Material(10)
    The second redcord structure has columns
    ID(2),Quantity(3), Unit of messure (3)
    Brgds
    Kalle
    Message was edited by: Karl Bergstrom

    The configuration would be like follows:
    Content Conversion Parameters:
    Document Name: <your message type name>
    Document Namespace: <your message type namespace>
    Document Offset: <leave empty>
    Recordset Name: <any name>
    Recordset Namespace: <leave empty>
    Recordset Structure: row1,,row2,
    Recordset Sequence: any
    Recordsets per Message: *
    Key Field Name: ID
    Key Field Type: String
    Parameters for Recordset Structures:
    row1.fieldNames           ID,Material
    row1.fieldFixedLengths    2,10
    row1.keyFieldValue        10
    row2.fieldNames           ID,Quantity,UOM
    row2.fieldFixedLengths    2,3,3
    row2.keyFieldValue        20
    Instead of row1 and row2 you can choose any name.
    Regards
    Stefan

  • File adapter fixed lenght with justify

    Hi Developers ,
    I'm developing an interface JDBC - File , the file have a special format because is a flat file with fixed length and some of the fields have to a justified to left , it's possible do that with the file content conversion ????,
    the example of the file is :
    lenght fields :3,3,3
    xx , xx,xxx
    xx , xx,xxx
    xx , xx,xxx
    Regards

    Hi,
    Please see the below links
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
    /people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
    Regards
    Chilla...

  • Interface output file : tab limited vs flat file with fixed length

    hey guys,
    any idea on difference b/w to file type : flat file with fixed length or tab limited file
    thanks

    Tab Delimited:
    Two Field are seperated by a TAB
    eg. SANJAY    SINGH
    First field is First Name and Second is Sir Name.
    Nth field will be after N -1 tab
    Fixed Length:
    Every field has a fixed starting position and length
    eg. SANJAY     SINGH
    Here First field start from Position 1 and has lenght 10 and 2nd field start from 11th postion and has lenght 10.
    Fixed Length -> The lenght of each field is fixed, while in tab delimited the lenght of field is not fixed but we know it ends when the Seperatot (Tab) is encountered.

Maybe you are looking for