视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
FICO 替代增强
2025-09-25 04:53:06 责编:小OO
文档
Enhancement Technique: How to Use Substitutions

Applies to:

SAP 4.6C and higher

Summary

This article provides a step-by-step guide on the usage of substitutions, an enhancement technique in the Financial Accounting Module of the SAP R/3 system.

Author(s): Lakshman Tandra

Company: Intelligroup Asia Pvt Ltd

Created on: 16 April 2007

Author Bio

Lakshman Tandra has been working in Intelligroup from more than 10 years. He is member of the SAP NetWeaver/ESA core team and currently oversees competency building activities at Intelligroup.Table of Contents

Basic Steps in Configuring Substitutions (3)

Example Business Scenario for Substitutions (6)

Related Transaction Codes (22)

Disclaimer and Liability Notice (23)What are Substitutions

Substitution allows you to define your own conditions for substituting specific fields. A substitution consists of two parts: Prerequisite and Substitution. If the prerequisite is met (if it is TRUE), the substitution is carried out.

A substitution consists of two parts:

• Prerequisite

• Substitution

If the prerequisite is met (if it is TRUE), the substitution is carried out.

Basic Steps in Configuring Substitutions

You must complete the following steps to create a substitution:

1. Enter the application area in which the substitution is called up.

2. Select the correct Callup point for the substitution.

3. Define the substitution.

4. Assign your substitution to an organizational unit (for example, company code for FI, company code or global company for FI-SL, controlling area for CO).

5. Activate the Substitution. The fields that can be used in your substitution are determined from the application area and the Callup point. When you define your rules for the prerequisite and check Statements, you can choose the fields that you want to use.

Call Up Point:

Callup Point 1

• The Callup point tells you when the substitution is performed.

• Callup point 1 checks the fields in a document header.

Callup Point 2

• Callup point 2 is used to check the fields in a document line for a G/L account posting or a FI-SL.

• The fields that are available at Callup point 1 are also available for cross-checks.

Operands and Operators

The following elements are used to create rules for prerequisite statements in substitutions.

• Operands: Logical operators (Boolean logic) and Comparison operators.

User Exits in Substitutions

• User exits are form routines programmed by the user.

• If you want to use your own rule, you can use user exits to define prerequisites or checks for validating or substituting fields.

• Exit routines are created in a report. Each client has its own report. The form pools for the report are stored in table T80D.

•User exits are user-defined FORM routines that are used to calculate and/or replace values within a validation, substitution, or rule.

•User exits have the following format: U (for a user-defined user exit) or S (for a standard user exit)

The user exit number (three digits)

•For example, U123 is a user-defined user exit.

•You can configure the form pool name of the user exits and must store it in the table for client-dependent user exits (T80D) in Customizing. Table T80D contains the form poolnames for the user exits used in validations, substitutions, and rules. Each

validation/substitution form pool is client-dependent. (For more information, refer to the

Maintain Client-Dependent User Exits activity in the Implementation Guide (IMG) for Special

Purpose Ledger.)

•Example form pools RGGBS000 and RGGBR000 for client 000 are delivered with the SAP R/3 System. You must copy these form pools and configure them in T80D. The new form

pool name should conform to the customer naming convention (beginning with the letter Z)

so that is not overwritten when the next SAP upgrade is installed (for example, ZGGBR000).

•Example FORM routine for substitution exit 001 (U001).

TABLES: COBL.

FORM U001.

COBL-KOSTL = COBL-BUKRS.

ENDFORM.

•Tables and structures should not be declared in the FORM routines so that the contents can be used together with the calling transaction.

•SAP exits are FORM routines that have been programmed by SAP. The name of the form pool for SAP exits is SAPFGBEB.

The following table shows the types of user exits that can be used in substitutions.

•For substitutions, you can also create user exits that accept a field as one parameter and then return the changed value in this parameter. This allows you to create a user exit that can be used

independently of the field and table name. This type of user exit cannot be used as an entry in the

Exit only field in the list of values to be substituted; you can only use this exit type in conjunction with

