Escolar Documentos
Profissional Documentos
Cultura Documentos
Community
RAHEEM BAKSH
April 22, 2013 6 minute read
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
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 1/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Automa c assignment occurs during pos ngs in external accoun ng (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 accoun ng relevant pos ng. This is
always the case if the R/3 System automa cally created the pos ng row in ques on.
This paper highlights an alterna ve approach where standard default account assignment (OKB9) based on Valua on
area or Profit Center is not sufficient and a default account assignment based on Valua on area and Profit center is
required.
The standard SAP offers to specify a default account assignment (Cost Center/Internal Order)
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 Valua on area.
But system does not determined Default cost object from OKB9 for automa cally generated lines that reference the
en re document and not individual items.
Example: Key-
“OFF” (GTA)
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 2/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
You can define automa c 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 valua on area.
Here it is mandatory to set Minimum One Combina on to call Default Account Assigned Object
Here whenever Prerequisite met from your Transac on System will pickup default cost center as per Valua on area.
De ne Substitution OKC9
In subs tu on, the SAP System checks whether par cular input values sa sfy one or more user-defined condi ons. If the
condi on is fulfilled, the values are automa cally replaced by other values.
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 3/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Standard se ngs
The following callup points are defined in the standard SAP System for Controlling:
0001 – Document row : Used for all CO-relevant pos ngs in external accoun ng as well as for manual pos ngs in CO.
0010 – Order: Used for order background processing and irrelevant for account assignment checks.
0100 – Document header: Used for manual pos ngs in CO, such as repos ng costs or ac vity alloca on.
Ac vi es
Proceed as follows:
g) Change the model data to meet your specifica ons, or copy them without changes.
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 4/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
You can choose “Exit only” or database fields. “Exit only” ensures that all fields allowed for subs tu on are available only
in this USER-EXIT. Otherwise, you can replace one field only, using a value defined in the USER-EXIT.
Use the func on “Fields for condi ons” to do so. You may also maintain rules by choosing the corresponding func on.
q) Enter constant values for the fields to be subs tuted, or store a subs tu on exit.
t) Enter the subs tu on’s name for your controlling area and set an ac va on level.
Ac va on level “1” ensures that the subs tu on is ac ve in the correct controlling area.
Note on transport
To transport subs tu ons, a separate func on is available in the IMG for “General Controlling”
Subs tu on-
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 5/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Here you need to check assigned program for the Applica on Area GBLS.
You need to some change in Program, First copy from Exis ng program RGGBS000.
Copy from Exis ng 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.
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 6/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 7/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Note : see below changes are based on organiza on 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 Valua on Area, but here system does not determine profit center and
Valua on Area for auto generated line item,
Our Business Place and Sec on Code is equal to Plant (Valua on 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 Pro te
center is mandatory”)
Alert Moderator
Assigned tags
View more...
Automatic account assignment OKB9 ( Set Acc. Assignment “3 Pro te center is mandatory”)
By RAHEEM BAKSH , Feb 04, 2014
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 10/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
CostElement 11. Real Cost Object.
By arturo senosain , Mar 09, 2014
Related Questions
The Co Account assignment object belong to company code 0050, not 0070
By Former Member , Jun 03, 2010
29 Comments
Former Member
Hello Raheem,
Good article.
Thanks
Like (0)
Like (0)
Former Member
Dear Raheem,
Thanks,
Srini
Like (0)
Dear Srinivasa,
Thanks!!!!!
Regards
Raheem
Like (0)
Jason Shao
Like (0)
Dear Jason,
Thanks!!!!!
Like (0)
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 12/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Sean Xiao
Like (0)
Regards
Raheem
Like (0)
Former Member
Sachin j
Like (0)
Thanks sachin,
Like (0)
Former Member
Best Regards,
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 13/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Naresh K.
Like (0)
Thanks Naresh,
Like (0)
Former Member
.Many Thanks.
Best Regards,
Niran.OK.
Like (0)
Thanks Niran
Like (0)
Former Member
Hello Raheem,
Regards,
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 14/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Satendra
Like (0)
Thanks Satendra
Like (0)
Former Member
Hi Raheem
Like (0)
Thanks
Like (0)
Lakshmi Sama
Hello Raheem,
Its a very good article. Thanks for sharing your knowledge and keep sharing.
Regards,
Lakshmi S
Like (0)
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 15/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Thanks Lakshmi,
Like (0)
Former Member
Good one…..
Like (0)
Thanks
Like (0)
Hi Ramesh,
Nice document…..
Regards,
Like (0)
Thanks Pavan,
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 16/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Its Raheem
Regards
Raheem
Like (0)
Former Member
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 (0)
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 17/18
11/4/2019 Automatic account assignment OKB9 does not work | SAP Blogs
Former Member
Like (0)
Thanks
Like (0)
Former Member
hi Raheem
Regards
Raj
Like (0)
Find us on
Newsletter Support
https://blogs.sap.com/2013/04/22/automatic-account-assignment-okb9-does-not-work/ 18/18