The Lithuanian letters are distorted after you import bank account statement in the Lithuanian version of Microsoft Dynamics NAV

This article applies to Microsoft Dynamics NAV for the Lithuanian (lt) language locale.

Symptoms

When you import bank account statement in the Lithuanian version of Microsoft Dynamics NAV, the order detail in the journal line displays incorrect letters.
This problem occurs in the following products:

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

  • The Lithuanian version of Microsoft Dynamics NAV 2009 R2

  • The Lithuanian version of Microsoft Dynamics NAV 5.0 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, 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 SaveFileHeaderInfo function in the Import Bank Statement report (11951) as follows:
    Existing code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);

    // Delete the following line.
    HeaderAccNo := LocPmtDataPort.TransformEncodingtoANSI(HeaderAccNo);
    // End of the deleted line.

    END;
    18:
    BEGIN
    ...

    Replacement code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);

    // Add the following line.
    HeaderAccNo := LocPmtDataPort.TransformANSItoOEM(HeaderAccNo);
    // End of the added line.

    END;
    18:
    BEGIN
    ...

    Existing code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);

    // Delete the following line.
    HeaderCurrency := LocPmtDataPort.TransformEncodingtoANSI(HeaderCurrency);
    // End of the deleted line.

    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);

    // Add the following line.
    HeaderCurrency := LocPmtDataPort.TransformANSItoOEM(HeaderCurrency);
    // End of the added line.

    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  2. Change the code in the SaveFileLineInfo function in the Import Bank Statement report (11951) as follows:
    Existing code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);

    // Delete the following line.
    FileLineFields[i] := LocPmtDataPort.TransformEncodingtoANSI(FileLineFields[i]);
    // End of the deleted line.

    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);

    // Add the following line.
    FileLineFields[i] := LocPmtDataPort.TransformANSItoOEM(FileLineFields[i]);
    // End of the added line.

    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  3. Change the code in the SaveFileHeaderInfo function in the Import Pmt. Confirmations Test report (11953) as follows:
    Existing code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);
    // Delete the following line.
    HeaderAccNo := LocPmtDataPort.TransformEncodingtoANSI(HeaderAccNo);
    // End of the deleted line.
    END;
    18:
    BEGIN
    ...

    Replacement code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);
    // Add the following line.
    HeaderAccNo := LocPmtDataPort.TransformANSItoOEM(HeaderAccNo);
    // End of the added line.
    END;
    18:
    BEGIN
    ...

    Existing code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);
    // Delete the following line.
    HeaderCurrency := LocPmtDataPort.TransformEncodingtoANSI(HeaderCurrency);
    // End of the deleted line.
    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);
    // Add the following line.
    HeaderCurrency := LocPmtDataPort.TransformANSItoOEM(HeaderCurrency);
    // End of the added line.
    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  4. Change the code in the SaveFileLineInfo function in the Import Pmt. Confirmations Test report (11953) as follows:
    Existing code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);
    // Delete the following line.
    FileLineFields[i] := LocPmtDataPort.TransformEncodingtoANSI(FileLineFields[i]);
    // End of the deleted line.
    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);
    // Add the following line.
    FileLineFields[i] := LocPmtDataPort.TransformANSItoOEM(FileLineFields[i]);
    // End of the added line.
    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  5. Change the code in the SaveFileHeaderInfo function in the Import Pmt. Confirmations report (11954) as follows:
    Existing code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);
    // Delete the following line.
    HeaderAccNo := LocPmtDataPort.TransformEncodingtoANSI(HeaderAccNo);
    // End of the deleted line.
    END;
    18:
    BEGIN
    ...

    Replacement code 1

    ...
    17:
    BEGIN
    TextLine.GETSUBTEXT(HeaderAccNo,1,FirstTABPosition - 1);
    // Add the following line.
    HeaderAccNo := LocPmtDataPort.TransformANSItoOEM(HeaderAccNo);
    // End of the added line.
    END;
    18:
    BEGIN
    ...

    Existing code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);
    // Delete the following line.
    HeaderCurrency := LocPmtDataPort.TransformEncodingtoANSI(HeaderCurrency);
    // End of the deleted line.
    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code 2

    ...
    18:
    BEGIN
    TextLine.GETSUBTEXT(HeaderCurrency,1,FirstTABPosition - 1);
    // Add the following line.
    HeaderCurrency := LocPmtDataPort.TransformANSItoOEM(HeaderCurrency);
    // End of the added line.
    END;
    END;
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  6. Change the code in the SaveFileLineInfo function in the Import Pmt. Confirmations report (11954) as follows:
    Existing code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);
    // Delete the following line.
    FileLineFields[i] := LocPmtDataPort.TransformEncodingtoANSI(FileLineFields[i]);
    // End of the deleted line.
    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...

    Replacement code

    ...
    FileLineFields[i] := ''
    ELSE BEGIN
    TextLine.GETSUBTEXT(FileLineFields[i],1,FirstTABPosition - 1);
    // Add the following line.
    FileLineFields[i] := LocPmtDataPort.TransformANSItoOEM(FileLineFields[i]);
    // End of the added line.
    END;
    CheckLineFieldLength(i,FileLineFields[i]);
    TextLine.GETSUBTEXT(TextLine,FirstTABPosition + STRLEN(TABSeparator));
    ...
  7. Change the code in the TransformANSItoOEM function in the Local Payment Dataport (11900) as follows:
    Existing code

    ...
    EXIT (Str);
    END;

    BEGIN
    {
    <changelog>
    ...

    Replacement code

    ...
    EXIT (Str);
    END;

    // Add the following lines.
    PROCEDURE TransformANSItoOEM@1180002(str@1180000 : Text[255]) : Text[255];
    VAR
    i@1180001 : Integer;
    BEGIN
    // Transform ANSI-1257 to OEM-775
    FOR i:=1 TO STRLEN(str) DO
    CASE str[i] OF
    192: str[i] := 181;
    224: str[i] := 208;
    200: str[i] := 182;
    232: str[i] := 209;
    198: str[i] := 183;
    230: str[i] := 210;
    203: str[i] := 184;
    235: str[i] := 211;
    193: str[i] := 189;
    225: str[i] := 212;
    208: str[i] := 190;
    240: str[i] := 213;
    216: str[i] := 198;
    248: str[i] := 214;
    219: str[i] := 199;
    251: str[i] := 215;
    222: str[i] := 207;
    254: str[i] := 216;
    END;
    EXIT (str);
    END;
    // End of the added lines.
    ...


Prerequisites

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

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

  • The Lithuanian version of Microsoft Dynamics NAV 2009 R2

  • The Lithuanian version of Microsoft Dynamics NAV 5.0 Service Pack 1 (SP1)



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.

References

VSTF DynamicsNAV SE: 234351

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.

ヘルプを表示

スキルを磨く
トレーニングの探索
新機能を最初に入手
Microsoft Insider に参加する

この情報は役に立ちましたか?

フィードバックをお送りいただきありがとうございます!

フィードバックをお寄せいただき、ありがとうございます。Office サポートの担当者におつなぎいたします。

×