Skip to Content
avatar image
Former Member

Different mapping programs for same source and target

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 17, 2007 at 03:20 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2007 at 06:48 AM

    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.Multiple" target="_blank">http://help.sap.com/saphelp_nw04s/helpdata/en/42/ea20e737f33ee9e10000000a1553f7/frameset.htm">Multiple Identical Inbound Interfaces with Conditions

    regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2007 at 07:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded