Professional Documents
Culture Documents
Applies to:
All releases of SAP for Financial postings made from a various applications like SAP-Logistics, SAPFinancials, SAP-HCM, etc For more information, visit the Enterprise Resource Planning homepage.
Summary
This paper highlights an alternative approach where standard default account assignment (OKB9) based on Business area or Profit Center is not sufficient and a default account assignment based on Business area and Profit center is required Author: Ajay Maheshwari
Author Bio
The author works with IBM India Private Ltd as Advisory Consultant-SAP FICO. Has over 7 years of experience into ERP systems in varied positions and is actively involved in SAP implementations and rollouts in various industries
Table of Contents
Standard SAP Default Account Assignment (OKB9) ...................................................................................... 3 Challenges Faced with the Standard Option .................................................................................................. 3
Alternate Solution......................................................................................................................................................... 3
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 Challenges Faced with the Standard Option In cases where the SAP enterprise structure is designed in way that there are multiple profit centers pertaining to one plant, the standard default account assignment may not cater to the business needs. For eg: If the user wants to specify a default cost center as follows, it is not possible with in the standard design Business Area 1000 2000 Profit Center 1010 2010 Default Cost Center 10001010 20002010
Alternate Solution In such cases, a slight customization in the FI substitution (RGGBS000) can get you the desired result. This alternate solution depends upon a Z table similar to that of OKB9 and a couple of lines code in RGGBS000 outlined as below The Z table used in the process:
*---------------------------------------------------------------------* * Start of Insertion (RGGBS000) * This works like OKB9 based on GSBER & PRCTR *---------------------------------------------------------------------* Data: wa_ZOKB9 type ZOKB9. If COBL-BUKRS = 'XXXX'. If COBL-KOSTL IS INITIAL. Select Single * from ZOKB9 into wa_ZOKB9 Where BUKRS = COBL-BUKRS and KSTAR = COBL-HKONT AND GSBER = COBL-GSBER AND PRCTR = COBL-PRCTR. If sy-subrc = 0. COBL-KOSTL = wa_ZOKB9-KOSTL. ENDIF. ENDIF. ENDIF. *---------------------------------------------------------------------* * End of Insertion * This works like OKB9 based on GSBER & PRCTR *---------------------------------------------------------------------*