Skip to Content
avatar image
Former Member

Message Splitting issue (without bpm)

Hi Experts,

I was currently trying to create a message split (1 message --> 2 output) using BPM like in this blog: Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure

Then i noticed that it was also possible to achieve this without using BPM (creating a interface mapping with 2 outputs, and using the interface determination with the extended option) like on this one:

Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure

(but using the structure showed in the first blog since i was just testing)

The issue i have is that even when it worked, and i see all good in the XML monitoring (SMXB_MONI) the both resulting files appear only with one field, and i can't see the others

Example from the XML monitoring:

ORIGINAL FILE: (I split based on the id 1 and 2)

<?xml version="1.0" encoding="utf-8" ?>

- http://bpm.com/splitting">

- <record>

- <details>

<name>Jorge</name>

<id>1</id>

</details>

- <details>

<name>Fernando</name>

<id>2</id>

</details>

</record>

</ns:bpm_in_MT>

RESULT FILE 1:

<?xml version="1.0" encoding="utf-8" ?>

- http://bpm.com/splitting">

- <record>

- <info>

<name>Jorge</name>

<id>1</id>

</info>

</record>

</ns1:bpm_out_MT>

RESULT FILE 2:

<?xml version="1.0" encoding="utf-8" ?>

- http://bpm.com/splitting">

- <record>

- <info>

<name>Fernando</name>

<id>2</id>

<age>20</age>

</info>

</record>

</ns1:bpm_out1_MT>

HERE's the ISSUE:

Files in the FTP folder:

file1.txt with only "Jorge "

file2.txt with only "Fernando "

when the first file should have 2 fields (id is included), and the second one should be name (id and age included)

Could this be a parsing issue? i'm confused since i see no errors in the channels

I'm using 2 FTP receivers channels with Content conversion

CC_FTP_first_file_receiver:

Recordset: info

info.fieldNames name,id

info.fieldFixedLengths 15,1

info.keyFieldValue 1

info.endSeparator 'nl'

info.processFieldNames fromConfiguration

CC_FTP_second_file_receiver:

Recordset: info

info.fieldNames name,id,age

info.fieldFixedLengths 15,1,2

info.keyFieldValue 2

info.endSeparator 'nl'

info.processFieldNames fromConfiguration

I may have no use for the keyfieldvalue since i'm only saving that file in FTP, but i already removed that and it didn't change much, i still get 2 files, but only with the "name" tag on them

Any ideas??

i'm sure i'm missing something basic, but i'm don't have much experience on XML

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 14, 2008 at 06:39 PM

    Hi,

    Here in FCC parameters you are using info.processFieldNames fromConfiguration and info.fieldNames name,id

    Its better you may go with only one at a time..

    Try it out and let me know...

    Thanks

    swarup

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      actually i didn't changed the scenario since it is working with 2 files in XML, but not with the file content conversion, so i don't think the issue has something to do with the multiple outputs

      really strange isn't?

      i'll keep trying but i'm open to hear some opinions lol