cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Parameters in cascading mapping

ChRa
Explorer
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Christian,

Following Eng's idea you have a blog to share data between mappings using dynamic configuration:

Another trick is to define static variables and to use this variables to share the data

Regards.

Answers (4)

Answers (4)

ChRa
Explorer
0 Kudos

Thanks guys,

great tips.

engswee
Active Contributor
0 Kudos

Please remember to close the thread if you query has been answered.

engswee
Active Contributor
0 Kudos

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

nitindeshpande
Active Contributor
0 Kudos

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-pr...

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

former_member186851
Active Contributor
0 Kudos

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?