FILE Adapter (Key field)

Hi,
FILE-XI-FILE  scenario
Msg Structure is like this
<b>DT_HEADER</b>
    - >COMPANY
    - >LOCATION
<b>DT_CONTENT</b>  
     ->FIRSTNAME
    ->LASTNAME
    ->DESIGNATION
    ->LOGIN
    ->LOGOUT
    ->TIME
I have given <i>company and Firstname</i> as keyfield in the sender adapter paramemter.
In Content Convesion parameters :
        DT_HEADER.keyFieldValue='HITACHI'.
     DT_CONTENT.keyFieldValue='MM'
If that given value is in flat file.
it is giving output, but if the value is different,values are omitted
This key field may contain diferent values....
so how to tackle the situation
is there any option giving like  '* '
regards
mahesh

Hi Mahesh,
Without key field it will be impossible to distinguish between different substructures. If you have any logic to identify the rows  ( Header or item ) you can apply the same in the custom-module and add a dummy key field to each row. These fields will have only two values - one for Header and one for Items. Based on this then you can configure the adapter.
The dummy key field can then be omitted in the resultant XML.
CHEERS
Amit

Similar Messages

  • File Adapter Fixed Field Length

    Hello,
      I have the following problem. The file that is being generated is fixed length. However, there is no "\n" end line character in the end of each record. It is one big row of data. Is there any way to separate such file into records of information using File Adapter, since it seems with no "\n", File Adapter always has just ONE record.
              Thank you for your help,
                   Dmitriy Mindich

    We're running J2EE.
    Specifying 'nl' is newline - I don't have newline, just one gigantic stream...
    Example -
    Row contains Header(1), Line(n)
    All records are fixed-width
    Header has 3 fields
    ===================
    RecordType 3 chars (this is the key - indicated by 450)
    OrderNum 5 chars
    Order Type 2 chars
    Line has 3 fields
    ===================
    RecordType 3 chars (this is the key - indicated by 475)
    LineNum 4 chars
    PartNo 5 chars
    So the data would look like this
    450Ord01ZS4750001PartA4750002PartB
    This would be an order w/ 2 lines.  If I send this stream in, only the header is read, the lines are dropped, and my mapping fails b/c the lines need to be there.

  • Sender File FCC - Key Field Value not available in file

    Hi All,
    I am new to SAP PI. I am working on Sender FCC. Below is the source file structure. I need to handle multiple sub structures Header,1Data,*. I think I have to use Key.field Name and Value. But in the below format we don't have any indicator to identify which is header and which is data record. Please suggest how to processed.
    Header Record (Pipe delimited) (Cardinality 1:1)
    Date
    Invoice Number
    Total Amount
    Company Name
    Data Records (Fixed Length) (Cardinality 1:n)
    Date
    Amount
    Country
    Card Number
    etc...
    Sample File Snippet:
    20100430|4123451810|218.50|CC
    20100430    $150.00     INDIA       1234567     
    20100430    $150.00     INDIA       1234567     
    20100430    $150.00     INDIA       1234567     
    20100430    $150.00     INDIA       1234567

    Hi
    Try using the below parameters in FCC
    Header.fieldSeparator    |
    Header.endSeparator    'nl'
    Data.fieldFixedLengths   ur values --3,5,5..
    Data.endSeparator         'nl'
    Regards
    Ramg
    Edited by: Ramkumar Ganesh on May 24, 2010 4:05 AM

  • Receiver File Adapter - Directory field - home directory

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

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

  • File adapter - Additional field

    Hi,
       Can I pass an additional field in the file adapter. The scenario is
    1. Inbound file - to XI - File adapter
    2. XI to R3 - Proxy with no mapping.
    I am trying to add a field at the end of the file to signify the source in the file adapter.
    Any help is appreciated.
    Joe Vellaiparambil

    If you want to get the source directory from the file adapter, use the Adapter-Specific Message Attributes.
    Look at the section "Advanced Tab Page" in
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Then use the following to retrieve the information in your mapping.
    http://help.sap.com/saphelp_nw70/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm

  • FTPS file adapter setup fields not visible after SP13 install

    After installation of SP13, I was looking for file adapter FTPS setup (fields described in SP13 release notes). I could not see any. It's just like the old adapter.
    Java cryptolib is installed, and we checked it is there.
    we recycled the whole thing.
    Any idea what could be missing ?

    Solved. We had applied SP12 file.
    Note that this originates from the SP stack download tool.
    We had followed the generic download process and it did not contain the SP13 tpz file.
    I tried again this morning, when selecting source sp11 target sp13, The selection of packages selects
    SAPBASIS12_0-10002900.zip... and not the SP13 one.
    Watch out if you move two SP up !
    Detailed solution :
    Downloaded the SP13 zip file. the following way.
    service.sap.com  download/entry by app grp/sap content
    process integration (XI content)/ XI_CONTENT_SAP_BASIS/ XI_CONTENT_SAP_BASIS_6.40/DB independant/ selected sp13 from the list
    Unzipped, and put the tpz file in the import directory
    of the repository. file name is XI3_0_SAP_BASIS_6.40_13_02.tpz
    Imported it
    And it works now
    Thanks a lot for your help.

  • Receiver File Adapter - Ignore Fields

    Hi,
    I have the following structure on the Payload; -
      <?xml version="1.0" encoding="utf-8" ?>
    - <p2:MTEPOSUCopy xmlns:p2="urn:jsg.com/JCUKEPOS">
    - <Records>
    - <RecordType01>
      <RecordType>01</RecordType>
      <GroupCode>01</GroupCode>
      <GroupDescription>Material group 1</GroupDescription>
      </RecordType01>
    - <RecordType02>
      <RecordType>02</RecordType>
      <GroupCode>01</GroupCode>
      <ProductCode>Stuff</ProductCode>
      <ProductDescription>35m</ProductDescription>
      <MinOrderQty>000001</MinOrderQty>
      <MaxOrderQty>000002</MaxOrderQty>
      <DeliveryCode>XXX</DeliveryCode>
      <SupplierID>00001000</SupplierID>
      </RecordType02>
    - <RecordType02>
      <RecordType>02</RecordType>
      <GroupCode>01</GroupCode>
      <ProductCode>Stuff</ProductCode>
      <ProductDescription>Sto</ProductDescription>
      <MinOrderQty>000001</MinOrderQty>
      <MaxOrderQty>000002</MaxOrderQty>
      <DeliveryCode>XXX</DeliveryCode>
      <SupplierID>00001000</SupplierID>
      </RecordType02>
    </Records>
    <Filename>U1010.txt</Filename>
    I am using the Filename variable in the adpater to be able to create dynamic filenames. However, the adapter is also trying to write out this value to the file. Is there a way of telling the adapter to ignore this field.
    Thanks
    Martin

    Hi Martin,
    It is possible to suppreess the file name if you are using content conversion, please check the this weblog...
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    Regards
    Anand
    Message was edited by: Anand Torgal

  • In the interface file to proxy key field in the sender file adapter

    Hi all
    i do have a FLAT FILE ,
    1820000000|
    0010|XXX
    0020|XXX
    0040|XXX
    0050|XXX
    where 1820000000 is my PO number and 0010|ACK
    0020|XXX
    0040|XXX
    0050|XXX
    i dont what to use key field for this case in my sender adapter configuration please help me
    thanking you

    HI
    Read the file without using key field. Just define the FCC parameters Header and Items PI will pick the file.
    DT_Source
       Record
         Header 0..1
           PO_Number String 0..1
         Items  0..unbounded
           Items String 0..1
    Do the FCC
    Header.fieldnames PO_Number
    other config for Header
    Items.fieldnames Items
    other config for items
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Nov 12, 2008 10:27 AM
    Edited by: Gaurav Bhargava on Nov 12, 2008 10:27 AM

  • Key Field Value for File Adapter Sender Wildcard

    Hello everybody, is there a way to use a wildcard for the property of NamA.keyFieldValue in the cc for a Fils Sender????, here's an example why, I need to take some Files via PI 7.0 and my key filed can change according to the file an example is that in a file can be HF28 and in another file can be HF29, the only character that is going to be constant is the H, I would really appreciate any suggestions, thanks in advance.
    Regards,
    Julio Cesar

    Hi Julio
    File sender adapter will read the file using FCC
    Key Field Value entry is mandatory if the key field name is set. Otherwise, the entry can be ignored
    http://help.sap.com/saphelp_nw70/helpdata/EN/34/393071e9b998438ddb8ce97cd617a1/frameset.htm
    Content Conversion ( The Key Field Problem )
    Thanks
    Gaurav Bhargava

  • Key field value in outbound/sender file adapter

    Hi,
    I have a flat file coming in PI. The structre for the same is
    1. Detail record line ocurs n number of time
    2.Summary record line occurs only once at the end
    I have defined a datatype as follows
    <DT>
       <Recordset>
            <Detail>
               All the detail fields
            </Detail>
           <Summary>
               All the summary fields
           </Summary>
    </Recordset>
    </DT>
    Now the number of detail record is not know. But there is only one summary record.
    In the sender file adapter do we need to configure the keyfield paramter? If the number of detail record is * .
    The problem is the input file does not has any key field to parse/identify the detail or sumary record.
    Any alternative?
    Thanks

    hi ,
      if you have two structures so do like this:
    Recordset strucrure                detail,summary*
    detail.fieldFixedlength          :          10,20
    detail.fieldNames                 :        xxx,yyy
    summary.fieldFixedlength     :         10,20
    summary.fieldNames           :        www,vvv
    rest configuration will be same.
    hope this will help.
    regards
    HONEY

  • Sender File adapter File Conversion with key fields

    Please help me guys, I already spent way too much time on this!
    I checked a couple of BLOGs and I think I'm doing the right thing except I'm not getting the result I would expect.
    I'm trying to create an IDoc using the from a flat file.
    I get the following error:
    During the application mapping com/sap/xi/tf/_MM_TEST_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~
    The Source file is this:
    H
    L0015
    The file adapter does create the XML below (looks fine):
      <ns:MT_SINGLE xmlns:ns="http://PPSC_TO_BO_INVOICE">
      <HEADER>
         <ID>H</ID>
      </HEADER>
      <LINE>
         <ID>L</ID>
         <SITE>0015</SITE>
      </LINE>
      </ns:MT_SINGLE>
    When I test the map in IR, with the XML that this file adapter created (above) it works fine!
    Also if I take away the HEADER from the source structure everything works fine and I can create the IDoc, therefore I think something must be wrong in the file conversion, the mapping is so simple there is nothing to fail there.
    The file conversion parameters that I have:
    Document Name: MT_SINGLE
    Document Namespace: http://PPSC_TO_BO_INVOICE
    Document Offset:
    Recordset Name: 
    Recordset Namespace:
    Recordset Structure: HEADER,1,LINE,*
    Recordset Sequence: Ascending
    Recordset per Message:
    Key Field name: ID
    Key Field Type: String (Case-Sensitive)
    LINE.fieldNames: ID,SITE
    LINE.fieldFixedLengths: 1,4
    LINE.keyFieldValue: L
    HEADER.fieldNames: ID
    HEADER.fieldFixedLengths: 1
    HEADER.keyFieldValue: H
    What am I doing wrong???
    Any help is much appreciated.
    Thanks,
    Viktor Varga

    Hi Viktor,
    Basic rules:
    1. Down load XML payload(output From Adapter) and test it in IR mapping program. If it is working there is no reason why it will fail in Runtime. Also Check Cache is up to date.
    Generally the problem lies with namespace.
    Hope this helps
    Regards,
    Satish

  • File Content conversion at the sender adapter without Key field

    Hi All,
    I have a requirement ....We are using Message Transform Bean at the sender adapter (we are not going for FCC as we are tranforming a decryption) ..its is a flat file...
    we dnot have a key field for one of the node .....we have total 5 nodes under parent node and one of the node does not have key field ....
    NOTE: I guess we have to do either Java mapping or XSLT ..but not getting proper weblogs with program...
    and not well versed with coding...i got few codes which were either not fulfilling requiremment or they use stream tranformation where it is decaprecated in NWDS and does not allow to compile it properly .
    Can somebody get me a code for Java which uses Abstract tranformation ...which can full fill below requirement
    parent node
                  Node1
                       node 1a
                       node 1b
                  Node 2
                  Node 3
    Input Flat file is in below format
    example:
    Employee Headre Flat files
    Employee Detail Flat Files(this repeates numerous times as much as number of employees)
    Employee  Trailer Flat Files
    Loan Headre Flat files
    Load Detaisl Flat Files (this repeates numerous times as much as number of employees)
    Loan Trailer Flat files
    Assitance much appreciated thanks .
    Regards
    Kiran

    Hi Stefan,
    I will rephrase the question i guess its communication gap...
    1) we have an existing interface in 3.0..we are not copying the same interface to 7.1 as it was not according to standards and they are phasing out that system.
    2) In 3.0 they are reading the Flat files under one record .. the structure is as follows:
    Parent Node
               Node
                   Row
    They are reading all the flat files row by row.
    and even in receiver they are reading in the similar fashion
    3) In the current structure according to the FS we have to create a structure defined by them which is as below
          Employee
              Header
              Details   node 1
                 Details  node 1a
                  Details  node 1b
              Trailer
              Loan Header
              Loan Detail
              Loan Trailer
    Receiver structure is
    Employee
          Node (this will have the receiver fields which is about 30 fields)
    4) We have pulled a sample file from 3.0 for the existing interface as we din get the sample file for existing one in FS and Iam not sure whn are they gonna send it.
    5) In the existing interface payload we have everything matching even the field lengths and postions and even key fields and key fields we got from the FS
    6) problem is we donot have key fields for the Details node 1a and 1b even in FS or the existing payload and we got an update from the FS consultant that we will be receiving these fields but without keyfields...
    see i donot have any problem taking out the details 1a and 1b out of the details header and create the structure ,,,,but the main issue is without key field we will not be able to generate the 1a and 1b nodes or read it in the FCC or MTB (i have to use MTB as we are decryting the file from the sender).
    Or is there any other method apart from java mapping or module development to handle these files

  • Sender file adapter Adapter with out Key field

    Hi All
                 i do have have a requirment ,Sender file adapter , for FCC but file is  with out Key field
    HEADER>
    <DATA1>
    <DATA2>
    <DATA3>
    <HEADER>              file structure
    <ITEM>
    <ITEM1>
    <ITEM2>
    <ITEM3>
    <ITEM
    and the file si
    '10001,20081902,US
    10,soda,1
    30,soda,4
    40,soda,5
    10002,20081902,US
    10,steel,1
    30,steel,4
    40,steel,5
    , and i need to identify the Header and Item using there lenght only , please anyone as idea abt this help me

    Why to post the same question TWICE... in 30 min ? you don't like the answers ?
    File content Conversion Issuse for a Sender File Adapter

  • Sender file Adapter without Key field

    my File structure will be as follows
    <HEADER>
    <DATA1>
    <DATA2>
    <DATA3>
    <HEADER>
    <ITEM>
    <ITEM1>
    <ITEM2>
    <ITEM3>
    <ITEM>
    WHERE i do have flat file will be as follows
    10001,20081902,US
    10,soda,1
    30,soda,4
    40,soda,5
    10002,20081902,US
    10,steel,1
    30,steel,4
    40,steel,5
    how to pick this file using FCC from sendere flat file adapter without keyfields , and i can use fixed length also

    Hi,
    with multiple nodes structure( like header and item in your case) you need to have a key field to process this file to a desidered structure using FCC.
    Alternatively you can pick all these records as a single node type and classify it as header/items in your mapping by identifiing how each one differs frm other.
    ~SaNv...

  • Key field from content - Sender file adapter content conversion

    I am reading a source CSV file that has this structure. All rows in the source file are the same structure: line items of a PO. But there will be multiple POs in a single file, identified by the PO number as one column in the file.
    PONum,LineItemNum,Qty,Description
    001,1,34,Carrots
    001,2,17,Apples
    001,3,22,Bananas
    002,1,4,Mangos
    002,2,9,Coconuts
    003,1,44,Grapes
    Goal is to generate 3 messages, one for each PO:
    <po>
         <num>001</num>
         <line_items>
              ... 3 line items for PO # 001 ...
         </line_items>
    </po>
    <po>
         <num>002</num>
         <line_items>
              ... 2 line items for PO # 002 ...
         </line_items>
    </po>
    <po>
         <num>003</num>
         <line_items>
              ... 1 line item for PO # 003 ...
         </line_items>
    </po>
    Is there any way to use the Content Conversion Key Field Name to group the line items into the correct 3 messages? "Key Field Name" expects a static identifier for each type of row; but mine varies by the PO number in the content.
    Or do I need to do this in the mapping? If so, what is the easiest way to split 1 large message of all line items into multiple target messages based on the PO number? (I assume this is better than sending individual line item messages and aggregating them later, as long as the file size is OK.)
    Thanks in advance!
    RBL
    Edited by: Robert Burfoot-Lobo on Apr 8, 2009 11:43 AM

    Hi Robert,
    If ur goal is to split into 3 messages one for each PO, you can go for message split and using graphical mapping you can achieve that.
    Within the message mapping go to the tab Messages.
    Change the occurrence of the target message to 0..unbounded.
    Also this link may help you.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    Regards,
    Madhu

Maybe you are looking for

  • Windows SharePoint Services on Windows Server 2012 R2

    Hi,   Can someone please guide me on how to install/activate windows share point services on Windows Server 2012 R2?  Many thanks. Thanks, Mathan

  • Thank you to petes1234

    Dear Petes1234 I have finally completed an application and been able to distribute it using a zip file. I would like to thank you especially as you have helped me greatly and continually since I started posting here. That is not saying that other hav

  • Portlet.xml

    Is there a way to update the portlet.xml dynamically? That is, add an instance of the portlet using <portlet> tag at runtime to the portlet.xml. Does the portlet container need to be bounced back so that the updates are picked up? Got to know that th

  • Apert. fixes/messes with picture style when loading.

    Hi, Im using a canon rebel Xti. and I love using aperture except for the fact that it changes my picture style and many other things to its own standard when it loads from my card. I can see in the preview its a totally different images, then it load

  • JNLP and BIRT

    Hello I have got SWT application which uses BIRT. I am using JNLP to distribute it. It works fine when I set engine confing BIRT home as existing ReportEngine folder on harddrive, but I want to download ReportEngine as jars using JNLP. I can't find w