Content Conversion - Ignore extra last fields

Hi There
My content conversion has the following:
STRUCTURE.fieldNames
STRUCTURE.fieldSeparator
STRUCTURE.additionalLastFields
STRUCTURE.endSeparator
My payload has 22 fields and I only specify 20 field names in my CC.. Due to the parameter additionalLastFields, I don't get an error because of the extra 2 fields.. These field is used in the file name and not in the file itself.. But it adds it to the end of each line regardless. I suppose adding fixed Field length would solve this problem but that I don't have.
Is there a way to ignore these 2 by NOT adding it to the file? Maybe some parameter I migth have over looked?
Thanks
Jan

Hi,
Use the different structures for payload data and the fields to be used for file name.
Similar to STRUCTURE add one more structure as STRUCTURE1 and define those 2 fields over here.
The FCC parameters can also be dfefined accordingly.
STRUCTURE1.fieldNames= field1, field2
STRUCTURE1.fixedFieldLengths = 0,0
Thanks
Swarup
Edited by: Swarup Sawant on Sep 7, 2009 1:20 PM

Similar Messages

  • Reg:FCC to ignore the last field name

    Hi...
       I am using FCC in the reciver file adapter.
    the output structure is like
    94,ESSAR,,,,,,,D,0000100226,10000,12/13/1 KURLA EAST,MUMBAI,,400025,006398765432,,2009-03-24 00:00:00.0,0000100226,20202789,,,,SUCCESS,,
    /home/corpuser/Disbursement/DD
    I am achieving the above structure. But in that i dont want the last field name "/home/corpuser/Disbursement/DD".
    Can you please tell how to ignore the last field name in the receiver file adapter using FCC.
    Thanks & Regards,
    Leela

    94,ESSAR,,,,,,,D,0000100226,10000,12/13/1 KURLA EAST,MUMBAI,,400025,006398765432,,2009-03-24 00:00:00.0,0000100226,20202789,,,,SUCCESS,,
    /home/corpuser/Disbursement/DD
    I am achieving the above structure. But in that i dont want the last field name "/home/corpuser/Disbursement/DD".
    Can you please tell how to ignore the last field name in the receiver file adapter using FCC.
    Completely with Jai on that.
    Dont do that mapping itself. Handle such conditions in your mapping.
    Is there any specific reason why you can do so?

  • File Content Conversion ignore fields

    HI ,
    I need to ignore some rows in the middle of the data in File content conversion for exaple
    H1,Field1,Field2,Field3
    A,GB07,MICHEL,1000
    H2,Field3,Field4,Field5
    B,GB08,andrew,2000
    The above is the sample text file from the source , I need to parse in the below
    RECORDset1
    <Field1>A</Field1>
    <Field2>MICHEL</Field2>
    <Field3>100</Field4>
    RecrodSet2
    <Field4>A</Field4>
    <Field5>andrew</Field5>
    <Field6>200</Field6>
    I need to omit or ignore the H1 and H2 rows from the File Content conversion.,
    Please guide me how to achive this using File Content conversion

    Hi Krishna,
    In case if H1 and H2 is your record type or line type then to ignore line for this type... just do not handle "keyFieldValue" in the content conversion for H1 and H2 record type.
    Thanks,
    Binod

  • File Adapter - File Content Conversion to XML last element missing

    I'm using the SAP File Adapter with File Content Conversion to convert | (pipe) delimited records into XML.
    When the last field is blank, I would expect that an empty node gets created, however, the node doesn't get created at all.
    For example given these settings...
    Record.fieldSeparator = |
    Record.endSeparator = 'nl'
    Record.fieldNames = FIELD1,FIELD2,FIELD3
    Using this three record file as my data...
    |123|XYZ
    ABC||XYZ
    ABC|123|
    When converted to XML, this is what the recordset XML structure looks like...
    <Recordset>
    <Record>
    <FIELD1 />
    <FIELD2>123</FIELD2>
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2 />
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2>123</FIELD2>
    </Record>
    </Recordset>
    Notice that the last record is missing the "FIELD3" element.
    Edited by: William Krick on Jun 17, 2011 4:49 PM

    Giuseppe Agnello wrote:
    > Sorry, there was a typo in the parameter name.
    > Word fields should start with capital F.
    > Try with Record.missingLastFields, with value "add"
    >
    > http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    >
    > Similar issue was resolved with same parameter in this thread:
    > Sender file adapter with FCC not creating last field
    That did the trick.  It was a typo.  Thanks Giuseppe.
    I'm willing to bet that this parameter was added to fix the parsing bug without breaking existing users that had already worked around the original bug.   You shouldn't really have to special case the last field.

  • Content Conversion - Ignore Fields

    Hi,
    Is it possible to ignore fields when converting from XML to a flat file ? For example if my input XML is:
    <RecordSet>
    <Record>
       <f1>a</f1>
       <f2>b</f1>
        <f3>c</f1>
    </Record>
    <Record>
       <f1>d</f1>
       <f2>e</f1>
       <f3>f</f1>
    </Record>
    </RecordSet>
    Is it possible to produce an output file of:
    a,b
    d,e
    ...where f3 is ignored.
    Cheers,
    PaulC.
    Edited by: paul clements on Aug 23, 2011 3:21 PM
    Edited by: paul clements on Aug 23, 2011 3:22 PM

    hi,
    then move the extra field in a separate node/substructure  and dont mention that node in recordset structure in FCC parameter.
    Mention those substructure which you want to see in target file. Other substructuure will be ignored.
    Under Recordset Structure, enter the substructures using the pattern NameA,NameB,....
    If you want to convert all substructures using the same parameters, you only have to specify one structure. The entries are automatically applied to all substructures.
    If you specify more than one structure, the list must contain all the structures occurring in the document. The list must be complete, otherwise a processing error will be triggered at runtime.

  • Sender File Adapter and content conversion

    Hi,
    How can we remove the last line from the file using content conversion?
    The last line should not be read from the input file.
    Like for the first line we can use Document Offset .......similarly do we have any option for the last line?

    >
    neelansha singh wrote:
    > date                       Empno         Empname
    > 19.03.2009            12345            Neel
    > 20.03.2009             34566           Neelkanth
    > EmpDes                 Japan        100
    >
    >
    > The file is like this first row i have removed using document offset.......from 2nd row till nth row the structure is as shown above and the last row has no. of fields 1 less than all other rows and also its root node is different like shown above its rootnode is EmpDes..........How to use File content conversion for this?
    do you want to avoid the last line i.e
    EmpDes                 Japan        100
    in that case the 3 options are
    1. use a adapter module and remove the last line - this is the ideal option
    2. use a OS script - will work but only if you are using the NFS option in the file adapter instead of FTP
    3. read that also using content conversion (treat it as a trailer) and ignore it during the mapping

  • File Content Conversion - Error in keyfield Value

    Hello experts,
    I am doing file content conversion for a file to file scenario. The input file is a csv file which is converted to xml using the file content conversion. The key field of input file is used for implementing conversion.
    While testing the FCC, I noticed that if the keyfield value is wrong for a record in the file, the record is ignored altogether without throwing any errors or warnings. Is there any way to notify if any records have been ignored as a result of incorrect keyfield value??
    Thanks in advance!
    RR

    There seems to be NO way to handle it in FCC.
    File Content Conversion - Key Field Value
    u can think of work arounds by handling it in mapping....
    -santosh.

  • Simple content conversion

    Experts,
    I have RFC to File scenario where RFC is sending one table parameter. Table is sent in the below format (note the <item> tag that is inserted when the table is converted into xml by the RFC sender adapter)
    <rfc:Z_SEND_PAY xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    <ZPOSPAY>
        <item>
           <ZBUKR>1000</ZBUKR>
           <HBKID>CHASE</HBKID>
           <HKTID>12345</HKTID>
        </item>
        <item>
           <ZBUKR>2000</ZBUKR>
           <HBKID>BofA</HBKID>
           <HKTID>67890</HKTID>
        </item>
    </ZPOSPAY>
    </rfc:Z_SEND_PAY>
    On the receiver side, I want to do a simple content conversion so that all fields are displayed in csv format. Can I do this without having to do a mapping to remove the <ZPOSPAY> tag that prevents using the same message interface as above at the receiver end? In other words can the <ZPOSPAY> tag be supressed at the communication channel so that the message is recognized as <root><item>...</item><item>...</item></root> as the required format for content conversion. Note that if I could do this in the ID, I have no development in the IR as the message structure is imported RFC and used as both sender and receiver interface.
    Thanks
    JB

    Hi JB,
    Try with the following content conversion parameters in the receiver file adapter:
    Recordset Structure : item
    item.fieldSeparator   : ,
    item.endSeparator   : 'nl'
    Regards,
    XI Developer.

  • Ignore fields in File Content Conversion

    Hi all,
    I need to read first 9 fields in Content conversion from text file and ignore all the others.The problem is I don't know exactly the number of fields(it varies from file to file).
    I try to use the following in my content conversion:
    item.fieldSeparator = ;
    item.fieldNames = "Names of item fields"
    item.lastFieldsOptional = NO
    ignoreRecordSetName = true
    Now it works with files with 9 fields,but doesn't with more than 9...
    I tried with item.lastFieldsOptional = YES as well but it didn't help...
    Anyone any suggestions?
    Thanks in advance

    The problem is I don't know exactly the number of fields(it varies from file to file).
    >>>> then how do you write your FCC ? because the mandatory parameters fieldFixedLengths or fieldSeparator and the fieldNames will expect a defined set of values and not dynamic.maybe you can read the file record row kind and then  extract the fields u need.
    item.lastFieldsOptional
    >>>
    this is to ignore only the last field.
    <i>xml.lastFieldsOptional=YES|NO
    This parameter specifies whether the last fields can be omitted (YES) or not (NO) in a CSV structure. If you do not make a specification, the default value is NO.</i>

  • File Sender, Content Conversion - how to define variable length last field?

    XI 3.0 SP17
    With a File Sender communication channel, that uses Content Conversion - how do I define a 'variable length' last field?
    The scenario - the input file has four fields, of which the first three are a known fixed length, and the last (fourth, trailing) field is variable in length.
    Using a Message Protocol of 'File Content Conversion', how do I define that last variable length field (field name 'WOData' below) in the Content Conversion Parameters section?
    My current parameters are:
    Recordset Structure  -  Row,*
    ignoreRecordsetName  -  true
    Row.fieldFixedLengths  -  1,12,5,99999
    Row.fieldNames  -  WOType,WONum,WOLine,WOData
    I've tried the following for 'Row.fieldFixedLengths' to no avail -
    '1,12,5,*'
    '1,12,5,0'
    '1,12,5,'
    '1,12,5'
    The last two were grasping at straws )
    The only thing I've got to work is specifying a 'large' value for the final field (99999 above).
    In addition, does anyone know if specifying a large value (e.g. 99999) for the final trailing field will give rise to performance issues when the file is being processed?
    In the help for "Converting File Content in a Sender Adapter", it states -
    <Begin Quote>
    NameA.fieldFixedLengths
    If you make a specification here, the system expects a character string that contains the lengths of the structure columns as arguments separated by commas.
    If you also specify a separator for the columns, you must not add its length to the length of the columns.
    This entry is mandatory if you have not made an entry for NameA.fieldSeparator.
    <End Quote>
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

    << note that fieldFixedLengths will not take any wildcard entries like *. So in these case it is ideal to provide a maximum char length.  But note that while the file is being created that many spaces will be created in your file !!! >>
    Hi Shabarish,
    Yes, no wildcard is the conclusion I came to, hence my maximum )
    The message size did not increase by any 'blank padding'.  When I look in [Message Display Tool (Detail Display)] 'Audit Log for Message: X'  -
    2006-10-17 18:22:42 Success Channel X: Entire file content converted to XML format
    2006-10-17 18:22:42 Success Send binary file  "X" from FTP server "X", size 103290 bytes with QoS EO
    2006-10-17 18:22:42 Success Application attempting to send an XI message asynchronously using connection AFW.
    2006-10-17 18:22:42 Success Trying to put the message into the send queue.
    2006-10-17 18:22:42 Success Message successfully put into the queue.
    2006-10-17 18:22:42 Success The application sent the message asynchronously using connection AFW. Returning to application.
    The input flat file in non-XML format was 92,132 bytes and the message payload into XI was 103,290 bytes.
    My understanding is that trailing spaces are stripped from XML nodes.

  • Last field not shown in MONI if its empty during content conversion-urgent

    Hi All,
            I have my input structure like
       <RECORDSET>
          <EMPLOYEE>
             <FIRSTNAME>
             <LASTNAME>
             <PHONENUMBER>
          </EMPLOYEE>
       </RECORDSET>
           I have given my sender Conversion parameters like
       Employee.fieldSeparator=*
       Employee.endSeparator='nl'
       Employee.fieldNames=FIRSTNAME,LASTNAME,PHONENUMBER
    It is working fine.But if the value is empty for any of the field it is showing up with empty tag in MONI but for the Last field i.e.,PHONENUMBER if the value is empty the tag is not being shown in MONI. Please help me in this issue.It is very urgent.

    Hi Dinakar,
    I haven't tried but u can check these parameters and give it a try
    <b>NameA.missingLastfields</b>
    If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:
    &#9675;       ignore
    Outbound structure only contains the fields in the inbound structure
    &#9675;       add
    Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.
    &#9675;       error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    &#9679; <b>     NameA.additionalLastFields</b>
    If the inbound structure has more fields than specified in the configuration then the XML outbound structure is created as follows:
    &#9675;       ignore
    Outbound structure only contains the fields in the inbound structure
    &#9675;       error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    The default value is ignore. If you have defined the NameA.fieldFixedLengths parameter, the default value is error.
    <b>NameA.lastFieldsOptional</b> (obsolete)
    You use this parameter to specify whether the last fields can be omitted (YES) or not (NO) in a comma-separated structure.
    If you do not make an entry, the default value is NO.
    Check for details:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    Sachin

  • Ignore field in file content conversion

    Hello,
    I have scenario from RFC to CSV file
    The RFC Structure is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Z_PORTAL_PRICING_PURCH_PRICE xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    <LAND>NL</LAND>
    - <PURCH_PRICE>
    - <item>
    <MATNR>000000073280004000</MATNR>
    <NETPR>4500.00</NETPR>
    <PEINH>1</PEINH>
    <MEINS>EA</MEINS>
    <WAERS>EUR</WAERS>
    </item>
    - <item>
    <MATNR>000000073280004600</MATNR>
    <NETPR>70.00</NETPR>
    <PEINH>1</PEINH>
    <MEINS>EA</MEINS>
    <WAERS>EUR</WAERS>
    </item>
    - <item>
    <MATNR>000000073280004700</MATNR>
    <NETPR>140.00</NETPR>
    <PEINH>1</PEINH>
    <MEINS>EA</MEINS>
    <WAERS>EUR</WAERS>
    </item>
    - <item>
    <MATNR>000000073280004750</MATNR>
    <NETPR>4750.00</NETPR>
    <PEINH>1</PEINH>
    <MEINS>EA</MEINS>
    <WAERS>EUR</WAERS>
    </item>
    </PURCH_PRICE>
    </rfc:Z_PORTAL_PRICING_PURCH_PRICE>
    I want to create file like this:
    000000073280004000,4500.00,1,EA,EUR
    000000073280004600,70.00,1EA,EUR
    000000073280004700,140.00,1,EA,EUR
    000000073280004750,4750,1,EA,EUR
    How can I ignore from the field "LAND"?
    How can I return the items?
    Thank you
    Elad

    Hi!
    Then your target structure may have a "cardinality" of "1...1". That is regardless of the amount of elements in your source structure the target structure only contains one element/record.
    What you need is "0.. n" or "1...n"
    Change your Datatype and/or mapping and it will work.
    Hope this helps!
    Regards,
    Volker

  • Sender file adapter dropping last column during content conversion

    I am trying to process a flat file with pipe delimited data, but when the last column of the file is empty the file adapter ignores the column, causing issues with the subsequent mapping program.  For example, if the file contains the following data..
    1||three|
    ... the converted content produced is...
       <column1>1<column1>
       <column2/>
       <column3>three</column3>
    My mapping is expecting that <column4/> also be delivered in order to function properly.  The fields are all defined in record.fieldNames, and if there is any data present following the third pipe it is assigned correctly to the column4 element.  I have also experimented with setting missingLastFields to "add", and tried explicitly specifying endFieldSeparator to 'nl' with no success.
    Is there anyway to control this behavior in the communication channel, or is my only option to to account for it within the mapping by using mapWithDefault function for every field that appears at the end of a record?

    Nataliya,
    Ensuring that the element is populated during the mapping appears to be the only way to account for this.  Therefore, whenever mapping the last column of a record set, I just made sure to use the MapWithDefault function in case the last field of the record is empty.  It's a little extra manual effort, but it appears to be working fine so far.  I was hoping for a better answer myself.

  • Error in Sender File content Conversion - how to ignore keyfieldName

    Dear Frndz,
    I'm new to SAP PI. I want to post a flat file to ECC.
    The Souce Structure is:
      Record(1-unbounded)
        |_Header(1.1)
              field1
              field2
              field3
        |_Detail(1.unbounded0
            field4
            field5
            field6
    Sample File:
    first header - xx,yy,zz
    Detail 1 -      1,b,c
    Detail 2  -     2,e,f
    second header - aa,bb,cc
    Detail 1 -     1,g,d
    I wrote the file content conversion as follows
       Recordset name - Record
       Recordset Structure - Header,1,Detail,*
    Header.fieldNames  field1,field2,field3
    Header.feldseparator  ,
    Header.endseparator  'nl'
    Detail.fieldNames  field4,field5,field6
    Detail.fieldseparator  ,
    Detail.endseparator  'nl'
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
    It's asking me to give the input to keyfieldname. But I dont have such field in my record. Ther's no common field . no field is repeating like record type or doc_type as in other cases.
    So, Coud you please guide me to proceed with this.
    Thanks in advance.....

    Hi,
    Please, take a look to these Blogs related to FCC
    Troubleshooting the File Adapter (Last Updated on 02 July'10)
    Content Conversion (Pattern/Random content in input file)
    File Content Conversion for Unequal Number of Columns
    The specified item was not found.
    Content Conversion ( The Key Field Problem )
    NAB the TAB (File Adapter)
    Rgds
    RP-.

  • File Content Conversion - Key Field Value

    Hi Experts,
    I am using File to Idoc scenario for my mapping. In the receiver Communication channel, I am using File Content Conversion. My scenario is as follows :
    I have a recordset with Header and Line items with Key Field Indicator as 'H' and 'L'. In some cases, the value for this Key Field is coming in as something other than 'H' and 'L'. I need to throw an exception when this Key Field is not 'H' or 'L'.
    In the 'Content Conversion' tab, my attributes are as:
    Header_Structure.keyFieldValue = 'H' and Line_Structure.keyFieldValue = 'L'. Is there any more attributes that I need to add ?
    Please advise. Thanks a lot.
    Regards,
    Freddy.

    >>multiple key field values in FCC configuration i.e Line_Structure.keyFieldValue = H or L
    AFAIK it is not possible but lets wait for other experts to comment on this...
    >>Can keyFieldInStructure (add, ignore) parameter help me in this case ?
    No. this parameter is only used when you want to include key filed in ur XML structure(add) or not (ignore)...
    Chk this:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

Maybe you are looking for

  • I can't save dictionary to my iPad

    Every time when I want to look up a word in iBook, there is only New Oxford American dictionary works. After downloaded other dictionaries they can also work.But if I close the iBook or power off iPad then re-open iBook, these dictionaries I have dow

  • Error:  FF805 Tax statement item missing for tax code O0

    Hi Gurus We are working in Upgrade Project 4.6C to ECC 6 We are getting an error when releasing billing document  to accounting in ECC 6 System.     Error:  FF805 Tax statement item missing for tax code O0     No tax item exists for tax code O0 in a

  • Can't get vsftpd working

    i can't seem to get my vsftpd setup working.  I want to allow logging in anonymous so that pacman can use it becuase i setup a small local mirror so that my two desktop, my laptop and my brother's laptop could use within my local network.  I'm runnin

  • Verizon Support Gave Up, USB760

    I at first had a UM175 Mobile Broadband USB device, this worked property on my laptop and desktop computers. Then, someone stole my laptop and the UM175 device. I didn't have much money, so I replaced it with a USB760. What happens is that the device

  • DataGrid Header Problem

    Dear All, I have some problem with accessing DataGrid HeaderText, When one column is visable false. "Click on column content and the code will show col # and header name. Do the same After Hide Colun  is clicked" Please check the following code <?xml