狀況
當項目是負值 (「 修正 」),系統會自動假設它是匯出。不過,它是負的匯入 CBS 方針所宣告。因此,應該要有的功能說明 (負數或正數) 的項目符號,符號應該不會影響匯入或匯出的狀態。下列產品中,就會發生這個問題︰
-
荷蘭文版本的 Microsoft 動態航行點 2009 R2
-
荷蘭文版本的 Microsoft 動態航行點 2009 Service Pack 1
解決方案
Hotfix 資訊
已經可以從 Microsoft 取得支援的 hotfix。不過,它只被用來修正本文所述的問題。它只適用於發生此特定問題的系統上。此 hotfix 可能會接受其他測試。因此,如果此問題不會嚴重影響,我們建議您等候下一步的 Microsoft 動態航行點 2009 service pack 或包含此 hotfix 的下一個 Microsoft 動態航行點版本。
注意 在特殊的情況下,通常會支援呼叫可能已被取消如果技術支援專業人員的 Microsoft 動態及相關的產品所產生的費用會決定某特定更新程式可以解決您的問題。收取支援費用會套用,如果有其他支援問題是,不能限定的特定更新程式。安裝資訊
Microsoft 會提供程式設計範例僅供說明,而不做任何明示或默示的保證。這包括,但不限於適售性或適合某特定用途之默示擔保責任。本文假設您已相當熟悉使用的我們所示範的程式設計語言以及建立和偵錯程序所使用的工具。Microsoft 技術支援工程師可以協助解釋特定程序的功能。不過,它們不會修改這些範例以提供附加功能或建構程序來滿足您特定需求。
注意套用此 hotfix 之前,請確認所有的 Microsoft 動態航行點用戶端使用者會登出系統。這包括 Microsoft 動態航行點應用程式伺服器 (NAS) 服務。您應該是唯一的用戶端使用者已登入,當您實作此 hotfix。 若要實作此 hotfix,您必須有開發人員授權。 我們建議您在 Windows 登入] 視窗中的色彩,或資料庫登入] 視窗中的使用者帳戶被指派 「 進階 」 的角色識別碼。如果使用者帳戶不能指派為 「 超級 」 的角色識別碼,您必須確認使用者帳戶具有下列權限︰-
您將會變更物件的 [修改] 權限。
-
執行權限的系統物件 ID 5210物件和系統物件 ID 9015
物件。
注意您沒有擁有資料存放區的權限,除非您需要執行資料修復。
程式碼變更
注意永遠測試程式碼修正在受控制的環境中才能套用到實際執行電腦的修正程式。
若要解決這個問題,請依照下列步驟執行:-
變更 「 建立盟內貿易統計 Decl.磁碟報表 (11413) 中的程式碼如下所示︰
現有的程式碼 1...SpecialUnit@1000002 : Decimal;
RoundedWeight@1000001 : Integer; ItemDirection@1000004 : Integer; BEGIN TESTFIELD("Item No."); TESTFIELD("Tariff No."); ...取代程式碼 1
...SpecialUnit@1000002 : Decimal;
RoundedWeight@1000001 : Integer; ItemDirection@1000004 : Integer; // Add the following line IsCorrection@1000005 : Boolean; // End of the added line. BEGIN TESTFIELD("Item No."); TESTFIELD("Tariff No."); ...現有的程式碼 2
...ZeroShipment := FALSE;
END; END; Write(FORMAT(Date, 0, '<Year4><Month,2>')); Write(FORMAT(ItemDirection)); ...取代程式碼 2
...
ZeroShipment := FALSE; END; END; // Add the following line. IsCorrection := CheckCorrection("Source Entry No.",ItemDirection); // End of the added line. Write(FORMAT(Date, 0, '<Year4><Month,2>')); Write(FORMAT(ItemDirection)); ...現有的程式碼 3
...Write(PADSTR2("Transaction Type", 1, '', '>'));
Write(PADSTR2(DELCHR("Tariff No."), 8, '0', '<')); Write('00'); Write(Sign(RoundedWeight)); // DELETED Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<')); ...取代程式碼 3
...Write(PADSTR2("Transaction Type", 1, '', '>'));
Write(PADSTR2(DELCHR("Tariff No."), 8, '0', '<')); Write('00'); // Add the following line. Write(Sign(RoundedWeight,IsCorrection)); // End of the added line. Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<')); ...現有的程式碼 4
...Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));
// Delete the following line. Write(Sign(SpecialUnit)); // End of the deleted line. Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<')); ...取代程式碼 4
...Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));
// Add the following line. Write(Sign(SpecialUnit,IsCorrection)); // End of the added line. Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<')); ...現有的程式碼 5
...
Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<')); // Delete the following line. Write(Sign(Amount)); // End of the deleted line. Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<')); ...取代程式碼 5
...
Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<')); // Add the following line. Write(Sign(Amount,IsCorrection)); // End of the added line. Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<')); ...現有的程式碼 6
...Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));
// Delete the following line. Write('+'); // End of the deleted line. Write(PADSTR2('0', 10, ' ', '<')); Write(PADSTR2("Document No.", 10, ' ', '<')); ...取代程式碼 6
...Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));
// Add the following lines. IF IsCorrection THEN Write('-') ELSE // ADDED Write('+'); // End of the added lines. Write(PADSTR2('0', 10, ' ', '<')); Write(PADSTR2("Document No.", 10, ' ', '<')); ...現有的程式碼 7
...Write(PADSTR2('0', 10, ' ', '<'));
Write(PADSTR2("Document No.", 10, ' ', '<')); // Delete the following line. Write(PADSTR2('', 4, ' ', '>')); // End of the deleted line. Write('000'); Write(PADSTR2("Intrastat Jnl. Batch"."Currency Identifier", 1, ' ', '>')); Write(PADSTR2('', 6, ' ', '>')); ...取代程式碼 7
...Write(PADSTR2('0', 10, ' ', '<'));
Write(PADSTR2("Document No.", 10, ' ', '<')); // Add the following lines. Write(PADSTR2('', 3, ' ', '>')); IF IsCorrection THEN Write('C') ELSE Write(' '); // End of the added lines. Write('000'); Write(PADSTR2("Intrastat Jnl. Batch"."Currency Identifier", 1, ' ', '>')); Write(PADSTR2('', 6, ' ', '>')); ... -
變更符號中的函式建立盟內貿易統計 Decl.磁碟報告 (11413) 中的程式碼如下所示︰
現有的程式碼 1...ExportFile.SEEK(ExportFile.POS - 1);
END; // Delete the following line. LOCAL PROCEDURE Sign@1000006(Number@1000000 : Decimal) : Text[1]; // End of the deleted line. BEGIN CASE Number < 0 OF TRUE: ...取代程式碼 1
... ExportFile.SEEK(ExportFile.POS - 1);
END; // Add the following line. LOCAL PROCEDURE Sign@1000006(Number@1000000 : Decimal;IsCorrection@1000001 : Boolean) : Text[1]; // End of the added line. BEGIN CASE Number < 0 OF TRUE: ...現有的程式碼 2
...BEGIN
CASE Number < 0 OF TRUE: // Delete the following line. EXIT('-'); // End of the deleted line. FALSE: ...取代程式碼 2
...BEGIN
CASE Number < 0 OF TRUE: // Add the following lines. IF NOT IsCorrection THEN EXIT('-') ELSE EXIT('+'); // End of the added lines. FALSE: ...現有的程式碼 3
...FALSE:
// Delete the following line. EXIT('+'); // End of the deleted line. END; END; ...取代程式碼 3
...FALSE:
// Add the following lines. IF NOT IsCorrection THEN EXIT('+') ELSE EXIT('-'); // End of the added lines. END; END; ... -
變更 「 建立盟內貿易統計 Decl.磁碟報表 (11413) 的CheckCorrection函式中的程式碼如下所示︰
現有的程式碼...CrLf[2] := 10;
END; BEGIN ...取代程式碼
...CrLf[2] := 10;
END; // Add the following lines. PROCEDURE CheckCorrection@1000018(SourceEntryNo@1000000 : Integer;VAR ItemDirection@1000001 : Integer) : Boolean; VAR ItemLedgerEntry@1000002 : Record 32; // End of the added lines. BEGIN ... -
變更CrLf函式,建立盟內貿易統計 Decl.磁碟在報表中 (11413) 中的程式碼如下所示︰
現有的程式碼...BEGIN
// Delete the following lines. { // Note: Intrastat Jnl. Batch dataitem has MaxIteration = 1 } END. } RDLDATA { } } // End of the deleted lines. ...取代程式碼
...BEGIN
// Add the following lines. WITH ItemLedgerEntry DO BEGIN GET(SourceEntryNo); CASE "Document Type" OF "Document Type"::"Purchase Return Shipment": BEGIN ItemDirection := 6; EXIT(TRUE); END; "Document Type"::"Sales Return Receipt": BEGIN ItemDirection := 7; EXIT(TRUE); END; END; END; END; // End of the added lines. ... -
變更 「 建立盟內貿易統計 Decl.磁碟報表 (11413) 的CheckCorrection函式中的程式碼如下所示︰
取代程式碼...// Add the following lines.
BEGIN { // Note: Intrastat Jnl. Batch dataitem has MaxIteration = 1 } END. } RDLDATA { } } // End of the added lines. ...
先決條件
您必須具備套用此 hotfix 之後安裝下列產品的其中一個︰
-
荷蘭文版本的 Microsoft 動態航行點 2009 R2
-
荷蘭文版本的 Microsoft 動態航行點 2009 SP1
移除資訊
您無法移除此 hotfix。
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。
注意這是直接從 Microsoft 支援組織內建立的「快速發行」文件。本文件所包含的現狀資訊是針對新興問題的回應。為縮短使其可用的時程,資料可能會包含印刷錯誤,且可能會隨時進行修改而不另行通知。如其他考量,請參閱 「使用規定」。