cancel
Showing results for 
Search instead for 
Did you mean: 

EXCEPTION_DURING_EXECUTE error in IDOC to file...

Former Member
0 Kudos

Hi Xi friends.....

in IDOC to xml..i am getting EXCEPTION_DURING_EXECUTE of mapping catagory in SXMB_moni....static test is OK..

 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <!--  Request Message Mapping 
  --> 
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
  <SAP:Category>Application</SAP:Category> 
  <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code> 
  <SAP:P1>com/sap/xi/tf/_MM_SAP_IORDER_To_MES_WorkOrderCrea~</SAP:P1> 
  <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2> 
  <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3> 
  <SAP:P4 /> 
  <SAP:AdditionalText /> 
  <SAP:ApplicationFaultMessage namespace="" /> 
  <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_SAP_IORDER_To_MES_WorkOrderCrea~ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack> 
  <SAP:Retry>M</SAP:Retry> 
  </SAP:Error>

mapping is like this

IOREDR01 1..1 -


> WorkOrders 1..1

--- E1ORHDR 1..1 -


> Order 1..1

-


Aufnr 0..1 -


> id required

-


E1OROPR 1..999999 -


> Operation 1..unbounded

-


Vornr 1..1 -


> id required

-


Ltxa1 1..1 -


> desc 1..1

-


fsavd 1..1 -


> startdate required

and some fileds in the E1OROPR to target fields mapped...

please help me....

regards

ram

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi friends...

thanks for your helping..

jai...

i deleted the templatecode in external defintion..now its successfully executed...

in idoc utxt is string type of maxlenth 40 and i changed external deifintion also to lenth 40 but ..still error...without templetcode its Ok..

so how to declare template code in xsd ...maxlenth 40.

<i><xs:attribute name="TemplateCode" type="TemplateCode" use="required" />

<xs:simpleType name="TemplateCode">

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

<xs:maxLength value="40" />

<xs:minLength value="0" />

</xs:restriction>

</xs:simpleType></i>

correct the above and help me....

in source field is string and maxlenth is 40

regards

ram

Former Member
0 Kudos

Hi Ram,

Check your Content conversion parameters, in the Document structure whether you have given the DT or MT.

Regards,

Chaitanya

Former Member
0 Kudos

Sorry it is Document Name

Former Member
0 Kudos

Hi Himadri..

thanks for your quick response..

i tested ..but i got..

<i>Cannot produce target element /ns0:WorkOrders/ns0:Order/ns0:Operation/TemplateCode. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</i>

the target field TemplateCode is TemplateCode type...which i gor from external defintion.. is any need to change type to string...

regards

ram

Former Member
0 Kudos

Hi Ram,

Within Operation element there is a Template code element. That templatecode element is getting generated, and Operation element is not getting generated.

Check the parent mapping i.e Operation element mapping. That should solve your problem.

Regards,

P.Venkat

Former Member
0 Kudos

Hi Ram.

If you beleive that node is causing problem, try disabling the field and test your mapping. Check you dont have any other errors apart from this.

Regards,

Jai Shankar

former_member189558
Contributor
0 Kudos

Ram,

Check the mapping for <i>TemplateCode</i> and if ur source data satisfies the conditions...

Himadri

former_member189558
Contributor
0 Kudos

Ram,

Can you download the payload from SXMb_moni and test in mapping test?

Cheers,

Himadri