cancel
Showing results for 
Search instead for 
Did you mean: 

"missing namespace declaration error" while Java calls BAPI during Operation Mapping

ronnypol
Explorer
0 Kudos

Hi

In PI during the Operation Mapping we use JAVA to call a BAPI. In PI 7.0 it works fine. Now we are moving this part to PI 7.11. During this Mapping I receive following error message in the communication-channel-monitoring:

Verarbeitungsfehler verursacht durch: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.adapter.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2)

Any idea where the problem is and how to fix it?

- BABI works fine
- Communication Channel is correct configured

Thanks
Ronny

Accepted Solutions (0)

Answers (3)

Answers (3)

ronnypol
Explorer
0 Kudos

The error occours during the java function call LookupService.getRfcAccessor

channel = LookupService.getChannel(service + DEVELOPMENT_EXTENSION, communicationChannel);

accessor = LookupService.getRfcAccessor(channel);

The ObjectID which is generatet in Java is identical to the ObjectID in the Integration Builder. No idea what the problem is.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>In PI during the Operation Mapping we use JAVA to call a BAPI. In PI 7.0 it works fine.

1. you should never call BAPIs in a mapping step

2. you probably don't use a BAPI structure from ESR/IR so just check if your code produced the correct XML message (logs etc.) as probably the structure is not ok

3. try using a normal call to BAPI as a receiver or remodel the flow to make it correct - we can help you if you call us what you need to achive

Regards,

Michal Krawczyk

ronnypol
Explorer
0 Kudos

We use the call for a lookup. In 7.0 it works fine but not in 7.11, so there could not be a problem with the XML message.

Shabarish_Nair
Active Contributor
0 Kudos

can you try to reimport the BAPI into PI 7.11 and use this once again in your mappings and ID configurations?

Also, check the connection parameters you have set in the RFC adapter once again.

MichalKrawczyk
Active Contributor
0 Kudos

Hi Shabz,

I don't think he's even using the BAPI XML (from ESR) as he's calling it from mapping...

Regards,

Michal Krawczyk

Shabarish_Nair
Active Contributor
0 Kudos

in that case I agree it isnt a great way to do so unless it is a lookup.

ronnypol
Explorer
0 Kudos

we use it for a lookup