cancel
Showing results for 
Search instead for 
Did you mean: 

WS to RFC Scenario::Response not generated

Former Member
0 Kudos

Hi Experts,

I am dealing with WS to RFC scenario, where WS is generated by PI.

When I am testing the WS in Ms Infopath, its showing an error : "Infopath cant execute the query::Error in Soap response".

In Moni, Response message is coming with invalid xml::

<?xml version="1.0" encoding="UTF-8" ?>

<rfc:ZPTS_RESEQ_STATUS.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions" />

ERROR:: Runtime Exception During Mapping::Unable to produce the target element.

Also, while triggering the RFC, we are getiing response properl posted to R3.

Please suggest.

Thanks & regards,

Sushama

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi Sushama,

Is this thread in continuation of . IF yes then I doubt the approach (ie sending the request to RFC1 and getting response from RFC2.response) which you are using will work..

>>ERROR:: Runtime Exception During Mapping::Unable to produce the target element.

This justifies my doubt..

So I would still suggest you to have a proxy class in the SAP side.

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

I tried that approach of creating Message Interface and mapping 2 RFCs, but its not working.

Hence, they have modified the RFC and now I am using single RFC for req and response.

So, you can consider it different.

Regards,

Sushama

former_member187339
Active Contributor
0 Kudos

Hi Sushama,

Can you paste here the complete error message and the response of RFC

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Response RFC::

<?xml version="1.0" encoding="UTF-8" ?>

<rfc:ZPTS_RESEQ_STATUS.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions" />

ERROR::

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code

Root Cause: com.sap.aii.mappingtool.tf3.IllegalInstanceException: Cannot produce target element /ns1:Z_ReseqStatus_resp/X_ReseqStatus. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:212) at

Regards,

Sushama

former_member187339
Active Contributor
0 Kudos

Hi Sushama,

Since the response from RFC is blank (as it doesn't contains any node) so you are getting this failure in message mapping.

Try to see why there is no response for the request which you sent to the RFC. Log in to ECC and execute the RFC with the same set of input and try to debug it

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Already executed the RFC, its executed successfully.

Please suggest.

Regards,

Sushama

former_member185881
Active Participant
0 Kudos

Hi Sushma

This is a mapping issue.

Just check your mapping for this particular field. Its showing that what ever mapping you have done from this particular source field to target field is not executing properly.

This is the only solution for this problem check ur mapping for this field.

Regards

Dheeraj kumar

Former Member
0 Kudos

Dheeraj,

Mapping is executing properly. All fields are mapped one to one.

Please suggest.

Regards,

Sushama

former_member185881
Active Participant
0 Kudos

Hi Sushma

If you have done one to one mapping doesn't mean that your mapping is correct.

I mean to say if the source field does not exists during runtime and its occurance is 1:1 then you will get the mapping exception what you are getting.

Regards

Dheeraj Kumar

Former Member
0 Kudos

Hi,

Take the initial response delivered by the target system and use it in the mapping test tool ... It will show you what's wrong with your mapping (mandatory field missing etc)

Chris

Former Member
0 Kudos

Hi All,

Thanks for the support.

Problem solved

Regards,

Sushama

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sushma,

This is general Mapping transformation error from your response message.

find the your Response message type and mapping .you correctly mapped or not.

"ERROR:: Runtime Exception During Mapping::Unable to produce the target element." this error tells to you , you are not properly configured your response mapping..

find your mapping and also enter the proper data fields also

Thanks,

Sateesh