public class GroovyERPServerHelper extends Object
Constructor and Description |
---|
GroovyERPServerHelper() |
Modifier and Type | Method and Description |
---|---|
com.sap.conn.jco.JCoFunction |
executeJCoFunction(com.sap.conn.jco.JCoFunction jcoFunction)
Executes the jcoFunction
|
JCoFunctionWithTransaction |
executeJCoFunctionWithTransactionAndCommit(String destinationName,
com.sap.conn.jco.JCoFunction jCoFunction)
To execute the jcoFunction along with BAPI_TRANSACTION_COMMIT function.
|
JCoFunctionWithTransaction |
executeJCoFunctionWithTransactionAndCommit(String destinationName,
com.sap.conn.jco.JCoFunction jCoFunction,
Function<com.sap.conn.jco.JCoFunction,Boolean> isValidationSuccessful)
To execute the jcoFunction along with BAPI_TRANSACTION_COMMIT function.
|
com.sap.conn.jco.JCoFunction |
getJCoFunction(String destinationName,
String functionName)
This method returns the requested JCoFunction
|
boolean |
isDestinationConfigured()
This method helps to determine if we are using ERP server or not
|
public com.sap.conn.jco.JCoFunction executeJCoFunction(com.sap.conn.jco.JCoFunction jcoFunction) throws com.sap.conn.jco.JCoException
jcoFunction
- JCoFunction to be executedcom.sap.conn.jco.JCoException
public JCoFunctionWithTransaction executeJCoFunctionWithTransactionAndCommit(String destinationName, com.sap.conn.jco.JCoFunction jCoFunction) throws com.sap.conn.jco.JCoException, AppCustomException
destinationName
- Name of the destinationjcoFunction
- JCoFunction to be executedcom.sap.conn.jco.JCoException
AppCustomException
public JCoFunctionWithTransaction executeJCoFunctionWithTransactionAndCommit(String destinationName, com.sap.conn.jco.JCoFunction jCoFunction, Function<com.sap.conn.jco.JCoFunction,Boolean> isValidationSuccessful) throws com.sap.conn.jco.JCoException, AppCustomException
destinationName
- Name of the destinationjcoFunction
- JCoFunction to be executedisValidationSuccessful
- Validation functioncom.sap.conn.jco.JCoException
AppCustomException
public com.sap.conn.jco.JCoFunction getJCoFunction(String destinationName, String functionName) throws com.sap.conn.jco.JCoException, AppCustomException
destinationName
- Name of the destinationfunctionName
- Requested JCoFunction namecom.sap.conn.jco.JCoException
AppCustomException
public boolean isDestinationConfigured()