Content conversion without delimiter and key fields

I am pretty new to XI, so it has been very challenging till now... (and someway I want to keep it that way) But this problem has kept me awake a couple of nights, so I will unleash it to the XI experts at SDN!
I have to read a legacy file (customers are ordering stuff) with the following content into XI. I finally found out you can use file content conversion to do the job, but I have only seen scenarios where people can use delimiters or key fields so far. I suppose XI can do this job as good as the others, but the question is how it has to be done! :-s
Do I have to use key fields? Or can I simply state there will be 1 header line, X order lines, 1 EOF line?
Sample content:
100207.310551
0107299700001
0108658400001
0109575600001
1200276500001
0109745600001
9999999999999
Header line containing the customer (100207) and the ticket number (300551) separated by a dot.
In this case 5 order lines containing material (8 digits, ex 01072997) and quantity (5 digits, ex 00001)
Line containing only 9's to indicate the end of the file has been reached.
Thanks in advance!
Sven

Hi Sven,
This FCC might help u..If your structure like ...
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:bestin xmlns:ns0="http://test.com">
<recordset>
<header>
<client>100207</client>
<ticket>310551</ticket>
</header>
<item>
<material>01072997</material>
<quantity>00001</quantity>
</item>
<item>
<material>01086584</material>
<quantity>00001</quantity>
</item>
<item>
<material>01095756</material>
<quantity>00001</quantity>
</item>
<item>
<material>12002765</material>
<quantity>00001</quantity>
</item>
<item>
<material>01097456</material>
<quantity>00001</quantity>
</item>
</recordset>
</ns0:bestin>
then
RecordStructure----header,item
otherwise
RecordStructure----client,ticket,item
client.fieldFixedLengths----give length of client
ticket.fieldFixedLengths----
item.fieldFixedLengths----
client.fixedLengthTooShortHandling--Cut
ticket........same
item.....
client.addHeaderLine--0
ticket........same
item.....
recordsetStructureOrder---var
Cheers!
Samarjit
Message was edited by:
        Samarjit Dey

