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.
- Create or modify the exchange process in SAP
- 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.
- Create the enhancement implementation. The enhancement
implementation should be in an update module.
- Create the exchange table.
- Create the lock object associated with the exchange
table.
- 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.
- Determine and create the structure of the data that
is sent back in the ET_COMPLEX_TABLE parameter of the BAPI wrapper.
- Determine and create the structure of the deleted
records that are sent back in the ET_EXCHANGE_ACTION_DELETED parameter
of the BAPI wrapper.
- Create the MDO handler class, which will inherit from
the class /SYCLO/CL_CORE_CT_HANDLER.
- Create a new complex table in the Configuration portal
- Create a new complex table MDO or copy an
existing MDO to the Z-namespace.
- If needed, create a new BAPI wrapper in the Z-namespace
using the BAPI include template /syclo/core_bapi_template_incl.
- 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.
- Create the complex table in the Agentry
Editor
- Create a new complex table in Agentry
Editor to
make use of and support the data in SAP.
- Create the field definitions within the complex table
to
- Add any necessary indexes to the complex table.
- Configure Java synchronization between the complex
table and Agentry
- Open the appropriate Java project for the SAP application.
- Modify the new complex table class created when the
complex table definitions was added to the Agentry application project.
- Create the associated step handlers.
- Create the new POJO for the complex table.
- 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.