Implementing Downstream Synchronization

  1. Implement the exchange process in SAP:

    If there are similar objects already existing in SAP for any of these steps, it may be easier to select that object, right click, and choose the Copy menu item. After the object is copied, right click and select the Change menu item to make the necessary changes.

    1. Add or modify the appropriate exchange table to store the change activity record.
    2. Add or modify the appropriate lock object to trigger the lock mechanism for the update process.
    3. Add or modify the exchange class handler.
    4. Add or modify the methods by redefining the method GET_FIELD_SELECTOR_TABLES to enable the field selector function for the exchange object.
    5. List the database tables supported by the exchange handler for change detection field selection and pass it to ET_FLDSEL_TABLE_LIST.
    6. If required, redefine the method GET_TABLE_FILTER_LIST to enable the change detection filter function for the class handler. This provides the ability to restrict change detection based on data content.
    7. List the filters supported by this exchange class handler along with the table name and the field name and pass it to the output table ET_DATA_FILTERS. Take the data object filter name from the technical properties of the field.
    8. Add or modify the EFI enhancements.
    9. Add or modify the EFI includes and insert in the appropriate enhancement location.

      The following areas may need to be added or modified when developing the source code plug-in:

      • Determine the current transaction update mechanism.
      • Construct an object key for the exchange table.
      • Build the data table with old and new values to detect changes based on field selections and filter conditions configured for the exchange object.
      • Call the exchange object class handler method UPDATE_EXCHANGE to update the exchange table with the current action and timestamp.
    10. Add or modify the handler base by inheriting all the properties from the superclass /SYCLO/CL_CORE_EX_HANDLER_BASE. This superclass contains the base methods to fulfill the business logic related to the exchange process.
    11. Add or modify the subclass.
  2. Implement the downstream synchronization in Agentry Editor:
    1. Create new steplets for fetches and transactions.
    2. Create the associated stephandlers.
    3. Create the new POJO for the exchange object.
  3. Add the new exchange object in the Agentry SAP Framework Configuration portal:
    1. Add or modify the exchange object.
    2. Add or modify the mobile data object.
    3. Add or modify the BAPI wrapper and assign the object to the BAPI wrapper.
    4. Add or modify the EFI.