Similar Messages

  • File content conversion Receiver with no key fields

    hi all,
              I have a header structure with four fields all varying and also  item structure with varying fields .. how do i go about to solve this .. as the regular Content Conversion uses key fields.. but there are no such key fields here... kindly help in this regard to proceed

    If you dont have a key field, then the only option to read the file and convert it to XML would be in a record row format.
    Here each line will go as one field in the XML. You will have to use some logic in your mapping to extract the right field.
    Ref: /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    but in case your is a receiver File adapter then key fields are not required.
    ref: /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

  • Data fields and key fields

    Hi,
    Data fields and key fields are same as Characteristcs and key figures? Or they are diffrerent?
    Thanks,
    Radha

    HI
    Key Fields =  Acts as Primary Key for The ODS like Primary of Tables in R3.
    Data fields =  Apart from Key fields We consider rest as data fields.
    Ususally we use Characteristic info Objects and Dates in Key Fields and Key figures in Data fields.
    It's decisive factor for overwriting property of ODS or DOS.
    Hope this helps.
    Regards,
    Rangzz
    Edited by: Ranganath Kodiugane on Feb 7, 2009 12:14 PM

  • Content Conversion without key field value

    Hi all,
    I want to do a content conversion which includes a record structure Header,1,Detail,*
    I dont have any key field value in the header nor in the detail. Can this be achived using FCC or should i go for Java.
    Rgds
    Aditya

    Hi Aditya,
    I think if u having multiple records then one shud hav key fields,
    pls check 4th point in this guide
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/troubleshooting%2bthe%2bfile%2badapter
    Also check this discussion::File Content Conversion(SenderFileadapter) fields parameters
    Thanks,

  • File content conversion without key field

    Hi,
    i have a input file with the following format:
    posvalue1;posvalue2;posvalue3;posvalue4
    posvalue1;posvalue2;posvalue3;posvalue4
    posvalue1;posvalue2;posvalue3;posvalue4
    posvalue1;posvalue2;posvalue3;posvalue4
    posvalue1;posvalue2;posvalue3;posvalue4
    footervalue1;footervalue2;footervalue3
    footervalue1;footervalue2;footervalue3
    i just need the information from pos lines and the footer is not needed. the only indicators are:
    the empty line between
    the number of fields
    maybe i could use the keyfieldvalue:
    in posvalue2 i have only numbers (diffrent) in footervalue2 i have only chars (diffrent)
    has anyone an idee?
    regards
    J.

    Hi
    yes you have to use the key field value as the posvalue1.
    if you do not want the footer informatuion in the target side then inthe grahical mapping do not map footer fields with the target structure.
    to convert the text file into XML file you can use the following parameters
    RECORD.fieldSeparator :;
    RECORD.fieldNames :KEY,FNAME,LNAME,AGE
    RECORD.keyFieldValue :1
    DETAIL.fieldSeparatr :;
    DETAIL.fieldNames :KEY,SALARY,EMPID
    DETAIL.fieldNames :2
    Note:these parameters are accoding to the structure given below.
    suppose you have a structure like as below
    data (0..unbounded)
    record (0..unbounded)
    key (1..1)
    fname (1..1)
    lname (1..1)
    age (1..1)
    detail (0..unbounded)
    key (1..1)
    salary (1..1)
    empid (1..1)
    and the input file will look like as below
    1,aaa,bbb,23
    2,12000,10838
    1,ccc,ddd,23
    2,13000,10830
    if you still face the problem please reply me back
    Thanks
    Rinku

  • File content conversion without field separator

    Hi experts,
    in my scenario I'm sending a txt file to an external receiver.
    Each field of the file must be separated from the others with differents field separators according with the requirement of the receiver, for example:
    field1;field2:field3, field4; ecc....
    For this reason I've created in the source message many "FieldSeparator" fields. These fields will be populated by ABAP program.
    I thought that it was possible to omit parameter fieldSeparator in content conversion, but testing the interface I receive an error because fieldSeparator is missing.
    Is possible to omit fieldSeparator or to specify a fieldSeparator null?
    The fields in the target file must be of variable lenght, so I cannot use FieldFixedLenght.
    The only solution I found is to create in the target message structure a single string with each field concatenated, is the only possible solution?
    Thanks
    Fabio Boni
    Edited by: Fabio Boni on Oct 21, 2010 5:47 PM

    Sorry...posting error earlier..
    The seperator can be concatenated at the end of each field in mapping.So seperator will be part of field value.
    But with receiver FCC, you need to either mentione fieldfixedlenght or fieldseperator.Please check if space is going to to work for you as separator.
    Edited by: nagarjuna _s on Oct 21, 2010 6:36 PM

  • Content Conversion without a fieldSeparator

    Good day, I would like to know is there a way to use file content conversion in the receiver adapter but not specifying a delimiter? I have to convert an idoc to a flatfile. The flatfile should have no delimiters in. Everything works fine but only if I have a parameter .fieldSeparator and the value as space of somthing. Is there some way to bypass this?

    Hi,
    Just check out the below thread for this :-
    File Receiver with Content Conversion
    For more on FCC please refer these:-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    The specified item was not found. - FCC
    File Content Conversion for Unequal Number of Columns - FCC
    Content Conversion (Pattern/Random content in input file) - FCC
    XI in the role of a FTP - FCC

  • Content conversion sender keyfield + unknow length field

    hi,
    I have a file with lines. the first six chars of each line tells me which type of line it is.
    I need to split the file to files which contains only one  type of lines each.
    I bulit data type with 2 fields : ID - length = 6 chars, Data - length unknown.
    I can use ID as keyfield but i don't have length or separator.
    How do i achive the split with the sender channel content conversion?
    Is there another way I can define my data type to solve this?
    Thanks
    Tomer

    Hi
    You can use the FCC parameter
    fieldFixedLengths  and fieldNames.
    Define fieldName as ID and length will be 6. The remaining can be taken into different field.
    This you can map to two different structures in message mapping. If you are confirtable with Java or XSLT that can work too.
    Thanks
    Gaurav

  • Data fileds and key fields in DSO

    Can any one explain what exactly difference between data fileds and keyfields in DSO or the concept of these two
    And how to know which fields should be assigned to data filed or key field
    with regards,
    musai

    Hi Musai,
    Let me take an ex. Say you have 3 fields A, B & C. Let us assume 'A' is keyfield, 'B' & 'C' are Datafields.
    Lets assume the PSA data is :
    A             B              C
    001      Musai        89.9  
    002      Musai        89.9
    003      Pavan       75.00
    So when you load the data to DSO, since all the keyfield values are unique (001,002,003), all the records will get loaded to DSO.
    But If PSA data is :
    A             B              C
    001      Musai        89.9  
    001      Musai        85.7
    003      Pavan       75.00
    Only 2nd & 3rd rows will be loaded to DSO since 1st & 2nd row have same value for keyfield (001). So 1st row gets overwritten(or summation depending on what is the setting in Transformation rule for C considering C is Keyfigure) by 2nd when you load to DSO. 3rd row doesn't have any problem. So that will go as it is.
    Also please note that we cannot use Keyfigures as keyfield.
    Hope it is clear now!
    Regards,
    Pavan

  • Difference between semantic and key fields in DSO

    Hello All,
    Please help me in understanding about difference between "Key fields" and "Semantic key" in write optimize DSO.
    thanks

    Hi,
    you dont have key fields in write-optimized DSO, key fields terminology is forin standard DSO.
    And semantic key is used in write-optimized DSO.
    As we know standard DSO is a flat structure similar to transparent tables that we have in R3/ECC system with key fields (combination of values which needs to be unique).
    Now, The system generates a unique technical key for the write-optimized DataStore object. The standard key fields are not necessary with this type of DataStore object. If there are standard key fields anyway, they are called semantic keys so that they can be distinguished from the technical keys. The technical key consists of the Request GUID field (0REQUEST), the Data Package field (0DATAPAKID) and the Data Record Number field (0RECORD). Only new data records are loaded to this key.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm

  • Conversion of MENGE and DMBTR fields

    Hi Guru's,
    Here I'm facing some problem with the conversion
    I have to convert price field(EKBE-DMBTR) from 123.45 of data type CURR to 12345 of data type CHAR, and
    also quantity field(EKBE-MENGE) from 123.456 of data type QUAN to 123456 of data type Numeric which are in EKBE table.

    Hi,
    Use WRITE statement to convert the currency value to a character value.
    WRITE <curr field> TO <char field> CURRENCY <currency>.
    or
    Try out this FM.
    TRS_CONVERT_AMOUNT_TO_TEXT
    For qty also you can use write.
    <b>Reward if helpful.</b>

  • File content conversion tab delimited

    hello experts
    I have a file sender txt interface with tab delimited.
    in the channel I wrote row.fieldSeparator 0x09.
    when the file is loading successfully to the PI' I see in the monitor that each line from the file is loaded to the first node of my DT file, and the rest of the nodes are still empty.
    is there some other decleration that I need to write some where in order for the file to be loaded each row to the correct DT node? maybe to check some basis decleration? a regular file with comma delimited is working fine/
    for example:
    my DT is
    aaaa
        row
             a
             b
             c
             d
    after loading the file the out put is
    <aaaa>
         <row>
           <a>hello     world     good     day</a>
       </row>
         <row>
           <a>hi    good    day    acvbd</a>
       </row>
    </aaaa>
    (every space between the words is a TAB)
    any suggestions?
    Kfir
    Kfir

    my fault in writing the condition correctly.
    forgot to add '

  • Issue with Xi File Receiver "Content Conversion" fixed length and kanji

    I need to create a fixed length file for a customer that has kanji (SJIS) characters in it.  The issue is when the length of the value is less than the fixed length.  It is padding out with spaces, but it is putting 2 bytes per space instead of one (But it seems to have counted the padding in characters...).
    .fieldFixedLengths: 8,6,40,40
    .fixedLengthTooShortHandling: Cut
    .fieldNames: date,time,name1,name2
    Receiver, please don't answer for sender.
    File Adapter

    Paul,
    Can you please tell what is coming in the output file if the values are:
    date:  062309
    time:   2240
    name1: hello
    name2: hello2
    When you put space here and if it is not showing correctly just to interpret you can use S which will stand for space.
    ---Satish

  • Master data and key field?

    Hi,
    We are using 0equipno master data.There is standard data source for this 0equipno and we are using this for the same.But this 0equipno is having an attribute 0equiptype.But with the some other requirements we were asked to add some navigational attributes to 0equiptype.0Equitype is using a view called T370K.But now my qestion is when I load data to a 0equiptype then all the previous data which ara available by loading 0equipno is also present.But as per the logic old data has to be overwritten right?

    When you loaded Equipment, with the Equipment Type as an attribute of Equipment, you read and possibly updated the attribute table for Equipment (/bi0/pequipno), SID table for Equipment (/bi0/sequipno) and the SID table for Equipment Type (/bi0/sequiptyp). That load has no effect at all on the Equipment Type attributes table (/bi0/pequiptyp).
    Now, when you load the Equipement Type attributes, the process will read the Equipment Type SID table (/bi0/sequiptyp) to determine if the Equipment Type already exists. If it does, then it will load the attributes for that Equipment Type to the Equipment Type attribute table (/bi0/pequiptyp) and the SID tables for each attribute. If the Equipment Type doesn't exist, only then would it create a new Equipment Type in the SID table (/bi0/sequiptyp) and then insert into the Equipment Type attribute table and attribute SID tables.

  • Non/late closing conversations without fire and forget

    Hello.
    I have two Service Broker instances running on different Servers. Both are constructed the same way but only one of them has trouble closing conversations. This problem started to occur on the 16th of October months after the start of the Service Broker.
    Both queues are in the same database. Most of the time the conversation close normal but on some days the conversations close late or never. Here is my monitoring of the conversing conversations per day:
    10/16: 1
    10/24: 1
    11/04: 20119
    11/05: 24207
    11/06: 29848
    11/12: 1
    11/19: 1
    11/27: 1
    On the 28th of November in the morning I saw 10748 open conversation for the 27th but the number was decreasing down to one open conversation. As you can see on days where the problem occurs at least one open conversation remains.
    I do not understand why this happens. The only difference between the two Service Broker instances is the reliability of the network over which a webservice is called on the receiving end of the Service Broker. Can this unreliability cause conversations
    to remain open or close late?
    Here an example for a conversation which remains open:
    conversation_handle conversation_id is_initiator service_contract_id conversation_group_id service_id lifetime state state_desc far_service far_broker_instance principal_id far_principal_id outbound_session_key_identifier inbound_session_key_identifier security_timestamp dialog_timer send_sequence last_send_tran_id end_dialog_sequence receive_sequence receive_sequence_frag system_sequence first_out_of_order_sequence last_out_of_order_sequence last_out_of_order_frag is_system priority
    EB108673-573A-E411-A731-2C44FD81E734 09AB4E1D-3EEF-4CAA-8358-85B50CCEE472 1 65536 EC108673-573A-E411-A731-2C44FD81E734 65536 2082-09-30 11:47:31.377 CO CONVERSING //SAPReceiverService A3869A41-8F7C-4C13-B378-C5FA0DA7492E 1 -1 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 1900-01-01 00:00:00.000 1900-01-01 00:00:00.000 1 0x29CB4D000000 -1 0 0 0 -1 0 0 0 5
    4E7F19AB-AE65-E411-A731-2C44FD81E734 01EA85EB-A3A8-41CE-BDC0-85B5261553D3 0 65536 4D7F19AB-AE65-E411-A731-2C44FD81E734 65538 2082-11-24 15:27:35.827 CO CONVERSING //SAPSenderService A3869A41-8F7C-4C13-B378-C5FA0DA7492E 1 1 00000000-0000-0000-0000-000000000000 00000000-0000-0000-0000-000000000000 2014-11-06 12:46:36.540 1900-01-01 00:00:00.000 0 0x000000000000 -1 1 0 0 -1 0 0 0 5
    Thanks in advance
    Susanne

    Since we don't know exactly your Service Broker applications are implemtented it is hard to tell. Could you at least give an outline of the architecture?
    You have a initiating process? This process sends a message on a service. The receiving queue is in the same database? But what form of activation do you have? Internal, that is a the queue has an activation procedure? Or external, where a process calls
    a stored procedure to pick up the data?
    Once data has been picked up, what happens next? Does the target end the conversation? How is this handled on the initiator side? Or do you reuse conversations?
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • Issue on column length changing in HANA

    Hi Experts, I encounter the following issues. 1. Try to create a column table with a DATE type column, and insert some values. CREATE COLUMN TABLE test1(D DATE); INSERT INTO test1(D) VALUES (CURRENT_DATE); SELECT D, length(D) FROM test1; The result w

  • Have a Problem in EAM work order creation API........

    I have used the following code to create work order but i was unable to do so I am getting return status SUCCESS(S).... but am unable to view the record in EAM_WORK_ORDERS_V.. any sort of help would be appreciated... declare g_eam_wo_relations_tbl0 e

  • How do I install Leopard on MacBook Pro Retina Partition

    I am trying to install either Leopard or Snow Leopard on a partition of my MBP Retina. I can set up the partition but how do I load a new OS on that Partition with an external Super Drive. I also have VMWare Fusion and am trying to do it that way or

  • Data getting used too fast

    I'm having issues with my data 2 months in a row I have went down too 100 meg from 1 gig. Previously I wouldn't even use 500 meg and Im using it for the same stuff. In 2 years with an IPhone 4 and 4S this is the only 2 months. So I have turned my dat

  • Why can't I add a custom dictionary (location) to Firefox?

    I find it wonderful when I find an editor that includes the feature of allowing easily configured incorporation of a standard-format, unicode dictionary (one word per line, CR/LF delimited). Conversely, I really hate to have to begin building a new d