Skip to Content

For embedding the ABAP function modules into BRF+ we can use the procedure call.

Step 1.Choose any ABAP function module

Sample function module: CONVERSION_EXIT_ISOLA_INPUT

Let’s see the functionality of this function module.

This function module is used to convert for example if the language code (DE), then it is converted to corresponding Language key (D).

/wp-content/uploads/2016/04/26_936613.png

Step 2. Check the importing parameters and exporting parameters in function module.

So that we can avoid the type compatibility issues while using this function module in SAP BRF+ easily.

Step 3. Create a function as shown below

/wp-content/uploads/2016/04/1_936522.png

  • Give the function name and text and click on create and navigate to object.

/wp-content/uploads/2016/04/2_936523.png

  • Select the mode for function, let’s use the functional mode.

/wp-content/uploads/2016/04/3_936563.png

  • Now we create the two data objects lv_input and lv_output as per the function module in ABAP. As these data objects need to be the input and output for the function in its signature. Click on add new data object as shown below.

/wp-content/uploads/2016/04/4_936564.png

  • Choose element and click on create and navigate to object.

/wp-content/uploads/2016/04/5_936565.png

  • Provide the details for input as shown below and click on ok.

/wp-content/uploads/2016/04/6_936570.png

  • Activate the data element lv_input. By clicking on activate button.
  • Now we create the output data element lv_output for the function as shown below.

/wp-content/uploads/2016/04/7_936571.png

  • Choose element and click on create and navigate to object.

/wp-content/uploads/2016/04/8_936584.png

  • Provide the details as shown below.

/wp-content/uploads/2016/04/9_936585.png

  • Activate the data element lv_output. By clicking on activate button.
  • We have the input and output for the function as shown in below screenshot.

/wp-content/uploads/2016/04/10_936586.png

Step 4.Now we create an expression for function call in top expression of function.

    /wp-content/uploads/2016/04/11_936588.png

  • Choose as shown below.

/wp-content/uploads/2016/04/12_936589.png

  • Provide the details as shown below.

/wp-content/uploads/2016/04/13_936590.png

  • Choose the call type as function module in procedure call .

/wp-content/uploads/2016/04/14_936592.png

  • And give the function module name CONVERSION_EXIT_ISOLA_INPUT and click enter .



/wp-content/uploads/2016/04/15_936596.png

  • If you want you can ignore the exception just click on Ignore exception. Then your ignored exception will be shown like this.

/wp-content/uploads/2016/04/16_936597.png

  • Now we have to map the BRF+ function parameters to the ABAP function module parameters. For that click on add parameters. Add the input and output which are the importing and exporting parameters of CONVERSION_EXIT_ISOLA_INPUT.

/wp-content/uploads/2016/04/17_936598.png

  • We get the input and output as shown below.

/wp-content/uploads/2016/04/18_936599.png

  • Click on the input and do the same for output we get this screen shown below.

/wp-content/uploads/2016/04/19_936600.png

  • Click on the select context parameter for input mapping.

/wp-content/uploads/2016/04/20_936601.png

/wp-content/uploads/2016/04/21_936608.png

  • Click on the select context parameter for output mapping.

/wp-content/uploads/2016/04/22_936609.png

  • After mapping we get the following screen.

/wp-content/uploads/2016/04/23_936610.png

  • Now activate the expression exp_pc_call and the function FU_PC_CALL .Our procedure call is in top expression in function.

Step 5.Lets test the function with procedure call.

  • Click on the simulation in function.

Provide the input as DE and click execute.

/wp-content/uploads/2016/04/24_936611.png

  • We get the output as shown below.

/wp-content/uploads/2016/04/25_936612.png

To report this post you need to login first.

3 Comments

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

  1. LALAM GOVIND

    Hi Jahnavi,

    It is so clear for  beginners  and easy to follow the navigation while creation of procedure call  at BRF Workbench.

    Thank You,

    Govind.

    (0) 
  2. Saurabhn Gupta

    Hi Jahnavi,

    I tried to use the given approach to call a FM – RSNDI_SHIE_STRUCTURE_GET3 which involves structures as Import and Export parameters. I created relevant structures with specific databinding from DDIC but in the Procedure Call expression when I try to Map Elements to Source Table I get the bellow Error:

    Exp Proc Call Hier (Expression) : Mapping to source table not possible for parameter E_T_HIERSTRUC (Technical Details)

    For Source Table for Column Update: I created a Table in BRFPlus with the same structure as the Result Data Object Structure.

    Please help me understand what I am doing  wrong or missing here.

    Thanksy

    (0) 
  3. Jahnavi Teja Venati Post author

    Hi Saurabhn,

    I have gone through function module RSNDI_SHIE_STRUCTURE_GET3 .In the exporting parameters we have E_S_HIEDIR but you are trying to map a table instead of structure .Mapping from BRF+ doesnot allow table here ,it expects the structure .Could you please try to create the parameters in BRF+ which are similar to Importing and exporting parameters of FM.

    Best Regards,
    Jahnavi Teja Venati.

    (0) 

Leave a Reply