Showing posts with label FI Substitution. Show all posts
Showing posts with label FI Substitution. Show all posts

Friday, 7 March 2014

SAP FI Substitution Exit with example

Whenever we need to play with the FI enhancement, first thing that comes in our mind is FI Substitution (GGB1 / OBBH) or BTE event (FIBF).


Here we are going to discuss about FI Substitution with a simple requirement.


Our requirement is to substitute the Assignment field.


In transaction FBZ1 or F-28 or F-29, we can give the Assignment field only for Bank data.
The requirement is to populate the Assignment field for Customer as well after posting the document, though there is no option to input the Assignment for Customer.


Here Assignment field will be provided as Check Number.
And the same Check Number should be populated in the Customer’s Assignment field.




Step by Step process to implement:


First of all we need to create a Exit in Mod. Pool - RGGBS000.


We need to use the below buttons.

 


Here we will use the Insert button.


Create the Exit.

 



Write Code inside the subroutine.
Here we need to write the FORM and ENDFORM explicitly.



In GGB1 we need to configure the exit to trigger our code.


Financial Accounting -> Line Item -> Create a new Step -> Create Exit.



   


Need to set up some prerequisite conditions, otherwise every time when each FI document will be post, the control will go into the exit.


In Substitutions, we need to set the Exit name. In our example its U102.
Like below: