Testing Interface Message in AIF

light111All about how to test interface message in AIF

The last post  Processing First Message in AIF describes how to develop AIF namespace and interface details to process message in AIF in a real heterogeneous environment. 

In AIF,  it is possible to assign many actions to an interface and each action can contain a sequence of processing function modules.

In a real distributed environment, mostly in development phase  it is little hectic to get a message from the source system in the target AIF system to analyse why the processing function modules don’t work properly. 

If developer wants to debug the AIF action function modules, then AIF provides interface test tool by which a developer can process the message in test mode(simulation mode), where no DB updated happes.

The below post shows how to test the AIF interface message using AIF test tool.

First locate the action function module name to debug in test mode for the AIF interface.

Execute Tx- /AIF/CUST

1

Select Structure Mappings and provide AIF namespace and interface details.

2

Choose Assign Actions and double click on the action name which will open a new session.

3

The Action screen is displayed. Choose Define Functions option.

4

Double click on the FM which you want to debug . It would open the FM in Tx- SE37.

5

Just put a break point.

6

Now we need a AIF message to test. We already have some few message created  ( Processing First Message in AIF ) that we can see in Tx- /AIF/ERR

7

Provide the interface details and execute.

8

We have few success and error message. Select one message. Now from the toolbar, select Technical Mode.

9

In technical mode, an additional button- Generate Test File button is available. Select a message and click Generate Test File.

10

Confirm YES from popup.

11

A message appears in the status bar- FIle 000005 was saved. Now the test file number.

12


Up to now we have set the break point in the action FM to test and generated the test file.

Now choose Tx- /AIF/IFTEST to test the interface.

13

Provide the test file number and execute search.

14

The below screen appears. Double click on the File no 5.

15

All Information filled from the message and  Select Read Data button.

16

Here Testrun check box is there to execute message in test mode.

17

Select the Checkbox “Testrun” and select Analyze button. 

18

The debugger is run with all information. Press F8.

19

Now you can see the message log by selecting the Display Log button.

20

Below screen shows the message log.

21


 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s