cancel
Showing results for 
Search instead for 
Did you mean: 

Segments are not generated in Message Mapping/Test Tab

Former Member
0 Kudos

Hi All

I am having IDoc---> File mapping scenario. Here is the Message Mapping/Design tab IDoc to File mapping.

Source Structure(IDoc) Target Structure(file Structure)

IDOC LIST

segment segment

E1EDL20 mapping UNL_10

partner_id -


>parternid

parter_q -


>partnerq

E1EADRM1----


>ADDRESSSEG

name----


>name1

rollno -


> rollno

E1ARDE1----


> C_C082

external-id----


>ext1

external-q----


>ext2

While I am doing testing of mapping in Message Mapping/Test tab I am not getting segment (E1ARDE1) and also the fields under it

E1ARDE1----


> C_C082

external-id----


>ext1

external-q----


>ext2

Since (E1ARDE1)segment is not populating on source side Mapping is getting failed in Message Mapping test tab.

Here is the erro message I am getting

"Cannot produce target element /LIST/UNL_10/ADDRESSSEG/C_C082/ext1 or ext2. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"

Please let me know if any one is aware the problem. Please forward if any one is aware of the solution to tshailu81@yahoo.co.in

Thanks

Shailaja

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187339
Active Contributor
0 Kudos

Hi,

As you are aware that the error is at the mapping of

E1ARDE1----


> C_C082

external-id----


>ext1

external-q----


>ext2

ext1 and ext2 being mandatory fields gives you a error when E1ARDE1 doen't exists.

So

1) Either make them non mandatory by changing the min-occurence to 0

2) or handle this case in your mapping (with the use of <b>exists</b>)

Regards

Suraj

udo_martens
Active Contributor
0 Kudos

Hi Shailaja,

make the required target fields of the datatype optional (occurance 0 - 1).

Regards,

Udo

Former Member
0 Kudos

hi,

Can you put remove context and see if ti works

Regards

Vijaya

Former Member
0 Kudos

Thanks Vijaya.

The scenario is working fine, by including of remove contexts.

Regards,

Shailaja