cancel
Showing results for 
Search instead for 
Did you mean: 

Use of custom backendobject-config.xml not working on ISA 7.0

0 Kudos
102

Hi,

we are implementing Internet Sales 7.0 R3 edition.

We are trying to use the Z_DetailStrategyR3PI.java and Z_CreateStrategyR3PI.java class, as we did in other projects on 4.0 and 5.0 versions of Internet sales (according to Development and Extension Guide).

The steps are:

1. Derive Z_OrderR3.java and Z_OrderStatusR3.java from OrderR3.java and OrderStatusR3.java

2. Derive Z_DetailStrategyR3PI.java and Z_CreateStrategyR3PI.java from DetailStrategyR3PI.java and CreateStrategyR3PI.java

3. Overwrite initBackendObject() method on the first two classes

4. Register Z_OrderR3.java and Z_OrderStatusR3.java on backendobject-config.xml

Then we built and deployed the application.

Unfortunately the custom application does not use the Z classes and we do not have any error, but standard application behaviour.

So we were wondering if there is a different way to register custom Order and OrderStatus backend objects on ISA 7.0 ...

Following the code implemented:


---------------- Z_OrderR3
public class Z_OrderR3 extends OrderR3 {

	public Z_OrderR3() {
		super();
		// TODO Auto-generated constructor stub
	}	
	public void initBackendObject(
		Properties props,
		BackendBusinessObjectParams params)
		throws BackendException {
		super.initBackendObject(props, params);
			createStrategy =
				new Z_CreateStrategyR3PI(
					backendData,
					writeStrategy,
					readStrategy);
		}
}

----------------  Z_OrderStatusR3
public class Z_OrderStatusR3 extends OrderStatusR3 {
	public Z_OrderStatusR3() {
		super();
		// TODO Auto-generated constructor stub
	}
	public void initBackendObject(
		Properties props,
		BackendBusinessObjectParams params)
		throws BackendException {
		super.initBackendObject(props, params);
		if (detailStrategy instanceof DetailStrategyR3) {
			detailStrategy =
				new Z_DetailStrategyR3PI(backendData, readStrategy);
		}
	}

}

----------------  backendobject-config.xml 
        <config isa:extends="../config[@id='r3pidefault']">
            <businessObject type="OrderStatus" name="orderstatus" className="com.icms.isa.backend.r3.salesdocument.Z_OrderStatusR3" connectionFactoryName="JCO" defaultConnectionName="ISAStateful"/> 
            <businessObject type="Order" name="order" className="com.icms.isa.backend.r3.salesdocument.Z_OrderR3" connectionFactoryName="JCO" defaultConnectionName="ISAStateful" /> 
        </config>

Edited by: Servizio Utente on Nov 12, 2009 1:19 PM

View Entire Topic
0 Kudos

Hi,

We created a copy of backendobject-config.xml under the xcm customer path on project sap.com.crm-isa-web-b2b

This is how we did it on ISA 5.0

Thank you for replying.