Substitution

Published on December 2016 | Categories: Documents | Downloads: 59 | Comments: 0 | Views: 537
of 5
Download PDF   Embed   Report

SAP Substitution Rules Creation

Comments

Content

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type - ABAP Development - ... Page 1 of 5

Getting Started Newsletters Store

Welcome, Guest

Login

Register

Products

Services & Support

About SCN

Downloads

Industries

Training & Education

Partnership

Developer Center

Lines of Business

University Alliances

Events & Webinars

Innovation

ABAP Development

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type
Added by Shaik Sajid, last edited by Alon Mizrahi on Nov 01, 2011

Link to Content's target Space :
http://wiki.sdn.sap.com/wiki/x/DgiPCw

Applies to:
Substitution Rule via User Exit in FI Module. For more information visit ABAP Homepage.

Summary
This Paper provides the Step by Step procedure on how to implement Substitution Rule for Partner Bank Type in FI Module during FB60. It also shows why sometimes the value does not get substituted
and the Solution.

Author:
Company:

Capgemini India Pvt. Ltd. (www.capgemini.com)

Created on:

29 June 2010

Author(s) Bio
Shaik Sajid is a Consultant at Capgemini India Pvt. Ltd. He has been involved in various projects such as Implementation, Support, Upgrade and Product Development in SAP.
([email protected]) . 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) .

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-+FB60... 4/17/2015

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type - ABAP Development - ... Page 2 of 5

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).

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-+FB60... 4/17/2015

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type - ABAP Development - ... Page 3 of 5

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 and 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.

fb60

substitution

user

exit

partner

type
Contact Us
Privacy
Copyright

SAP Help Portal
Terms of Use

bank

substitutions

Legal Disclosure

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-+FB60... 4/17/2015

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type - ABAP Development - ... Page 4 of 5

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-+FB60... 4/17/2015

Substitution Rule(User Exit) in FI - FB60 for Partner Bank Type - ABAP Development - ... Page 5 of 5

Follow SCN

http://wiki.scn.sap.com/wiki/display/ABAP/Substitution+Rule(User+Exit)+in+FI+-+FB60... 4/17/2015

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close