本文適用於 Microsoft 動態航行點的所有國家/地區和所有的語言地區設定。
狀況
假設您在 [Microsoft 動態航行點 2009年中的 [銷售傳回順序] 頁面中執行取得張貼文件行反向函式。當您設定的篩選器項目時,您會收到下列錯誤訊息︰
銷售發票行︰ 沒有銷售發票列在篩選條件內部。篩選器的文件號︰X、 否: @Y
注意X預留位置會取代文件編號,從列其中游標是,而Y預留位置會取代您輸入篩選器中的項目號碼。下列產品中,就會發生這個問題︰
-
Microsoft 動態航行點 2009 R2
-
Microsoft 動態航行點 2009 Service Pack 1
解決方案
Hotfix 資訊
已經可以從 Microsoft 取得支援的 hotfix。不過,它只被用來修正本文所述的問題。它只適用於發生此特定問題的系統上。此 hotfix 可能會接受其他測試。因此,如果此問題不會嚴重影響,我們建議您等候下一步的 Microsoft 動態航行點 2009 service pack 或包含此 hotfix 的下一個 Microsoft 動態航行點版本。注意 在特殊的情況下,通常會支援呼叫可能已被取消如果技術支援專業人員的 Microsoft 動態及相關的產品所產生的費用會決定某特定更新程式可以解決您的問題。收取支援費用會套用,如果有其他支援問題是,不能限定的特定更新程式。
安裝資訊
Microsoft 會提供程式設計範例僅供說明,而不做任何明示或默示的保證。這包括,但不限於適售性或適合某特定用途之默示擔保責任。本文假設您已相當熟悉使用的我們所示範的程式設計語言以及建立和偵錯程序所使用的工具。Microsoft 技術支援工程師可以協助解釋特定程序的功能。不過,它們不會修改這些範例以提供附加功能或建構程序來滿足您特定需求。注意套用此 hotfix 之前,請確認所有的 Microsoft Navision 用戶端使用者會登出系統。這包括 Microsoft Navision 應用程式服務 (NAS) 用戶端的使用者。您應該是唯一的用戶端使用者已登入,當您實作此 hotfix。若要實作此 hotfix,您必須有開發人員授權。我們建議您在 Windows 登入] 視窗中的色彩,或資料庫登入] 視窗中的使用者帳戶被指派 「 進階 」 的角色識別碼。如果使用者帳戶不能指派為 「 超級 」 的角色識別碼,您必須確認使用者帳戶具有下列權限︰
-
您將會變更物件的 [修改] 權限。
-
執行權限的系統物件 ID 5210物件和系統物件 ID 9015物件。
注意您沒有擁有資料存放區的權限,除非您需要執行資料修復。
程式碼變更
注意永遠測試程式碼修正在受控制的環境中才能套用到實際執行電腦的修正程式。若要解決這個問題,請依照下列步驟執行:
-
變更IsFirstDocLine中的函式取得 Post.Doc-S.ShptLn Sbfrm 頁面 (5851) 中的程式碼如下所示︰現有的程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; SalesShptLine2.COPYFILTERS(Rec); SalesShptLine2.SETRANGE("Document No.","Document No."); SalesShptLine2.FINDSET; REPEAT ShowRec := IsShowRec(SalesShptLine2); IF ShowRec THEN BEGIN...
取代程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; SalesShptLine2.COPYFILTERS(Rec); SalesShptLine2.SETRANGE("Document No.","Document No."); IF NOT SalesShptLine2.FINDSET THEN EXIT(FALSE); REPEAT ShowRec := IsShowRec(SalesShptLine2); IF ShowRec THEN BEGIN
-
變更IsFirstDocLine中的函式取得 Post.Doc-S.InvLn 子表單的頁面 (5852) 中的程式碼如下所示︰現有的程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; SalesInvLine2.COPYFILTERS(Rec); SalesInvLine2.SETRANGE("Document No.","Document No."); SalesInvLine2.FINDSET; REPEAT ShowRec := IsShowRec(SalesInvLine2); IF ShowRec THEN BEGIN...
取代程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; SalesInvLine2.COPYFILTERS(Rec); SalesInvLine2.SETRANGE("Document No.","Document No."); IF NOT SalesInvLine2.FINDSET THEN EXIT(FALSE); REPEAT ShowRec := IsShowRec(SalesInvLine2); IF ShowRec THEN BEGIN
-
變更IsFirstDocLine中的函式取得 Post.Doc-P.RcptLn Sbfrm 頁面 (5856) 中的程式碼如下所示︰現有的程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; PurchRcptLine2.COPYFILTERS(Rec); PurchRcptLine2.SETRANGE("Document No.","Document No."); PurchRcptLine2.FINDSET; REPEAT ShowRec := IsShowRec(PurchRcptLine2); IF ShowRec THEN BEGIN...
取代程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; PurchRcptLine2.COPYFILTERS(Rec); PurchRcptLine2.SETRANGE("Document No.","Document No."); IF NOT PurchRcptLine2.FINDSET THEN EXIT(FALSE); REPEAT ShowRec := IsShowRec(PurchRcptLine2); IF ShowRec THEN BEGIN
-
變更IsFirstDocLine中的函式取得 Post.Doc-P.InvLn 子表單的頁面 (5857) 中的程式碼如下所示︰現有的程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; PurchInvLine2.COPYFILTERS(Rec); PurchInvLine2.SETRANGE("Document No.","Document No."); PurchInvLine2.FINDSET; REPEAT ShowRec := IsShowRec(PurchInvLine2); IF ShowRec THEN BEGIN...
取代程式碼
... RevUnitCostLCY2 := RevUnitCostLCY; PurchInvLine2.COPYFILTERS(Rec); PurchInvLine2.SETRANGE("Document No.","Document No."); IF NOT PurchInvLine2.FINDSET THEN EXIT(FALSE); REPEAT ShowRec := IsShowRec(PurchInvLine2); IF ShowRec THEN BEGIN
-
變更 Purch 的IsFirstDocLine函式中的程式碼。收到行表單 (5806) 如下所示︰現有的程式碼
... FILTERGROUP(2); PurchRcptLine.COPYFILTERS(Rec); FILTERGROUP(0); PurchRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line. PurchRcptLine.FIND('-'); TempPurchRcptLine := PurchRcptLine; TempPurchRcptLine.INSERT; END; IF "Line No." = TempPurchRcptLine."Line No." THEN...
取代程式碼
... FILTERGROUP(2); PurchRcptLine.COPYFILTERS(Rec); FILTERGROUP(0); PurchRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT PurchRcptLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempPurchRcptLine := PurchRcptLine; TempPurchRcptLine.INSERT; END; IF "Line No." = TempPurchRcptLine."Line No." THEN
-
變更中取得 Pst.Doc RtrnRcptLn 子表單的表單 (5853) 中的IsFirstDocLine函式的程式碼如下所示︰現有的程式碼
... TempReturnRcptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnRcptLine.FINDFIRST THEN BEGIN ReturnRcptLine.COPYFILTERS(Rec); ReturnRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ReturnRcptLine.FINDSET; TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END;...取代程式碼
... TempReturnRcptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnRcptLine.FINDFIRST THEN BEGIN ReturnRcptLine.COPYFILTERS(Rec); ReturnRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ReturnRcptLine.FINDSET THEN EXIT(FALSE);// End of the lines. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; -
變更IsFirstDocLine函式,以取得 Post.Doc S.Cr.MemoLn Sbfrm 形式 (5854) 中的程式碼如下所示︰現有的程式碼
... TempSalesCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempSalesCrMemoLine.FINDFIRST THEN BEGIN SalesCrMemoLine.COPYFILTERS(Rec); SalesCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line. SalesCrMemoLine.FIND('-'); TempSalesCrMemoLine := SalesCrMemoLine; TempSalesCrMemoLine.INSERT; END;...取代程式碼
... TempSalesCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempSalesCrMemoLine.FINDFIRST THEN BEGIN SalesCrMemoLine.COPYFILTERS(Rec); SalesCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT SalesCrMemoLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempSalesCrMemoLine := SalesCrMemoLine; TempSalesCrMemoLine.INSERT; END; -
變更中取得 Pst.Doc RtrnShptLn 子表單的表單 (5858) 中的IsFirstDocLine函式的程式碼如下所示︰現有的程式碼
... TempReturnShptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnShptLine.FINDFIRST THEN BEGIN ReturnShptLine.COPYFILTERS(Rec); ReturnShptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ReturnShptLine.FINDSET; TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END;...取代程式碼
... TempReturnShptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnShptLine.FINDFIRST THEN BEGIN ReturnShptLine.COPYFILTERS(Rec); ReturnShptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ReturnShptLine.FINDSET THEN EXIT(FALSE);// End of the lines. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; -
變更IsFirstDocLine函式,以取得 Post.Doc P.Cr.MemoLn Sbfrm 形式 (5859) 中的程式碼如下所示︰現有的程式碼
... TempPurchCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempPurchCrMemoLine.FINDFIRST THEN BEGIN PurchCrMemoLine.COPYFILTERS(Rec); PurchCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line. PurchCrMemoLine.FINDSET; TempPurchCrMemoLine := PurchCrMemoLine; TempPurchCrMemoLine.INSERT; END;...取代程式碼
... TempPurchCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempPurchCrMemoLine.FINDFIRST THEN BEGIN PurchCrMemoLine.COPYFILTERS(Rec); PurchCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT PurchCrMemoLine.FINDSET THEN EXIT(FALSE);// End of the lines. TempPurchCrMemoLine := PurchCrMemoLine; TempPurchCrMemoLine.INSERT; END; -
變更IsFirstDocLine函式,以取得服務運送線條形式 (5994) 中的程式碼如下所示︰現有的程式碼
... TempServiceShptLine.SETRANGE("Document No.","Document No."); IF NOT TempServiceShptLine.FIND('-') THEN BEGIN ServiceShptLine.COPYFILTERS(Rec); ServiceShptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ServiceShptLine.FIND('-'); TempServiceShptLine := ServiceShptLine; TempServiceShptLine.INSERT; END; IF "Line No." = TempServiceShptLine."Line No." THEN...取代程式碼
... TempServiceShptLine.SETRANGE("Document No.","Document No."); IF NOT TempServiceShptLine.FIND('-') THEN BEGIN ServiceShptLine.COPYFILTERS(Rec); ServiceShptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ServiceShptLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempServiceShptLine := ServiceShptLine; TempServiceShptLine.INSERT; END; IF "Line No." = TempServiceShptLine."Line No." THEN -
變更服務行子表單的表單 (6036) 中的IsFirstDocLine函式中的程式碼如下所示︰現有的程式碼
... IF NOT TempServLine.FIND('-') THEN BEGIN ServLine.COPYFILTERS(Rec); ServLine.SETRANGE("Document Type","Document Type"); ServLine.SETRANGE("Document No.","Document No.");// Delete the following line. ServLine.FIND('-'); TempServLine := ServLine; TempServLine.INSERT; END; IF "Line No." = TempServLine."Line No." THEN IF "Line No." = TempServiceShptLine."Line No." THEN...取代程式碼
... IF NOT TempServLine.FIND('-') THEN BEGIN ServLine.COPYFILTERS(Rec); ServLine.SETRANGE("Document Type","Document Type"); ServLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ServLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempServLine := ServLine; TempServLine.INSERT; END; IF "Line No." = TempServLine."Line No." THEN -
變更服務運送行子表單的表單 (6037) 中的IsFirstDocLine函式中的程式碼如下所示︰現有的程式碼
... TempServShptLine.SETRANGE("Document No.","Document No."); IF NOT TempServShptLine.FIND('-') THEN BEGIN ServShptLine.COPYFILTERS(Rec); ServShptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ServShptLine.FIND('-'); TempServShptLine := ServShptLine; TempServShptLine.INSERT; END; IF "Line No." = TempServShptLine."Line No." THEN...取代程式碼
... TempServShptLine.SETRANGE("Document No.","Document No."); IF NOT TempServShptLine.FIND('-') THEN BEGIN ServShptLine.COPYFILTERS(Rec); ServShptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ServShptLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempServShptLine := ServShptLine; TempServShptLine.INSERT; END; IF "Line No." = TempServShptLine."Line No." THEN -
變更服務發票行子表單的表單 (6038) 中的IsFirstDocLine函式中的程式碼如下所示︰現有的程式碼
... TempServInvLine.SETRANGE("Document No.","Document No."); IF NOT TempServInvLine.FIND('-') THEN BEGIN ServInvLine.COPYFILTERS(Rec); ServInvLine.SETRANGE("Document No.","Document No.");// Delete the following line. ServInvLine.FIND('-'); TempServInvLine := ServInvLine; TempServInvLine.INSERT; END; EXIT("Line No." = TempServInvLine."Line No.");...取代程式碼
... TempServInvLine.SETRANGE("Document No.","Document No."); IF NOT TempServInvLine.FIND('-') THEN BEGIN ServInvLine.COPYFILTERS(Rec); ServInvLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ServInvLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempServInvLine := ServInvLine; TempServInvLine.INSERT; END; EXIT("Line No." = TempServInvLine."Line No."); -
變更服務 Cr.備忘行子表單的表單 (6039) 中的IsFirstDocLine函式中的程式碼如下所示︰現有的程式碼
... TempServCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempServCrMemoLine.FIND('-') THEN BEGIN ServCrMemoLine.COPYFILTERS(Rec); ServCrMemoLine.SETRANGE("Document No.","Document No.");// Delete the following line. ServCrMemoLine.FIND('-'); TempServCrMemoLine := ServCrMemoLine; TempServCrMemoLine.INSERT; END; EXIT("Line No." = TempServCrMemoLine."Line No.");...取代程式碼
... TempServCrMemoLine.SETRANGE("Document No.","Document No."); IF NOT TempServCrMemoLine.FIND('-') THEN BEGIN ServCrMemoLine.COPYFILTERS(Rec); ServCrMemoLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ServCrMemoLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempServCrMemoLine := ServCrMemoLine; TempServCrMemoLine.INSERT; END; EXIT("Line No." = TempServCrMemoLine."Line No."); -
變更IsFirstDocLine函式,以取得傳回的回條線條形式 (6638) 中的程式碼如下所示︰現有的程式碼
... TempReturnRcptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnRcptLine.FIND('-') THEN BEGIN ReturnRcptLine.COPYFILTERS(Rec); ReturnRcptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ReturnRcptLine.FIND('-'); TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; IF "Line No." = TempReturnRcptLine."Line No." THEN...取代程式碼
... TempReturnRcptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnRcptLine.FIND('-') THEN BEGIN ReturnRcptLine.COPYFILTERS(Rec); ReturnRcptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ReturnRcptLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; IF "Line No." = TempReturnRcptLine."Line No." THEN -
變更IsFirstDocLine函式,以取得傳回運送線條形式 (6648) 中的程式碼如下所示︰現有的程式碼
... TempReturnShptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnShptLine.FIND('-') THEN BEGIN ReturnShptLine.COPYFILTERS(Rec); ReturnShptLine.SETRANGE("Document No.","Document No.");// Delete the following line. ReturnShptLine.FIND('-'); TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; IF "Line No." = TempReturnShptLine."Line No." THEN...取代程式碼
... TempReturnShptLine.SETRANGE("Document No.","Document No."); IF NOT TempReturnShptLine.FIND('-') THEN BEGIN ReturnShptLine.COPYFILTERS(Rec); ReturnShptLine.SETRANGE("Document No.","Document No.");// Add the following lines. IF NOT ReturnShptLine.FINDFIRST THEN EXIT(FALSE);// End of the lines. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; IF "Line No." = TempReturnShptLine."Line No." THEN
先決條件
您必須具備套用此 hotfix 之後安裝下列產品的其中一個︰
-
Microsoft 動態航行點 2009 R2
-
Microsoft 動態航行點 2009 Service Pack 1
移除資訊
您無法移除此 hotfix。
狀態
Microsoft 已確認這是<套用>一節所列出的 Microsoft 產品的問題。
注意這是直接從 Microsoft 支援組織內建立的「快速發行」文件。本文件所包含的現狀資訊是針對新興問題的回應。為縮短使其可用的時程,資料可能會包含印刷錯誤,且可能會隨時進行修改而不另行通知。如其他考量,請參閱 「使用規定」。