Skip to Content
avatar image
Former Member

File to Idoc/Web Service

Hi All,

A XML file will be coming from legacy system and depending upon the source field tag ("B") value i need to map the XML file to IDOC or Synchronous Web Service(legacy system) or to both (idoc and sync web service).

Suppose if the Source XML file is:

<MT>

<Root>

<A>123</A>

<B>XXX</B>

<Root>

</MT>

So, the condition is:

1) If B is equal to "XXX" then source message needs to be mapped to -> IDOC only

2) If B is equal to "YYY" then source message needs to be mapped to -> Synchronous Web Service only

3)  And if B is equal to "ZZZ" then source message needs to be mapped to -> IDOC and Synchronous Web Service both.

Please tell me how to proceed further?

Regards!!

Vasant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 10, 2012 at 03:21 PM

    Since you combine both sync and async receivers, you have to use ccbpm to achieve this. Search SCN for multimapping using ccbpm.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 10, 2012 at 03:28 PM

    Hi,

    If you are not expecting any response from Sync web service like no need to send response back to File then you can achieve this interface easily .

    Write a condition in receiver determination it works.

    If you want to send response back then you need to handle it very carefully using ccBPM.

    Regards,

    Raj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      This can be acheived by selecting the receivers in Receiver Determination stage using xpath

      If ZZZ or XXX chose receiver Idoc

      If ZZZ or YYY chose receiver webservice

      OR

      Use Extended Receiver Determination to determine the determine the receivers using an Operation Mapping.

      Thanks,

      Sudhansu