cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping exception.

Former Member
0 Kudos

I tested the XML i got from SXMB_moni.

There is a field called VEBLN which is being mapped to receiver

Both the sender and receiver feilds have 0...unbounded occurences.

what should be the problem...If i give the value in VEBLN..then it work fine....If i remove the value then it throws this error....

18:35:25 Start of test

Cannot produce target element /ns0:MT_Shipment/Segment10First/ReceiptAuthorizationNumber. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:MT_Shipment/Segment10First/ReceiptAuthorizationNumber. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

18:35:25 End of test

What could be the error

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>>There is a field called VEBLN which is being mapped to receiver

How exactly are you mapping the field VBELN to receiver side?

I think you have some UDF or standard function in the message mapping between VBELN and the receiver side field.This UDF or standard function is expecting an input parameter but since its not getting any value its throwing the error.

You need to use mapWithDefault standard function right after VBELN.

Your mapping will look something like

VBELN->mapWithDefault->UDF or any other function which you are currently using->Receiver field

Thanx

Aamir

Answers (1)

Answers (1)

Former Member
0 Kudos

if both src and tgt fields are 0-unbounded, then even if you donot give value, it should not error, check carefully the parent elements.

another way of dong it is

1) use =, constant with no value, constant with no value along with if-then-else condition

it shud work

if src field value = constant with no value, then map constant with no value to tgt field. else map src field to tgt field