Skip to Content
author's profile photo Former Member
Former Member

MATMAS mapping transformation error

Scenario: IDOC to File

Idoc is sent successfully. But in SXMB_MONI am getting this error: RuntimeException in Message-Mapping transformatio

How can I rectify that.

Thanks

Kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 08:02 AM

    hai

    check the message mapping thru test tab

    check whether control records of the idoc are handled properly are not

    check whether mandatory segments are mapped properly....

    check the below link for trouble shooting ALE scenario if still the problem persists

    /people/raja.thangamani/blog/2007/07/19/troubleshooting-of-ale-process

    note:reward points if solution found helpfull.....

    regards

    chandrakanth.k

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Justin Santhanam

      below is my XSD which is imported into PI system.

      Please advise now.

      <?xml version="1.0" encoding="ISO-8859-1"?>

      http://www.w3.org/2001/XMLSchema">

      <xs:element name="ZEIVR">

      <xs:complexType />

      </xs:element>

      <xs:element name="ZEINR">

      <xs:complexType />

      </xs:element>

      <xs:element name="ZEIFO">

      <xs:complexType />

      </xs:element>

      <xs:element name="ZEIAR">

      <xs:complexType />

      </xs:element>

      <xs:element name="WRKST">

      <xs:complexType />

      </xs:element>

      <xs:element name="WESCH">

      <xs:complexType />

      </xs:element>

      <xs:element name="VPSTA">

      <xs:complexType />

      </xs:element>

      <xs:element name="VOLTO">

      <xs:complexType />

      </xs:element>

      <xs:element name="VHART">

      <xs:complexType />

      </xs:element>

      <xs:element name="TEMPB">

      <xs:complexType />

      </xs:element>

      <xs:element name="STOFF">

      <xs:complexType />

      </xs:element>

      <xs:element name="STFAK">

      <xs:complexType />

      </xs:element>

      <xs:element name="SPRAS_ISO">

      <xs:complexType />

      </xs:element>

      <xs:element name="SPRAS">

      <xs:complexType />

      </xs:element>

      <xs:element name="SLED_BBD">

      <xs:complexType />

      </xs:element>

      <xs:element name="SERLV">

      <xs:complexType />

      </xs:element>

      <xs:element name="SATNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="SAISO">

      <xs:complexType />

      </xs:element>

      <xs:element name="RMATP">

      <xs:complexType />

      </xs:element>

      <xs:element name="RDMHD">

      <xs:complexType />

      </xs:element>

      <xs:element name="RBNRM">

      <xs:complexType />

      </xs:element>

      <xs:element name="RAUBE">

      <xs:complexType />

      </xs:element>

      <xs:element name="QMPUR">

      <xs:complexType />

      </xs:element>

      <xs:element name="PRZUS">

      <xs:complexType />

      </xs:element>

      <xs:element name="PRDHA">

      <xs:complexType />

      </xs:element>

      <xs:element name="NORMT">

      <xs:complexType />

      </xs:element>

      <xs:element name="MSTDV">

      <xs:complexType />

      </xs:element>

      <xs:element name="MSTDE">

      <xs:complexType />

      </xs:element>

      <xs:element name="MSTAV">

      <xs:complexType />

      </xs:element>

      <xs:element name="MSTAE">

      <xs:complexType />

      </xs:element>

      <xs:element name="MSGFN">

      <xs:complexType />

      </xs:element>

      <xs:element name="MPROF">

      <xs:complexType />

      </xs:element>

      <xs:element name="MHDRZ">

      <xs:complexType />

      </xs:element>

      <xs:element name="MHDLP">

      <xs:complexType />

      </xs:element>

      <xs:element name="MHDHB">

      <xs:complexType />

      </xs:element>

      <xs:element name="MFRPN">

      <xs:complexType />

      </xs:element>

      <xs:element name="MFRNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="MATNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="MATMAS05">

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="IDOC" />

      </xs:sequence>

      </xs:complexType>

      </xs:element>

      <xs:element name="MATFI">

      <xs:complexType />

      </xs:element>

      <xs:element name="MAKTX">

      <xs:complexType />

      </xs:element>

      <xs:element name="MAGRV">

      <xs:complexType />

      </xs:element>

      <xs:element name="LVORM">

      <xs:complexType />

      </xs:element>

      <xs:element name="LAEDA">

      <xs:complexType />

      </xs:element>

      <xs:element name="KZKFG">

      <xs:complexType />

      </xs:element>

      <xs:element name="KZEFF">

      <xs:complexType />

      </xs:element>

      <xs:element name="KUNNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="IPRKZ">

      <xs:complexType />

      </xs:element>

      <xs:element name="IDOC">

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="E1MARAM" maxOccurs="unbounded" />

      </xs:sequence>

      <xs:attribute name="BEGIN" use="required">

      <xs:simpleType>

      <xs:restriction base="xs:byte">

      <xs:enumeration value="1" />

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="GTIN_VARIANT">

      <xs:complexType />

      </xs:element>

      <xs:element name="GEWTO_NEW">

      <xs:complexType />

      </xs:element>

      <xs:element name="GEWTO">

      <xs:complexType />

      </xs:element>

      <xs:element name="GENNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="FUELG">

      <xs:complexType />

      </xs:element>

      <xs:element name="FORMT">

      <xs:complexType />

      </xs:element>

      <xs:element name="ETIFO">

      <xs:complexType />

      </xs:element>

      <xs:element name="ETIAR">

      <xs:complexType />

      </xs:element>

      <xs:element name="ERSDA">

      <xs:complexType />

      </xs:element>

      <xs:element name="ERNAM">

      <xs:complexType />

      </xs:element>

      <xs:element name="ERGEW">

      <xs:complexType />

      </xs:element>

      <xs:element name="ERGEI">

      <xs:complexType />

      </xs:element>

      <xs:element name="EKWSL">

      <xs:complexType />

      </xs:element>

      <xs:element name="E1MARAM">

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="MSGFN" />

      <xs:element ref="MATNR" />

      <xs:element ref="ERSDA" />

      <xs:element ref="ERNAM" />

      <xs:element ref="LAEDA" />

      <xs:element ref="AENAM" />

      <xs:element ref="LVORM" />

      <xs:element ref="ZEINR" />

      <xs:element ref="ZEIAR" />

      <xs:element ref="ZEIVR" />

      <xs:element ref="ZEIFO" />

      <xs:element ref="AESZN" />

      <xs:element ref="BLATT" />

      <xs:element ref="BLANZ" />

      <xs:element ref="FORMT" />

      <xs:element ref="WRKST" />

      <xs:element ref="NORMT" />

      <xs:element ref="EKWSL" />

      <xs:element ref="BEHVO" />

      <xs:element ref="RAUBE" />

      <xs:element ref="TEMPB" />

      <xs:element ref="STOFF" />

      <xs:element ref="KUNNR" />

      <xs:element ref="WESCH" />

      <xs:element ref="BWVOR" />

      <xs:element ref="BWSCL" />

      <xs:element ref="SAISO" />

      <xs:element ref="ETIAR" />

      <xs:element ref="ETIFO" />

      <xs:element ref="PRDHA" />

      <xs:element ref="CADKZ" />

      <xs:element ref="ERGEW" />

      <xs:element ref="ERGEI" />

      <xs:element ref="GEWTO" />

      <xs:element ref="VOLTO" />

      <xs:element ref="KZKFG" />

      <xs:element ref="VHART" />

      <xs:element ref="FUELG" />

      <xs:element ref="STFAK" />

      <xs:element ref="MAGRV" />

      <xs:element ref="BEGRU" />

      <xs:element ref="QMPUR" />

      <xs:element ref="RBNRM" />

      <xs:element ref="MHDRZ" />

      <xs:element ref="MHDHB" />

      <xs:element ref="MHDLP" />

      <xs:element ref="VPSTA" />

      <xs:element ref="MSTAE" />

      <xs:element ref="MSTAV" />

      <xs:element ref="MSTDE" />

      <xs:element ref="MSTDV" />

      <xs:element ref="MFRPN" />

      <xs:element ref="MFRNR" />

      <xs:element ref="BMATN" />

      <xs:element ref="MPROF" />

      <xs:element ref="COMPL" />

      <xs:element ref="KZEFF" />

      <xs:element ref="RDMHD" />

      <xs:element ref="IPRKZ" />

      <xs:element ref="PRZUS" />

      <xs:element ref="GEWTO_NEW" />

      <xs:element ref="AENNR" />

      <xs:element ref="MATFI" />

      <xs:element ref="CMREL" />

      <xs:element ref="SATNR" />

      <xs:element ref="SLED_BBD" />

      <xs:element ref="GTIN_VARIANT" />

      <xs:element ref="GENNR" />

      <xs:element ref="SERLV" />

      <xs:element ref="RMATP" />

      <xs:element ref="E1MAKTM" />

      </xs:sequence>

      <xs:attribute name="SEGMENT" use="required">

      <xs:simpleType>

      <xs:restriction base="xs:byte">

      <xs:enumeration value="1" />

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="E1MAKTM">

      <xs:complexType>

      <xs:sequence>

      <xs:element ref="MSGFN" />

      <xs:element ref="SPRAS" />

      <xs:element ref="MAKTX" />

      <xs:element ref="SPRAS_ISO" />

      </xs:sequence>

      <xs:attribute name="SEGMENT" use="required">

      <xs:simpleType>

      <xs:restriction base="xs:byte">

      <xs:enumeration value="1" />

      </xs:restriction>

      </xs:simpleType>

      </xs:attribute>

      </xs:complexType>

      </xs:element>

      <xs:element name="COMPL">

      <xs:complexType />

      </xs:element>

      <xs:element name="CMREL">

      <xs:complexType />

      </xs:element>

      <xs:element name="CADKZ">

      <xs:complexType />

      </xs:element>

      <xs:element name="BWVOR">

      <xs:complexType />

      </xs:element>

      <xs:element name="BWSCL">

      <xs:complexType />

      </xs:element>

      <xs:element name="BMATN">

      <xs:complexType />

      </xs:element>

      <xs:element name="BLATT">

      <xs:complexType />

      </xs:element>

      <xs:element name="BLANZ">

      <xs:complexType />

      </xs:element>

      <xs:element name="BEHVO">

      <xs:complexType />

      </xs:element>

      <xs:element name="BEGRU">

      <xs:complexType />

      </xs:element>

      <xs:element name="AESZN">

      <xs:complexType />

      </xs:element>

      <xs:element name="AENNR">

      <xs:complexType />

      </xs:element>

      <xs:element name="AENAM">

      <xs:complexType />

      </xs:element>

      </xs:schema>

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 07:51 AM

    Take the inbound payload from moni & test the same in your mapping under test tab. Also check if you have not missed to map any mandotary field (it will be in red color).

    Regards,

    Sarvesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      sarvesh,

      thanks 4 ur i/ps.

      if i wanna file exactly in idoc format, is it possible? what i mean is.. if u see a XML of an IDOC, it has all the flds of control record and all that other stuff from segments. so for this, how can i do?

      what i thought is, i can download the wsdl of idoc imported and then import its xml as my target file structure. is this ok?

      thanks

      siva

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 12:40 PM

    Hi Siva,

    this error is coming because of your mandatory occurance of the receiver elements.

    ie : on source side you might be having 0-1 and on target side 1-1. In this situation mapping is mandatory for all the fields.

    You will get no erroe if you pass data into all the fields.

    The alternative for this is pass data externally as null.

    You can use exits node function and check whether the field exists in the payload and then pass null value if it won't exits.

    This will solve your problem.

    You have to use EXIST node function and IF condition.

    Pass field to if via exist and again field to then and pass null to the else .

    Regards,

    Jeevan

    Edited by: jeevan on Mar 25, 2008 1:47 PM

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.