Miro Docs
Miro Docs
Contents
1. Error after SAP upgrade to EHP7 .................................................................................................. 1
2. Error Analysis: ................................................................................................................................ 1
2.1 MIRO Rounding off Issue raised to SAP ....................................................................................... 2
3. Solution .......................................................................................................................................... 3
3.1 Define the user exit Z_FI_MIRO .................................................................................................... 3
3.1.1 Draw back Z_FI_MIRO user exit ............................................................................................... 3
3.2 Define OKB9 at higher level with Valuation Area .......................................................................... 3
4. Configuration Change .................................................................................................................... 4
4.1 Configuration for Valuation Area .................................................................................................... 4
4.2 Define CO-Substitution .................................................................................................................. 5
4.3 Check Client Specific user exit GCX2 transaction code ................................................................ 7
4.4 Routine UOKB9 Code .................................................................................................................... 8
5. Operating Procedure .................................................................................................................... 10
8 Conclusion. .................................................................................................................................. 10
Request Number.
Request No
2. Error Analysis:
This issue occurred after SAP upgradation from EHP 4 to EHP7, in EHP4 system was running fine, the
profit center is being defined correctly for the cost element 463116,
We have tried to resolve the above error by doing the configuration in OKB9, we have tried all the
configuration option available in OKB9, but error is not resolved by doing configuration change.
Page No. 1
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
SAP Response
Please check your settings in transaction OKB9.Attached note 32654 explains why the system takes
the account assignment at a higher level for automatically generated lines like small differences. You
should maintain an entry in OKB9 at a higher level than valuation level (or profit center, or business
area). OKB9 is used whenever there is an account assignment to a cost element. This particular
problem with the system not being able to use the 'detailed' OKB9 assignment happens when the
system creates an automatically generated line in a document. This is driven by the transaction key
and is then linked to OKB9 by the G/L account defined for the transaction key. The most common
transaction keys that are used in auto-generated lines are 'DIF' (small diff) and 'KDR' (exchange rate). I
have also attached note 409520 for more information.
With Kind Regards,
Adam Kavanagh,
MM Support Engineer,
Global Support – Logistics
Page No. 2
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
Sapnote_000003265 Sapnote_000040952
4 - Automatic account
0_Goods
assignment
invoice
at high
receipt
level.pdf
Default account assignment ignored.pdf
3. Solution
To eliminate the error we have decided to go with the Enhancement to derive cost center and
profit center plant wise for the small difference line generated in MIRO
[Note: the above solution is not feasible and recommended due the inconsistency in cost
center & profit center determination at all stages of transaction posting and reversal]
Page No. 3
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
4. Configuration Change
4.1 Configuration for Valuation Area
To rectify the error following activity to be performed
Page No. 4
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
Substitution checks whether a particular input values satisfy one or more user-defined conditions, if
the given condition satisfied, the values are automatically replaced by other value.
Standard settings
The following call up points are defined in the standard SAP for Controlling:
0001 - Document row : Used for all CO-relevant postings in external accounting as well as for
manual postings in CO.
Transaction code
Page No. 5
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
"Exit only" ensures that all fields allowed for substitution are available only in this USER-EXIT. UOKB9
Page No. 6
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
Here we need to check assigned program for the Application Area GBLS. We need to
some change in Program, First copy from Existing program RGGBS000 to ZRGGBS000.
Page No. 7
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
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)
DATA:
LD_KOSTL LIKE COBL-KOSTL,
LD_AUFNR LIKE COBL-AUFNR,
LD_PRCTR LIKE COBL-PRCTR,
LD_PAOBJNR LIKE COBL-PAOBJNR.
Page No. 8
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
EXPORTING
BUKRS = COBL-BUKRS
WERKS = COBL-WERKS
BWKEY = COBL-BWKEY
GSBER = COBL-GSBER
KSTAR = COBL-HKONT
I_COBL = COBL
IMPORTING
KOSTL = LD_KOSTL
AUFNR = LD_AUFNR
PRCTR = LD_PRCTR
E_PAOBJNR = LD_PAOBJNR.
*&-----------------------------------------------------------------------------------------------------------------------------------------------*
Page No. 9
FI: EHP7 Issues After Upgrade
MIRO Small Difference (Rounding off)
Gabriel India Limited, MIRO / Auto MIRO/FB60 Prepared by: Anil Vishwakarma
Serial Number: 2015/09/EHP7/FI/DN/001 Document Revision Date: 29.09.2015
5. Operating Procedure
No Change in Operating Procedure
8 Conclusion.
Solution provided with Enhancement is not worked for this scenario, we have
implemented the standard process which is also recommended by SAP.
Page No. 10