Вы находитесь на странице: 1из 12

12/23/2018 substitution rules

(http://w
ww.sap.c
Products
om/) (https://www.sap.com/products.html)

Industries (https://www.sap.com/industries.html)

Support (https://www.sap.com/support.html)

Training (https://www.sap.com/training-certi cation.html)

Community (https://www.sap.com/community.html)

Developer (https://developers.sap.com/index.html)

Partner About
(https://www.sap.com/partner.html) About (https://www.sap.com/corporate/en.html)

 
Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.p

Archived discussions are read-only. Learn more about SAP Q&A


(https://go.sap.com/community/about/questions-and-answers.html)

substitution rules
Hi can any body provide me complete steps for substitution with live examples and what it differs from
use exits

Arjun

Moderator: This is the last warning. Upon next violation of SDN rules, your user will be banned

Guest
https://archive.sap.com/discussions/thread/1873301 1/12
12/23/2018 substitution rules

January 19, 2011 at 09:29 AM


0 Likes

ng for? View more on this topic (https://go.sap.com/community/tag.html?


23242285841826221) or

//answers.sap.com/questions/ask.html?primaryTagId=648420875567243523242285841826221)

23 replies

Guest replied January 19, 2011 at 06:27 AM

how do others find that there is a substitution or validation for the transaction?

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 06:34 AM

Hi,

For substitution in FI, use transaction OBBH/ GGB1

For validation in FI, use transaction OB28/ GGB0

Refer the below wiki:-

[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=51687]

You will also find a lot of articales on this subject over internet.

Regards,

Gaurav

https://archive.sap.com/discussions/thread/1873301 2/12
12/23/2018 substitution rules

(https://people.sap.com/niranjan.kamishetti)

Niranjan Kamishetti (https://people.sap.com/niranjan.kamishetti)replied

January 19, 2011 at 06:43 AM

Hi

Substitution consists of several steps , each with two parts

1.Prerequisite

2.Replacement.

If prerequisite is satisfied , substitution is performed.

Example: The functional area field is to be filled depending


on the type of cost center.

prerequisite:

The prerequisite statement establishes which conditions


must be fulfilled

before the substitution can be performed. If the prerequisite


statement is

false,

substitution value:

The substitution value is a numerical value or a string of


letters that replaces

the value entered. A single substitution process can replace


more than one

value.

Guest replied January 19, 2011 at 06:53 AM

Hi Niranjan

its is very helpful to me if u can send documents with example with complete one
substition.how aother person can identify there isa substitution for a particular
transaction?

Arjun

https://archive.sap.com/discussions/thread/1873301 3/12
12/23/2018 substitution rules

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 06:52 AM

Hi,

Here i have explained you with business scenario.

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.

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.

Next click on the step button on the application toolbar, a popup with the substitutable
fields will come. Select 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 u2018Test - Replace Doc Headeru2019

After this click on the Save button, Code will be generated automatically
https://archive.sap.com/discussions/thread/1873301 4/12
12/23/2018 substitution rules

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

After this we have to assign the substitution we have created to the company code and
activate it using the 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

Regards,

ANJI REDDY

Guest replied January 19, 2011 at 06:59 AM

Hi Anji gaaru

nijam gaa chalaa thanks.naaku plz documents with screesn shots thoti pampandi. and
first we will do the substitution in development or we can do in prodn directly in a real
scenario?

Arjun

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 07:10 AM

Hi,

you can do substitution in production directly.

There is no need to move it to production through TP Request in Live .

Go through following link to open PDF document.

[http://techbays.files.wordpress.com/2008/08/sap-tip-how-to-use-substitutions-
lakshman-tandra1.pdf]

https://archive.sap.com/discussions/thread/1873301 5/12
12/23/2018 substitution rules

Guest replied January 19, 2011 at 07:25 AM

Thanks Anji gaaru,

my request is in substitution we (FI) have to write conditions/prerequite because it is


techinacal terms know? or abapers?

validation complete steps and what for line item and header item and complete
document.

what validation/susbstitution differs from user exits? s

Guest replied January 19, 2011 at 07:08 AM

in GGB! there are document header and line item and complete document are there
which one i need to select.if it is a line item substitution i will select the line item if it is a
document header sub iwill select it , then what for complete document?

all we do testing in development and qualit and prodn know?

send me with screen shots validation and substitutions plzzzzzzzzzzzzz

Guest replied January 19, 2011 at 07:31 AM

please pampandi naaku all the complete documents

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 07:34 AM

hI,

If you read the my linked PDF document you will understand easily what is substitution
https://archive.sap.com/discussions/thread/1873301 6/12
12/23/2018 substitution rules

and how to use user exit also.

For user exit you need abaper help. for normal substitution you do yourselves.

Guest replied January 19, 2011 at 07:50 AM

Hi

I reqest u please send ur persoanl e mail id and also send me vaidation steps.

Arjun

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 08:05 AM

HI,

Please look into this link where validation is described in a lucid way for you to
understand.

http://www.sap-basis-abap.com/sapfi004.htm

The following link to OSS note shall help in understanding in an advanced mode.

http://www.sap-basis-abap.com/sapfi004.htm

Thanks

ANJI REDDY

Guest replied January 19, 2011 at 08:08 AM

Thanks andi

I request you,kindly send me ur personnel id

https://archive.sap.com/discussions/thread/1873301 7/12
12/23/2018 substitution rules

Former Member replied January 19, 2011 at 08:16 AM


(https://people.sap.com/former.member)

hI,

I am unable to send mail id in this platform as


per guidelines.

Guest replied January 19, 2011 at 08:18 AM

just now got from andrew he asked me to get permission to give mail id

Guest replied January 19, 2011 at 08:19 AM

i request u send mail id u can easily find me in this sdn

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 08:24 AM

Hi,

Here i could not type my id.It is denying.

Anyway i will send a test message from my id

https://archive.sap.com/discussions/thread/1873301 8/12
12/23/2018 substitution rules

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 09:29 AM

M: Thanks andi

I request you,kindly send me ur personnel id

A: hI,I am unable to send mail id in this platform as per guidelines.

M: just now got from andrew he asked me to get permission to give mail id

M: i request u send mail id u can easily find me in this sdn

A: Hi,Here i could not type my id.It is denying.

Anyway i will send a test message from my id

It seems you both use this forum as a chat window.

First of all Did you read the Rules of Engagment of the Forum.

Step 1: Finding An Answer

Rule number one: Try to find the answer first. There are tons of resources out
there, show that you have tried to find the answer. A question that shows that
the person is willing to try and help themselves is more likely to be answered
than one which simply demands information. Tell us what you have done to try
and solve the problem yourself - often we can learn from that too!

Obviously you should check SAP's online help, and if you have not looked for
SAP Notes you should make the readers aware of this. Many SDNers are very
helpful and will even search for SAP Notes for you if you don't have that
possibility yourself, but many will assume that you have already searched for
SAP Notes.

Search the forums, the articles, the blog posts and the Frequently Asked
Questions (FAQ) in the Wiki for your topic.

- Do not ask to send you an email.

The question you ask and the solution to it is often also interesting for other
users of the community. If you ask somebody to send you the answer per
email, you deprive others of also learning to know the answer. Therefore any
requests for sending material or answers to an email address will be modified
by the forum moderators.

In addition, do not use an email address as a user name. These will be


removed as well. Email addresses can be added to a Business Card or wiki
profile. Their usage in the forums is inappropriate unless we are referring to
sdn@sap.com

https://archive.sap.com/discussions/thread/1873301 9/12
12/23/2018 substitution rules

Use Proper Language

Please also avoid 'txt spk'. Many people are not native English speakers and
using abbreviated slang makes it more difficult to understand. Apart from that, it
is also unprofessional. Write as if you are communicating with your boss (or an
English colleague of theirs!)

~Andrew

Former Member replied January 19, 2011 at 06:55 AM

Hi,

Validation & Substitutions are similar to the IF formula in excel...

Very common scenario for substitution is of Section in the vendor line item since
section is very imprtat parameters for TDS processing..

All substitutions have two section...

1. Prerequisites (IF)

2. Substitution (if above IF is successful then this steps will be executed)

Example:

Prerequisites

BKPF-BUKRS = '1000'

Substitution:

Constatnt Value: 1000

Above means if company code is 1000 then substitute 1000 values in the field of
Section Code.

Regards,

Chintan Joshi

0
https://archive.sap.com/discussions/thread/1873301 10/12
12/23/2018 substitution rules
0

Guest replied January 19, 2011 at 07:01 AM

HI

Thanks can u send me one real scenario validation and substituion with screen shots
plss.my point is first we do in development and quality and prodn know?or can we do
direclt in prodn?

Arjun

(https://people.sap.com/former.member)
Former Member replied January 19, 2011 at 07:36 AM

Hi Mallik Arjun,

Read the Rules of Engagement of the Forum.

You can very well search these type of basic questions in the forum or anywhere else
in the net.

Rules you have broken are

1.Didnt Search.

2.Requesting for documents.

3.Use only English(This is a public forum and others have to understand what you are
telling)

If you really want a particular persons help get his permission/email id and mail him
personally.

4.SMS text.

~Andrew

Guest replied January 19, 2011 at 07:49 AM

https://archive.sap.com/discussions/thread/1873301 11/12
12/23/2018 substitution rules

Ok Thanks.

Share & Follow

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)

(http://www.slideshare.net/SAP) (https://instagram.com/sap/) ()

Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-

use.html)

Legal Disclosure (http://sap.com/about/legal/impressum.html) Copyright (http://sap.com/about/legal/copyright.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Sitemap (http://www.sap.com/sitemap/index.html) Newsletter (https://sap.com/registration/newsletter.html)

https://archive.sap.com/discussions/thread/1873301 12/12

Вам также может понравиться