Ver Mensaje Individual
  #6  
Viejo 22/02/11, 12:28:30
acatalano acatalano is offline
Junior Member
 
Fecha de Ingreso: jul 2007
Mensajes: 15
Lightbulb Soluciòn al Caso crear una nueva àrea

Buen dìa a todos,

Respecto al caso de crear una nueva àrea e FI-AA la cual se creò con mas de un año en ejercicio cerrado , se le escribiò a Sap en el Market place y las sugerencias fueron las siguientes:

Reviewing your description by attachment I understand that you get AC424when trying to close fiscal year in OAAR.

If some of the depreciation areas have different last closed fiscal
year this a inconsistency.

If that was the case then you need to ensure that all depreciation
areas have the same last closed fiscal year before proceeding.

If the reason for this inconsistency is a wrong transport, the solution
would be that you might transport the table again from the lowest
system, provided that it is correct in that system.

If the inconsistency is because of wrong handling and if you can not
close the fiscal year you have to open the fiscal year in
all areas and make a closing again.

If there is no other possibility you have to "hard" correct the field
in table T093B.



De todas las recomendaciones de SAP, la mas viable para nosotros fuè la de modificar el ejercicio cerrado SOLO EN LA NUEVA AREA , directamente en la Tabla T093B,
Ya que el desfase de ejercicios cerrados en la nueva area era de 3 años(2007 al 2010), lo que hace muy delicado anular el ejercicio en la OAAR hasta el 2007 para todas las àreas y dejarlas a todas iguales para luego ejecutar nuevamente el cierre (AJAB), OJO esto puede generar inconcistencias al anular 2 ejercicios hacia atras y luego tratar de cerra ejercicio con la transaccion estàndar.

Para indicar en la nueva area que su ùltimo ejercicio cerrado es 2010 en lugar de 2007, para ello usamos un còdigo de programa el cual se creò como ZT093B este es el còdigo: OJO solo incluir el area nueva y cambiarla al ùltimo ejercicio cerrado (para mi caso fue hasta el 2010) estos cambios lo monitoreas por la OAAR, este programa lo debes ejecutar por la SE38, tanto en QA como en productivo luego que realices el transporte de las ordenes respectivas a las parametrizaciones. A continuaciòn el còdigo usado y que ha funcionado perfectamente:

Program: ZT093B:
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-F01.
PARAMETERS: IBUKRS LIKE J_1AIFSKVZ-BUKRS OBLIGATORY.

PARAMETERS: IAFABE LIKE ANLB-AFABE OBLIGATORY,
IABGJA LIKE T093B-ABGJA ,
UPDATE LIKE J_1ASINFF-UPDMAST.

SELECTION-SCREEN END OF BLOCK 1.

IF UPDATE = 'X'.
UPDATE T093B SET: ABGJA = IABGJA
WHERE BUKRS = IBUKRS AND
AFABE = IAFABE.
IF sy-subrc = 0.
WRITE: / 'done in update mode'.
ELSE.
WRITE: / 'selection is incorrect'.
ENDIF.
ELSE.

WRITE: / 'done in test mode'.
ENDIF.
***********************************************************************
* Parameters ->>

IBUKRS : company code.
IAFABE : depreciation area.
IABGJA : last closed fiscal year to be updated

-> run first the program without selecting the update field, check the
data, if correct then run the program in update mode.
__________________
acatalano
Responder Con Cita