cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Target field Values in Mapping Runtime

sahana_ps
Participant
0 Kudos

Hi all,

I have a requirement ,

source                target

A                           X

B                           Y=X+Z+W

C                           Z=X+Y

D                           W

Kindly can some one help me,how this can be achived in mapping?

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member184720
Active Contributor
0 Kudos

source                target

A                           X

B                           Y=X+Z+W

C                           Z=X+Y

D                           W

source                target

A                           X->A

B                           Y=X+Z+W->A+A+D+D

C                           Z=X+Y->A+D

D                           W->D

praveen_sutra
Active Contributor
0 Kudos

Hi Sahana,

This might sound lil wierd but there is another way of handling this situation. Use three different Message mapping and club them in operation mapping.

In first mapping just map X and W field.

In second mapping map Z field and in third one map the Y field.

this is quite simple solution.

thanks and regards,

Praveen T

Former Member
0 Kudos

Hi,

are you sure about that ?

B                           Y=X+Z+W

C                           Z=X+Y..... so Z=X+X+Z+W    !!!!!    so 2X = -W... (in mathematic) 

does "+" is "add" or "concatenate"?

Else as X comes from A, W comes from D... in your mapping use the sources A and D, and do not try to use your targets... Or if you have have to the same value, reuse the rule ! and point it to two target fields

regards

Mickael

iaki_vila
Active Contributor
0 Kudos

Hi Sahana,

You can achieve your goal with value-mapping, where the X, Y, W, Z  will be stored in configuration time. Later you only need to concat the results in the message mapping for B and C source mapping.

In this wiki you have an easy how-to http://wiki.scn.sap.com/wiki/display/XI/Value+mapping

Also, you can check this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf4...

Regards.

Message was edited by: Iñaki Vila