Mapping to simplify structure of XML for File Adapter

Hi everybody
Here is a short question regarding the restructuring of an incoming IDoc message to an outgoing file.
The IDoc has the structure:
-IDoc
___-->Segment A1           
______--> Segment B1   
_________-->Segment C1 
_________-->Segment C2 
_________-->Segment C3 
______--> Segment B2   
_________-->Segment C4 
_________-->Segment C5 
_________-->Segment C6 
___-->Segment D1       
You can see that Segment A1 occurres only ones, but can have several child nodes B. Also Segment B can have several Child nodes.
To transfer this Idoc to a flat file we have to create a flat structure as I understood form several Threads. So the target should look like this:
-->root 
_____-->Segment A1           
_____-->Segment B1   
_____-->Segment C1 
_____-->Segment C2 
_____-->Segment C3 
_____-->Segment B2   
_____-->Segment C4 
_____-->Segment C5 
_____-->Segment C6 
_____-->Segment D1
If I map the structure just one by one, I loose the last segments of C and it look like:
-->root 
_____-->Segment A1           
_____-->Segment B1   
_____-->Segment C1 
_____-->Segment C2 
_____-->Segment C3 
_____-->Segment B2   
_____-->Segment D1
How can I manage to get the needed target structure. I thought of using function <i>sortbykey</i> or <i>sort</i>, because I have values in C and B which are equal.
Any help?
Regards Oliver

Hi Again on this topic
yes stefan, obviously we have to have a flat structure. Based on our frustration we tried to send our structure from an Idoc directly to the file adapter and the following intresting thing came out:
The Idoc structure looked like this
-->root
_____-->EDIC_040
_____-->Segment A1
________-->Segment B1
___________-->Segment C1
___________-->Segment C2
___________-->Segment C3
________-->Segment B2
___________-->Segment C4
___________-->Segment C5
___________-->Segment C6
_____-->Segment D1
After sending this structure to the file adapter and ignoring that the stucture is not flat one we got this in our file:
Segment A1Segment B1
Segment C1
Segment C2
Segment C3
Segment B2
Segment C4
Segment C5
Segment C6
Segment D1
We got nearly what we wanted, just that a new line is missed between  Segment A1 and Segment B1. We tried to use 'nl' but it does not work. Any Ideas on how to get Segment B1 into the next row??
Regards Oliver

