23.1.11

SAP Note 18800 - Error message AA687 during depreciation posting

Symptom:

Unjustified error message AA687: 'You can post in new year only after closing the previous year' is displayed during the first posting run in the new fiscal year, if the previous fiscal year was a shortened fiscal year.

Cause and prerequisites

Program error up to 2.2D OR:
New ifscal year variants (period versions), for which no shortened fiscal year is maintained, already have been entered in the affected company code in FI or Asset Customizing.

Solution
At the first depreciation posting in the new fiscal year after a shortened fiscal year, the fiscal year variants must, in all cases, still be entered in asset customizing and in FI customizing for the affected company code. If necessary, all periods for the following fiscal year must be maintained with the variant of the shortened fiscal year.
Up to 2.2D the following correction must also be installed:
Please carry out the syntax check only in main program SAPLAFAR.

Preliminary correction in Include LAFARF50
:
FORM X093D_APPEND.
DATA: HLP_JAHR LIKE T093D-AFBLGJ.
DATA: L_ANZBP LIKE T009-ANZBP. <---insert
:
:
* hat Jahreswechsel stattgefunden
IF I_AFBGJR > T_093D-AFBLGJ.

CALL FUNCTION 'GET_ACCOUNT_OF_PERIODS' <---insert
EXPORTING < ---insert
I_GJAHR = T_093D-AFBLGJ <---insert
I_PERIV = T001-PERIV <---insert
IMPORTING < ---insert
E_ANZBUPER = L_ANZBP. <---insert

**** IF T_093D-AFBLPE LT U08_ANZBP. <---change
IF T_093D-AFBLPE LT L_ANZBP. <---insert
* erst letzte Periode im alten Jahr bebuchen
PERFORM FTAB_FILL
USING T_093D-AFABER 'E687' DMY DMY DMY DMY.
EXIT.

:
ENDFORM.
:

Additional key words

Shortened fiscal year.

No comments:

Post a Comment