File content conversion on Sender Side

Hi,
I am doing file content conversion on sender side.when i am executing the scenario,i am getting the following error in sxmb_moni:
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/...............
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> DOC_HEADER                     ...
when i right click on the pyaload and select view source
its displaying the whole flat file with the following line at the beginning:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message -->
i have given all the parameters correctly....
in sxmb_moni.....the error category is Mapping and the error id id EXCEPTION_DURING_EXECUTE
Please help me with this error.
thanks n regards,
anuradha

Hi !!
The best way to debug would be to add TRACE statements in your mappigs. In both Graphical and java Mapping.
Trace out the entire output of java mapping and see if this is the input that the next mapping expects.
For trace , http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm
refr this links also
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected
unsported character error in message mapping
Re: HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:
Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException
Re: Outbound error
Re: mapping error
error in file to file
have a look at this weblog on how to test your mapping
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Thanks !!!

Similar Messages

  • File content conversion at sender side

    Hi,
    I need to convert a flat file to xml at sender side using FCC.
    Input text file:
    Sunil,Chandra,Mumbai,400709
    Sachin,Tendulkar,Delhi,110066
    XML Structure   Occurrence
    >Employees     1..1
      >  > Employee             0..N
        > > > Fname         1..1
          >  > > Lname           1..1
            >> > Address         1..1
              >  > > >City              1..1
                >> > > Zip              1..1
    xml should be like this:
    ><Employees>   
    >><Employee>
    >>><Fname>Sunil</Fname>
    >>><Lname>Chandra<Lname>
    >>><Address>
    >>>><City>Mumbai</City>
    >>>><Pin>400709</Pin>
    >>></Address>
    >></Employee>
    >><Employee>
    >>><Fname>Sachin</Fname>
    >>><Lname>Tendulkar<Lname>
    >>><Address>
    >>>><City>Delhi</City>
    >>>><Pin>110066</Pin>
    >>></Address>
    >></Employee>
    ></Employees>

    FCC does not support this level nesting...Ref
    http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    But requirement can be achieved using extra mapping
    you can create a source structure that looks like
    MT_Source_New..
    >Record ...unbounded
    >line ....1
    and read the input file line by line...this can be achieved by simple FCC...Refer above link
    here you need extra mapping to map it to your required source structure Employees
    MT_new ---Mapping1 --- Employees
    Then map Employees to Actual target structure

  • Key field values for file content conversion at sender communicationchannel

    Hi all,
    I am working on  scenario File to Idoc.In this scenario at the sender side we configure the file content conversion for .CSV file.
    In the flat file i am having more than one orders, XI will pick the file and creates a separate Idoc for each sales order at r/3.
    We have similar fields "Order Item Number" both header and item.
    If we got '00000' on the Header item then it should create a new idoc at the r/3 side other wise it will create line item.
    Order item number will be 00000 for header but it will differ from order item to item.
    source structure
    Order Header
    Order type
    Sold-to-code
    PO number
    Order item number
    Order date
    AdresName1
    AdresName2
    Street and House number
    Postal Code
    City
    Country Code
    Filler
    Order Item
    Order type
    Sold-to-code
    PO  number
    Order item number
    Order date
    Product code
    Order quantity
    Item text
    Filler
    Now I have some questions....
    I don't have standard filed values to give the key fileds at source structure.
    I need to create the Idoc at r/3 system for each individual record.
    Is it possible to create new idoc with out using the Key filed value?
    If it is possible then how can i proceed with fcc?
    please give me your valuable suggestions
    Best Regards,
    satya
    Edited by: satyatanuku on Mar 3, 2010 1:41 PM
    Edited by: satyatanuku on Mar 3, 2010 1:42 PM
    Edited by: satyatanuku on Mar 3, 2010 1:44 PM

    Hi,
    Just check the Content Conversion Parameters-  Recordset Structure.
    If you have filled in this parameter with
    Header,1,Item,1
    then change it to
    Header,1,Item,3
    Regards
    Chandra

  • File Content Conversion in Sender File

    how to convert a fixed length flat file without end seperator sent to XI to a xml form?
    Pleasegive me the idea of Sender Adapter configuration details (esp endSeperator)

    Hi,
    For file content convertion if there are fixed lenth then no need to give the feildseperator,just give the fixed lenths for all the feild in FCC.
    check below links for FCC
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani.
    Reward Points If Helpful

  • Supress Column Heading - File Content Conversion in Sender Adapter

    Hi,
    Let me give a more clear picture about my scenario.  I need to convert CSV File to XML output:-
    My source file has column heading and values.  The sample data is mentioned hereunder:-
    PERNR;KID;PNALT;NACHN;NAME2;VORNA
    ;1200;1200;Angus
    I have created a data type as under:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Header (Category - Element, Occurence - 0...1)
                   PERNR_H
                   KID_H
                   PNALT_H
                   NACHN_H
                   NAME2_H
                   VORNA_H
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2
                   VORNA
    The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Header,1,Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
    I dont' have a key field value.  How do we remove the header and show only the values in the xml output.  I have searched the forum topics as well checked many blogs related to file content conversion, but nothing helped.  Kindly advice how to fix this issue.  Thanks in advance.
    Regards.
    Praveen

    Hi Praveen,
    Change your File Adapter as below
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA
    There is no need for the Header required in the data type.
    DT_LegacyEmployee (Category - Complex Type)
    Employees (Category - Element, Occurence - 1)
    Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
    PERNR
    KID
    PNALT
    NACHN
    NAME2
    VORNA
    Now the trick is in the mapping program
    Lets assume your mapping looks like
    MT_LegacyEmployee ---> MT_TargetEmployee
    - Employees ---> Records
       - Employee ---> Record
         - PERNR  ---> TargetPERNR
         - .. so on
    When you do a mapping from Employee ---> Record apply the following logic.
    (PERNR)--->
                 (TestEquals =) --->(NOT)--->
    (Constant) --->                                (IF)
    (PERNR)                       (IF Without Else) ---> (Record)
                                                   (THEN)
                                (Employee)--->
    When doing this make sure RightClick on PERNR and Select Context ---> Employees.
    By default context would be from Employee and it will give you an error of XSD format. So make sure you are changing the context.

  • FCC (File Content conversion)-In sender

    Hi All,
    Using FCC in sender i need to convert text to xml.Such that my text file format is
    Line1
    Line2
    Line3
    All the three lines is having some data..My source data type structure is
    DT_Emp
    >Emp_Info
       >Header
          ID----
    (0..1)
       >Details
           Line----
    (0..unbounded)
    Now i need to get data from text file into only line element..My ID element should be blank..XML should have ID element but it should not be populated from input file.How to get this using FCC..Is there any parameters for this?
    Can anyone give some useful ideas
    Regards
    Venkat

    HI,
    For  FCC Check this links.
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    phani

  • File content conversion in Sender Adapater for multiple occurances

    Hi ,
    I am mapping from flat file to idoc .
    My flat file is a tab demilited
    Since the idoc would have structure
    like header , lineitem , schedule
    in my flat file conversion
    i am giving recordset structure
    as header,1,lineitem ,,schedule,
    since lineitem would be repeated many times
    Bt if  i give * i need to give a keyfieldname
    which would mean that keyfieldname has to appaer in header and schedule .
    since in my case my Column values in header , lineitem and schedule are different
    how can i do the file conversion in this case
    i can doing something like this
    header.keyFieldValue ""
    schedule.keyFieldValue ""
    header.keyFieldInStructure ignore
    schedule.keyFieldInStructure ignore
    i am not even sure if thats the correct way
    Thanks
    Amit

    Hi Amit,
    Take a look at these...
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Reg:File content conversion for Sender File Adaptor

    Hi all,
                i would like to know , how the file content conversion is written for the below mentioned XML code. The flat file will have only the table name and the fieldname
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Mt_File xmlns:ns0="http:/file_to_idoc">
       <query_table>ztable1</query_table>
       <row_count/>
       <Fields>
          <item>
             <fieldname>zempno</fieldname>
          </item>
       </Fields>
    </ns0:Mt_File>
    regards
    priya

    First you create the conversion rules, then you create the XML structure accordingly, not the other way.
    online help will help you

  • File Content Conversion in Sender File Adapter

    Hi,
    I am implementing a scenario, where I need to do Content conversion in My file Adapter.My input file is as follows
    BGN00S-A200711281003ET4
    REF38381012
    DTP007D820071128
    N1P5P5MicrosoftFI58-0612397
    INSY18030XNAN
    REFZZZZ666666666
    DTP336D819970331
    NM1ILIL1AdamsMarkE34666666666
    PERIPIPHP770555-5555
    N31470 Georgia Club Drive
    N4StathamGA30666
    DMGD819571022MM7
    HD030HLTAE1D
    My data type is as below.
    <header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>
    My issue is, How do I set my parameter in Sender Comm channel for content conversion especially at record structure.
    I have provided the value as Header,1,Content,*
    But its not working.
    If I do provide like
    BGN_REC,,REF_REC,,DTP_REC,,N1_REC,,INS_REC,,NM1_REC,,PER_REC,,N3_REC,,N4_REC,,DMG_REC,,HD_REC,* then ,I am not getting above XML format. Please suggest or How can I modify my Data type which competes to configure in Channel
    Thanks
    Manmadha

    Hi All,
    I am sorry for the Jumbled Content. I dont know what happened.
    I should get the XML output as below.
    header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>

  • File Content Conversion in Sender Adapater

    Hi Folks ,
    I am doing a file 2 file scneario using content conversion at  both end
    My i/p and o/p is file is tab delimited
    My source xml structure is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:file_sender_mt xmlns:ns0="urn:filetofiledemo">
       <recordset>
          <data1>
             <keyfield/>
             <age1/>
          </data1>
          <data>
             <name/>
             <keyfield/>
             <age/>
             <loc>
                <keyfield/>
             </loc>
          </data>
       </recordset>
    </ns0:file_sender_mt>
    Data and location have the mapping 1.. unbounded
    while data1 has the mapping 1.1
    When I am trying to read it as a tab delimited flat file.
    These are the parameters that i have set
    Document Name  file_sender_mt
    Document Namespace urn:filetofiledemo
    Recordset Name recordset
    Recordset Structure data1,1,data, ,loc,
    Key Field Name keyfield
    data1.fieldNames keyfield,age1
    ignoreRecordsetName true
    recordset.fieldSeparator '0'
    data1.fieldSeparator '0x09'
    data1.keyFieldValue 01
    data1.endSeparator '0'
    data.beginSeparator '0x09'
    data.fieldSeparator '0x09'
    data.fieldNames name,keyfield,age
    data.keyFieldValue 02
    loc.fieldSeparator '0x09'
    loc.beginSeparator '0x09'
    loc.endSeparator '0'
    loc.keyFieldValue 03
    loc.fieldNames keyfield
    My file is getting picked up . I dont see any message in message monitoring and neither anything in moni .
    No error in adapater
    but the file is not getting created .
    if i change the message protocol to file and send t above xml file . the scneario works fine
    any reasons for the above behaviour
    Thanks
    Amit

    I have found you cant use nested element in sender adapater
    so i have chnage my source structure to
    Now if i give my i/p file as
    01 age1
    02 25 03
    file is getting pciked up
    bt if i give it as
    01 age1 02 25 03
    which is the structure i expect my i/p file it is failing  to read with the error
    Error: Conversion of complete file content to XML format failed around position 0: Exception: ERROR converting document line no. 1 according to structure 'data1':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
    Does The special character ´0´ is not a separator character.
    not work for sender adapater bcoz in reciever i am able to get o/p in one line and tab delimited
    any idea
    and since i have given my keyfield as the second field in data
    02 would come at the second palce
    Thanks
    Amit

  • File Content Conversion Problem: Sender File Adapter

    Hi All,
    In Sender File Adapter, how to spilt the single line into different lines using + as a separator. Plz see below my source file.
    #SMESS=IV01:672633SAP:676968:::NL51:02:11+
    COPS=678713:676968:070416:IV01'3:11IVFR=678713:PDA and'IND 2'9206 AD'Dtn'INIVDA=070416IVNR=6264008195:676968add1
    #EMESS=0+
    In above txt file there are 3 lines.
    1st line starts with #SMESS
    2nd line starts with COPS 
    3rd line starts with #EMESS.
    In 2nd line, if u observe there are 3 lines separating by +. My task is, I have to spilt the 2nd line into 3 lines using + separator.
    I already used the xx.endSeparator as '+' to spilt the line but it is not working....
    Could anyone help me how to do this. This is very urgent
    Thnx,
    Kumar.

    Hi Shankar,
    1) My Expected XML Structure:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_IV01 xmlns:ns="http://ms.com/dev/ms">
    - <Recordset>
    - <DT_SMESS>
      <D_9901>IV01</D_9901>
      <D_9902>672633SAP</D_9902>
      <D_9903>676968</D_9903>
      <D_9904 />
      <D_9905 />
      <D_9906>NL51</D_9906>
      <D_9907>02</D_9907>
      <D_9908>11</D_9908>
      </DT_SMESS>
    - <DT_COPS_2>
      <D_C022>678713</D_C022>
      <D_C023>676968</D_C023>
      <D_C008>070416</D_C008>
      <D_C111>IV01'3</D_C111>
      <D_H559>11</D_H559>
      </DT_COPS_2>
    - <DT_IVFR_2>
      <D_C024>678714</D_C024>
      <D_D333>PDA and'IND 2'9206 AD'Dtn'IN+</D_D333>
      </DT_IVFR_2>
    - <DT_IVDA_2>
      <D_D365>070416</D_D365>
      </DT_IVDA_2>
    - <DT_IVNR_2>
      <D_D189>6264008195</D_D189>
      <D_H364>676968add1</D_H364>
      </DT_IVNR_2>
    - <DT_EMESS>
      <D_D9901_1>0</D_D9901_1>
      </DT_EMESS>
      </Recordset>
      </ns:MT_IV01>
    2) I am not getting any error even if I use key Fields or Not becoz in the RecordSet Structure I mentioned DataType, 1 instead of DataType, *.
    3) FCC Parameters:
    Document Name: MT_IV01
    Document Namespace: http://ms.com/dev/ms
    Recordset Structure: DT_SMESS,1,DT_COPS_2,1,DT_IVFR_2,1,DT_IVDA_2,1,DT_IVNR_2,1,DT_EMESS,1
    Recordset Sequence: Ascending
    Key Field-type : String (Case-sensitive)
    4) Error:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'DT_COPS_2':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!

  • File content conversion on both sides FCC_BOTH_SIDES

    Hi,
    1. I am trying to read a fixed length file format and writing it to a fixed length file format.
    2. Source and target field lengths are same
    3. Source and target structure are same, element names may be different.
    source Massage Type structure.
    Person_MT
    - Person (0 to Unbound)
    -Name 1
    -City 1
    Target Massage Type structure.
    Employee_MT
    - Employee (0 to Unbound)
    -Name 1
    -Location 1
    4. Mapping is one to one mapping.(No node functions, no lookups.. etc. Only capitalizing 2 fields in the mapping.)
    5. Sender File conversion Perms
    Document = Person_MT
    Records name =
    Recordset Structure = Person,*
    Person.fixedFieldLengths = 10,10
    Person.fieldNames =Name,City
    Person.endSeparator ='nl'
    ignoreRecordsetName =true
    6. Receiver File Conversion Perms
    Recordset Structure = Employee
    Employee.addHeaderLine = 0
    Employee.endSeparator = 'nl'
    Employee.fixedFieldLengths = 10,10
    Problem: No matter what i change i am getting an empty file .
    1. When i check the SXMB_MONI, I see the payload correctly in all steps.(Inbound message, receiver determination,interface determination,
    receiver grouping,Message Branch according to receivers List). But in request message mapping>PayLoads>MainDocument i have a target message with out having any elements in it.
    2. I went through all the file cc blogs on sdn.
    Can any one help me, I really appriaciate it.

    Hi Yasser,
    From the screenshots that you sent across, it seems that after mapping no output structure is being produced.
    Can you do as recommended by Udo. Copy the source XML and try to test the message mapping with the same. Check if an output is being generated.
    Once that is done do get back to the forum with your observations.
    Regards,
    Shabarish

  • Regarding file content conversion in Sender File channel

    Hi all,
    In one of my requirement, one file contains several details records as given below,
    101,india,1001,albert,517193
    101,india,1002,hilbert,517193
    101,india,1003,robert,517193
    102,nepal,1004,kiran,9234334
    102,nepal,1008,kiran,9234334
    102,nepal,1003,kiran,9234334
    103,nepal,1004,kiran,9234334
    103,nepal,1008,kiran,9234334
    103,nepal,1003,kiran,9234334
    i want to send all the records which starts with 101 to one function module and all records which starts with 102 to another function module and all records which start with 103 to some other function module. In my sender channel i am planning to use
    101, 102, 103 as key field values to read them into 3 different structures.
    like Recordsset structure =  detail1,, detail2,,detail3,*.
    Details1.keyfieldvalue = 101
    Details2.keyfieldvalue = 102
    Details3.keyfieldvalue = 103
    Will this idea work out??
    Thanks,
    Balu

    Hi Balu,
    Yes u r correct, u can access the records by setting the key field value as u mentioned.
    But other way is also by,
    access the all records as similar one, so no key field value.
    the whole record as a single element.In the mapping u have a string function called StartsWith.
    In mapping u can specify if the incoming record starts with 101 then map it to FM1(Fumction Module 1).
    If the record starts with 102 map it to FM2......
    This will be very simpler i feel...
    If i am nt clear pl do post the problem in detail.
    Babu

  • File Content Conversion using Sender to Mapping

    I have a sender that is mapping a flat file CSV and it maps it correctly, but when it is being send to the message mapping program it fails on the input parse with an exception:
    Mapping transformation: Cannot produce target element /ns0:G8328_09B_Document/ns0:G8328_09BMessageType. Check xml instance is valid for source xsd
    I am using an external definition as my input for the message mapping if I import the messge from the monitor payload and change the ns: to ns0: in the test tool it maps find.  Can anyone tell me how to get the File adapter to generated ns0: instead of  ns: in the input message coming out of the adapter.
    Payload from the file adpater:
    <ns:G8328_09B_Document xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
    - <ns:G8320_09BMessageType xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface">
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZG2</AUART>
      <XBLNR>0061623534</XBLNR>
      <VBELN>0010790092</VBELN>
      <NETWR>178.99</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZRE</AUART>
      <XBLNR>0061651916</XBLNR>
      <VBELN>0010790093</VBELN>
      <NETWR>37.37</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    </ns:G8320_09BMessageType>
    </ns:G8328_09B_Document>
    Payload gernerated from the Test tool:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:G8328_09B_Document xmlns:ns0="http://nike.com/DEYTEL/RFCToJDBCInterface">
       <ns0:G8328_09BMessageType>
    <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZG2</AUART>
      <XBLNR>0061623534</XBLNR>
      <VBELN>0010790092</VBELN>
      <NETWR>178.99</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
    - <G8328_09B>
      <VKORG>1000</VKORG>
      <AUART>ZRE</AUART>
      <XBLNR>0061651916</XBLNR>
      <VBELN>0010790093</VBELN>
      <NETWR>37.37</NETWR>
      <WAERK>USD</WAERK>
      <VBTYP>O</VBTYP>
      </G8328_09B>
       </ns0:G8328_09BMessageType>
    </ns0:G8328_09B_Document>
    The test tool mapping I remove the ns and replaced it with ns0.
    Thanks for any help.
    Arjun.

    Hi Arjun,
    A few points....
    1. Namespace prefix being different does not cause mapping errors.
    2. In your case, note the name space <b>xmlns:ns="http://nike.com/DEYTEL/RFCToJDBCInterface"</b> missing in XML generated 
    using IR.
    3. The difference in Msg type names. After FCC it is G832<b>0</b>_09BMessageType where as in test tool it is G832<b>8</b>_09BMessageType.
    Correct points 2 and 3, your issue will be solved.
    Regards,
    Jai Shankar

  • FIle content conversion on receiver side

    Hey guys
    i m getting and XML file of the following form on the receiver side
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_sender xmlns:ns0="urn:Nov:FileToFile">
       <Emp_name>mark</Emp_name>
       <Emp_Age>25</Emp_Age>
    </ns0:MT_sender>
    and i need to convert this into a CSV format.
    what parameters will i use?
    i am using the following
    Recordset Structure: Emp_name,1,Emp_Age,1
    Emp_name.fieldSeparator=,
    Emp_Age.fieldSeparator=,
    i guess this is wrong coz i m not getting any file on receiver side,in MONI its chequered flag but i dont see any file on receiver side
    thanx
    ahmad

    Figured out by myself,i need to add Root elements in the XML,so that it looks like
    <Root>
          <Subroot>
                 <Emp_name>Mark</Emp_name>
                  <Emp_Age>25</Emp_Age>
           </Subroot>
    </Root>
    it's working for me this way
    thanx
    ahmad

Maybe you are looking for

  • Print to your HP ePrint enabled printer from wherever life or work takes you

    HP ePrint enabled printers allow for mobile printing and offer these key benefits: • Print from anywhere to your web-connected printer by sending an email to your printer's email address.1 • With wireless direct printing, you can simply walk up and p

  • Removing Items Finder Open With Menu

    I'm looking for a way to delete items from the Open With menu in Finder/File/Open With. On my PowerBook there are over fifty items in this menu when selecting a JPEG file. Maybe there is away. I'm using a Panther drive 10.3.9 Photoscene

  • Clean install help please.

    I am in the middle of giving my macbook a clean install and the second install disc has stopped working 9 min's from completion and ejected out. I have tried to install again, Clean the disc and still same problem. Is there a way of reversing this cl

  • Problem with these forums

    I don't know that this is necessarily a Safari issue, but I wasn't sure where to post it. I've got an odd display problem on these forums. When I click the My Posts link, I see odd formatting problems if one of my posts included a link or a smiley in

  • Do i need to report a lost ipod4g to apple

    do i need to report a lost ipod 4g to apple