Adding a New Complex Table

Adding a new complex table to the application requires four main tasks:
  • Creating or modifying the exchange tables and associated objects in SAP.
  • Using the Agentry SAP Framework Configuration portal to create a new MDO or Z-MDO for the complex table.
  • Creating new complex table Java class, step handler and POJO for the new complex table in the Java editor in Eclipse.
  • Using Agentry Editor to modify the application to make use of and support the new complex table.
  1. Create or modify the exchange process in SAP
    1. Determine the enhancement spot in SAP if an exchange process is required. An enhancement spot is a location in the SAP code where access is available to the data that is changing either through a transaction or a BAPI.
    2. Create the enhancement implementation. The enhancement implementation should be in an update module.
    3. Create the exchange table.
    4. Create the lock object associated with the exchange table.
    5. Create the EFI implementation. The EFI implementation reads the data being changed in SAP and calls the method /syclo/cl_cor_exch_serve=>update_exchange to update the exchange table.
    6. Determine and create the structure of the data that is sent back in the ET_COMPLEX_TABLE parameter of the BAPI wrapper.
    7. Determine and create the structure of the deleted records that are sent back in the ET_EXCHANGE_ACTION_DELETED parameter of the BAPI wrapper.
    8. Create the MDO handler class, which will inherit from the class /SYCLO/CL_CORE_CT_HANDLER.
  2. Create a new complex table in the Configuration portal
    1. Create a new complex table MDO or copy an existing MDO to the Z-namespace.
    2. If needed, create a new BAPI wrapper in the Z-namespace using the BAPI include template /syclo/core_bapi_template_incl.
    3. Assign the new Z-MDO to the new BAPI wrapper, or assign the new Z-MDO to an existing BAPI wrapper, depending on your configuration.
  3. Create the complex table in the Agentry Editor
    1. Create a new complex table in Agentry Editor to make use of and support the data in SAP.
    2. Create the field definitions within the complex table to
    3. Add any necessary indexes to the complex table.
  4. Configure Java synchronization between the complex table and Agentry
    1. Open the appropriate Java project for the SAP application.
    2. Modify the new complex table class created when the complex table definitions was added to the Agentry application project.
    3. Create the associated step handlers.
    4. Create the new POJO for the complex table.
    5. Publish the application to the SAP Agentry Development Server in preparation for testing. Restart the Server as changes were also made to the Java logic in support of the new complex table.
Next

Perform a transmit from the Agentry Test Environment and verify that the new complex table and all related functionality are producing desired results.