Class BapiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.redwood.scheduler.api.connector.sap.rfc.scripting.RfcException
-
- com.redwood.scheduler.api.connector.sap.rfc.scripting.BapiException
-
- All Implemented Interfaces:
Serializable
public class BapiException extends RfcException
Exception that represents a BAPI error- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BapiException(String functionName, BapiReturn newBapiReturn, String[] importParams)
BapiException(String functionName, BapiReturn newBapiReturn, String[] importParams, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BapiReturn
getBapiReturn()
String
getField()
String
getFunctionModuleName()
Get the function module nameString
getId()
String
getKey()
String
getNumber()
String[]
getParameters()
Get import parameters of the function moduleint
getRow()
String
getSystem()
String
getText()
String
getType()
String
getV1()
Get V1String
getV2()
Get V2String
getV3()
Get V3String
getV4()
Get V4String[]
getVariables()
Get message variables as array-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BapiException
public BapiException(String functionName, BapiReturn newBapiReturn, String[] importParams, Throwable cause)
- Parameters:
functionName
- Name of the function module that caused this BAPI exceptionnewBapiReturn
- List of message from SAP tableimportParams
- array of import parameters of the function module call. Never null.cause
- the root cause of this exception
-
BapiException
public BapiException(String functionName, BapiReturn newBapiReturn, String[] importParams)
- Parameters:
functionName
- Name of the function module that caused this BAPI exceptionnewBapiReturn
- List of message from SAP tableimportParams
- array of import parameters of the function module call. Never null.
-
-
Method Detail
-
getFunctionModuleName
public String getFunctionModuleName()
Get the function module name- Returns:
- name of the function module
-
getId
public String getId()
-
getNumber
public String getNumber()
-
getText
public String getText()
-
getType
public String getType()
-
getParameters
public String[] getParameters()
Get import parameters of the function module- Returns:
- array with the import parameters of the function module
-
getV1
public String getV1()
Get V1- Returns:
- value of the first variable in first message
-
getV2
public String getV2()
Get V2- Returns:
- value of the second variable in first message
-
getV3
public String getV3()
Get V3- Returns:
- value of the third variable in first message
-
getV4
public String getV4()
Get V4- Returns:
- value of the fourth variable in first message
-
getField
public String getField()
-
getRow
public int getRow()
-
getSystem
public String getSystem()
-
getVariables
public String[] getVariables()
Get message variables as array- Returns:
- array with message variables in first message
-
getKey
public String getKey()
-
getBapiReturn
public BapiReturn getBapiReturn()
-
-