Class JCoHelper.ReturnValue

java.lang.Object
de.hybris.platform.sap.core.bol.backend.jco.JCoHelper.ReturnValue
Enclosing class:
JCoHelper

public static class JCoHelper.ReturnValue extends Object
Represents the data returned by a call to the function module.
Version:
1.0
  • Constructor Details

    • ReturnValue

      public ReturnValue(com.sap.conn.jco.JCoTable messages, String returnCode)
      Creates a new instance.
      Parameters:
      messages - Table containing the messages returned from the backend
      returnCode - 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 backend
      returnCode - The return code returned from the backend
    • ReturnValue

      public ReturnValue(JCoHelper.ReturnValue returnValue)
      Creates a new instance.
      Parameters:
      returnValue - the return value
  • Method Details

    • getReturnCode

      public String 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