miércoles, enero 21, 2015

Corrección Monetaria para Chile (aplicar Nota SAP: 792047 - Chile: Base Values For Revaluation)

Symptom
The base values for calculation of inflation adjustments in Chile are to be defined by the customer.


Other Terms
Inflation, Revaluation, Chile, user exit, SAP enhancement J_1AAA01, ZXJ1IU04, CMOD


Reason and Prerequisites
           You use a Chilean company code for inflation adjustments in FI-AA. Revaluation calculations are incorrect according to Chilean legal requirements.


Solution
           This Note explains how to achieve the solution for Chilean customers via implementation of a user exit for enhancement J_1AAA01 and customizing changes in the revaluation key. The information in this Note can also be used by non-Chilean customers who need to implement an internal calculation of base values for revaluation.
I. Activate user exit:
1. Create and activate the project, that accesses function module for base value calculations of APC EXIT_SAPLJ1AB_002 via transaction CMOD. You can assign any name for this project, for example ZREV0001. You will be requested to enter a project description, a development class and a correction number. Contact your basis team for assistance with this data.
2. Enter SAP enhancement J_1AAA01 and save the project.
3. The enhancement provides access to two function modules:

  *   EXIT_SAPLJ1AB_002 which is using include ZXJ1IU04 - for the base value of revaluation of APC, and

  *   EXIT_SAPLJ1AB_003 which is using include ZXJ1IU03 - for the base value of revaluation of depreciation. You need to modify only the first function module by creation of the include ZXJ1IU04. The source of include ZXJ1IU04 is as follows:
*----------------------------------------------------------------------*
*   INCLUDE ZXJ1IU04                                                   *
*----------------------------------------------------------------------*
DATA: CON_BEZWKZ_ZA LIKE T090P-BEZWKZ VALUE 'ZA',
      I_BEZWKZ LIKE J_1AAA2-J_1AABZWKZ.

SELECT SINGLE J_1AABZWKZ INTO I_BEZWKZ FROM J_1AAA2
                          WHERE BUKRS      = I_ANLB-BUKRS
                          AND  J_1AARVKEY = I_ANLB-J_1AARVKEY .
IF SY-SUBRC <> 0.
    EXIT.
ENDIF.

CASE I_BEZWKZ.
  WHEN CON_BEZWKZ_ZA.
    E_KANSW =  I_ANLC-KANSW + I_ANLC-ANSWL +
              I_ANLC-KMAFA + I_ANLC-MAFAV + I_ANLC-ZUSMA +
               I_ANLC-MAFAM + I_ANLC-MAFAL +
               I_ANLC-KAUFW + I_ANLC-AUFWV .
  WHEN OTHERS.
ENDCASE.
*----------------------------------------------------------------------*


Activate the include and the project (using transaction CMOD).
II. Assign the base value key to the revaluation keys:

1. Go to IMG customizing path (transaction SPRO): IMG-> Financial Accounting -> Asset Accounting -> Special Valuation -> Revaluation of Fixed Assets -> Revaluation for the Balance Sheet -> Inflation -> Maintain Revaluation Keys 

2. For all revaluation keys used, enter the user-defined base value indicator "ZA" into the field "RVbase APC" which defines the base value calculations for revaluation adjustment of APC .

3. In the same revaluation key, enter the base value indicator "01" into the field "RVdep.base" which defines the base value calculations for revaluation of depreciation and save the revaluation key data.

Remarks:


1. The include described in this Note can only be considered as an example and the customer can modify it according to his specific needs,
2. For information on how to use the SAP enhancement concept refer to the SAP documentation for transaction CMOD.