Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 05, 2008 at 01:55 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 04, 2008 at 11:48 PM

    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

    Add comment
    10|10000 characters needed characters exceeded