Skip field in file content conversion (file adapter)

hy guys,
I have a log file and want to convert it into xml. that works fine.
the problem is: can I skip some fields that I do not need in the xml with file content conversion
the fields I want to skip are the same in every record of the log file.
thanks.

Ralf,
You can only ignore lines in the begiining of the file using Document Offset option.
If you have the unwanted field in the end of the record and you are in SPS12 (PI 7.0), you can use the option additionalLasstFields in FCC parameters. have a look into the blog /people/sukumar.natarajan/blog/2007/06/12/content-conversion-in-sender-file-adapter--2-new-useful-parameters
Easier, is to ignore those fields in mapping.
Also, you can try to remove those fields using a shell script which can be called from the File adapter.
Regards,
Jai Shankar

Similar Messages

  • File content conversion sender adapter

    Hi Friends,
    I am doing File to IDoc scenario.
    I am using File Content Conversion for File Adapter.
    My structure look like this
    MT_File
    HEADER1 1..1
    --header1
    -- header2
    HEADER2 1..1
      --header3
    DETAILS 1..unbounded
    --details1
    --details2
    --details3
    TRAILER1 1..1
      -- trailer1
    TRAILER2 1..1
      -- trailer2
    ----trailer3
    In File Content conversion parameeters..
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name :header1,header3,details1,trailer1,trailer3
    ignoreRecordsetName     : true
    HEADER1.fieldNames      :header1,header2
    HEADER1.keyFieldValue      : H1
    HEADER1.fieldFixedLengths  :5,10
    HEADER1.endSeparator   :'nl'
    HEADER2.fieldNames             :header3
    HEADER2.keyFieldValue         : *D
    HEADER2.fieldFixedLengths     :5
    HEADER2.endSeparator         :'nl'
    DETAILS.fieldNames               :details1,details2,details3
    DETAILS.keyFieldValue         : 3
    DETAILS.fieldFixedLengths     :5,5,5
    DETAILS.endSeparator         :'nl'
    TRAILER1.fieldNames               :trailer1
    TRAILER1.keyFieldValue         : *S
    TRAILER1.fieldFixedLengths     :5
    TRAILER1.endSeparator         :'nl'
    TRAILER2.fieldNames               :trailer2,trailer3
    TRAILER2.keyFieldValue         :SE    TRAILER2.fieldFixedLengths    :5,5
    TRAILER2.endSeparator         :'nl'
    File is :
    H1hh1hhhhhhhhh2
    *Ddd*
    Xddd1dddd2dddd3
    Xddd4dddd5dddd6
    Xddd7dddd8dddd9
    *Sss*
    SEKss2
    in RWB, Channel CC_FILE_Sender_FccDemo: Empty document found. Proceed without sending message
    I think the problem is in FCC paramters..
    Could please have a look and correct me
    Regards
    Ram

    Ram,
    The problem which i can see is your key field values in your test file. Remember you should have the key field value in each new line at the same place.
    For example you have given your text file as shown below...
    File Given By You is :
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd6
    >Xddd7dddd8dddd9
    >*Sss *
    >SEKss2
    Compair the above file with the below one..
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd3
    >Xddd7dddd8dddd3
    > *Sss *
    >SEKss2
    If you notice, for details I have given key field value 3 in each line & at same place.
    One more thing just use the KeyFieldName only one ( just follow the same blog which I have given, to understand how to use the KeyFieldName )
    e.g.
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name : KF
    Regards,
    Sarvesh

  • File Content Conversion - Receiver Adapter

    Hi To All
    I have an XML Structure
    <LIST>
         <Seg1>
              <Element1>123</Element1>
         </Seg1>
         <Seg2>     
              <Element1>ABC</Element1>
              <Element2>DEF</Element2>
              <Element3>GHF</Element3>
            </Seg2>     
    <LIST>
    I'm using File content conversion in receiver Adapter
    I want my output like this.
    ABCDEFGHF
    I don't need the Segment Seg1.
    In my parameters RecordsetStructure only I have Seg2 and the details for this Segment
    but When I receive a file, the adapter convert with segment 1.
    123
    ABCDEFGHF
    can you help me?.

    easiest alternative is mentioned here already, drop it in the mapping.
    You can also try to write a java pgm and invoke it as an OS command. that cuts the segment1 out before passing it to content conversion. ..more painful..but will work.
    Regards
    Ravi Raman

  • File content conversion - sender adapter for Header and detail records

    Hi Experts,
                     I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
    Thanks
    Deepak

    Hi
    Refer the below fourm link,
    Flat file whitout id
    Regards
    Ramg.

  • Problem in file content conversion, file 2 xml scenario

    Hi,
    Could some one help me in finding out the error in my file to xml scenario, please do consider the following things what I did for this scenario.
    1.My sender file structure is flat file with , seperated 4 fields. On receiver end expecting xml file.
    2.Did file content conversion at sender file adapter and given parameters as follows.
         Document name             : MT_FileInput
         DocumentnameSpace     : http://file/praveenworkshop
         Recordset Name             : DT_Record
         Recordset Structure        : DT_Row,*
         KeyfieldType                   : String( default)
        DT_Row.fieldnames          : FirstName,LastName,City,PostCode
        DT_Row.fieldSeparator      : ,
        DT_Row.processConfiguration: FromConfiguration
        Dt_Row.endSeparator       : 'nl'
    3. I did check in Adapter Monitor that Both Sender and receiver adapter are showing green and It was showing  'Adapter is up and running: But no messages processed'
    4. I did check the SXMB_MONI which was showing " Scheduled for Outbound processing"
    5. In SXMB_MONI outbound processing payload was picking up the file and also inbound processing showing the same.
    6. my source folder and destination folder are very simple c:/praveenfiles/input and c:/praveenfiles/output
        files are source file praveen.txt and destination file praveenOP.xml
    Please help me in finding out the error to see the output file in my output folder.

    Hi Praveen,
    Hope these bloga are useful to you..
    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
    Thanks,
    Satya

  • File content conversion (file to file)

    Hi Guys,
    Sender File
    @! is the delimiter
    LEVEL1@!227833338@!08710@!REPAIR@!20080101@!99990909@!0000212897@!0000000001000@!0000000500000@!R400@!A@!Assigned
    LEVEL2@!227833338@!08710@!000099071608@!Blind@!20020115@!20020115@!R400@!1@!3@!20020430@!99990909@!SLC-@!VESSELLS@!A@!Assigned
    LEVEL3@!227833338@!08710@!000099071608@!0010@!Blind@!20020115@!20020115@!20020430@!20020430@!10000414@!Assigned
    LEVEL1@!4501065777@!00010@!SUPERHEAT@!20071206@!99990909@!0000219169@!00000001000@!0000002000000@!R020@!A@!Assigned
    LEVEL2@!4501065777@!00010@!000009416742@!Alky@!20080107@!99990909@!R020@!E@!2@!20080101@!99990909@!LAT@!COKE@!A@!Assigned
    LEVEL3@!4501065777@!00010@!000009416742@!0010@!v-895@!20080107@!99990909@!20080101@!99990909@!10001577@!Assigned
    Sender Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:CostObjects xmlns:ns0="http://*****************">
       <LEVEL1>
          <LevelID/>
          <PONumber>35435454</PONumber>
          <POLineNo>545</POLineNo>
          <ShortText>AAAAAAA</ShortText>
          <StDate>20080101</StDate>
          <EndDate>20080101</EndDate>
          <Vendor/>
          <POValue/>
          <ExpectedValue>4343</ExpectedValue>
          <Plant/>
          <Status>A</Status>
          <OrderType>Assigned</OrderType>
       </LEVEL1>
       <LEVEL2>
          <LevelID/>
          <PONumber>35435454</PONumber>
          <POLineNo>545</POLineNo>
          <Level2ID>457899</Level2ID>
          <Level2Desc>bbbbbbbbb</Level2Desc>
          <L2StDate>20080101</L2StDate>
          <L2EndDate>20080101</L2EndDate>
          <L2Plant>y001</L2Plant>
          <L2Priority>3</L2Priority>
          <L2SAPStatus>a</L2SAPStatus>
          <L2ActStDate>20080101</L2ActStDate>
          <L2ActEndDate>20080101</L2ActEndDate>
          <L2FuncLoc>LAR</L2FuncLoc>
          <L2FuncDesc>LOS ANGLES</L2FuncDesc>
          <L2Status>1</L2Status>
          <L2OrderType>Assigned</L2OrderType>
       </LEVEL2>
       <LEVEL3>
          <LevelID/>
          <PONumber>35435454</PONumber>
          <POLineNo>545</POLineNo>
          <Level2ID>457899</Level2ID>
          <Level3ID>10</Level3ID>
          <Level3Desc>cccccccc</Level3Desc>
          <L3StDate>20080101</L3StDate>
          <L3EndDate>20080101</L3EndDate>
          <L3ActStDate>20080101</L3ActStDate>
          <L3ActEndDate>20080101</L3ActEndDate>
          <L3WorkCenter>los</L3WorkCenter>
          <L3OrderType>Assigned</L3OrderType>
       </LEVEL3>
    </ns0:CostObjects>
    Receiver Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:TCostObject xmlns:ns0="http://**************">
       <LEVEL1>
          <L1RecordIndicator>&lt;L1&gt;</L1RecordIndicator>
          <L1ID>35435454545</L1ID>
          <L1Desc>AAAAAAA</L1Desc>
          <L1StartDate>20080101</L1StartDate>
          <L1EndDate>20080101</L1EndDate>
          <L1Hours>0</L1Hours>
          <L1Costs>4343</L1Costs>
          <L1Status>A</L1Status>
          <L1OrderType>Assigned</L1OrderType>
       </LEVEL1>
       <LEVEL2>
          <L2RecordIndicator>&lt;L2&gt;</L2RecordIndicator>
          <L1ID>35435454545</L1ID>
          <L2ID>457899</L2ID>
          <L2Desc>bbbbbbbbb</L2Desc>
          <L2StartDate>20080101</L2StartDate>
          <L2EndDate>20080101</L2EndDate>
          <L2Hours>0</L2Hours>
          <L2Costs>0</L2Costs>
          <L2OrderType>Assigned</L2OrderType>
          <L2Plant>y001</L2Plant>
          <L2Priority>3</L2Priority>
          <L2SAPStatus>a</L2SAPStatus>
          <L2CostObject/>
          <L2CostObjectDesc/>
          <L2ActStartDate>20080101</L2ActStartDate>
          <L2ActEndDate>20080101</L2ActEndDate>
          <L2AreaID>01</L2AreaID>
          <L2FuncLoc>LAR</L2FuncLoc>
          <L2FuncLocDesc>LOS ANGLES</L2FuncLocDesc>
          <L2UnitName/>
          <L2MaintCatCode/>
          <L2MiscInfo1/>
          <L2MiscInfo2/>
          <L2SAPExempt/>
          <L2ShortWorkOrderID/>
          <L2Status_AorI>1</L2Status_AorI>
          <L2LaborTaxFlag/>
          <L2EquipTaxFlag/>
          <L2MaintTaxFlag/>
       </LEVEL2>
       <LEVEL3>
          <L3RecordIndicator>&lt;L3&gt;</L3RecordIndicator>
          <L1ID>35435454545</L1ID>
          <L2ID>457899</L2ID>
          <L3ID>10</L3ID>
          <L3Desc>cccccccc</L3Desc>
          <L3PlanStartDate>20080101</L3PlanStartDate>
          <L3PlanEndDate>20080101</L3PlanEndDate>
          <L3ActStartDate>20080101</L3ActStartDate>
          <L3ActEndDate>20080101</L3ActEndDate>
          <L3OrderType>Assigned</L3OrderType>
          <L3WorkCenter>los</L3WorkCenter>
          <L3WorkAmtScheduled/>
          <L3UnitofWork/>
          <L3DurationScheduled/>
          <L3UnitofDuration/>
          <L3NoofEmp/>
       </LEVEL3>
    </ns0:TCostObject>
    The receiver file look more or less the same as sender file but with delimiter @# and the fields are different
    <L1>@#...........
    <L2>@#..........
    <L3>@#............
    <L1>@#...........
    <L2>@#..........
    <L3>@#............
    Sender file adapter content conversion:
    LEVEL1.fieldNames     LevelID,PONumber,POLineNo,ShortText,StDate,EndDate,Vendor,POValue,ExpectedValue,Plant,Status,OrderType
    LEVEL1.fieldSeparator     @!
    LEVEL1.endSeparator     'nl'
    LEVEL1.processFieldNames     fromConfiguration
    LEVEL1.keyFieldValue     LEVEL1
    LEVEL2.fieldNames     LevelID,PONumber,POLineNo,Level2ID,Level2Desc,L2StDate,L2EndDate,L2Plant,L2Priority,L2SAPStatus,L2ActStDate,L2ActEndDate,L2FuncLoc,L2FuncDesc,L2Status,L2OrderType
    LEVEL2.fieldSeparator     @!
    LEVEL2.endSeparator     'nl'
    LEVEL2.processFieldNames     fromConfiguration
    LEVEL2.keyFieldValue     LEVEL2
    LEVEL3.fieldNames LevelID,PONumber,POLineNo,Level2ID,Level3ID,Level3Desc,L3StDate,L3EndDate,L3ActStDate,L3ActEndDate,L3WorkCenter,L3OrderType
    LEVEL3.fieldSeparator     @!
    LEVEL3.endSeparator     'nl'
    LEVEL3.processFieldNames     fromConfiguration
    LEVEL3.keyFieldValue     LEVEL3
    ignoreRecordsetName     true
    Receiver Adapter content conversion:
    LEVEL1.fieldSeparator     @#
    LEVEL2.fieldSeparator     @#
    LEVEL3.fieldSeparator     @#
    LEVEL1.endSeparator     'nl'
    LEVEL2.endSeparator     'nl'
    LEVEL3.endSeparator     'nl'
    The file is not being picked up.I am sure sender file adapter is correct as I have used this for (file to soap) and the scenario works file.I am not sure of receiver file adapter,do we have to use adavanced mode in receiver file adapter?Can you guys plz help me.Let me know if you have any questions
    Thanks

    Can someone let me know what are the parameters to give in FCC receiver file adapter.
    Thanks

  • File Content Conversion : File to File Scenario

    hi all,
    I have a Input file
    It has the following structure:
    <?xml version="1.0" encoding="utf-8"?>
    <n0:rfc_proxy_message_type xmlns:n0="http://kpr.com/sample">
    <Name>abhishek</Name>
    <Age>10</Age>
    </n0:rfc_proxy_message_type>
    I use a File to File Scenario,  with Sender and receiver FTP adapters.
    I would like to convert this file at the recieveing end into a flat file  as follows:
    Name     Age
    abhishek  10
    How can I do so?
    Can anyone please help.
    Thanks,
    Best Regards
    Abhishek

    Hi,
    Your Xml file should be like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Employee_MT xmlns:ns0="http://sap.com/demo">
       <Recordset>
          <item>
             <Name>vinod</Name>
             <Id>12</Id>
             <Age>30</Age>
             <***>male</***>
          </item>
       </Recordset>
    </ns0:Employee_MT>
    In the content conversion parameters mention the following
    Document name:    Student_MT
    Document Namespace:   enter your namespace
    RecordsetName:    Recordset
    Recoedset Structure:   item,*
    item.endSeparator = 'nl'
    item.fieldSeparator= ,
    item.fieldnames= Name,Id,Age,***
    Hope this helps you.

  • File Content Conversion File-File scenario

    Dear experts,
    I have been tweaking with file to file scenario where a simple file goes in source as text delimited and comes out in target as xml.
    I know ,i finally get my scenario get working with these settings :
    ROOT.fieldSeparator ,
    ROOT.fieldNames Store_Id,TRDT,SKU,SALE_RETURN,PRICE_OVERRIDE,PROMOTION_NUMBER,PROMO_DETAIL_ID,MIX_MATCH_NUMBER,DISCOUNT_ID,QUANTITY,EXTENDED_SELLING_PRICE,EXTENDED_ORIGINAL_PRICE,DIFFERENCE_PRICE
    ROOT.fieldContentFormatting trim
    ROOT.endSeparator 'nl'
    ROOT.missingLastfields add
    ROOT.processFieldNames fromConfiguration
    ignoreRecordsetName true
    Now my question is where i can find all properties that are probable in ROOT.Other thing is  i kept on getting mapping related errors until i reached
    at this stage of properties definition.But there was no tracking as of why i got that error.The error was :
    Mapping "http://TPOCTEST_SFILE/OM_TPOCTEST" failed to execute: MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_TPOCTEST_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_TPOCTEST_T/Record. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
    I resolved once i made settings on top but this was only a hit and trial.I dont know what actually was the reason behind this error.
    I also used Test option of mapping and found things working.

    Hi Aditya,
    That error indicates that when you were facing problems with your FCC the system did not generate XML that worked with the mapping that you have OM_TPOCTEST.  The error is showing that you have a target node named Record which I'm guessing is set to 1...unbounded but your FCC did not generate XML that would map in such a manner that 1 or more nodes named Record would be created in your target message.
    Regards,
    Ryan Crosby

  • Doubt regarding file content conversion Recever File adapter.

    target structure.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
         <BUSINESS_PARTNER>
              <item>
                   <CAMPUSCODE>65</CAMPUSCODE>
                   <STUDENTNUMBER>6500000192</STUDENTNUMBER>
                   <ST_OBJID>732298498</ST_OBJID>
              </item>
         </BUSINESS_PARTNER>
    </ns1:MT_ChangeOfAddress>
    target structure is look like this.
    MT_ChangeOfAddress
         BUSINESS_PARTNER  (1,1)
              item       (0 to unbounded)
                  CAMPUSCODE (0,1)
                  STUDENTNUMBER (0,1)
                        ST_OBJID      (0,1)
    I have given below parameters in recever file adapter (file content conversion)
    Recordset Structure : item
    item.fieldNames  : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
    item.fieldSeparator: , (comma)
    i am getting first two digits in my output file: that  file has only first two digits that is : 65
    may i know how hould i define file contente conversion recever adapter to get proper data in file adapter.
    thanks,s
    Dhanush

    Hi,
    Go through these blogs:
    /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/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/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
    Thanks,
    Satya

  • Can't get File content conversion to produce CSV file

    Hi Guys
    Have no problem at all getting XML file created via an RFC
    Structure is something like this
    From MONI message monitor inbound message    payload
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <IP_CUSTOMER_HEADER>
      <CUSTOMERID>100853</CUSTOMERID>
      <COMPANY>Bram Van Tuyl Coldstore</COMPANY>
      <SHORT_NAME>VAN TUYL</SHORT_NAME>
      <STREET>Middelkampseweg 1</STREET>
    etc
    </IP_CUSTOMER_HEADER>
      </rfc:Z_XI_005_RFC>
    Receiver Grouping  payload
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <IP_CUSTOMER_HEADER>
      <CUSTOMERID>100853</CUSTOMERID>
      <COMPANY>Bram Van Tuyl Coldstore</COMPANY>
      <SHORT_NAME>VAN TUYL</SHORT_NAME>
      etc.
    With no conversion xml file is created on output directory 
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test"><customerid>100853</customerid><company>Bram Van Tuyl Coldstore</company> 
    etc
    Now trying to use File content conversion with the simplest possible conversion -- just insert a colon after all the fields in the structure.
    Following parameters
    Adapter type FILE
    receiver box checked
    Message protocol  File Content conversion
    File access etc as before
    Content conversion parameters
    Recordset :  IP_CUSTOMER_HEADER
    (have also tried Z_XI 005_RFC)
    Name
    CUSTOMERID.fieldSeparator  :        (colon)
    MONI shows message received by XI and processed correctly  but NO outfile gets written to the target directory.
    what am I doing wrong --it's probably something stupid.
    The data into XI is a ONE RECORD structure -- not a table etc.
    Cheers
    jimbo

    Hi guys -- both solutions STILL not working
    all I'm now getting is just a file with garbage in it
    Payload is fine on XI system
    Here's the payload
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Z_XI_005_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <IP_CUSTOMER_HEADER>
    - <item>
      <CUSTOMERID>65013</CUSTOMERID>
      <COMPANY>OY PANDA AB</COMPANY>
      <SHORT_NAME>PANDA</SHORT_NAME>
      <STREET>P.O.Box 3</STREET>
      <STREET2 />
      <STREET3 />
      <STREET4 />
      <POSTCODE>3331 GT</POSTCODE>
       etc etc  until end of customer mmaster details
    </item>
      </IP_CUSTOMER_HEADER>
      </rfc:Z_XI_005_RFC>
    Without conversion file is generated on target directory
    Here's the XML output file  sent to the directory
    (for testing I only usec the ist 3 fields)
    Not sure why <item>   disappeared  - maybe that has something to do with it ?
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:MT_customer_header xmlns:ns1="http://avenue.com/xi/test">
      <CustomerId>65013</CustomerId>
      <company>OY PANDA AB</company>
      <shortname>PANDA</shortname>
      </ns1:MT_customer_header>
    RFC call from R3 system  is fine (otherwise I wouldn't get the message into XI. Transaction SM58 as well on R3 shows no RFC errors
    Converted file is just a blank with nl character at the end ??????
    cheers
    jimbo

  • Problmes with file content conversion

    Hi,
    I have a working ftp file adapter. When I now try to switch this adapter to file content conversion, the adapter doesn't work. It doesn't even tries to connect to the ftp-server.
    Is it possible, that I have forget to fill out some information in the content conversion parameters or is there something wrong with the installation of the XI server?!
    We have XI 3.0 SP11
    Thank you for your help
    Thomas

    Hi Thomas,
    i saw the links about the data type into which the CSV should be converted and the parameters you have given for the content conversion.
    You have entered the following values:
    Recordset Name: set
    Recordset Structure: row,3
    Key Field Name: empty
    and the data type that you want looks like:
    <DT_INPUT>
                  <row>
                          <A></A>
                          <B></B>
                          <C></C>
                   </row>
    </DT_INPUT>
    also u have given the occurrence of recordset row as unbounded.
    For this to happen, you need to change some entries in Content Conversion Parameters, these are:
    Recordset Name: row
    Recordset Structure: row,*
    Key Field Name: row
    Moreover in your additional parameters you have given:
    row.fieldNames -
      A;B;C
    please use comma ',' as a field separator and not the semicolon ';'
    Make these changes and i hope your scenario works fine,
    thanks and regards,
    Varun Joshi

  • Receiver File content conversion with nested structure

    Hi Guys,
    I have the below nested structure and have to convert it using receiver file content conversion.
    <Header> [o, unbounded]
       <A>a</A>
       <B>b</B>
    </Header>
    <record>   [0, unbounded]
       <field1>
            <X1>x</X1>
            <Y1>y</Y1>
       </field1>
       <field2>
             <X2>x</X2>
             <Y2>y</Y2>
       </field2>
    </record>
    The file is a comma separated one. Please let me know how to configure the content conversion.
    Thanks

    Hi Mukesh,
    Have a look at the Shabz's blog for the receiver File content conversion : File Adapter (Receiver) - Are we "really" sure about the concepts?
    Thanks,
    Pooja

  • File Content conversion - IDOC to Fixed length File

    Hi,
    Scenario : SAP R/3(IDOC) -> XI -> Fixed Length file
    IDOC is sending from SAP R/3, XI has to do the mapping and send a Fixed length File to /tmp in XI.
    When I am using the message Protocol as "File" in the Receiver communication channel, XML file is writing to /tmp. When I am using "File Content Conversion" as a message protocol,Empty File is writing. Can anybody tell me why empty file is creating. Can we use File content Conversion in this scenario. Is there any additional parameter or settings required?
    Receiver communication channel settings:
    Message Protocol: File Content Conversion
    File type       : Binary
    Recordstructure : MT_V_PER01
    Name                             Value
    MT_V_PER01.fieldFixedLengths     25,35
    MT_V_PER01.fieldNames            PERSNR,NAME
    File Data Type : DT_V_PER01,
    Message type   : MT_V_PER01
    IDOC type      : WP_PER01.
    Expecting your expert advice.
    Thanks
    vineesh

    Hi Moorthy,
    I am getting success messages in Audit log as below:
    2006-09-29 12:08:53 Success Trying to put the message into the send queue.
    2006-09-29 12:08:53 Success Message successfully put into the queue.
    2006-09-29 12:08:53 Success The message was successfully retrieved from the send queue.
    2006-09-29 12:08:53 Success The message status set to DLNG.
    2006-09-29 12:08:53 Success The message was successfully transmitted to endpoint http://nslcxi08:8010/sap/xi/engine?type=entry using connection AFW.
    2006-09-29 12:08:53 Success The message status set to DLVD.
    2006-09-29 12:08:53 Success The message was successfully delivered.
    I have checked the Payload maindocument,the IDOC structure contains data.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <WP_PER01>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <IDOCTYP>WP_PER01</IDOCTYP>
      <MESTYP>WP_PER</MESTYP>
      <STDMES>WP_PER</STDMES>
      <SNDPOR>SAPLCD</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>LCDCLNT210</SNDPRN>
      <RCVPOR>LXDCLNT250</RCVPOR>
      <RCVPRT>LS</RCVPRT>
      <RCVPRN>LXDCLNT250</RCVPRN>
      </EDI_DC40>
    - <E1WPP01 SEGMENT="1">
      <PERSNR>0000100006</PERSNR>
    - <E1WPP02 SEGMENT="1">
      <NAME>Consumer</NAME>
      </E1WPP02>
      </E1WPP01>
      </IDOC>
      </WP_PER01>
    Thanks
    Vineesh

  • File Content Conversion help

    Input file is Excel file. Should I need to convert this using the File Content Conversion(File Sender), if so can anyone pls explain me how????
    thank you

    Hi,
    This Will help you,
    1) With JAVA Mapping  we can Achieve 
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    ( go thru the Below  lines  in the Blog )
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/0e3237e5875249e10000009b38f936/frameset.htm
    Page 37
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f
    /people/gregor.wolf3/blog/2006/09/01/excel-to-csv-conversion-with-a-php-web-service
    Regards
    Agasthuri Doss

  • File Content Conversion Parameters in FIle Adapter

    Hi
    I am doing a scenario - XML file to Text file using File content conversion parameters in Receiver File Adapter Channel.
    I given FCC Parameters like:
    DATA.addHeaderLine - '0'
    DATA.fieldSeparator - ,
    DATA.endSeparator - 'nl'
    But im getting error in Receiver File Adapter as - fieldSeparator not specified.
                 i would be greatful if any one help me.
    Regards
    Rajesh

    Hi Rajesh,
    There are lot of blogs which explain File Content Conversion in different scenarios:-
    /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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /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/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-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
    I hope this helps.
    Regards.
    Praveen

Maybe you are looking for