Similar Messages

  • Tab delimited file to XML by file adapter

    Hi,
    I got following sample flat file input, can we convert it to XML in file adapter's file content conversion?
    Key1,Key2,Item1,Item2,Item3 <-comments
    0001,AAA1,001,Cup,100
    0001,AAA1,002,Glass,100
    0002,BBB1,001,TV,10000
    0002,BBB1,002,Radio,100
    <Orders>
       <Order>
            <Key1>0001</Key1>
            <Key2>AAA1</Key2>
            <Item>
                <Item1>001</Item1>
                <Item2>Cup</Item2>
                <Item3>100</Item3>
            </Item>
            <Item>
                <Item1>002</Item1>
                <Item2>Glass</Item2>
                <Item3>100</Item3>
            </Item>
       </Order>
       <Order>
            <Key1>0002</Key1>
            <Key2>BBB1</Key2>
            <Item>
                <Item1>001</Item1>
                <Item2>TV</Item2>
                <Item3>100000</Item3>
            </Item>
            <Item>
                <Item1>002</Item1>
                <Item2>Radio</Item2>
                <Item3>100</Item3>
            </Item>
       </Order>
    </Orders>

    you cannot create it to what is as shown below due to some limitations of the file adapter. read my post in this thread to know y - file adapter
    But you can use tools like the conversion agent etc to acheive the same or read the XML in flat and then use XSLT or java to create the req. structure.
    <i>
    Note :
    Conversion agent
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
    /people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

  • Repeating structure through the receiver file adapter

    I wanted to ask wheter it is possible to create repeating structure through the SAP xi receiver file adapter. What I'm trying to accomplish is this:
    Item1
    Item2
    Item1
    Item2
    (variable number of times).
    I can accomplish the following:
    Item1
    Item1
    Item2
    Item2
    What I could do is have the Item1 and Item2 fields in the same segment in the design time, but this would mean the file adapter would write all the items on a single line instead of two.
    There is no way to define line breaks between the the receiver file adapter field parameters ?
    There is no way to support nested structures in the recordset definition ie. Item1.Item2 ?

    Henri,
    What Vishal means is following:
    Add sequences of the tag <recordset> between pairs of item1, item2:
    <documentName>
       <<b>recordset</b>>
         <item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
         </item1>
         <item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
         </item2>
       </<b>recordset</b>>
       <<b>recordset</b>>
         <item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
         </item1>
         <item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
         </item2>
       </<b>recordset</b>>
    </documentName>
    A similar problem with header and items is in this thread:
    Repeating structure through the receiver file adapter
    Hope that helps,
    Stefan

  • Dynamic UserID/Password for file Adapter

    Hi,
    How to use dynamic UserId/Password for file adapter ?
    (Sender/Receiver)
    In our case the Id/Pwd of FTP Site changes freguently.
    Can anyone help.
    Thanks in Advance
    Regards
    Chemmanz

    Hi Chemmanz,
    >>>>In our case the Id/Pwd of FTP Site changes freguently.
    but do you have those passwords in the message payload?
    if not then you will still have to fill it somewhere right?
    BTW
    the only way would be to use java proxies and write a simple ftp adapter inside it (or your own adapter)
    but this is not possible in standard I believe
    Regards,
    michal

  • Time stamp is not getting updated for File Adapter in communication channel

    Hi All,
    Since yesterday, I am observing that the time stamp of communication channel for File adapter is not gettingupdated some times.
    I had to stop and start the communication channel to update the time stamp.Please let me know if anyone has come across such issue or any useful notes on this.I could not find any related notes on Market place.
    Regards,
    Dinakar

    Hi,
    This is happening only with one communication channel which is sender in derection.Any reason why it is happening like this?since the restart of the communication channel it is getting update now.I really do not know how to delete/create the communication channels as this was done our PI consultants.Pls guide me.
    Regards,
    Dinakar

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • Directory specification for File Adapter

    Hello,
    I would like to ask if it is possible to determine a directory where message is saved for file adapter based on message content.
    E.g. I have general directory (GD) under which I would like to save a messages in directories with are called based on vendor number what is part of a message.
    So a message would be saved in
    ...\GD\vendor number\file name.
    In case that vendor number directory is not created yet I need to create it.
    I know that in file adapter a directory name is constant and file name can differ based on settings.
    This behaviour is in Business Connector enabled through possibility to write an "user-exit" in Java for directory determination.
    Is something similar possible in XI ?
    We are currently running on XI 3.0 with external adapter engine version 2.0 but to use internal adapter engine is no problem for me.
    Thank you for your advice.
    Marian Morzol

    Hi Marian,
    You can do this with content based routing in the interface determination, but then you have to create a new interface/channel for every extra directory.
    Cheers,
    Frank

  • Dynamic configuration for PI 7.1 in mapping for file adapter

    Hi Experts,
    I have used the code below to use dynamic configuration in PI 7.1, but it isnt working..
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm.
    it shows the file name in the dynamic configuration in the sxmb_moni...
    but hen i chekc it  in operations mapping..it shows dynamicconfiguration has to be in queue ..
    has ne one used it before??
    I used a simple UDF to create it without any input parameter and I mapped it to a field n the target side...
    has ne one faced a similar situation????
    Regrads,
    Tauseef

    Hi,
    Yes u r correct it will show error in operation mapping.. bcoz u cannot check the DynamicConfiguration in Operation mapping...
    It will throw Exception..
    The parameter to UDF depends on ur requirement.... Let us know ur requirements exactly...
    If u r doing for file to file means no UDF required,, just check ASMA on both sides....
    Babu

  • How do I map a drive for file adapter

    I am using a File adapter in XI, and would like to read files from a different server. 
    In the file adapter, there is no place for a username/password, so I need to map a drive first, then use the drive letter in the file adapter.
    eg Source Directory = G:\FTP-Data\sapgms\GMSToXI
    On the source server (call it DATASERVER), there is a local user created with rights to the appropriate data directory.
    I can logon to the XI server as the XI user (eg xidadm) and map a drive, entering username of DATASERVER\username, put in password, and  marking as "Reconnect at logon"
    The problem is that when logging back in, the system prompts for the password.  This is no good for the XI application service.
    A NET USE command in the startup directory works when I log on myself (eg net use Z:
    dataserver1\CorpData /USER:dataserver1\xid_user password1) , but still does not make the drive available for the XI application.
    The XI user (eg xidadm) is local to the XI server, so cannot be given access on the data server.
    I have been using FTP successfully, but have suddenly found that the administrators do not want FTP running on the production data server...
    So my question is:
    is there any place I can map a drive with a specified username/password, and make that drive available to the file adapter in XI?
    Thanks
    Michael
    Message was edited by: Michael Inglis

    Hi Michael,
    We are trying to configure similar scenario using Sender File (NFS) adapter from SAP server directory to XI.
    We have done the following steps:
    1) Map the SAP drive (
    SERVER\interface\ACH) <b>in XI system</b> windows explorer. It created an entry "Ach on SERVER\interface" and I can see all files in SAP directory from XI.
    2) Created SAPServiceXID user <b>in SAP system</b> with the same password as in XI.
    We tried all source directory names, but in Adapter Monitoring we still get error saying that Directory doesn't exist.
    What is the sharename in the directory you mentioned?? (In
    servername\sharename\path)
    In our SAP system (SERVER) files are under following directory d:\interface\ACH and in XI we mapped it under G drive which shows as "Ach on SERVER\interface"
    Are we missing anything here??
    Hi Wouter,
    Did you guys make this thing work?? We are having the same problem. If you figured it out..please let me know.
    Thank You,
    Indrasena Janga

  • Reciever content conversion for File adapter.

    Hi ,
    I am doing Idoc to file scenario,it is working fine without any FCC in the reciever file adapter but its failing when I use FCC.getting the error like
    "Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'STRUC.fieldFixedLengths' or 'STRUC.fieldSeparator' is missing "
    I know this error is because of FCC problem.
    I am getting this xml structure without FCC in the rec file adapter
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:DataRec_MT xmlns:ns0="http://xyz.....">
    - <SET>
    - <STRUC>
    <PERNR>0000185</PERNR>
    <ENAME>xyz m xyz</ENAME>
    <NACHN>xyz</NACHN>
    </STRUC>
    </SET>
    </ns0:DataRec_MT>
    I want to get 00000185||xyz m xyz ||xyz format
    I am using these FCC parameters
    STRUC.fieldNames fld1,fld2,fld3 etc
    STRUC.fieldSeparator ||(do I need to put this in ' ' ?)
    STRUC.endSeparator 'nl'
    do I need to add any more parameters or not supposed to use any parameters.
    please help.
    I tried with different combinations but no luck.
    i have DT created with stucture like
    DT_xyz
      Recset
         Record set structure.
    and I maintained all with the same case for field names,recordset structure,record set etc
    I searched blogs and links,and I will keep on.
    and what if if we dont get a value for a field in the record structure?whole FCC gonna fail?
    thank you,
    Babu

    Ramana and Raj,
    I tried both options but,still getting error.
    Recordset structure : STRUC
    STRUC.fieldSeparator ||
    STRUC.endSeparator 'nl'
    or
    Recordset Structure: STRUC
    Try with these parameters
    STRUC.addHeaderLine=0
    STRUC.fieldSeparator = ||
    STRUC.endSeparator = 'nl'
    I get this error in File  CC
    <b>Channel has not been correctly initialized and cannot process messages
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'STRUC.fieldFixedLengths' or 'STRUC.fieldSeparator' is missing </b>
    and when I furthur click on the message ID in CC I get this error
    <b>Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2007-08-01 08:02:57 Error File adapter receiver channel CC_File_RECV is not initialized. Unable to proceed: null
    2007-08-01 08:02:57 Error Exception caught by adapter framework: Channel has not been correctly initialized and cannot process messages
    2007-08-01 08:02:57 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages</b>
    any suggestions?
    thank you.

  • Need help with reading XML using File Adapter

    I have created a simple BPEL process that uses a file adapter to read files containing XML messages of a simple xsd schema. But when reading the xml, I get the following error message:
    [2010/03/01 23:43:13] Invalid data: The value for variable "Receive_1_Read_InputVariable", part "revision-report" does not match the schema definition for this part.The invalid xml document is shown below: More...
    [2010/03/01 23:43:13] "{http://schemas.oracle.com/bpel/extension}invalidVariables" has been thrown. less
    -<invalidVariables xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="code">
    <code>
    9710
    </code>
    </part>
    -<part name="summary">
    <summary>
    Invalid xml document.
    According to the xml schemas, the xml document is invalid. The reason is: Error::cvc-complex-type.4: Attribute 'doc' must appear on element 'revision-report'.
    Error::cvc-complex-type.4: Attribute 'model' must appear on element 'revision-report'.
    Error::cvc-complex-type.4: Attribute 'pubdate' must appear on element 'revision-report'.
    Error::cvc-complex-type.2.4.b: The content of element 'revision-report' is not complete. One of '{"http://xmlns.oracle.com/xmlfile":alternategroup}' is expected.
    Please make sure that the xml document is valid against your schemas.
    </summary>
    </part>
    </invalidVariables>
    It seems that there is some issue with the namespace, but even after trying out various combinations, I am not able to resolve this.
    Here the message schema (xsd):
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema elementFormDefault="qualified"
    targetNamespace="http://xmlns.oracle.com/xmlfile"
    xmlns:tns="http://xmlns.oracle.com/xmlfile"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="revision-report">
    <xs:complexType>
    <xs:sequence maxOccurs="unbounded">
    <xs:element name="alternategroup">
    <xs:complexType>
    <xs:attribute name="name" use="required" type="xs:string"/>
    <xs:attribute name="Desc" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="doc" use="required" type="xs:string"/>
    <xs:attribute name="model" use="required" type="xs:string"/>
    <xs:attribute name="pubdate" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    And here is the xml file to be read by the file adapter:
    <?xml version="1.0" encoding="UTF-8" ?>
    <revision-report doc="doc2" model="model4" pubdate="pubdate5">
    <alternategroup Name="ABC" Desc="ABC-Desc">
    </alternategroup>
    <alternategroup Name="DEF" Desc="DEF-Desc">
    </alternategroup>
    <alternategroup Name="GHI" Desc="GHI-Desc">
    </alternategroup>
    </revision-report>
    Appreciate any help.
    Thanks in advance for your attention.
    Jay

    Thanks for your response.
    I am not sure if there is any easier way, but I tried out the following tool available on the net to check an xml against a xsd:
    http://tools.decisionsoft.com/schemaValidate/
    There were a few issues, that I corrected and finally had a xsd and xml that were matching and valid. I tried this out in my file reading BPEL process, but the error still remained the same!
    Here is my updated/simplified xsd and xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xs:schema targetNamespace="http://xmlns.oracle.com/xmlfile"
    xmlns:tns="http://xmlns.oracle.com/xmlfile"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://xmlns.oracle.com/xmlfile">
    <xs:element name="revision-report">
    <xs:complexType>
    <xs:sequence>
    <xs:element maxOccurs="unbounded" ref="alternategroup"/>
    </xs:sequence>
    <xs:attribute name="doc" use="required" type="xs:string"/>
    <xs:attribute name="model" use="required" type="xs:string"/>
    <xs:attribute name="pubdate" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="alternategroup">
    <xs:complexType>
    <xs:attribute name="Name" use="required" type="xs:string"/>
    <xs:attribute name="Desc" use="required" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    <?xml version="1.0" encoding="UTF-8" ?>
    <revision-report doc="doc2" model="model4" pubdate="pubdate5" xmlns="http://xmlns.oracle.com/xmlfile">
    <alternategroup Name="ABC" Desc="ABC-Desc"/>
    <alternategroup Name="DEF" Desc="DEF-Desc"/>
    <alternategroup Name="GHI" Desc="GHI-Desc"/>
    </revision-report>
    I even tried the option that is available in JDeveloper to generate a sample xml from a xsd (when in the context of a Transformation activity). The xml generated by this also seems exactly like the one above.
    So, I am not able to figure out why my BPEL process errors out with the message Invalid xml document.

  • Field Seperators for File Adapter Missing , If Data in  field is Initial

    Hi All ,
    I am working on Idoc to File Adapter Scenerio , The Issue is if one of the field is Initial , then the seperator(|) does not appear .
    eg: if I have f1,f2, f3, f4 ... f10 columns
                  v1,v2.......v10 are the values , If v3, v4 values are initial , the file has only 8 fields and number of field seperators are 7 and not 9 .
    In the content conversion parameters , i had specified the
    Row.fieldSeparator  |
    Row.endSeparator    'nl'
    Row.fieldNames      f1d1|fld2|....|Fld10
    Please advice
    Regards
    Chan

    HI Chan,
    Because if there is no value in the idoc fields , it will not generate XML tags for that. So you will get only 8 xml tags in your input xml.. Check this from SXMB_MONI->Input xml(Idoc xml).
    For this you can make use of <b>Exists</b> node function in the mapping, with <b>If-else</b> functions. So if it exists map directly else map with constant value. So that you will get all the xml tags, so that all the fields..
    Regards,
    Moorthy

  • Mapping  problem due to FCC in sender file adapter

    Hi All
    I am doing File( Flat File ) to RFC Scenario.it is working fine..
    the problem comes in mapping with multiple records.
    FCC at sender file adapter is used
    my Data Type are :
    Source DT                      Target RFC import parameter(table).
    E2ED20*                            ITEM*
        KEY                                    VBELN
        VBELN                                 POSNR                                                
    E2E24*                                     CHARG
        KEY
        POSNR                             
        CHARG
    <b>*->>multiple occurence
    E2ED20  and E2E24 are 2 segment ,KEY is used in FCC to identify E2EDL20 & E2EDL24</b>
    My source text file is like this :
    E2EDL20                       0200
    E2EDL24                       xyz
    E2EDL20                       0201
    E2EDL24                       abc
    E2EDL24                       efg
    E2EDL24                       mln                      
    E2EDL20                       0202
    E2EDL24                       gty
    so the payload should be :
      0200   xyz
      0201   abc
      0201   efg     
      0201   mln
      0202   gty
    in <i>FCC ignoer record set= true</i>
    otherwise is not called...
    i try to use split by value & use oneasmany  , not helpfull.
    in message mapping when i checked th field VBELN -> display queue
    i am getting an array   0200
                                     0201
                                     0202  in white fields
    thanks & regards
    Ashutosh Rawat

    <b>Source payload</b>
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_MATNO_FILE xmlns:ns="urn:abc:xxx">
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
      <b><VBELN>0083662685</VBELN></b>
      </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900001</POSNR>
      <CHARG>1078629</CHARG>
      <LFIMG>3200</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900002</POSNR>
      <CHARG>1078630</CHARG>
      <LFIMG>1895</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900003</POSNR>
      <CHARG>1079145</CHARG>
      <LFIMG>1883</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900004</POSNR>
      <CHARG>1079146</CHARG>
      <LFIMG>3195</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
    <b> <VBELN>0083662648</VBELN></b>
      </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900011</POSNR>
      <CHARG>1001450</CHARG>
      <LFIMG>2946</LFIMG>
      <MEINS>8PC</MEINS>
      </E2E24>
    - <E2ED20>
      <KZ>E2EDL20</KZ>
      <FIELD1>020</FIELD1>
    <b> <VBELN>0083673936</VBELN></b>   </E2ED20>
    - <E2E24>
      <KZ>E2EDL24</KZ>
      <FIELD2>020</FIELD2>
      <POSNR>900012</POSNR>
      <CHARG>1073953</CHARG>
      <LFIMG>2458</LFIMG>
      <MEINS>PCE</MEINS>
      </E2E24>
      </ns:MT_MATNO_FILE>
    <b>at target what required is</b>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900001</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900002</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900003</POSNR>
    </item>
    <item>
    <b><VBELN>0083662685</VBELN></b>
    <POSNR>900004</POSNR>
    </item>
    <item>
    <b><VBELN>0083662648</VBELN></b>
    <POSNR>900011</POSNR>
    </item>
    <item>
    <b><VBELN>0083673936</VBELN></b>
    <POSNR>900012</POSNR>
    </item>
    in Sender FCC
    E2ED20.fieldFixedLengths               7,76
    E2ED20.fieldNames                            KZ,VBELN
    E2ED20.keyFieldValue              E1EDL20
    E2ED20.endSeparator              'nl'
    E2E24.fieldFixedLengths              7,24,13,7,3
    E2E24.keyFieldValue                              E1EDL24
    E2E24.fieldNames                               KZ,POSNR,CHARG,LFIMG,MEINS
    E2E24.endSeparator                              'nl'
    ignoreRecordsetName              true
    source file is already there...
    Message was edited by:
            ashutosh rawat

  • Is a record ID field required for File Adapter (Header, Body, Trailer)?

    Hi,
    File to File scenario. The sender file is a text file i.e. .txt which needs a conversion on the sender file adapter. There are three structures in the file namely header (one), body (many) and Trailer (one). From what I can see I need a record Id field (with the same name) in all the structure types, can anyone confirm this for me?
    Thanks,
    Leanne

    That is correct. If you have a variable number of records of a particular type, then you need a way to accurately identify each type of record... and that is done via the key field (or Record ID)  which is present in each record type.
    Extract from SAP Online Help:
    <i>Key Field Name
    If you specified a variable number of substructures for Recordset Structure, in other words, at least one substructure has the value ‘*’, then the substructures must be identified by the parser from their content. A key field must be set with different constants for the substructures. In this case, you must specify a key field, and the field name must occur in all substructures.
    Specify the Key Field Type to be used to compare the predefined values. This entry is used if the key field name is defined.
    NameA.keyFieldValue: Specify the value of the key field for the structure. This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.</i>
    For more info, refer to the SAP Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm

Maybe you are looking for

  • Calling a method within an application?

    Hi I'm a student taking an intro Java class and right now I have to develop and application that prompts for someone to input a character of the alphabet and it will display the corresponding number on a telephone that it is listed under. The main me

  • Can't send receive email from Yahoo account or send from .mac account

    On 5/1, when launching Mail, it asked me to update to new settings or use old settings. I should have kept the old settings. Instead, I had to set up all of my email accounts again. Everything is working except receiving mail from my Yahoo account. A

  • [JS][CS5.5] Interrupting a script via ScriptUI

    I have a script that automates the placement of PDFs onto pages based on an input XML file. It works splendidly, but I would like users to be able to interrupt the placement, particularly if they have accidentally passed the wrong XML file to the scr

  • Problem starting transaction for MDB

              Hello All,           I have a MDB configured as Container managed transaction.           Sometimes I rollback a message sent to a Queue.           The problem is that sometimes the WEBLOGIC log show the follow error and do not           sta

  • Please help... Broken pipe

    Hi every body, My j2EE application is in production state, if we examine me application.log i see a lot of errors like 3/11/03 12:20 PM registres: IO Error com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpIOException: Broken p