cancel
Showing results for 
Search instead for 
Did you mean: 

N:1 mapping

Former Member
0 Kudos

Hi all,

i am doing a senario invovling file to file . my senario is collecting n messages of same type into 1 message.

i have only one maaping in the BPM,in the foolowing way:

bpm message type as o to unbounded and inbound message type as 1.

but i am getting the mapping error during the transformation step in BPM .

cheers

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check wat is the error in "sxmb_moni_bpe" Tcode. if it shows some problem like "CALL_TRANSFORMATION cannot be executed", then the problem may be with work items.

I was facing a similar problem. Since there was lot of work items created, it was not executing properly.

Try deleting the workitems using the tcode "swwl" and then execute the scenario.

hope this helps.

regards,

P.Venkat

Message was edited by: Venkataramanan

Former Member
0 Kudos

hi all,

still the same error persists , should i use any fucntions while doing message mapping, or simply direct mapping is enough. any web log would be helpfull.

is only one interface mapping is enough in transformation step or anything else is required.

because when i saw the runtime value of the container element in the BPM it is collecting n the messages but in the transformation step when i map the Multiline container value into the message type it gives me the mapping problem.

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

hi rajani,

like mentioned before test your mapping using the blog by michal.

Also, did you copy XML content for the source file from the IR using TEST tab?

If yes, you will have tags like <b><messages></b> in the source message, did you remove them from the source file??

regards,

Bhavesh

Former Member
0 Kudos

hi Bhavesh,

my xmil file is something like this

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

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_FILE_OUTPUT xmlns:ns1="http://WS_BPM">

<ID>abcd</ID>

<DESC>fileone</DESC>

</ns1:MT_FILE_OUTPUT>

</ns0:Message1>

</ns0:Messages>

which tag should be removed fro here

here there i will be collecting five files of this type into one file.

so what should i do.

i am getting the following error in the transformation step as:

com/sap/xi/tf/_MM_BPM_TO_BPMMULTIPLE_com.sap.aii.u

tilxi.misc.api.BaseRuntimeExceptionRuntimeExceptio

n in Message-Mapping transformatio~

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Rajani,

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

<ns1:MT_FILE_OUTPUT xmlns:ns1="http://WS_BPM">

<ID>abcd</ID>

<DESC>fileone</DESC>

</ns1:MT_FILE_OUTPUT>

This is how your source file should be,

regards,

Bhavesh

Former Member
0 Kudos

hi bhavesh,

should i do remove this in the source file ??

i mean should i remove the nodes in the file sent.

when i did that , out of four files sent i am getting only one file in the recieveing system

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajani,

Yes , you should remove them from the source file.

<i>when i did that , out of four files sent i am getting only one file in the recieveing system</i>

Isnt this what you are trying? Collect four files and then combine them into a single file using the transformation in the BPM?

Isnt your functionality satisfied?

regards,

Bhavesh

Former Member
0 Kudos

hi Bhavesh,

in the BPM i am making the following things first i am looping for four times , inside the loop i have used recieve step and append into container element of multiple type and then in the outside of loop i have put th etransformation step and thet i have used the transformation step to transfer the collected file into one file.

in the interface mapping,

the target interface is 0,unbounded.

the source interface is 1.

in the message mapping.

the source message type is 0,unbounded.

the target message type is 1.

but still i am able to get only one file that is the first file in the receiveing system.

i checked the runtime component in the BPm the Multiline container element is having 4 lines( the collected files).

the output message type is having only one line.

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Rajani,

This looks to be a mapping error. You must have made some mistake in the occurence of your target datatype.

Can you post the target structure that you have created with the occurence.?

You will have to one element to be 1..Unbounded so that for every source file, one record is created in the target.

Regards,

Bhavesh

Former Member
0 Kudos

hi Bhavesh,

Our target structure in Interface Mapping looks like the one given below:

Messages 1,1

Message1 1,1

MT_FILEINPUT 0,Unbounded

ID 1,Unbounded

Desc 1,Unbounded

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Hi rajani,

The target doesnt have an element with orrucrence 0 to unbounded and dats d problem.

Create your target of this format,

MT_FILEINPUT 1..1

fileroot 0.ub

ID 1..1

Desc 1..1

<b>Source :</b>

<ns1:MT_FILE_OUTPUT xmlns:ns1="http://WS_BPM">

<ID>abcd</ID>

<DESC>fileone</DESC>

</ns1:MT_FILE_OUTPUT>

Do not change the occurence of your destination message in your message mapping and interface mapping.

In your message mapping, map the MT_FILE_OUTPUT of source to FILEROOT of target..!!

Regards,

Bhavesh

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

i did mapping in this way.

id to id

desc to desc

fileout to fileroot

should i need to use any node functions.

cheers

Former Member
0 Kudos

hi bhavesh,

i did it exactly the same way in meesage mapping and tetsed it still only one line is coming while testing the message mapping.

should i need to use any node functions.

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajini,

<i>fileout to fileroot</i>

Just to confirm,

Map the root element of your source .. MT_FILE_OUTPUT to the FILE_ROOT of your target.

And the rest straight mapping.

It should work.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajini,

<i>fileout to fileroot</i>

Just to confirm,

Map the root element of your source .. MT_FILE_OUTPUT to the FILE_ROOT of your target.

And the rest straight mapping.

It should work.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajini,

<i>fileout to fileroot</i>

Just to confirm,

Map the root element of your source .. MT_FILE_OUTPUT to the FILE_ROOT of your target.

And the rest straight mapping.

Also, confirm the occurence in your target datatype..!!

It should work.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajini,

<i>fileout to fileroot</i>

Just to confirm,

Map the root element of your source .. MT_FILE_OUTPUT to the FILE_ROOT of your target.

And the rest straight mapping.

Also, confirm the occurence in your target datatype..!!

It should work.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Rajini,

<i>fileout to fileroot</i>

Just to confirm,

Map the root element of your source .. MT_FILE_OUTPUT to the FILE_ROOT of your target.

And the rest straight mapping.

Also, confirm the occurence in your target datatype..!!

It should work.

Regards,

Bhavesh

Answers (3)

Answers (3)

former_member181955
Contributor
0 Kudos

Hi Rajani

You please re import your Integration Process into Integration Directory and update runtime cache.

I also had same problem earlier,once you have made changes in IP in your IR , you must re import it again in the ID.

Hope it will be helpful.

Thanks

Prasad Nemalikanti

Former Member
0 Kudos

Hi Kumar,

Check the occurences in both the message mapping and the interface mappings. Test them separately by duplicating the messages.

Also check the following documentation reagrding bundling messages into one interface(if you havent already)...:-

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

Regards,

Sushumna

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Check for the follwing

<b>Message Mappinng :</b>

Source Message Type has an Ocurence of 0 to UB

<b>Interface Mapping:</b>Source Message Interface has an occurence of 0 to UB

The container element created for the SOurce is multiline in your BPM.

Regards,

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Also check this blog <a href="/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios">Test Mapping</a> and the section <i>Testing mapping programs with the use of BPM</i> to get the payload of your mapping step and to test the mapping using this payload.

Regards,

Bhavesh

Former Member
0 Kudos

hi bhavesh,

i have done exactly the same but still i am getting the error in mapping it is showing me the error in the transformation step .

cheers

bhavesh_kantilal
Active Contributor
0 Kudos

Hi rajani,

test your mapping as mentioned in the blog by michal.

take the source payload for the mapping out of the BPM , copy it into the test message in IR and then test the mapping.

You will be able to get the exact reason as to why the error is occuring.

Also, in SXMB_MONI, what is the error that is being displayed for the mappaing step?

Regards,

Bhavesh