cancel
Showing results for 
Search instead for 
Did you mean: 

Different mapping programs for same source and target

Former Member
0 Kudos

Hi All,

I have to map the incoming idoc to xml messages.

But based on customer numbers in incoming idoc i have to use different mapping programs and map to same xml messages.

1 source message - n mapping programs - 1 target message

(based on cust numbers)

I dont want to harcode the customer numbers to find out the mapping programs.

Can anyone guide me in this on how to achieve this functionality...

thanks

Giridhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

There are several ways to achieve this:

a, One XSLT document, which makes this condition based mapping.

b, BPM - create switch step and than in each branch put appropriate transformation step.

It has to be always a bit "hard coded" - the codes must be put in the XSLT, or Switch step or so on. There is no possibility to create some "config".

Peter

Answers (2)

Answers (2)

Former Member
0 Kudos

Giridhar,

from wot i understand,

create all ur mapping firstly.

Then, u wud hav to go in for bpm...

go for the correlation thing and based on the correlation in ur fork / switch step ( all ur messages are in parallel now), u can use the conditions there. , the reqd mapping program could be included in ur scenario.

regards,

Vishal

Former Member
0 Kudos

Hi,

have you tried to use Conditions in the Interface Determination?

You can add multiple lines in the 'Configured Inbound Interfaces' and attach different mappings to each of them by picking a condition (basically using an XPath Expression).

Check this Help Document,

the section 'Multiple Identical Inbound Interfaces with Conditions' describes what I believe is your scenario.<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/42/ea20e737f33ee9e10000000a1553f7/frameset.htm">Multiple Identical Inbound Interfaces with Conditions</a>

regards,

Peter