The Scambi.cee file is still incorrect after you apply hotfix 2622499 in the Italian version of Microsoft Dynamics NAV

This article applies to Microsoft Dynamics NAV for the Italian (it) language locale.

Symptoms

Assume that you apply hotfix 2622499 in the Italian version of Microsoft Dynamics NAV. However, when you export corrective entries for service, the Scambi.cee file is still incorrect. If you have multiple lines, the value that is reported in position 75 is always the first credit memo. Additionally, position 103 reports the credit memo data instead of the invoice data. This problem occurs in the following products:

  • The Italian version of Microsoft Dynamics NAV 2009 R2

  • The Italian version of Microsoft Dynamics NAV 2009 Service Pack 1

  • The Italian version of Microsoft Dynamics NAV 5.0 Service Pack 1

For more information about hotfix 2622499, click the following article number to view the article in the Microsoft Knowledge Base:

2622499 The Scambi.cee file is incorrect when you export corrective entries for service from Intrastat Journal in the Italian version of Microsoft Dynamics NAV

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, but 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 Navision client users are logged off the system. This includes Microsoft Navision Application Services (NAS) client users. 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.
To resolve this problem, follow these steps:

  1. Change the code in the Request Form in the Intrastat - Make Disk Tax Auth report (593) as follows:
    Existing code

    ...
    END;
    }
    { 1130000;Label ;0 ;0 ;3300 ;440 ;ParentControl=2 }
    }
    }
    CODE
    {
    VAR
    Text000@1000 : TextConst 'ENU=Please enter the file name.;ITA=Inserire il nome del file.';
    Text001@1001 : TextConst 'ENU=WwWw;ITA=WwWw';
    ...

    Replacement code

    ...
    END;
    }
    { 1130000;Label ;0 ;0 ;3300 ;440 ;ParentControl=2 }
    }
    }

    // Add the following lines.
    REQUESTPAGE
    {
    PROPERTIES
    {
    }
    CONTROLS
    {
    }
    }
    // End of the lines.

    CODE
    {
    VAR
    Text000@1000 : TextConst 'ENU=Please enter the file name.;ITA=Inserire il nome del file.';
    Text001@1001 : TextConst 'ENU=WwWw;ITA=WwWw';
    ...
  2. Add the following global variable in the Intrastat - Make Disk Tax Auth report (593):

    IntrastatJnlLine1@1130006 : Record 263;
  3. Change the code in the GetRecordTypeFour function in the Intrastat - Make Disk Tax Auth report (593) as follows:
    Existing code 1

    ...
    PROCEDURE GetRecordTypeFour@1130016() : Text[119];
    VAR
    IntrastatJnlBatch@1130001 : Record 262;
    OutText@1130000 : Text[119];
    BEGIN
    OutText += GetFixedPart(4);
    OutText += FormatNum("Intra - form Buffer"."Custom Office No.",6);
    IF IntrastatJnlBatch.GET(
    "Intra - form Buffer"."Journal Template Name",
    ...

    Replacement code 1

    ...
    PROCEDURE GetRecordTypeFour@1130016() : Text[119];
    VAR
    IntrastatJnlBatch@1130001 : Record 262;
    OutText@1130000 : Text[119];

    // Add the following line.
    CorrectiveDocNo@1130010 : Code[54];

    BEGIN
    OutText += GetFixedPart(4);
    OutText += FormatNum("Intra - form Buffer"."Custom Office No.",6);
    IF IntrastatJnlBatch.GET(
    "Intra - form Buffer"."Journal Template Name",
    ...

    Existing code 2

    ...
    THEN;
    OutText += FormatNum(IntrastatJnlBatch."Statistics Period",2);
    OutText += FormatNum(GetNumericVal(IntrastatJnlBatch."File Disk No."),6);
    //VSTF274256 begin
    //OutText += FormatNum('0',5);

    // Delete the following lines.
    IF "Intrastat Jnl. Line"."Corrected Document No." <> '' THEN
    OutText += FormatNum("Intrastat Jnl. Line"."Corrected Document No.",5)
    // End of the lines.

    ELSE
    OutText += FormatNum('1',5);
    OutText += GetCountryCodeVATRegNo;
    OutText += GetAmounts;
    OutText += GetDocNoDocDateServTariffNo;
    ...

    Replacement code 2

    ...
    THEN;
    OutText += FormatNum(IntrastatJnlBatch."Statistics Period",2);
    OutText += FormatNum(GetNumericVal(IntrastatJnlBatch."File Disk No."),6);
    //VSTF274256 begin
    //OutText += FormatNum('0',5);

    // Add the following lines.
    CorrectiveDocNo := FindCorrectiveDocNo;
    IF CorrectiveDocNo <> '' THEN
    OutText += FormatNum(CorrectiveDocNo,5)
    // End of the lines.

    ELSE
    OutText += FormatNum('1',5);
    OutText += GetCountryCodeVATRegNo;
    OutText += GetAmounts;
    OutText += GetDocNoDocDateServTariffNo;
    ...
  4. Change the code in the GetDocNoDocDateServTariffNo function in the Intrastat - Make Disk Tax Auth report (593) as follows:
    Existing code

    ...
    END;

    PROCEDURE GetDocNoDocDateServTariffNo@1130023() : Text[27];
    VAR
    OutText@1130000 : Text[27];

    // Delete the following lines.
    BEGIN
    //VSTF274256 begin
    //OutText += FormatAlphaNum("Intra - form Buffer"."Document No.",15);
    OutText += FormatAlphaNum("Intrastat Jnl. Line"."Corrected Document No.",15);
    //VSTF274256 end
    OutText += FORMAT("Intra - form Buffer".Date,0,'<Day,2><Month,2><Year,2>');
    // End of the lines.

    OutText += FormatNum(GetNumericVal("Intra - form Buffer"."Service Tariff No."),6);
    EXIT(OutText);
    END;

    PROCEDURE GetPmtMthdCompCountry@1130034() : Text[3];
    ...

    Replacement code

    ...
    END;

    PROCEDURE GetDocNoDocDateServTariffNo@1130023() : Text[27];
    VAR
    OutText@1130000 : Text[27];

    // Add the following lines.
    IntrastatJnlLine2@1130002 : Record 263;
    CorrectiveDocNo@1130003 : Code[54];
    BEGIN
    CorrectiveDocNo := FindCorrectiveDocNo;
    IF CorrectiveDocNo <> '' THEN BEGIN
    OutText += FormatAlphaNum(CorrectiveDocNo,15);
    IntrastatJnlLine2.SETRANGE("Journal Template Name","Intra - form Buffer"."Journal Template Name");
    IntrastatJnlLine2.SETRANGE("Journal Batch Name","Intra - form Buffer"."Corrected Intrastat Report No.");
    IntrastatJnlLine2.SETRANGE("Document No.",IntrastatJnlLine1."Corrected Document No.");
    IF IntrastatJnlLine2.FINDFIRST THEN
    OutText += FORMAT(IntrastatJnlLine2.Date,0,'<Day,2><Month,2><Year,2>');
    END;
    // End of the lines.

    OutText += FormatNum(GetNumericVal("Intra - form Buffer"."Service Tariff No."),6);
    EXIT(OutText);
    END;

    PROCEDURE GetPmtMthdCompCountry@1130034() : Text[3];
    ...
  5. Change the code in the FindCorrectiveDocNo function in the Intrastat - Make Disk Tax Auth report (593) as follows:
    Existing code

    ...
    IF IntrastatJnlBatch.GET(
    "Intrastat Jnl. Line"."Journal Template Name","Intrastat Jnl. Line"."Corrected Intrastat Report No.") THEN
    IntrastatJnlBatch.TESTFIELD("Statistics Period");
    END;
    ...

    Replacement code

    ...
    IF IntrastatJnlBatch.GET(
    "Intrastat Jnl. Line"."Journal Template Name","Intrastat Jnl. Line"."Corrected Intrastat Report No.") THEN
    IntrastatJnlBatch.TESTFIELD("Statistics Period");
    END;


    // Add the following lines.
    PROCEDURE FindCorrectiveDocNo@1130050() : Code[54];
    BEGIN
    IntrastatJnlLine1.SETRANGE("Journal Template Name","Intra - form Buffer"."Journal Template Name");
    IntrastatJnlLine1.SETRANGE("Journal Batch Name","Intra - form Buffer"."Journal Batch Name");
    IntrastatJnlLine1.SETRANGE("Document No.","Intra - form Buffer"."Document No.");
    IF IntrastatJnlLine1.FINDFIRST THEN
    EXIT(IntrastatJnlLine1."Corrected Document No.");
    END;
    // End of the lines.
    ...

Prerequisites

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

  • The Italian version of Microsoft Dynamics NAV 2009 R2

  • The Italian version of Microsoft Dynamics NAV 2009 Service Pack 1

  • The Italian version of Microsoft Dynamics NAV 5.0 Service Pack 1

Additionally, you must have hotfix 2622499 installed to apply this hotfix.

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 Use for other considerations.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×