cancel
Showing results for 
Search instead for 
Did you mean: 

Party-related error in OPI2 AS2 adapter

Former Member
0 Kudos

Hi all,

I am working on a B2B interface (PI 7.1) in which invoices are sent as custom IDocs from SAP ECC to the business partner via AS2. We have used AS2 adapter from OPI2 (http://opi2.sourceforge.net/). The adapter has been installed successfully.

When the interface is tested end-to-end by triggering an IDoc from SAP, the AS2 receiver adapter gives following error:

=============

Error Delivering the message to the application using connection AS2_http://cbsgmbh.com/xi/AS2/Adapter failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.service.cpa.Party.getParty() of an object loaded from local variable 'party'

=============

Looking at the error, it seems the error is related to header mapping. But I am not able to figure out where exactly is the issue. The partner profiles in SAP are such that the IDoc XML shows "LS" for both sender and receiver and SXMB_MONI does not show sender party name. I tried using both types of PI configuration - with and without sender party, but didn't help. Looks like I missed some other setting.

I went through this document (Sample IDoc-XI scenarios), but couldn't find out exact solution to my problem.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2...

OPI2 AS2 documentation says that header mapping for sender party and sender service is required in the receiver agreement. But SAP Help mentions that header mapping is not supported for receiver adapters other than IDoc, XI, HTTP, RNIF and CIDX.

However, if the interface is tested from RWB with the sender party specified, then the AS2 adapter works fine and receiver-side message is shown successful in AE message monnitoring.

We do have AS2-specific identifiers for sender and receiver parties. But need to know how exactly following parameters are to be specified -

1) Partner profiles in SAP

2) Party Identifiers

3) Identifiers in AS2 receiver channel (in the 'Identifers' tab)

4) Header mapping in receiver agreement - Which ones out of sender party, sender service, receiver party and receiver service are required ?

Regards,

-Shankar

Accepted Solutions (0)

Answers (2)

Answers (2)

prateek
Active Contributor
0 Kudos

There is no need to create any Party for your ECC sender. You have to create a Party representing your PI system. This should be the place where you specify your own AS2ID. This AS2ID should be provided to the partner in order to successfully send/receive data to/from PI. In the receiver agreement, you have to then provide PI party and business system under the Header mapping.

Regards,

Prateek Raj Srivastava

karsten_mhwald
Explorer
0 Kudos

Hi Shankar,

maybe you can check our new HowTo-Guide.

http://scn.sap.com/docs/DOC-31349

Best Regards,

Karsten