Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Mapping exception.

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

Former Member
Former Member replied

>>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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question