Professional Documents
Culture Documents
Applies to:
All releases of SAP for Financial postings made from a various applications like SAP-Logistics, SAP-Financials, etc for
more information, visit the Enterprise Resource planning homepage
Summary
Automatic assignment occurs during postings in external accounting (with in the FI, MM, or SD
components) if you did not enter a CO account assignment object (cost center, order, or project) for a cost
accounting relevant posting. This is always the case if the R/3 System automatically created the posting row
in question.
This paper highlights an alternative approach where standard default account assignment (OKB9) based on
Valuation area or Profit Center is not sufficient and a default account assignment based on Valuation area
and Profit center is required.
Author:RaheemBaksh
Company:NovelERPSolutionPvt.Ltd.
CreatedOn:Apr2013
ThestandardSAPofferstospecifyadefaultaccountassignment(CostCenter/InternalOrder)
1. Per company code
2. Per Business area
3. Per Profit Center
4. Per Valuation area
In cases, where a default account assignment is to be specified below the company code, then Account
Assignment Detail field in OKB9 is used to specify a default CO object per Business area or Profit center or
Valuation area.
But system does not determined Default cost object from OKB9 for automatically generated lines that
reference the entire document and not individual items.
You can define automatic account assignments In OKB9 or defaults in the cost element masters data
record .The cost element master data record can determine these assignments per controlling area, and the
IMG per company code, business area, and/or valuation area.
TransactionCode-OKB9
Here it is mandatory to set Minimum One Combination to call Default Account Assigned Object
1. Valuation Area is mandatory
2. Business Area is mandatory
3. Profit center is mandatory
Here whenever Prerequisite met from your Transaction System will pickup default cost center as per
Valuation area.
In substitution, the SAP System checks whether particular input values satisfy one or more user-defined
conditions. If the condition is fulfilled, the values are automatically replaced by other values.
Standardsettings
The following callup points are defined in the standard SAP System for Controlling:
0001 - Document row : Used for all CO-relevant postings in external accounting as well as for manual
postings in CO.
0010 Order: Used for order background processing and irrelevant for account assignment checks.
0100 - Document header: Used for manual postings in CO, such as reposting costs or activity
allocation.
Activities
1. 1. Determine in which controlling area you want to substitute values.
2. 2. Create a substitution.
Proceed as follows:
a) Choose the "New entries" function.
b) Enter the controlling area in which the substitution is to be executed.
c) Enter a callup point.
d) Save your entries
e) Choose "Environment -> Substitution".
f) Enter a name and a callup point for the substitution.
You can choose "Exit only" or database fields. "Exit only" ensures that all fields allowed for substitution are
available only in this USER-EXIT. Otherwise, you can replace one field only, using a value defined in the
USER-EXIT.
n) Transfer one or more of the displayed substitution fields.
o) Enter a description of the substitution step.
p) Enter one or more conditions under "Prerequisites".
Use the function "Fields for conditions" to do so. You may also maintain rules by choosing the
corresponding function.
q) Enter constant values for the fields to be substituted, or store a substitution exit.
r) Save the substitution steps.
Substitution-
Here you need to check assigned program for the Application Area GBLS.
You need to some change in Program, First copy from Existing program RGGBS000.
Copy from Exiting program SE38
Copy from Existing program and change in Z Program, Ask technical guy if you are not familiar on Program,
for copy or change new program you need to developer ID.
Note: see below changes are based on organization structure here you need to determine which field you
can enter to get Cost center, if you are using Business area so OKB9 can be determine by Business area .
We have made OKB9 account assignment as per Valuation Area, but here system does not determine profit
center and Valuation Area for auto generated line item,
Our Business Place and Section Code is equal to Plant (Valuation Area)
*&------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------*
*& Form UOKB9
*&------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------*
* text
*--------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------*
FORM UOKB9 .
DATA:
LD_KOSTL LIKE COBL-KOSTL,
LD_AUFNR LIKE COBL-AUFNR,
LD_PRCTR LIKE COBL-PRCTR,
LD_PAOBJNR LIKE COBL-PAOBJNR.
ENDFORM. "UOKB9
*&----------------------------------------------------------------
------------*
Please also refer Next related post Automatic account assignment OKB9 ( Set Acc. Assignment "3 Profite center is
mandatory")
17614 Views
Products: sap_erp_financials Topics: enterprise_resource_planning Tags: account, automatic, assignment, okb9
(18 ratings)
27 Comments
Hello Raheem,
Good article.
Thanks
Like (1)
Like (0)
Dear Raheem,
Thanks,
Srini
Like (1)
Dear Srinivasa,
Thanks!!!!!
Regards
Raheem
Like (0)
Like (1)
RAHEEM BAKSH 29 Apr, 2013 10:23 AM (in response to Jason Shao)
Dear Jason,
Thanks!!!!!
Like (0)
Like (1)
Regards
Raheem
Like (0)
Sachin j
Like (1)
Thanks sachin,
Like (0)
Best Regards,
Naresh K.
Like (1)
Thanks Naresh,
Like (0)
.Many Thanks.
Best Regards,
Niran.OK.
Like (1)
RAHEEM BAKSH 10 Oct, 2013 2:02 PM (in response to niran orkkatteri kariyadan)
Thanks Niran
Like (0)
Hello Raheem,
Regards,
Satendra
Like (1)
RAHEEM BAKSH 10 Oct, 2013 2:02 PM (in response to Satendra Singh Sikarwar)
Thanks Satendra
Like (0)
Hi Raheem
Like (1)
Like (0)
Hello Raheem,
Its a very good article. Thanks for sharing your knowledge and keep sharing.
Regards,
Lakshmi S
Like (1)
Thanks Lakshmi,
Like (0)
Good one.....
Like (1)
Thanks
Like (0)
Hi Ramesh,
Nice document.....
Regards,
Like (1)
Thanks Pavan,
Its Raheem
Regards
Raheem
Like (0)
Thanks for the Documentation provided by you, My requirement is to update the Center Field & I have
done with every thing , But I have an issue in the code while substituting the values of BSEG in
COBL..... the BSEG is not Returning values of WERKS & BWKEY..... Its empty while cheking in
debugging
Like (0)
Hi Akash,
Like (1)