cancel
Showing results for 
Search instead for 
Did you mean: 

File to RFC Scenario receiver channel error message exception

Former Member
0 Kudos

Hello All


I am trying working on FIle to RFC scenario.

i configured sender and receiver channel .

sender channel running successfully but receiver channel shows message processing failed.when i checked message log i got following errors.

here i attached screen shot .


"Mapping "http://Vendor_BAPI/OM_VendorRFC" failed to execute: MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_VendorRFC_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:ZVENDOR_CREATE/CITY. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD".


"Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.service.mapping.MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_VendorRFC_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:ZVENDOR_CREATE/CITY. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD"

1)


2)

Accepted Solutions (1)

Accepted Solutions (1)

former_member550907
Participant
0 Kudos

Hi Ganesh!

You have solved this problem?

We have a similar error

Please contact me personally

thank you!

Regards

Rinaz

Former Member
0 Kudos

Hi Rinaz,

I have solved the problem.

can u please check BAPI with in ECC system with u r input values.

Please follow link for more information about configurations.

File-RFC-File(Without BPM) - Process Integration - SCN Wiki

Regards

Ganesh

Answers (6)

Answers (6)

rhviana
Active Contributor
0 Kudos

Hi Ganesh,

Check if the ocorrurenci of field CITY it´s 1:1 or 1:unbound.

If yes, you must provide any value.

If not, do somechanges and save it again, could be a error of java cache.

Regards,

Ricardo Viana.

sendhil_kumar
Active Participant
0 Kudos

Hi Ganesh,

Have you used any node function for CITY? If so, please specify.

--

Sendhil.

Former Member
0 Kudos

Hello Team,

Here i am attaching the Dump file that is generated in the SAP system.

Thanks for ur response.

Regards,

Ganesh.

former_member184720
Active Contributor
0 Kudos

I could see the error as "

"The field "DATE" is unknown, but there is a field with the similar nam"                      |

|    "e "DATEH". "DATEH"."

Can you check what is defined in RFC strcture? Seems like the porgram has changed recently.

You might have reimport the RFC and and process the message..

Bhargavakrishna
Active Contributor
0 Kudos

Hi Ganesh,

As said by Hareesh , check the RFC structure , if any thing changed recently... import the RFC once again to reflect the changes in the message structure.

Also check the Date format of RFC structure and your File.. if it is different try to use the date conversion functions in mapping to get the desired format.

Regards

Bhargava krishna

Former Member
0 Kudos

hi Ganesh,

Considering that you are sure that your target structure matches with your ABAP structure, can you also add here a screenshot of the display queue of your map with the same input? I am just wondering if this is a context issue.

Regards,

Ninu

Former Member
0 Kudos

Hi..Team

thnx for u r info

I already mapped city filed in message mapping ,its already existing in payload.

its passing to ECC system but  its creating short dump. when  i checked with t code ST22 .

former_member184720
Active Contributor
0 Kudos

Hi Ganesh - Then can you validate field lengths & type defined in RFC and what is being sent by PI?


Former Member
0 Kudos

Hello Hareesh

In that BAPI all fields are string type,i am also taking as string type.

and also satisfying length condition.

thnx for u r responce

Muniyappan
Active Contributor
0 Kudos

Hi,

Could you please provide dump description?

Regards,

Muniyappan

former_member184720
Active Contributor
0 Kudos

Hi Ganesh - Is it the same error in short dump? Did you try dubugging it?

Wondering if there are any validation in the function module..

former_member184720
Active Contributor
0 Kudos

Hi Ganesh - It's a mapping failure. CITY might be a mandatory field in your RFC strcture.

As suggested by Muniyappan, take the input payload and test in ESR.

The corresponding source field might be missing in the processed File.

Muniyappan
Active Contributor
0 Kudos

Hi,

Looks /ns1:ZVENDOR_CREATE/CITY is missing in the target message.

take the input payload and test the same in message mapping (ESR).

Regards,

Muniyappan.