cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc Mapping Problem

Former Member
0 Kudos

hi,

I have a file to idoc scenario. Have a header and 5 line items segment on the source. After doing mapping when i test, the message mapping does not ouput all the corresponding nodes in the Idoc structure for each item segment on the source side. The output is only displaying the first two segment from the source. Could someone help with this?

thx,

Pradip

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Pradip,

please map the all required root nodes with constant if you dont have any source field to map the root node element .

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

hi Rajeev, Chadra , Sreeram,

Have tried your suggestions, but it still does not work. Now I am only getting the first line item segment from the source side. The target is an idoc so most of the segments are 0...UB cardinality. Have tried mapping the target side idoc nodes with the constant. Also tried mapping the idoc nodes to source structure, but no luck. Any other ideas ???

Former Member
0 Kudos

Pradip,

You should map th target root node with the source node. You should not map the root node with a constant. This will create the node only once.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Pradip,

just check the cardinality of target node - which is mapped to your line item.....it should be 0..unbounded

moreover, the target node if it under some other node then check the cardinality of the above node, it should also be 0..unbounded

if you are using any condition for target node generation, then check the condition again.....

Thanks,

Rajeev Gupta

Former Member
0 Kudos

Pradip,

you need a particular segement to occur N number of times of source occurance then you need same source to targt segement which 0.......UB cardinatliy then that particular node will occur as many times it occurs.

can paste our source and target structre

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

hi guys,

Thanks for all the responses. For some strange reason, have tried al the suggestions, but the problem still exists. Will check it

Former Member
0 Kudos

Hi,

Please try with source side root node to target side root node ..

source parent node(multiple occur) - existscreateIf target parent node(multiple occurr)

Regards

Chilla..

Former Member
0 Kudos

Hi,

Also see the below link

idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping

it has three parts see ..

points rewarded if it is usefull..

Regards

Chilla...

Former Member
0 Kudos

Hi Pradip,

in msg mapping, the source condition which determines how many target nodes to be generated, output of source condition should be either true or false , do below:

Source Condition -> creatif ->target node

Test this msg mapping....this should work......

Thanks,

Rajeev Gupta

Answers (3)

Answers (3)

prabhu_s2
Active Contributor
0 Kudos

pradip

map all the segments with a null constant and the segment fields with soruce based on the ocurrences....if the target node has occurence of 1 then it is mandatory for the source field to have a value...if not the system will throw an error.

Former Member
0 Kudos

HI,

See here you would have to map the all mandatory fields in the target side and the parent node should be mapped to source side multi occur parent node ..

or map the target parent node with empty constant and try...

Please see the below link

idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping

Regards

Chilla..

Former Member
0 Kudos

Hi Pradip,

in msg mapping, just check the condition which you have put for generating target....see why the segment is not generated third time in your target.....check the cardinality of target also - it should be 0..unbounded

Thanks,

Rajeev Gupta