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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2015 at 08:17 AM

    Thanks guys,

    great tips.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.