public class ItemTextMapper extends TextMapper
Handles item texts.
  • Field Details

    • sapLogger

      public static final Log4JWrapper sapLogger
      Logging instance
  • Constructor Details

    • ItemTextMapper

      public ItemTextMapper()
  • Method Details

    • init

      public void init()
      Description copied from class: BaseMapper
      Bean initializer.

      Check if all mandatory values injected, else throw runtime error.

      Specified by:
      init in class BaseMapper
    • read

      public void read(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items)
      Handle output of header and item text. The ERP data is converted into header text, header answer text and item texts
      Parameters:
      etItemTextComV - JCO item text table
      items - BO items
      objInstMap - Storage of object/parent object relation
    • read1Row

      protected void read1Row(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items)
      Handles item texts. Transfers them from LO-API tables to BOL items
      Parameters:
      etItemTextComV -
      objInstMap -
      items - BOL item list
    • write

      public void write(SalesDocument salesDoc, Set<String> itemsToBeChanged, com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst)
      Writes item texts. Fills JCO tables from the BOL items before the LO-API update call
      Parameters:
      salesDoc -
      itemsToBeChanged -
      textV - Text table
      textX - Table of change indicators
      objInst -
    • setValues

      protected void setValues(com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst, Item item, String itemHandle, boolean sendKeyFields, String handle)
      Parameters:
      textV -
      textX -
      objInst -
      item -
      itemHandle -
      sendKeyFields -
      handle -