You are on page 1of 10

Top of Form

Welcome pras
Top of Form
true conf_global
My Home > ABAP Development >
Substitution Rule(User Exit) in FI -
FB60 for Partner Bank Type Search the w iki

Bottom of Form
Welcome prasad4fico | History | My
Substitution Rule(User Exit) in FI - FB60 for
Partner Bank Type Preferences |

• View Comments (0) Attachments (14) Notify Moderator Info Request Points

• Additional Features

Added by shaik sajid ,


last edited by Moshe Link to Content's target Space :
Naveh on Jul 11, 2010
(view change) http://wiki.sdn.sap.com/wiki/x/DgiPCw
Top of Form
Labels: Applies to:
fb60, substitution, user,
exit, partner, bank, Substitution Rule via User Exit in FI Module. For more information visit ABAP Homepage.
type, substitutions EDIT
Summary

This Paper provides the Step by Step procedure on how to implement Substitution Rule for
Add Labels
Partner Bank Type in FI Module during FB60. It also shows why sometimes the value does not
Enter labels to add to get substituted and the Solution.
this page:
Author:

Add Company: Capgemini India Pvt. Ltd. (www.capgemini.com)


Created on: 29 June 2010

Tip: Looking for a Author(s) Bio


label? Just start typing. Shaik Sajid is a Consultant at Capgemini India Pvt. Ltd. He has been involved in various
Bottom of Form projects such as Implementation, Support, Upgrade and Product Development in SAP.
(sajid.shaik13@gmail.com) . His expertise includes SAP ABAP, WebDynpro ABAP and SAP BI
7.0. I would like to thank my Manager Mr. Rambabu Talluri and my Team Lead Mr. Srikant
Lodd for their Support and Guidance.

Defining Substitution Rule


Based on some Conditions when a value needs to be filled in some field dynamically we go
for Substitutions. SAP provides Substitutions for FI module.

Execute GGB1 to define Substitution Rules.

Select Line Item and Create Substitution. (Line Item is selected because the partner bank
type belongs to Line Item i.e., BSEG and the field name of Partner Bank type is BVTYP) .
Give necessary Description for the Substitution and Create a Step as shown below.
Select Appropriate Field, where the Value needs to get substituted.

Once the Continue Button is clicked the following Screen appears.


Specify the type of Substitution. User Exit is chosen when coding needs to be done i.e., Value
needs to be derived based on some Logic.

Specify the Prerequisites i.e., only when the prerequisites are met the Substitution will work
else it will skip.

Specify the User Exit Form name in the below screen.


Defining User Exit for Substitution
Now the following section explains how to create the User Exit name.

The program ZRGGBS000 should be copied from RGGBS000.For more Information regarding
this check the Article (How to Use Substitution) in the Related Content Section.
Enter the Following code in the form GET_EXIT_TITLES.

DELETE exits WHERE name = 'UFP04'.


exits-name = 'UFP04'.
exits-param = c_exit_param_field.
exits-title = text-prb.
APPEND exits.

Write the Above piece of code before the statement REFRESH etab.

Here UFP04 is the User Exit name (can give any Name).
In the above Report, the Following code also needs to be entered.

The Form name should be the User Exit name that was declared above.

As the Value gets substituted to the field BSEG-BVTYP we should have the exporting field
suffixed by 'E_' i.e., E_BVTYP as shown below.
Next Settings should be done in OBBH for this Substitution as shown below:

Testing & Solution


Now let us test this Substitution via FB60.
Mandatory Fields Vendor Number, Invoice Date, Reference and Currency needs to be
entered.Then Select the Payment Tab to see if the Value for Partner Bank Type gets
substituted.

But you can notice that Partner Bank Type has not been derived in the below screen.
The Reason is "Sometimes for the Substitution to work, all the necessary fields (not only
Mandatory Fields, other Fields as well) should be entered with Values".

In the Above Screen the Substitution was not called as the Amount field was Empty.In the
below Screen the Amount field is entered, so the Partner Bank type value is substituted
automatically.
Related Content
SAP HELP for Substitution.

How to Use Substitution.

Contact Us Site Index Marketing Opportunities Legal Terms Privacy Impressum


Powered by SAP NetWeaver

You might also like