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.
To create a test file:
- Go to WebSphere InterChange Server Connector Tools (transaction
YXR1).
- Select Test g Test Program.
- Perform a Quick Retrieve for the required business object:
- Enter the name of an output file.
- Select either an IDoc Retrieve or a Dynamic Retrieve.
- Enter the business object's name and object key.
- If you selected an IDoc Retrieve, enter the IDoc Type, enter
Y_XR_IDOC_HANDLER in the Method 1 field, and enter the
name of your Retrieve function module in the Method 2 field.
- If you selected a Dynamic Retrieve, enter
Y_XR_DYNAMIC_RETRIEVE in the Method 1 field.
- Click execute to save the test business object in the output
file you specified.
- Edit the test file in any text editor. You must:
- Modify the verb application specific information to point to
your ABAP handler See "Business
object data routing to ABAP handlers" for the syntax. For
example,:function1:function2.
- Verify that the appropriate attribute on the parent is marked
isKey.
- Add input values for the attributes, as required.
To use the test file:
- Go to WebSphere InterChange Server Connector Tools (transaction
YXR1).
- Select Test g Test Program.
- Enter the location and file name of your input file in the
input file field.
- (Optional) Enter a file name and location for the output data
(can be the same as the input, but it will overwrite the
input).
- 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.
