cancel
Showing results for 
Search instead for 
Did you mean: 

Extending com.sap.mw.jco.JCO.Client

Former Member
0 Kudos

Hi,

I have the need to 'Extend' the standard JCO.Client class, such that I can override the execute method to perform some additional functionality, I have implemented the following,

***********************************************

package some.company.jco;

import com.sap.mw.jco.*;
import java.util.Properties;

public class Client extends com.sap.mw.jco.JCO.Client {
	public Client(Properties arg0) {
		super(arg0);
		// implement all constructors
	}

	public void execute(com.sap.mw.jco.JCO.Function function)
	{
		super.execute(function);
		// perform some custom actions
	}
}

***********************************************

This compiles fine in Eclipse 3.0, but I am using NWDS 15 (NW04 SP15) which runs on eclipse 2.1.2 and this results in a compilation error of 'The compilation unit indirectly references the missing type com.sap.jdsr.writer.DsrIPassport(....)

From my investigation I believe that this issue is a result of the earlier Eclipse build being 'over zealous' in searching for dependent classes.

So that I can successfully compile this class in NWDS 15 can anyone tell me the JAR file within which the file 'com.sap.jdsr.writer.DsrIPassport ' is enclosed, so that i can add this to my classpath.

Thanks

Ciaran

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ciaran,

I'm using another approach. I think that it's better to create a manager class like this:


public class JCoManager
{
public connect(Parameter para) {....}

public disconnect() {.....}

public JCO.Function createFunction(String name) {....}

public void execute(JCO.Function function) {......}
}

Best regards,

Mathieu

PS : reward points if helpful.