Skip to Content

Passing Parameters in cascading mapping

Hi,

I'm using a cascading mapping to create the content of the mail-adapter.

The two mappings are JAVA-mappings

the first mapping transforms the data of an IDoc to an EDI-Message.

the seconde mapping creates the content of the mail.

is it possible to pass parameters from the first mapping to the second?

br

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    Oct 19, 2015 at 06:09 AM

    Hi Christian,

    Following Eng's idea you have a blog to share data between mappings using dynamic configuration: Sharing data between two message mappings through Dynamic Configuration

    Another trick is to define static variables and to use this variables to share the data Sharing data between message mapping in PI 7.1

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2015 at 04:47 AM

    Hello Christian,

    Parameters means you means the values from first mapping to second?. And why there is requirement of using two mappings. You can do both in one right?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2015 at 06:44 AM

    Hi Christian,

    Firstly, i want to clarify whether you are using Java mapping or Graphical mapping for this? By cascading mapping you mean Multi Mapping?

    For converting IDoc to EDI format, SAP has provided by standard B2B content, you can use the same to serve your by downloading the ESR content from Service Market Place. Please follow the below links for detailed info on that -

    http://scn.sap.com/community/b2b-integration/blog/2012/02/03/the-new-b2b-add-on-for-sap-netweaver-process-integration

    http://scn.sap.com/community/b2b-integration/blog/2013/09/09/how-to-install-the-new-b2b-add-on

    And for your question -

    >>>>is it possible to pass parameters from the first mapping to the second?


    Yes, it is possible to achieve this by using multi-mapping concept. Please follow the below blog for more information on the same -


    http://scn.sap.com/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it-s-possible

    Regards,

    Nitin

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2015 at 03:06 AM

    Hi Christian

    Unfortunately, you cannot pass parameters via the signature from one mapping to another during runtime. Please refer to to the following SAP library link regarding mapping parameters - export parameters can only be evaluated in ccBPM.

    Parameterized Mapping Programs

    If you want to pass dynamic values from first mapping step to subsequent mapping step, you can alternatively write the values to the Dynamic Configuration space using UDFs. Example, in first mapping store the value in some arbitrarily named DC attribute, and in second mapping retrieve it back from the DC attribute for further processing.

    Rgds

    Eng Swee

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2015 at 08:17 AM

    Thanks guys,

    great tips.

    Add comment
    10|10000 characters needed characters exceeded