Skip to Content

SAP AIF with release 3.0 has got many new features and one of them is a much tighter integration with SAP rule engine – BRFPlus/DSM. In this video presentation you can find out why it’s worth using AIF together with BRFPlus/DSM: SAP Application Interface Framework with SAP NetWeaver Decision Service Management

The main topic of this article will be to show how quickly and easily can a BRFPlus rule be used in the AIF value mapping from the development point of view. For a start we need to design a BRFPlus function which can later be used within AIF. There are however two important things to be considered here:

a) if you’re building a new BRFPlus function together with a new BRFPlus expression (for example a decision table) you can try building it according to the AIF requirements (for input parameters). This basically means that the BRFPlus function can be used in the „Functional mode” with just one top expression (for example – decision table) which has the same input/output parameters

b) if the BRFPlus expression is already developed you have to develop a BRFPlus function according to the AIF requirements (for input parameters) but you may need to go for a function with “Event mode” so you can map the AIF required input and output parameters to the existing expression within the BRFPlus Ruleset (assigned to the function)

In this article we will only concentrate on the first approach (so both the BRFPlus function and expression are new). The first step would be to create a BRFPlus function with required input parameters which need to can have names listed as per the figure below which would correspond to the fields (Field1…Field5) from the AIF structure mapping later on. The output value does not need to have any specific name.

figure_1_AIF_BRF.png

Next we need to prepare the BRFPlus expression (for example decision table) which will be used in the scenario and assign it to the BRFPlus function. It would be wise to test the function from the BRFPlus workbench to see it working using the start simulation button.

The rest of the customizing steps can be done within AIF and we need to start by defining a new value mapping where we need to select which BRFPlus application and function we will be using as shown in the figure below.

figure_2_AIF_BRF.png

In order to use the new value mapping you need to add it in the AIF structure mapping keeping in mind that selected source fields will be used by the BRFPlus function exactly as shown in figure below.

figure_3_AIF_BRF.png

After all of the mentioned steps are done you can try and test the end to end scenario and if you did everything as explained the value from the AIF interface should get mapped using the BRFPlus.

Note:

BRFPlus can also be used in AIF structure mapping and AIF checks and not only with AIF value mapping.

Reference:

Business Rules Framework Plus Integration from help.sap.com

To report this post you need to login first.

2 Comments

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

  1. Kishore Yerramreddy

    Hi Michal,

    Thanks for the post and explaining the value mapping.  I have another question with regards to Inbound IDOC processing.  Not sure whether you come across any performance issue processing IDOC’s with multiple segments (as the brf+ function call is being triggered for each segment separately).  Just want to understand what kind of overhead that is may cause when processing large volume of inbound IDOC’s.  Appreciate your feedback in advance.

    Thanks,

    Kishore

    (0) 
    1. Amit Kumar Barik

      Hi Michal,

      I am not able to perform Value Mapping using custom table Value mapping. Please share steps and points needs to be taken care for this type of Value Mapping using tables.

      Many thanks in advance.

      Regards,

      Amit

      (1) 

Leave a Reply