Class JCoHelper.ReturnValue
java.lang.Object
de.hybris.platform.sap.core.bol.backend.jco.JCoHelper.ReturnValue
- Enclosing class:
- JCoHelper
Represents the data returned by a call to the function module.
- Version:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionReturnValue(com.sap.conn.jco.JCoTable messages, com.sap.conn.jco.JCoStructure message, String returnCode) Creates a new instance.ReturnValue(com.sap.conn.jco.JCoTable messages, String returnCode) Creates a new instance.ReturnValue(JCoHelper.ReturnValue returnValue) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncom.sap.conn.jco.JCoStructureGet the Structure containing the messages returned by the call to the backend (e.g.com.sap.conn.jco.JCoTableGet the table containing the messages returned by the call to the backend (e.g.Get the code the CRM call has returned.
-
Constructor Details
-
ReturnValue
Creates a new instance.- Parameters:
messages- Table containing the messages returned from the backendreturnCode- The return code returned from the backend
-
ReturnValue
public ReturnValue(com.sap.conn.jco.JCoTable messages, com.sap.conn.jco.JCoStructure message, String returnCode) Creates a new instance.- Parameters:
message- Structure containing only one message (Structure can be different as for the messages table)messages- Table containing the messages returned from the backendreturnCode- The return code returned from the backend
-
ReturnValue
Creates a new instance.- Parameters:
returnValue- the return value
-
-
Method Details
-
getReturnCode
Get the code the CRM call has returned.- Returns:
- The backend return code
-
getMessages
public com.sap.conn.jco.JCoTable getMessages()Get the table containing the messages returned by the call to the backend (e.g. ERP, CRM, ...)- Returns:
- table containing the messages
-
getMessage
public com.sap.conn.jco.JCoStructure getMessage()Get the Structure containing the messages returned by the call to the backend (e.g. ERP, CRM, ...)- Returns:
- table containing the messages
-