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

Similar Messages

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

  • 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

  • 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

  • Recevier File Content Conversion Problem

    HI,
    i am using File COntent Conversion on Recevier Side for getting output in .txt file.
    My Input File:
    0112345010101
    021111112222
    03100001111112222
    03100011111212223
    041000011111
    021231116722
    03100781119012332
    041005611001
    059453287699
    My Fields are: "header,hbatch,body,tbatch,trailer"
    RecordStrucure: header,hbatch,body,tbatch,trailer
    I used fiexefiledlenghts and seperator and end seprator. But its not working.
    Please guide me to generate the txt file in the output.
    Regards,
    Giridhar.C

    Thanks you all for your quick responses.
    I have used Sender FCC and created the following XML Format on the Receiver Side.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_INPUT xmlns:ns0 = "http://sealchennai.com/FCC2">
        <header>
            <key1>01</key1>
            <name>12345</name>
            <date>01010</date>
        </header>
        <hbatch>
            <key2>02</key2>
            <hvalue1>11111</hvalue1>
            <hvalue2>12222</hvalue2>
        </hbatch>
        <hbatch>
            <key2>02</key2>
            <hvalue1>12311</hvalue1>
            <hvalue2>16722</hvalue2>
        </hbatch>
        <body>
            <key3>03</key3>
            <bvalue1>10000</bvalue1>
            <bvalue2>11111</bvalue2>
            <bvalue3>12222</bvalue3>
        </body>
        <body>
            <key3>03</key3>
            <bvalue1>10001</bvalue1>
            <bvalue2>11112</bvalue2>
            <bvalue3>12223</bvalue3>
        </body>
        <body>
            <key3>03</key3>
            <bvalue1>10078</bvalue1>
            <bvalue2>11190</bvalue2>
            <bvalue3>12332</bvalue3>
        </body>
        <tbatch>
            <key4>04</key4>
            <tvalue1>10000</tvalue1>
            <tvalue2>11111</tvalue2>
        </tbatch>
        <tbatch>
            <key4>04</key4>
            <tvalue1>10056</tvalue1>
            <tvalue2>11001</tvalue2>
        </tbatch>
        <trailer>
            <key5>05</key5>
            <value1>94532</value1>
            <value2>87699</value2>
        </trailer>
    </ns0:MT_INPUT>
    But i need the Output in the follwont text format on Receiver Side.
    01,12345,010101
    02,11111,12222
    03,10000,11111,12222
    03,10001,11112,12223
    04,10000,11111
    02,12311,16722
    03,10078,11190,12332
    04,10056,11001
    05,94532,87699
    Please do the needful help to create the fiel in the text format.
    Regards,
    Giridhar.C

  • File content conversion in receiver

    Hi,
    My receiver Message type structure is
    Heading1
      subheading 1
        FieldValue1
        FieldValue 2
        Fieldvalue3
    I want to create file content conversion in receiver side.
    plz help me to create what could be my recordset structure, name, value.
    my scenario is Idoc to file.

    Ruban:
    Your FCC goes like this
    subheading1.fieldSeparator = ','               /* if comma is the separator you want, if u need any other replace it*/
    subheading1.endSeparator = 'nl'
    Did you check my previous post in your other thread, I posted similar example there.

  • File Content Conversation in PI7.1

    Hi,
    Iam working out file_Rfc_file Scenario..my input file contains plant say  ''3000''..i have written file content conversion in sender side..this wat i have written.
    item.fieldFixedLengths     1,4
    item.endSeparator     'nl'
    item.fieldNames     key,low
    item.keyFieldValue     1
    item.keyFieldInStructure     ignore
    but while am chking in sxmb_moni...iam getting my input message as
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:Mt_Mainplant_Ra xmlns:ns="http://autoscribe.com/xi/erp/n47">
    - <Mainplant_Ra>
    - <item>
      <key>3</key>
      <low>000</low>   </item>
      </Mainplant_Ra>
      </ns:Mt_Mainplant_Ra>
    but whereas my key value should be 0 and plant has to be 3000...can anyone sugest whr i went wrong?
    With Regards,
    Dinesh

    try as;
    item.fieldFixedLengths 4
    item.endSeparator 'nl'
    item.fieldNames low
    Also there are numerous FCC blogs already available; do refer the same for further issues;
    /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/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter

  • Idoc 2 file - file content conversion in receiver

    Hi,
    My scenario is idoc to file.
    if i want to use file content conversion at receiver side,
    so i need to create record set according to sender side data type or receiver data type?
    plz give some inputs reg. this.
    Thanks

    Hi,
    There is problem while refreshing in sap xi also.
    when i pass new parameter like 7 in my recordset structure,
    it is immediately reflecting in CC monitoring.
    error it is showing that '7'.
    but if i remove that in record set structure
    (after activating that in ID)
    even though
    if i stop and start my CC manually also,
    still it is showing that error in CC monitoring
    like '7'
    basic concept of this file content conversion is
    I have to keep at least field separator (ie 'nl' )for outer most node element ie Customer_copy and record set stru. as Customer_copy
    is it right?
    I tried my own way...still it is giving that error.
    what could my fieldSeparator, endSeparator, for ur last case plz tell me?
    Edited by: ruban R on Apr 22, 2008 3:01 AM

  • Send a file without File Content Conversion

    Hi,
    I need to send an IDOC flat file that I pick from File system to a FTP server through XI. I was just wondering if there was a way by which I could avoid doing File Content Conversion on both the send and receiver file adapters?
    In my scenario, I am just passing this file through XI. I am not making any changes to it but to send it thru XI, I will have to convert from flat IDOC file ( file generated from File port in ECC) to XML and then from XML to Flat file.
    Can anyone guide??

    Hi William,
    <i>As a matter of fact, <b>no IR object is needed</b>. You can make up any interface name and namespace in the ID.</i>
    This sounds interesting..!!
    Can I just note down the steps in this case and can you validate the same..
    1. No IR objectd needed.
    2. File adapters ~~ Both sender and reciver , make the protocol as FILE
    3. Receievr Determination , Interface determination , Sender Agreement , Receiver Agreement ~~~ Give dummy Interface as well as Namespace values?
    Regards,
    Bhavesh

  • File content Conversion in j2se at the receiver side

    Hi ,
    I need to do a file content conversion using j2se adapter at the recevier side.
    my structure is something like
    <name>
        <name1>
        <name2>
    </name>
    <address>
         <address1>
         <address2>
    </address>
    and the output should be like
    #tname1$name2
    #sadress1.address2
    Please do the needfull
    Thanks & Regards,
    Hamsa

    Hi Hamsa,
    #tname1$name2
    #sadress1.address2
    Lot of # and $, so can you paste the FCC parameters that you have tried in the File adapter?
    In j2se also we can use the same. If you are not sure on how to use, paste the FCC parameter here and someone will be able to make the J2SE version out of it
    Regards
    Suraj

  • File Content Conversion on the Receiving side

    Is there a way in which if I want a Pipe Delimited File as a result, after the last field also I get a pipe with next record starting in the next line.

    Hi,
    For | (Pipe), use corresponding hex code as fieldSeparator i.e. 0x7C as fieldSeparator.
    For FCC on receiver side refer -
    [Simple FCC|http://www.riyaz.net/blog/index.php/2008/02/19/xipi-file-content-conversion-for-simple-structure/], [Complex FCC|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/]
    For separotor at the end of line you can try using a dummy field or use combination of pipe and newline i.e. '0x7C' and '0x0D' (stands for carriage return) or 'nl' as endSeparator
    Edit: You might consider using 'nl' as beginSeparator parameter and 0x7C as endSeparator. This will do the trick. However, this would add a blank line in the beginning of the file.
    Hope this helps.
    Regards,
    Riyaz
    Edited by: Riyaz Sayyad on Aug 21, 2008 3:00 PM

  • Issue w/ File content conversion (Receiver side)

    Folks, there seems to be an issue with the conversion. I've read several of threads on this forum, but none helped! Although the file is generated with 8 bytes there seems to be nothing in the file.
    However when 'File' message protocol is used, the xml file is generated correctly as expected. All my other settings are fine.
    Here is the scenario:
    1) created Message type -
    MTX
    ..Material
    ..BaseUnit
    ..MatGrp
    ..Division
    2) comm. channel created for -
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: MTX
    parameters:
        MTX.fieldSeparator: ,
        MTX.endSeparator: 'nl'
    Should recordset struc. and parameters have 'ns0' prefix, i.e.,
    Recordset Structure: ns0:MTX
    parameters:
        ns0:MTX.fieldSeparator: ,
        ns0:MTX.endSeparator: 'nl'
    What esle is missing? any thoughts are welcome.
    Thanks and appreciate your responses.

    Hi ABAP JUNOON,
    Could you please create another Test scenario and
    try
    MTI_XXX
         - DATA(0..unbounded)
             - fields?
    i mean, without redundant RS(Record Structure).
    and use 
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: DATA.
    it will written the complete output file.
    some people create the Reciver data type for  test scenario's as follows.
    MTI_XXX
       -RS
         - DATA(0..unbounded)
             - fields?
    i mean with redundant RS
    in this case file is generated, but nothing will be appear.
    so plz take care while creating the reciver data type with FCC.
    and the following case also will work i.e
    MTI_XXX
       -RS
         -Header(0,1)
             - fields?
         - DATA(0..unbounded)
               - fields?
         - Trailer(0,1)
             - fields?
    Regards
    Mahesh.

  • Encoding problem after File Content Conversion

    Hi SAP gurus!
    we're about exporting debitor data via PI into CSV files. Therefore we use a mapping to an intermediate structure. In the receiver file adapter a file content conversion is done into the target CSV format.
    We have a lot of data with eastern europe characters. Right after the mapping, everything is fine. All characters are processed correctly. After the file content conversion, the files written on the target system contain "?" instead of the special characters.
    Does anybody have any hint to fix this problem? We already tried to change the "file.encoding" parameter, but hasn't helped.
    Thanks in advance for your support!
    Cheers,
    Matthias

    Hello Satish,
    thanks for your reply.
    First, I have to explain, that the sender side isn't done by file adapter but IDoc adapter. So I cannot change the encoding on sender side.
    Both on IDoc and file side, the data is ok. Only when inserting the file content converion, the files become corrupted.
    Without using the FCC, tjhe target files are stored as UTF-8. When using FCC the files are stored as ANSI. (I tested this by opening the files in notepad and performing "Save As")
    Do you have further ideas?
    Cheers,
    Matthias

  • 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 is not creating on the Receiver for File Content Conversion

    Hi,
    i have created a scenario with this blog
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    for sender side i am using File Content Conversion to read .txt file and on receiver side i need xml file i have done that.
    when i placed the file in the sender folder it gets picked up and i checked in Communication Channel monitporing in Runtime WorkBench it is processed Successfully. but no XML File is created on the Receiver side. i am unable to see the messages on SXMB_MONI also.
    Please suggest some ideas to solve this.
    Thanks,
    Giridhar.C

    Hi Giridhar.
    unable to see the messages on SXMB_MONI also
    If the file got picked and in Communication Channel monitoring RWB you can see that it is processed without any errors ,, then i feel it should come in come.Please check the Audit log in RWB, there you can see the error message if any.
    Please check the connection parameters in FTP and make sure that the same sender folder is
    not being used by any other scenario.If you have done any recent changes then do  a cache refresh .
    Please post if you see any error in content conversion.
    Regards
    Srinivas

Maybe you are looking for

  • Question about the new 160GB iPod classic? ("whir" noise?)

    I just received one of the new 160GB iPod's for my birthday and I've noticed the faint "whir" or "whistling" others have talked about. I read many accounts that the noise is due to the HD and that it's happening with all of them, but can anyone link

  • How to load decimal values into a file using bcp in SQL Server 2000?

    Hi everyone, I'm trying to load data from a database table to a text file using bcp on SQL Server 2000. When I'm loading the decimal values, the values before the decimal are not being loaded into the file. How could I load the values before decimals

  • Adobe Flash not working with Windows 8

    I recently updated from Windows 7 to Windows 8. When I open up the app for Internet Explorer in Windows 8, it tells me that I have Adobe Flash Player installed, but if I try to see a video on YouTube, it tells me that I have to install Adobe Flash Pl

  • Need to move 10,000 photos

    I am about to install a new SSD drive that will become my new C: drive, i am using PSE 11, (I have used various other version of PSE and have updated them through the years) and am planning to install  the program on the new SSD drive. I have about 1

  • Is there a way to update Alternative Items and reverse link using the DTW?

    I have approximately 8,000 items that need to be tied with alternate items.  I am curious if there is a way using the DTW as opposed to manually input? Thanks, Matt