Skip to Content

In my previous article I’ve shown how to process IDOCs via the AIF flow –  Michal’s PI tips: Application Interface Framework (AIF) – IDOC processing with AIF actions. One other option that becomes available when processing messages (IDOC, proxies) via AIF is that in case of an error you can change the content of the message’s fields and reprocess them. In terms of IDOCs the standard process is that the IDOC with old data will go to green status (not reprocessable) and a new one will get created with the new/updated fields. The configuration is pretty simple and requires only to specify the fields that need to be changeable in the message. I will use the example of an AIF IDOC flow from my previous article – Michal’s PI tips: Application Interface Framework (AIF) – IDOC processing with AIF actions.

How to configure and work with IDOC field changes on AIF ?

Step 1

If your AIF interface is already created you just need to add the field you need to change in transaction Transaction – /AIF/CUST_IF – Error Handling – Interface Specific Features – in this case this will be the program name field – REPIO from the main segment – E1STATS.

AIF_IDOC_change1.png

Step 2

Once the configuration is complete you can go to Error Handling and Monitoring transaction – /AIF/ERR and open the relevant segment and field as shown in the Figure below.

AIF_IDOC_change2.png

As soon as you change the field you need to save the changes.

AIF_IDOC_change3.png

Then you can reprocess the message in AIF – by selecting it and restarting from the menu.

AIF_IDOC_change4.png

The updated message will get processed and in WE02/WE05 you will see the old IDOC (green status) and the updated one with new field so AIF is working in the same way as the normal IDOC field update.

AIF_IDOC_change5.png

Note:

Updating IDOC fields is nothing new but this article shows that you can do the same with AIF and it works in the same way as it used to with IDOC transactions only.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply