...
Configuration of an automation object:
Create a standard automation object for outbound interface (based on the description for a particular test type)
Setup an Additional Parameter:
Name: Trigger the output from message control (NAST)
Value: XAdd variables that will allow to repeat the message and correlate output based on the final content
Variable Name | Variable Description | Variable processors | Comment |
---|---|---|---|
KAPPL | Output application | Action: Populate Variable Before execution | For example: |
KSCHL | Output Type | Constant as above. Parameter should contain Output Type key | For example: |
PARNR | Partner | Constant as above. Parameter should contain Partner Name | Optional |
PARVW | Partner Role | Constant as above. The parameter should contain Partner Role | Optional |
SPRAS | Language | Constant as above. Parameter should contain Language | Optional |
AENDE | Change message flag | Constant as above. Used for testing change messages. | Optional |
NACHA | Message transmission medium | Constant as above | Optional |
OBJKY | SAP Document number | Two actions:
| The same XPath expression should be used for both actions. |
NEWSESSION | Trigger output in new session | Constant | Set to 'X' to trigger each output in new RFC session. This is required e.g. in situations when backend logic is implemented in function group and not all global variables are initialized correctly. Triggering multiple outputs in the same session can cause unwanted side effects in such scenarios. |
The variables' names must be the same. They are used to populate an output in the SAP S/4HANA backend automatically.
First, The OBJKY variable is used to read the business document number that the test case output was captured. Next, the new entry is added to output control, and the interface logic creates a new test message.
Finally, by the second action in the OBJKY variable, Int4 Suite will search the integration platform and find a new message that was produced by the test case execution and contain the correct document number.
...