Skip to Content
Suppose we have a flat file that looks like this:

120 MATNR33356 60
130 MATNR44455 45

Fixed lengths are 10,20,10

1. Specify adapter type: File – sender
(because will be sending message to XI)

2. Message protocol: File Content Conversion

image

3. In the content conversion parameters we specify:

a) Document Name: SampleMessageType
this will appear as the TOP XML tag

b) Document Namespace: http://bcc.com.pl/sending

c) Recordset Name: Rootnode

d) Recordset Structure: Substr,*

image

4. Now in the additional parameters we have to add:

– Substr.fieldFixedLengths Value: 10,20,10

– Substr.fieldNames Value: POSNR,MATNR,QUANT

– Substr.processFieldNames Value: fromConfiguration
because in our example the flat file does not contain any header

image

And we’re done.

This configuration should convert the flat file into an XML message like this:

image

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

  1. bernd wieching
    Hello Michael,

    what do I have to do, if I want to have messagesplit on each recordset, which I have to map on one Idoc (ORDERS). I believe this is becoming my first BPM Project.

    BR
    Bernd

    (0) 
  2. Alexander King
    Hi Micheal i followed the steps and worked on the same scenario but ended up with Run time exception error message.My sender and reciever are working properly in adapter engine…Can you let me know where I was wrong.
    (0) 
    1. Michal Krawczyk Post author
      Hi,

      >>>>Do I have to rebuild my message type because this is not possible?

      no need, you can create a simple
      file adapter module that will remove
      any node you want (1-2 hours of development
      and you’re done)

      Regards,
      michal

      (0) 
    2. Renjith Andrews
      If there are multiple records how are grouping them in that case?
      Or do you want one message for every line?

      If that is the case…in the recordset structure give Root,1 and then in Recirdsets per message = 1 and the property ignoreRecordsetName = true…

      Thanks,
      Renjith

      (0) 
  3. Lewis Hamilton
    Hi michael

    If i want to acheive the same using csv how shoul dmy parameters look like. i want to creat seperate recordsets for each repeating structure.

    thank you

    (0) 
  4. shweta khade
    Hi Michal,

    My scenario is same as you described in the blog.

    But if the input file is empty(no records at all) ideally XI should create the XML file with root node after content conversion.

    But I am facing problems here.Can you please suggest any expert solution for this problem?

    The scenario is like :XI uses the content conversion paramters and creates the XML file,but if source file doesnt have any record then XI should create a file with only root node.

    (0) 

Leave a Reply