This article applies to Microsoft Dynamics NAV for the German (de) language locales.
Symptoms
When you create a payment file that contains special German characters such as Umlaute, the special characters are transformed inconsistently. For example, the" Ö "as a special character, it is onetime transformed to "\" and onetime transformed to "TM".
This problems occurs in the following products:-
German version of Microsoft Dynamics NAV 2009 Service Pack 1
-
German version of Microsoft Dynamics NAV 5.0 Service Pack 1
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:-
Change the following global variable in the Clearing function, codeunit (5001901):
Existing variable-
Name: Dtaus
-
DataType: Code
-
Length: 150
Replacement variable
-
Name: Dtaus
-
DataType: Code
-
Length: 1024
-
-
Delete the following global variables in the Clearing function, codeunit (5001901):
-
Name:AUmlaut
-
Name:OUmlaut
-
Name:UUmlaut
-
Name: EsZet
-
-
Add the following Text Constant to the Clearing function, codeunit (5001901):
-
Name: Text 1105400400
-
Constant value:
-
DEU=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]~.,&-+*%/$
-
ENU=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]~.,&-+*%/$'
-
-
-
Change the following code in the Open Exportfile procedure:
Existing code...
PaymentSetup.TESTFIELD("Textcode Credit Note"); TextCode := PaymentSetup."Textcode Credit Note"; END; END; AUmlaut := '['; OUmlaut := '\'; UUmlaut := ']'; EsZet := '~'; ...Replacement code
...
PaymentSetup.TESTFIELD("Textcode Credit Note"); TextCode := PaymentSetup."Textcode Credit Note"; END; END; ... -
Change the following code in the CustomerOutput procedure:
Existing code...
WITH PaymLine2 DO BEGIN IF "Account No." = PaymLine3."Account No." THEN BEGIN PaymLine3 := PaymLine2; IF "Sum Entries"<>0 THEN BEGIN Counter := Counter + 1; SumDM := TotalEntries; AmountDM[Counter] := TotalEntries; END ELSE BEGIN Counter := Counter + 1; ...Replacement code
...
WITH PaymLine2 DO BEGIN IF "Account No." = PaymLine3."Account No." THEN BEGIN PaymLine3 := PaymLine2; IF "Sum Entries"<>0 THEN BEGIN Counter := Counter + 1; SumDM := TotalEntries; AmountDM[Counter] := TotalEntries; // Add the following line. PDate [Counter] := "Posting Date"; // End of the added line. END ELSE BEGIN Counter := Counter + 1; ... -
Change the following code in the PaymentfileRecord procedure:
Existing code...
// Record C (DataExchange), 1. Constant Part, 2. Section // // field length contents // ------------------------------------------------------------------------------------------------------------------------------- FORMAT(UPPERCASE(CompanyInfo.Name),27) + // 15 27 Name COPYSTR(Text1105400035 + PADSTR('',7,' '),1,7) + // Cust.No / KD.NR. ...Replacement code
...
// Record C (DataExchange), 1. Constant Part, 2. Section // // field length contents // ------------------------------------------------------------------------------------------------------------------------------- FORMAT(UPPERCASE(CompName),27) + // 15 27 Name COPYSTR(Text1105400035 + PADSTR('',7,' '),1,7) + // Cust.No / KD.NR. ... -
Add the following local variables in the CheckFormat procedure:
-
Name:AUmlaut
-
DataType: Text
-
Length: 1
-
-
Name:OUmlaut
-
DataType: Text
-
Length: 1
-
-
Name:UUmlaut
-
DataType: Text
-
Length: 1
-
-
Name: EsZet
-
DataType: Text
-
Length: 1
-
-
-
Change the following code in the CheckFormat procedure:
Existing code...
WHILE STRPOS(FieldContent,'ß') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'ß')-1) + EsZet + COPYSTR(FieldContent,STRPOS(FieldContent,'ß')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ä') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ä')-1) + AUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ä')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ö') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ö')-1) + OUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ö')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ü') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ü')-1) + UUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ü')+1,MAXSTRLEN(FieldContent)); CheckRec := DELCHR(FieldContent,'=',Text1105400043); IF CheckRec <>'' THEN BEGIN CheckRec := CONVERTSTR(FieldContent,Text1105400044, ' '); String := STRLEN(DELCHR(CheckRec)); FieldContent := CONVERTSTR(FieldContent,DELCHR(CheckRec),PADSTR('',String,' ')); END; EXIT (FieldContent); ...Replacement code
...
AUmlaut := '['; OUmlaut := '\'; UUmlaut := ']'; EsZet := '~'; WHILE STRPOS(FieldContent,'ß') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'ß')-1) + EsZet + COPYSTR(FieldContent,STRPOS(FieldContent,'ß')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ä') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ä')-1) + AUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ä')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ö') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ö')-1) + OUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ö')+1,MAXSTRLEN(FieldContent)); WHILE STRPOS(FieldContent,'Ü') > 0 DO FieldContent := COPYSTR(FieldContent,1,STRPOS(FieldContent,'Ü')-1) + UUmlaut + COPYSTR(FieldContent,STRPOS(FieldContent,'Ü')+1,MAXSTRLEN(FieldContent)); CheckRec := DELCHR(FieldContent,'=',Text1105400043); IF CheckRec <>'' THEN BEGIN CheckRec := CONVERTSTR(FieldContent,Text1105400400, ' '); String := STRLEN(DELCHR(CheckRec)); FieldContent := CONVERTSTR(FieldContent,DELCHR(CheckRec),PADSTR('',String,' ')); END; EXIT (FieldContent); ... -
Change the length of the "Drive" parameter in the CheckPaymfile procedure:
-
Existing value of length: 150
-
Replacement value of length: 260
-
-
Change the length of the "ErrorMessage" parameter in the CheckBeforePaym procedure:
-
Existing value of length: 150
-
Replacement value of length: 1024
-
-
Change the following code in the WritePaymBankInfoLine procedure:
Existing code...
"Bank Branch No." := CustBankAcc."Bank Branch No."; "Bank Account No." := CustBankAcc."Bank Account No."; "Bank Name 2" := CustBankAcc."Name 2"; "Bank Address" := CustBankAcc.Address; ...Replacement code
...
"Bank Branch No." := CustBankAcc."Bank Branch No."; "Bank Account No." := CustBankAcc."Bank Account No."; "SWIFT Code" := CustBankAcc."SWIFT Code"; IBAN := CustBankAcc.IBAN; "Bank Name 2" := CustBankAcc."Name 2"; "Bank Address" := CustBankAcc.Address; ...
Prerequisites
You must have one of the following products installed to apply this hotfix:
-
German version of Microsoft Dynamics NAV 2009 Service Pack 1
-
German version of Microsoft Dynamics NAV 5.0 Service Pack 1
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.