Applies To
Dynamics NAV 2009

After you import the VAT Statement update (VAT Statement Layout Change 2014 for Microsoft Dynamics NAV 2009 SP1 - Austria).The VAT Statement report does not have a request page in the Austrian version of Microsoft Dynamics NAV 2009. Therefore, you cannot use the same options in the RoleTailored client (RTC) that are compared to the classic client. This problem occurs in the following products:

  • The Austrian version of Microsoft Dynamics NAV 2009 R2

  • The Austrian version of Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics NAV 2009 service pack or the next Microsoft Dynamics NAV version that contains this hotfix. Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Installation information

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Note Before you install this hotfix, verify that all Microsoft Dynamics NAV client users are logged off the system. This includes Microsoft Dynamics NAV Application Server (NAS) services. You should be the only client user who is logged on when you implement this hotfix.To implement this hotfix, you must have a developer license.We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions:

  • The Modify permission for the object that you will be changing.

  • The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.

Note You do not have to have rights to the data stores unless you have to perform data repair.

Code changes

Note Always test code fixes in a controlled environment before you apply the fixes to your production computers. Before applying the change, please import all SEPA updates.To resolve this problem, follow these steps:

  1. Change the code in Request Page in the VAT Statement AT report (11110) as follows:Existing code 1

    ...{    PROPERTIES    {    }    CONTROLS    {...

    Replacement code 1

    ...{    PROPERTIES    {      SaveValues=Yes;      OnInit=BEGIN               XMLFilenameControlVisible := TRUE;               FDFFilenameControlVisible := TRUE;             END;      OnOpenPage=BEGIN                   CLEAR(NumberPar6Abs1);                   IF (Startingdate <> 0D) AND (Endingdate <> 0D) THEN BEGIN                     IF (Startingdate = CALCDATE('<-CQ>',Startingdate)) AND (Endingdate = CALCDATE('<+CQ>',Startingdate)) THEN                       PeriodType := PeriodType::quarter                     ELSE IF (Startingdate = CALCDATE('<-CM>',Startingdate)) AND (Endingdate = CALCDATE('<+CM>',Startingdate)) THEN                       PeriodType := PeriodType::month                     ELSE                       PeriodType := PeriodType::"defined period";                   END ELSE                     PeriodType := PeriodType::"defined period";                   FDFFilenameControlVisible := NOT ISSERVICETIER;                   XMLFilenameControlVisible := NOT ISSERVICETIER;                 END;    }    CONTROLS    {...

    Existing code 2

    ...}    CONTROLS    {    }  }  CODE...

    Replacement code 2

    ...}    CONTROLS    {      { 1900000001;0;Container;                  ContainerType=ContentArea }      { 1900000002;1;Group  ;                  CaptionML=ENU=Options }      { 1160010;2;Field     ;                  CaptionML=[ENU=Starting Date;                             DEA=Startdatum];                  SourceExpr=Startingdate;                  OnValidate=VAR                               RefDate@1160000 : Date;                             BEGIN                               CLEAR(RefDate);                               IF Startingdate <> 0D THEN                                 RefDate := Startingdate                               ELSE IF Endingdate <> 0D THEN                                 RefDate := Endingdate;                               IF RefDate <> 0D THEN BEGIN                                 IF PeriodType = PeriodType::quarter THEN BEGIN                                   Startingdate := CALCDATE('<-CQ>',RefDate);                                   Endingdate := CALCDATE('<+CQ>',RefDate);                                 END ELSE IF PeriodType = PeriodType::month THEN BEGIN                                   Startingdate := CALCDATE('<-CM>',RefDate);                                   Endingdate := CALCDATE('<+CM>',RefDate);                                 END ELSE BEGIN                                   IF Endingdate = 0D THEN                                     Endingdate := RefDate;                                   IF Startingdate = 0D THEN                                     Startingdate := RefDate;                                 END;                               END;                             END;                              }      { 1160012;2;Field     ;                  CaptionML=[ENU=Ending Date;                             DEA=Enddatum];                  SourceExpr=Endingdate;                  OnValidate=VAR                               RefDate@1160000 : Date;                             BEGIN                               CLEAR(RefDate);                               IF Endingdate <> 0D THEN                                 RefDate := Endingdate                               ELSE IF Startingdate <> 0D THEN                                 RefDate := Startingdate;                               IF RefDate <> 0D THEN BEGIN                                 IF PeriodType = PeriodType::quarter THEN BEGIN                                   Startingdate := CALCDATE('<-CQ>',RefDate);                                   Endingdate := CALCDATE('<+CQ>',RefDate);                                 END ELSE IF PeriodType = PeriodType::month THEN BEGIN                                   Startingdate := CALCDATE('<-CM>',RefDate);                                   Endingdate := CALCDATE('<+CM>',RefDate);                                 END ELSE BEGIN                                   IF Startingdate = 0D THEN                                     Startingdate := RefDate;                                   IF Endingdate = 0D THEN                                     Endingdate := RefDate;                                 END;                               END;                             END;                              }      { 8   ;2   ;Field     ;                  CaptionML=[ENU=Include VAT Entries;                             DEA=MwSt.-Posten einschlie�en];                  OptionCaptionML=[ENU=Open,Closed,Open and Closed;                                   DEA=Offen,Geschlossen,Offen und geschlossen];                  SourceExpr=Selection }      { 4   ;2   ;Field     ;                  CaptionML=[ENU=Include VAT Entries;                             DEA=MwSt.-Posten einschlie�en];                  OptionCaptionML=[ENU=Before and Within Period,Within Period;                                   DEA=Vor und innerhalb Periode,Innerhalb Periode];                  SourceExpr=PeriodSelection }      { 11  ;2   ;Field     ;                  CaptionML=[ENU=Reporting Type;                             DEA=Berichtstyp];                  OptionCaptionML=[ENU=Quarter,Month,Defined period;                                   DEA=Quartal,Monat,Definierte Periode];                  SourceExpr=PeriodType;                  OnValidate=BEGIN                               IF PeriodType = PeriodType::month THEN                                 monthPeriodTypeOnValidate;                               IF PeriodType = PeriodType::quarter THEN                                 quarterPeriodTypeOnValidate;                             END;                              }      { 1160007;2;Field     ;                  CaptionML=[ENU=Check Positions;                             DEA=Positionen pr�fen];                  SourceExpr=CheckPositions }      { 1   ;2   ;Field     ;                  CaptionML=[ENU=Round to Whole Numbers;                             DEA=Auf ganze Zahlen runden];                  SourceExpr=PrintInWholeNumbers }      { 1160015;2;Field     ;                  Name=PDFFilenameControl;                  CaptionML=[ENU=PDF File Name;                             DEA=PDF-Dateiname];                  SourceExpr=PDFFileName;                  OnAssistEdit=BEGIN                                 PDFFileName := CommonDlgMgt.OpenFile(Text1160052,PDFFileName,4,Text1160053,0);                               END;                                }      { 1160017;2;Field     ;                  Name=FDFFilenameControl;                  CaptionML=[ENU=FDF File Name;                             DEA=FDF-Dateiname];                  SourceExpr=FDFFileName;                  Visible=FDFFilenameControlVisible;                  OnAssistEdit=BEGIN                                 FDFFileName := CommonDlgMgt.OpenFile(Text1160054,FDFFileName,4,Text1160055,1);                               END;                                }      { 1160001;2;Field     ;                  Name=XMLFilenameControl;                  CaptionML=[ENU=XML File Name;                             DEA=XML-Dateiname];                  SourceExpr=XMLFileName;                  Visible=XMLFilenameControlVisible;                  OnAssistEdit=BEGIN                                 XMLFileName := CommonDlgMgt.OpenFile(Text1160056,XMLFileName,4,Text1160057,1);                               END;                                }      { 1160003;2;Field     ;                  CaptionML=[ENU=Surplus Used to Pay Dues;                             DEA=F�r Zahlung von Verbindlichkeiten genutzter �berschuss];                  SourceExpr=UseARE }      { 1160005;2;Field     ;                  CaptionML=[ENU=Additional Invoices sent via Mail;                             DEA=Weitere per Post geschickte Rechnungen];                  SourceExpr=UseREPO }      { 1160000;2;Field     ;                  CaptionML=[ENU=Number �6 Abs. 1;                             DEA=Nummer � 6 Abs. 1];                  Numeric=Yes;                  BlankZero=Yes;                  SourceExpr=NumberPar6Abs1;                  MinValue=0;                  MaxValue=99 }    }  }  CODE...
  2. Change the code in Global Variables in the VAT Statement AT report (11110) as follows:Existing code

    ...Text1160061@1160061 : TextConst 'ENU=Would you like to set the Starting and Ending Date according to the selected Reporting Type?;DEA=M�chten Sie das Start- und Enddatum entsprechend dem ausgew�hlten Berichtstyp festlegen?';      Text1160062@1160062 : TextConst 'ENU=Due to improper filter settings on the fields %1 and/or %2, your VAT Statement might contain incorrect values. Please check.;DEA=Aufgrund von nicht ordnungsgem��en Filtereinstellungen f�r die Felder %1 und/oder %2 enth�lt Ihre MwSt-Erkl�rung m�glicherweise fehlerhafte Werte. Bitte �berpr�fen Sie diese.';      Text1160063@1160063 : TextConst 'ENU=Default;DEA=Standard';    LOCAL PROCEDURE CalcLineTotal@3(VATStmtLine2@1160000 : Record 256;VAR TotalAmount@1160001 : Decimal;Level@1160002 : Integer) : Boolean;    BEGIN...

    Replacement code

    ...Text1160061@1160061 : TextConst 'ENU=Would you like to set the Starting and Ending Date according to the selected Reporting Type?;DEA=M�chten Sie das Start- und Enddatum entsprechend dem ausgew�hlten Berichtstyp festlegen?';      Text1160062@1160062 : TextConst 'ENU=Due to improper filter settings on the fields %1 and/or %2, your VAT Statement might contain incorrect values. Please check.;DEA=Aufgrund von nicht ordnungsgem��en Filtereinstellungen f�r die Felder %1 und/oder %2 enth�lt Ihre MwSt-Erkl�rung m�glicherweise fehlerhafte Werte. Bitte �berpr�fen Sie diese.';      Text1160063@1160063 : TextConst 'ENU=Default;DEA=Standard';      FDFFilenameControlVisible@19016139 : Boolean INDATASET;      XMLFilenameControlVisible@19067901 : Boolean INDATASET;    LOCAL PROCEDURE CalcLineTotal@3(VATStmtLine2@1160000 : Record 256;VAR TotalAmount@1160001 : Decimal;Level@1160002 : Integer) : Boolean;    BEGIN...
  3. Change the code in the quarterPeriodTypeOnValidate function in the VAT Statement AT report (11110) as follows:Existing code

    ...XMLFile.CLOSE;    END;    BEGIN    END.  }...

    Replacement code

    ...XMLFile.CLOSE;    END;    LOCAL PROCEDURE quarterPeriodTypeOnValidate@19029369();    BEGIN      IF Startingdate <> 0D THEN        IF (Startingdate <> CALCDATE('<-CQ>',Startingdate)) OR (Endingdate <> CALCDATE('<+CQ>',Startingdate)) THEN          IF CONFIRM(Text1160061, TRUE) THEN BEGIN            Startingdate := CALCDATE('<-CQ>',Startingdate);            Endingdate := CALCDATE('<+CQ>',Startingdate);          END ELSE            ERROR('');    END;    LOCAL PROCEDURE monthPeriodTypeOnValidate@19063435();    BEGIN      IF Startingdate <> 0D THEN        IF (Startingdate <> CALCDATE('<-CM>',Startingdate)) OR (Endingdate <> CALCDATE('<+CM>',Startingdate)) THEN          IF CONFIRM(Text1160061, TRUE) THEN BEGIN            Startingdate := CALCDATE('<-CM>',Startingdate);            Endingdate := CALCDATE('<+CM>',Startingdate);          END ELSE            ERROR('');    END;    BEGIN    END.  }...

Prerequisites

You must have one of the following products installed to apply this hotfix:

  • The Austrian version of Microsoft Dynamics NAV 2009 R2

  • The Austrian version of Microsoft Dynamics NAV 2009 SP1

In addition, you have to install the VAT Statement update (VAT Statement Layout Change 2014 for Microsoft Dynamics NAV 2009 SP1 - Austria).

Removal information

You cannot remove this hotfix.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Usefor other considerations.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.