Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 28, 2012 at 03:12 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 28, 2012 at 03:28 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Mar 30, 2012 at 01:28 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded