Testing an ABAP handler

To test, you must first generate a business object input file. At this point, you may need to modify it to contain attribute values and appropriate application-specific information. The last step is to execute the test program, pointing to your test file as an input.

Creating a test file

To create a test file:

  1. Go to WebSphere InterChange Server Connector Tools (transaction YXR1).
  2. Select Test g Test Program.
  3. Perform a Quick Retrieve for the required business object:
  4. Click execute to save the test business object in the output file you specified.
  5. Edit the test file in any text editor. You must:

Using the test file

To use the test file:

  1. Go to WebSphere InterChange Server Connector Tools (transaction YXR1).
  2. Select Test g Test Program.
  3. Enter the location and file name of your input file in the input file field.
  4. (Optional) Enter a file name and location for the output data (can be the same as the input, but it will overwrite the input).
  5. Click the execute button.

When finished, the program will display the last message that was raised during processing. In addition, the processed data is displayed on the screen for verification. This is the same information that would be generated in the output file of step 4.

Also, you can look in the IBM WebSphere InterChange Server ABAP Log for additional details.

Copyright IBM Corp. 1997, 2003