Skip to Content
0
Former Member
Jan 11, 2005 at 08:19 AM

Making Customer Exits Work in the Portal

46 Views

[NetWeaver 04 - SP9, NetWeaver Developer Studio 2.0.9]

Hello all

I've developed and deployed a portal service that maps users to the stores they belong to. The idea is to use the service as a Customer Exit in an AppIntegrator iView. This is pretty well documented in the Application Integrator HOWTO, chapter 6.

However, I haven't really found any good documentation on how to set up the AppIntegrator iView. I've experimented with all kinds of different combinations for which names and IDs go where in the iView configuration. Can anyone shed some light on this?

The relevant parameters are set like this:

ApplicationParameter: G_STOREWB_EINSTIEG-WERKS=<StoreID>&~OKCODE=TAKE

CustomerExit.ParameterProvider: store_id

I get this error message when running the iView:

Unable to process template 'G_STOREWB_EINSTIEG-WERKS=<StoreID>&~OKCODE=TAKE', because 'StoreID' is an invalid terminal property of the context ''..

The service has this portalapp.xml:

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

<application>

<registry>

<entry path="/com.sap.portal.appintegrator/customer_exits/parameter_provider/store_id" name="StoreIDProvider" type="service"/>

</registry>

<application-config>

<property name="SharingReference" value="com.sap.portal.appintegrator"/>

</application-config>

<components/>

<services>

<service name="StoreIDProvider">

<service-config>

<property name="className" value="com.bogus.portal.storeidprovider.StoreIDProvider"/>

<property name="startup" value="true"/>

</service-config>

</service>

</services>

</application>

BTW, the service seems to be deployed okay - in the portal, under Java Development -> Tools -> PRT Registry Browser, my service is listed under "ROOT/com.sap.portal.appintegrator/customer_exits/parameter_provider".

Name: store_id

Class name: java.lang.String - com.bogus.portal.storeidprovider|StoreIDProvider

Any help with this will be greatly appreciated. Thanks!

-martin