a field name. An example of this user exit type is in form pool RGGBS000.

For each Substitution step:

•Data is entered into the SAP R/3 System.

•Data is sent to the FI-SL Integration Manager and to substitutions.

• Substitutions are part of the Integration Manager along with validations, ledger selection rules, and summation rules.

•Data is then checked against a prerequisite statement.

•If the prerequisite statement is true, the system performs the substitution. If the prerequisite statement is false, then there is no substitution.

•If there are additional steps in the substitution, the system accesses the next step for substituting the data until all substitution steps have been processed.

•When you are substituting values from outside the FI-SL application component, the dimension being substituted must be defined for the Boolean class for which you are substituting data.Maintenance:

• A substitution can also contain up to 999 steps.

• A substitution step consists of a prerequisite and substitution

Activation:

• A substitution is activated for each of the following:

–an ORGANIZATIONAL UNIT (in FI-SL: Company code or global company)

– a CALLUP POINT (in FI-SL: 0001 (document header) or 0002 (document line))

– A substitution can be valid for several company codes / global companies at the same time.Example Business Scenario for Substitutions

Company A would like to create a substitution to replace the FI Document header text (BKPF-BKTXT) and the Ref key field (BKPF-XBLNR) at the Document Header when posting an accounting document using the tcode FB01.

Steps:

Go to the transaction code GGB1. The screen looks like below:

Create a Substitution in the Financial Accounting module. Keep the cursor on the Financial Accounting and click on the Substitution Button

Give some description to the substitution and press enter key.

the field for which we have to substitute:

Enter the substitution method from the screen. In this example we will use the constant value

After this a step gets created. You can create multiple numbers of steps depending on your requirement. Give a meaningful description to the Step.

If you want to give any prerequisite you can give. it by double clicking on the empty screen under the Prerequisite:

A screen with the formula editor will come. It will have tree tabs Table fields, rules and exits.Select the table fields from the tables available for which you want to use a prerequisite. In our example we will use the company code. Say if the company code is 1000 then only this substitution should trigger.

If you click on the highlighted button, then the technical names of the tables and fields will be displayed. If you click on the required fields, field will be copied to the prerequisite area

Using the formula editor and enter the constant value :

Then click on the substitution tree under the Substitution YTEST:

Give the constant value as ‘Test - Replace Doc Header’

After this click on the Save button, Code will be generated automatically:

After you assign the Prerequisite and the substitution the screen looks like below:

tcode OBBH and create a new entry:

It will ask for the Transport request number. Give it and save the entry. After that go to FB01 and create an Accounting Document:

Save the Accounting Document

Go to FB03, and check whether the Values given in the substitution are reflected or not:

For Using the User exit in substitution, copy the program RGGBS000 into Z or Y Program.

Give the development class and lock in a transport request. After copying the program, modify the program to create an exit say ‘UTST’.

An entry with the desired name has to be created in the Form GRT_EXIT_TITLES, otherwise the user exit will not be identified.

constant to the XBLNR fields write the following code:

Activate the code. After this an entry has to be maintained in the table T80D to reflect the exit we have defined in the substitution.

Create an entry in the table T80D using the view V_T80D using the Tcode SM30. Note: If already there is program existing for the application we can create an exit in the same program. Since the application area is the key field in table T80D it will allow only one program per application area.

Save the entry and Lock it in a transport request.

After that you can create a substitution or create another step in the above created Substitution.

For our example we will use the same substitution we have created above and create another Step

In this case select the Exit radio button,

Press F4 on the user exit field and pick the User exit created above.

Create a prerequisite for the company code to restrict the triggering of the substitution for our example

Save the Substitution, System generates the code.

Make sure the Substitution is active again by going to the transaction OBBH.

Create an Accounting Document and check in FB03:

Related Transaction Codes

OBBH : C FI Maintain Table T001Q (Document)

GGB1 : Substitution Maintenance

SM30 : Call View MaintenanceDisclaimer and Liability Notice

This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.下载本文

显示全文
专题