3

I need to test a module without actually calling our SAP provider via executing a "real" JCoFunction.

How do I instantiate a "formally correct" JCoFunction?

I can even just deal with a JCoParameterList but just can't figure out how to instantiate it or even mock it.

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
mfirry
  • 3,634
  • 1
  • 26
  • 36

2 Answers2

1

The SAP Java Connector (SAP JCo) is a toolkit that allows a Java application to communicate with any SAP System.

These guys here tried to do the same, using the 3.0 version of the SAP JCo: Can a JCo server simulate a SAP remote function?

My experience from last week is that it is not possible to create a mock SAP server to act like a JCoDestination.

Thiago Kronig
  • 176
  • 1
  • 11
0

Why not this?

new JCO.ParameterList()
thejh
  • 44,854
  • 16
  • 96
  • 107
  • Here it says that it's a class: http://www.huihoo.org/openweb/jco_api/com/sap/mw/jco/JCO.ParameterList.html – thejh Nov 04 '10 at 16:34
  • will look into that BUT for now i'm talking about com.sap.conn.jco.JCoParameterList – mfirry Nov 04 '10 at 16:35
  • Where's the javadoc? Is it publically accessible? – thejh Nov 04 '10 at 16:52
  • apparently not. i'm gonna have to ask my boss to get a "SAP Service Marketplace" account. meanwhile, if anybody else already did something like this, it'd be nice to give it a look. – mfirry Nov 04 '10 at 17:11
  • @NidaSahar not working on this in a long time. sorry. – mfirry Jun 09 '15 at 21:09