En este artículo se aplica a Microsoft Dynamics NAV para todos los países y todas las configuraciones regionales.
Síntomas
Al ejecutar la función Traer líneas de documento registrado al revés para un pedido en la página de Pedido de devolución de ventas en Microsoft Dynamics NAV 2009, recibirá el siguiente mensaje de error:
Línea de factura de ventas: No hay ninguna línea de factura de ventas dentro del filtro.
Este problema se produce en los siguientes productos:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 Service Pack 1 (SP1)
Solución
Información de la revisión
Ahora hay una revisión compatible de Microsoft. Sin embargo, sólo se diseñó para corregir el problema que se describe en este artículo. Aplíquela sólo a sistemas que experimenten este problema específico. Esta revisión puede ser sometida a comprobaciones adicionales. Por lo tanto, si no se ve muy afectado por este problema, recomendamos que espere al próximo service pack de Microsoft Dynamics NAV 2009 o la próxima versión de Microsoft Dynamics NAV que contenga esta revisión.
Nota: En casos especiales, los costos derivados normalmente de las llamadas pueden cancelarse si un profesional de soporte técnico de Microsoft Dynamics y productos relacionados de soporte determina que una actualización específica resolverá el problema. Los costos habituales de soporte se aplicarán a las preguntas de soporte técnico adicionales y problemas que no guarden relación con la actualización en cuestión.Información sobre la instalación
Microsoft proporciona ejemplos de programación únicamente con fines ilustrativos, sin ninguna garantía expresa o implícita. Esto incluye, pero no se limita, a las garantías implícitas de comerciabilidad o idoneidad para un propósito particular. Este artículo asume que está familiarizado con el lenguaje de programación que se muestra y con las herramientas que se utilizan para crear y depurar procedimientos. Los ingenieros de soporte técnico de Microsoft pueden explicarle la funcionalidad de un determinado procedimiento. Sin embargo, no modificarán estos ejemplos para ofrecer mayor funcionalidad ni crearán procedimientos que cumplan sus requisitos específicos.
Nota: Antes de instalar este hotfix, compruebe que todos los usuarios del cliente de Microsoft Dynamics NAV han salido del sistema. Esto incluye los servicios de Microsoft Dynamics NAV Application Server (NAS). Debe ser el único usuario del cliente conectado cuando implemente este hotfix. Para implementar esta revisión, debe tener una licencia de desarrollador. Recomendamos que la cuenta de usuario en la ventana Conexiones Windows o en la ventana Conexiones base de datos se asigne el identificador de rol "SUPER". Si la cuenta de usuario no se puede asignar el identificador de rol "SUPER", debe comprobar que la cuenta de usuario tiene los permisos siguientes:-
El permiso de modificación para el objeto que se va a cambiar.
-
El permiso Execute para el objeto System Object ID 5210 y el System Object ID 9015 .
objeto.
Nota: No es necesario tener derechos para los almacenes de datos a menos que deba realizar reparaciones de datos.
Cambios de código
Nota: Siempre pruebe correcciones de código en un entorno controlado antes de aplicar las revisiones a los equipos de producción.
Para resolver este problema, siga estos pasos:-
Cambie el código en la función IsFirstDocLine en la tabla Histórico cab. Formulario (5806) de las líneas de recibo como sigue:
Código existente...FILTERGROUP(2);
PurchRcptLine.COPYFILTERS(Rec); FILTERGROUP(0); PurchRcptLine.SETRANGE("Document No.","Document No."); // Delete the following line. PurchRcptLine.FIND('-'); // End of the deleted line. TempPurchRcptLine := PurchRcptLine; TempPurchRcptLine.INSERT; END; IF "Line No." = TempPurchRcptLine."Line No." THEN ...Código de sustitución
...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 added lines. TempPurchRcptLine := PurchRcptLine; TempPurchRcptLine.INSERT; END; IF "Line No." = TempPurchRcptLine."Line No." THEN ... -
Cambie el código en la función IsFirstDocLine en el formulario del subformulario del RtrnRcptLn de Pst.Doc de obtener (5853) como sigue:
Código existente...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; // End of the deleted line. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; ...Código de sustitución
...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 added lines. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; ... -
Cambie el código en la función IsFirstDocLine en el formulario del Sbfrm del S.Cr.MemoLn de Post.Doc de obtener (5854) como sigue:
Código existente...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('-'); // End of the deleted line. TempSalesCrMemoLine := SalesCrMemoLine; TempSalesCrMemoLine.INSERT; END; ...Código de sustitución
...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 added lines. TempSalesCrMemoLine := SalesCrMemoLine; TempSalesCrMemoLine.INSERT; END; ... -
Cambie el código en la función IsFirstDocLine en el formulario del subformulario del RtrnShptLn de Pst.Doc de obtener (5858) como sigue:
Código existente...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; // End of the deleted line. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; ...Código de sustitución
...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 added lines. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; ... -
Cambie el código en la función IsFirstDocLine en el formulario del Sbfrm del P.Cr.MemoLn de Post.Doc de obtener (5859) como sigue:
Código existente...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; // End of the deleted line. TempPurchCrMemoLine := PurchCrMemoLine; TempPurchCrMemoLine.INSERT; END; ...Código de sustitución
...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 added lines. TempPurchCrMemoLine := PurchCrMemoLine; TempPurchCrMemoLine.INSERT; END; ... -
Cambie el código en la función IsFirstDocLine en obtener servicio envío líneas forma (5994) como sigue:
Código existente...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('-'); // End of the deleted line. TempServiceShptLine := ServiceShptLine; TempServiceShptLine.INSERT; END; IF "Line No." = TempServiceShptLine."Line No." THEN ...Código de sustitución
...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 added lines. TempServiceShptLine := ServiceShptLine; TempServiceShptLine.INSERT; END; IF "Line No." = TempServiceShptLine."Line No." THEN ... -
Cambie el código en la función IsFirstDocLine en el formulario subformulario de líneas de servicio (6036) como sigue:
Código existente...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('-'); // End of the deleted line. TempServLine := ServLine; TempServLine.INSERT; END; IF "Line No." = TempServLine."Line No." THEN ...Código de sustitución
...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 added lines. TempServLine := ServLine; TempServLine.INSERT; END; IF "Line No." = TempServLine."Line No." THEN ... -
Cambie el código en la función IsFirstDocLine en el formulario subformulario de líneas de envío servicio (6037) como sigue:
Código existente...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('-'); // End of the deleted line. TempServShptLine := ServShptLine; TempServShptLine.INSERT; END; IF "Line No." = TempServShptLine."Line No." THEN ...Código de sustitución
...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 added lines. TempServShptLine := ServShptLine; TempServShptLine.INSERT; END; IF "Line No." = TempServShptLine."Line No." THEN ... -
Cambie el código en la función IsFirstDocLine en el formulario subformulario de líneas de factura de servicio (6038) como sigue:
Código existente...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('-'); // End of the deleted line. TempServInvLine := ServInvLine; TempServInvLine.INSERT; END; EXIT("Line No." = TempServInvLine."Line No."); ...Código de sustitución
...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 added lines. TempServInvLine := ServInvLine; TempServInvLine.INSERT; END; EXIT("Line No." = TempServInvLine."Line No."); ... -
Cambie el código en la función IsFirstDocLine en el formulario del subformulario de líneas de servicio crédito Memo (6039) como sigue:
Código existente...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('-'); // End of the deleted line. TempServCrMemoLine := ServCrMemoLine; TempServCrMemoLine.INSERT; END; EXIT("Line No." = TempServCrMemoLine."Line No."); ...Código de sustitución
...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 added lines. TempServCrMemoLine := ServCrMemoLine; TempServCrMemoLine.INSERT; END; EXIT("Line No." = TempServCrMemoLine."Line No."); ... -
Cambie el código en la función IsFirstDocLine en obtener devolver recibo formulario líneas (6638) como sigue:
Código existente...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('-'); // End of the deleted line. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; IF "Line No." = TempReturnRcptLine."Line No." THEN ...Código de sustitución
...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 added lines. TempReturnRcptLine := ReturnRcptLine; TempReturnRcptLine.INSERT; END; IF "Line No." = TempReturnRcptLine."Line No." THEN ... -
Cambie el código en la función IsFirstDocLine en el haz devolver envío formulario líneas (6648) como sigue:
Código existente...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('-'); // End of the deleted line. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; IF "Line No." = TempReturnShptLine."Line No." THEN ...Código de sustitución
...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 added lines. TempReturnShptLine := ReturnShptLine; TempReturnShptLine.INSERT; END; IF "Line No." = TempReturnShptLine."Line No." THEN ...
Requisitos previos
Debe tener uno de los siguientes productos instalados para aplicar esta revisión:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 SP1
Información de eliminación
No se puede quitar este hotfix.
Estado
Microsoft ha confirmado que se trata de un problema de los productos de Microsoft que se enumeran en la sección "Aplicable a".
Nota: Es un artículo "Publicación rápida" creado directamente desde dentro de la organización de soporte técnico de Microsoft. La información contenida en este documento se proporciona como está en respuesta a nuevos problemas. Como consecuencia de la velocidad en la puesta a disposición, los materiales pueden incluir errores tipográficos y podrán revisarse en cualquier momento sin previo aviso. Para obtener información adicional, consulte Condiciones de uso.