Adding New Fields to an Exchange Object

Use this procedure to add new fields exchange objects.

The following are accomplished in this procedure:

  • A new field is enabled in the exchange object through the Configuration portal
  • Java synchronization is achieved in Eclipse
  • The new object is added in the Agentry editor
  1. If a new exchange object is needed, copy an existing exchange object to the Z namespace in SAP.

    For more information, see the section Copying an Object to the Z Namespace.

  2. Add new fields to the exchange object:
    1. Navigate to the Exchange Object Configuration panel in the Configuration portal and double-click the appropriate exchange object.
    2. Click the Change Detection Field Selection tab and click the Change the button.
    3. In the Exchange Object Field Selector Detail pane, expand the table to which active fields will be added.

      The Field Active column displays in white, with checkmark boxes enabled.



    4. Scroll through the fields to determine which ones to enable or disable. Checking the box enables the field, which unchecking the box disables the field.
    5. Save your changes by clicking the Save button.
  3. Complete Java synchronization through Eclipse:
    1. Open the appropriate project in Java, or create a new project.
    2. Locate and open the appropriate Java file in the project.
    3. Locate the public strings and the properties. Add the new table fields checked in the Exchange Object Field Selector Detail pane in the Configuration portal.



    4. Save and compile the Java code by running the build-mm.xml script. This should initially be performed on the Development server to allow for testing before publishing to the Production server.
  4. Add the new fields to the exchange object in Agentry:
    1. Open the SAP project in Agentry.
    2. Navigate to the appropriate object.
    3. Add any new required properties, transactions, or read steps associated with the new fields.
    4. Click the Finish button when done.
    5. Make any other applicable changes to the application that is using the modified object.
    6. 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 fields.