cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Question

Former Member
0 Kudos

Hi SAP Gurus,

I have a pretty good idea about my doubt, but would like to confirm it.

I have a field under the node with a minoccurs of 0 and it has been mapped. The values don't appear in the the target result, what could be wrong?

1) The parent node has not been assigned.

2) Parent node has cardinality 0 ... unbounded

3) Parent node has many fields

I am thinking the answer is #1, could someone please back me up on this or correct me.

Thanks,

Adnan Abbasi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey

If the parent node itself is not mapped(created on receiver side) you wont see child element.

you are right,the most probable answer is 1 until and unless you have some logic for the child element due to which it can either occur or not occur depending upon some value in source file.

Thanx

Aamir

Answers (5)

Answers (5)

Former Member
0 Kudos

I would like to thank you all for answering my question promptly. I wish rewarding the point system was somehow different and then I could give everyone good point and not make me feel guilty about it. I am sorry to those of you who I was not able to reward good points, but all you guys are equally worthy. Thanks very much.

Regards,

Adnan Abbasi

sunil_singh13
Active Contributor
0 Kudos

Hi Adnan,

There could be the case that this field is not coming from source side, so it won't appeare at target side,

there can also be a case that you have not mapped it parent node.

Also to confirm the things you can test your mapping in test tab of mapping.

Reward Points if Helpful

Thanks

Sunil singh

Former Member
0 Kudos

Hi Adnan,

The answer is 1. If you want the element to be created in the target structure, Please map the parent node to a constant.

Thanks,

Kiran.

Former Member
0 Kudos

Hi,

1) If your occurence of parent node is 1..1 then it is not required to map parent node.

2) if occurence of parent node is 0..unbounded then u have to map it and use RemoveContext Function to map.For child element use SplitByValue function to map.

3) no matter if Parent node has many fields.

Regards,

Rohit

Reward points if helpful.

Former Member
0 Kudos

Hi,

Having a node with minoccurs = 0 only says.

If it's not in the source data, It's ok.

You do not specific if the source field has minoccurs 0 or not.

The reason for not getting a result into a target field can be several.

Some of them could be:

- Node not delivered in source (min occurs 0 ==> ok, no syntax error)

- Field not delivered in source (min occurs 0 ==> ok, no syntax error)

- Wrong logic in the mapping

(E g error in if statement or if-statement not fullilled)

- You are using CSV conversion (File Adapter) and named a field wrongly.

Either on the source or target-side.