on 09-05-2008 12:38 AM
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
>>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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.