cancel
Showing results for 
Search instead for 
Did you mean: 

header & item mapping

Former Member
0 Kudos

hi all ,

i am doing file to idoc

i have source structure as

header

item1

item2

item3

and my idoc wmmbid02 as stru

E1MBXYH 1.1

E1MBXYI. 1.9999

i am able to convert soure file to xml as below (inbound playload ) using sender fcc.

<zheader>

<zitem>

i defined my message source mapping (message type ) as below.

mt_f2idoc

zE1MBXYH

ziE1MBXYI (same level as header)

and mapped to target . (disabled edidc seg , given 1 to segements attr)

*ques*

i am getting run time exp in sxMB_MONI for mapping :

That "Cannot produce target element /WMMBID02/IDOC/E1MBXYH/E1MBXYI. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd "

what may be probelm ?

please help me out .

Thanks

Sridhar

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

> i am able to convert soure file to xml as below (inbound playload ) using sender fcc.

> <zheader>

> <zitem>

>

> i defined my message source mapping (message type ) as below.

> mt_f2idoc

> zE1MBXYH

> ziE1MBXYI (same level as header)

> and mapped to target . (disabled edidc seg , given 1 to segements attr)

Why did you create the zE1MBXYH kind of MT? You should be using the <zheader> and <zitem> structure itslef and map it to the imported IDoc target message.

Assuming, You have elements under the header and item nodes, you have to first map the corresponding nodes of the IDoc with the Header and Item nodes. Then you have to map the corresponding elements under each node.

VJ

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks all for ur help .

Problem is solved , the issue was in sender file fcc , documnet node should match MT in ir and namescape also .

pointed awared to all for ur time .

Thanks,

Sridhar

Former Member
0 Kudos

Thanks all for ur help .

Problem is solved , the issue was in sender file fcc , documnet node should match MT in ir and namescape also .

pointed awared to all for ur time .

Thanks,

Sridhar

Former Member
0 Kudos

Hi

if u r getting the error like can not produce target element

to make the error correction u can do the followng tests.

forst check your Message Mappinh that u have created, you can test the message mapping in the test tab

go to the test tab and execute and check whether the target strctute is generate or not.

if the target structure will not be generated that it mwans some mandatpry nodes are not mapped.then mapped all the nodes and then check.

if ur tyarget structure is generated in message mapping in the test tab then go to SXMB_MONI and thake the payload form the moni , copy this paylod in the message mapping and then check ur message mapping. u will come to know about the mapping error.

if u still face the problem please reply me back.

Thanks

Rinku

Jitendra_Jeswan
Contributor
0 Kudos

Check the Occurance of "header" It should have atleast one Occurance defined in the Data type. like (1..unbounded)

Check this and Revert back...

Regards.

Jeet.

deepak_shah
Contributor
0 Kudos

hi

check the context for target and source.

try usin remove context in between source and target ..

justin_santhanam
Active Contributor
0 Kudos

Sridhar,

Can u copy and paste the inbound payload ?

raj.