Required help for Identifying diff. items in file content conversion.

Hi All,
I've to use a file content conversion parameters for a .txt file in which there are two objects. One is a header and the other is a item detail.
How do we get or mark the difference between both so that XI recognizes the particular line is a Header and the other is a Item detail
Thanks in Advance.
Regards,
Sree.

Hi
Make use of a field which is common to header and item line which will always hold different values for header and item. Or otherwise if possible, add an extra field in the header and item lines, say 'Key' and use it in the 'Key Field Name' parameter in the adapter configuration. See this for details - [File Content Conversion for Complex Structures|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/].
Regards,
Riyaz

Similar Messages

  • Sender Adapter File Content Conversion - question

    Hi!
    Could you help me to make xml-file from csv?
    I have file like:
    12345#254#9765#89654
    55#9066#77127#47
    And i need file like:
    <dealings>
            <deal>
                    <field1>12345</field1>
                    <field2>254</field2>
                    <field3>9765</field3>
                    <field4>89654</field4>
            </deal>
            <deal>
                    <field1>55</field1>
                    <field2>9066</field2>
                    <field3>77127</field3>
                    <field4>47</field4>
            </deal>
    </dealings>
    I haven't key fields - all fields are accidental. And lengths of all fields are accidental.
    How to put content conversion parameters?
    Thank you.

    HI
    File Content prameters for the Sender Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    File content conversion sites
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    File Content Conversion for Unequal Number of Columns
    File Content Conversion for Unequal Number of Columns - FCC
    Content Conversion (Pattern/Random content in input file)
    Content Conversion (Pattern/Random content in input file) - FCC
    XI Configuration for MDM Integration - Sample Scenario - FCC - MDM
    XI in the role of a FTP
    XI in the role of a FTP
    File content conversion sites
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    File Receiver with Content Conversion
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    NAB the TAB (File Adapter)
    File Content Conversion for Unequal Number of Columns
    Content Conversion ( The Key Field Problem )
    The specified item was not found.
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    The specified item was not found. - FCC
    cheers

  • Purpose of message protocol file and file content conversion

    hi
       i am currently working in idoc to file scenario, 
          In what cases we will go file and file content conversion in message protocol for file adapter.
    can anyone specify the real significance of it? bcoz this may help me and continue my scenario in its suitable path.
    Regards
    Saravanakumar PK

    Hi,
    In XI (internal) all XML message are based on the XI Message Protocol.
    See: http://help.sap.com/saphelp_nw70/helpdata/en/b6/0b733cb7d61952e10000000a11405a/frameset.htm
    XI Protocol is nothing but an SAP XI extension of SOAP protocol and SOAP protocol is nothing but a SOAP request in a HTTP protocol. SOAP request is nothing but SOAP extension of an XML message. Hence finally it drill downs to the fact that XI message is in fact an XML message with some extra information in the header which are SAP specific like the SAP Runtime, SAP Hoplist, etc...
    File Content Conversion
    Integration Engine understands only XML messages.Now if u r handling normal text file such as 'tab separated' file,'# separated' file, or a CSV file, you need to convert the content of the file to XML and File Content Conversion mechanism helps to do this job.This File Content conversion mechanism(option)is present with the File Adapters.both Sender and Receiver.
    How to do FCC:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /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/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/2006/04/03/xi-in-the-role-of-a-ftp
    Thanks
    Swarup

  • Help required File Content Conversion.

    Hi All,
    Kindly help me in this topic i.e. File Content Conversion.
    -  What is File Content Conversion?
    -  Is knowledge of any programming language required?
    -  What is its function?
    -  How do I use it?
    Thanks in Advance.
    Regards,
    Sreedhar, Av

    Hi Sreedhar,
    Reward points if this helps
    What is File Content Conversion?
    File content conversion is used for converting flat files (fixed lenght, comma seperated) into XML messages for further processing by an integration engine. The internal XI processing (mapping, routing etc) is based on XML messages hence you need messages to be converted to XML.
    SAP By default understands xml data structure. If your file is coming in an xml format you can process it as it is.
    In case of file that is coming with a delimiter then you need to have File content conversion for SAP adpater to conver file into an XML structure which will then go to next step of Message Mapping.
    Is knowledge of any programming language required?
    No
    What is its function?
    Check these blogs for content conversion,
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    *How do I use it? *
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Reward points if this helps
    Regards
    Pragathi.

  • Required help for a query

    Hi All....
    Required help for one more query.
    I have a table with data like this:
    Cust_id Transaction_no
    111 1
    111 2
    111 3
    111 4
    111 5
    111 6
    222 7
    222 8
    333 9
    333 10
    333 11
    333 12
    I wrote the following query :
    select cust_id, ntile(3) over (order by cust_id) "Bucket" from trans_detls
    The output is like this :
    Cust_id Bucket
    111 1
    111 1
    111 1
    111 1
    111 2
    111 2
    222 2
    222 2
    333 3
    333 3
    333 3
    333 3
    The problem is that I dont want the cust_id to overlap in buckets. That is one cust_id should be present in only one bucket.
    Is this possible?
    Thanks in advance.
    Ameya

    Or Something like..
    SQL> select * from test;
            ID         NO
           111          1
           111          2
           111          3
           111          4
           111          5
           111          6
           222          7
           222          8
           333          9
           333         10
           333         11
           333         12
    12 rows selected.
    SQL> select id, ntile(3) over (order by rn) "Bucket"
      2  from(
      3      select id,row_number() over(partition by id order by no) rn
      4      from test);
            ID     Bucket
           111          1
           222          1
           333          1
           111          1
           222          2
           333          2
           111          2
           333          2
           111          3
           333          3
           111          3
           111          3
    12 rows selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem with file content conversion for multiple substrcture. Please help!

    Hi Experts,
       I am using file content conversion in file sender communication channel. The input file is a flat file with data like this:
       A01 AA8I0NBVDA      20090704     84900
       A02 AA8I0NBVDA      20090704     84900
       A03 AA8I0NBVDA      20090704     84900
       I want the data in sender side after content conversion to be like this:
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
    </ns:Receive_Schedules>
    I have tried many options in file content conversion but getting the data like this:
    <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
           <ScheduleData>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
           <ScheduleData>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Document Name     Receive_Schedules
    Document namespace     http://mynamespace
    Document Offset     <no value>
    Recordset Name     <no value>
    Recordset namespace     <no value>
    Recordset structure     ScheduleData,*
    Recordset sequence     Ascending
    Recordsets per message     1
    Key field Name     <no value>
    Key Field Type     String
    ignoreRecordsetName     true
    ScheduleData.endSeparator     'nl'
    ScheduleData.fieldNames              line
    ScheduleData.fieldSeparator     'nl'
    How to get the desired message? What changes I need to do in content conversion settings? Please help!
    thanks
    Gopal
    Edited by: GOPAL BALIGA on Jul 1, 2009 12:11 PM

    Hi Ranjan,
      My structure is like what you ahve defined.
      scheduledata...1.1
    ...line....0...Unbound
      I also tried the parameters you gave but still getting the same.
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
    <ScheduleData>
    <line>A01 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A02 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A03 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Recordset structure ScheduleData,*   -
    > Is the value correct?
    Recordset sequence Ascending  -
    > Is the value correct?
    Recordsets per message 1  -
    > Is the value correct?
    ignoreRecordsetName true
    ScheduleData.fieldSeparator nl
    ScheduleData.fieldNames line
    ScheduleData.endSeparator nl
    Edited by: GOPAL BALIGA on Jul 2, 2009 5:28 AM

  • Need Help in Sender File Content Conversion

    Hi All,
    I request your expert advice on Sender File content Conversion. I need to process the below pasted file. I was able to achieve this by keeping a offset of 6 in Sender PI File Adapter (PI 7.1) to ignore first 6 lines and used a Unix script to remove last line"END OF REPORT".
    Now my new requirement is I need to capture the date "DECEMBER 2009" from line 3. How can I do this. I have set offset as 6 so Adapter will start processing from line 7. If I don't set offset Interface fails. Please suggest. Thank you.
    ABC LAB            XYZ LIMITED"
                       TRIAL BALANCE"
                       FOR THE PERIOD ENDED DECEMBER 2009"
    "TEST Bank","101000",-1589365.58,0.00,738295.08,0.00
    "TEST Bank Clearing A/c","101200",0.00,0.00,14848018.55,0.00
    "TEST Bank Sweeps","101250",104315957.19,0.00,7571985482.08,0.00
    "TEST Receipts","101260",0.00,0.00,19788596.15,0.00
    "TEST Corporate Deposits","101270",-7776629.87,0.00,-135914980.50,0.00
    "SHARES","00SH",0.00,0.00,-7869890086.22,0.00
    "END OF REPORT"

    Dear Phani,
    Please go through the below blogs:
    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
    Please see the below links for file content conversion..
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    File Content Conversion for Unequal Number of Columns
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    Thanks,
    Satya

  • File Content Conversion for Multi Hierarchical Structure for Sender Adapter

    Hi Gurus,
    My text file is coming as
    Header,filed1,field2(Occurrence=1)
    Content,field3,field4(Occurrence =1-Unbounded)
    Detail,field4,field5(Occurrence = 1-unbounded)
    Trailer,fieldN(Occurrence=1)
    My requirement is to write a file content conversion, so that, in the resultant XML Structure the Detail will come under Content.
    I have defined the  Record Set Structure as
    Header,1,Content,*,Detail,*,Trailer,1
    But after FCC, the Detailed record is coming in the same level as the Content Record. But the business requires that, the Detailed Record should come under Content Record, so that they can correlate.
    Could any one advise?
    Regards,
    SS
    Edited by: Subhendu Sahu on Jun 17, 2011 4:43 PM

    Hi,
    Please use the below parameters -
    ○       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.
    NameA.keyFieldInStructure
    ■       If the key field of the substructure is to be added to the XML document, enter add. This is the default.
    ■       If the key field is to be ignored, enter ignore.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/frameset.htm
    cheers,
    Sunil

  • 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

  • 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

  • Unequal Number of rows for File Content Conversion

    hi xi friends,
    in my idoc to file ..
    please help me in content conversion parameter for unequal number of rows .
    the message type for external system..
    root
    row1
        f1
        f2
        f3
    row2
        f4
        f5
    row3
        f6
    if i send idoc with data for all three rows
    the resultant txt file
    f1-valuef2-value f3-value
    f4-valuef5-value
    if i send idoc with data for row1 and row3
    the resultant txt file
      f1-valuef2-value f3-value
      f6-value
    if i send data for row2 and row3
    the resultant txt file
       f4valuef-5vaue
       f6-value
    in static message mapping ,i eleminated the rows which are not getting the data from idoc
    eg:if the data for row2 does not exist ,then i elimated in message mapping.
    all the fileds are fixed lenths like f1 3char and f2 8char etc..
    and i dont require header names.
    please guide me how to declare in Content Conversion for this unequal number of rows of fixed lenth columns.
    regards
    Munna

    Hi Jai,
    Thanks alot for your responses..
    message mapping look like this,
    IDoc-------------------root
    segment1--------------     row1
      f1------------------- f1
      f2------------------- f2
      f3------------------- f3
    segment2--------------row2
      f4------------------- f4
      f5------------------- f5
    segment3--------------row3
      f6------------------- f6
    (actually the idoc contains no of segments..i provided sample one above)
    test data for f1=1111 f2=AAA f3=ccccc f4=222 f5=BB f6=33
    all fields are fixed lenths
    if idoc contains all three segments data
    then reultant .txt file should be
    1111AAAccccc
    222BB
    33
    if idoc contains segment1 and segment3 data
    then reultant .txt file should be
    1111AAAccccc
    33
    if idoc contains segment2 and segment3 data
    then reultant .txt file should be
    222BB
    33
    in message mapping I eleminated the target message type segments
    if that idoc doent contain data.eg:if the idoc doent contain data for segment2,
    i eleminated in message mapping.
    please guide me how to declare File content conversion parameters for this unequal number of rows
    of rows.
    regards
    Munna

  • "Alerts" & "File Content Conversion"  required

    Hi, can any one mail me the
    1) Alerts (trouble shooting guide)
    2) File Content Conversion document please.
    [email protected]
    regards,
    satish.

    Hi Satish
    have a look on theses URL's
    refer these link for more details about Alert
    For email alerts
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    /people/sap.user72/blog/2005/01/14/alert-management--improving-monitoring-of-your-landscape
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    You have to do SMTP Configuration for EMail and SMS.....
    http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    Alerts
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-stepCheck out these:
    RWB- Alert Configuration LInk isnot working
    Unable to login into Alert configuration
    Get all the details here
    CCMS ALERTS
    /people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
    /people/sap.user72/blog/2005/12/05/xi-grmg-customizing-for-xi-ccms-heartbeat-monitoring-part-ii
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    Alerts
    transaction handling in XI
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    • Auto triggering of alerts
    transaction handling in XI
    • SCOT
    not sending email from alert inbox
    See this link : http://help.sap.com/saphelp_nw70/helpdata/en/da/a3a7408f031414e10000000a1550b0/frameset.htm
    heck this weblogs on creating them and troubleshooting:
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9418d690-0201-0010-85bb-e9b2c1af895b
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    Further reference
    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
    Also suggested go through the blog:Alerts with variables from the messages payload
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    /people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    /people/matt.kangas/blog/2006/06/27/personalized-alert-delivery
    U may proceed in the following ways:
    1. Reduce the securit settings of ur browser and enable the cookies
    2. Try to SSO enable ur scenario
    Have a look here:
    SAP Note 840849
    The configuration required as per ur patch level
    SAP Note 913858
    Check out these:
    RWB- Alert Configuration LInk isnot working
    Unable to login into Alert configuration
    Thanks!!

  • 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

  • File  Content  Conversion for ignoring the entire line

    Hi,
       I'm getting a CSV file from that i want to skip some  records based on some validation.. for example:
    I'm getting the following  data :
    EmpNo                   EmpName                   EmpDept
    E101                       ABC                               ABAP
    E102                       XYZ                                BW
    E103                       GFC                               XI
    E104                       BVM                               ABAP
    E105                       ASD                               BW
    E106                       YFC                                XI
    SO, here  where ever i'm getting  EmpDept = XI  .. i want to skip those all the  records( that entire line  i want to skip).. .. this can be possible through Message Mapping.. but i wnat to do this in the File Content Conversion..  how can we do this..
    any  helpful answers   will  appriciated..
    Thanks
    babu

    Hi,
    FCC is used to generate the XML structure so that XI can understood properly. You can not do any kind of validations or Skip the records based on Element value condition in FCC.
    There are scenarios where you want to skip the lines that time you can use the below option in FCC but this is again not based on condition.
    Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.
    The best way to do is use the UDF:
    Write an UDF on target root node.
    take input in one context:
    input a= Emp Dept:
    for(i=o,i<a.length;i++)
      if(a{i}.equals("X"))
       result.addValue(SUPPRESS); this will supress the target root node if condition is equal to X
      else
      result.addValue("Constant"); this will generate the target root node.
    Thnx
    Chirag

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

Maybe you are looking for

  • Does anyone know how to remove books/ePub files from iTunes

    Hi. I need help. I read a lot of book from my iPad. I have no problem gelting my books from iTunes to iPad. Problem is, now there is lot lot of books in iTunes, and tis difficult to figure out which i havnet read. So how do i remove them from iTunes.

  • How much better is the new Graphic Card?

    How much better is the new graphic card compared to the X1600 256mb in the older 2.33 Core 2 duo's? Im a gamer and was wondering if there is gonna be a big difference or just a small difference?

  • Grn print

    Dear Gurus, GRN print is activated for mvt type 101,103, & 105. Now i want it to activate for 511. How to do it, pls help. In OMJJ i have selected 1-material document for mvt  type 511 in print tab. Regards, kumar

  • Want code for reset

    Hello Gurus.. I have a page that has the Create button and Reset button...I want to reset the values of my fields and i want to write a code for it.So please help with the code....

  • Itunes is not recognizing my new iphone as a device

    I got the 4S, and before I synced that, I synced my old phone to the computer to back it up, and now when I plug the new phone in, Itunes does not recognize it, and am unable to restore my data to the new phone? Can any one help