on 11-25-2010 6:27 PM
Buen día Estimados,
Tengo una alarma que se basa en un query la cual está programada para correr una vez al dia, pero no devuelve la cantidad total de registros (Ej.175, solo me muestra hasta 91). Y considero que el query es muy sencillo, pero no logro interpretar si es una limitante del sistema.
El query es el siguiente:
SELECT
T0.DocDate AS 'Fecha de la Operacion',
T0.DocNum AS 'Correlativo SAP',
T0.CardName AS 'Nombre del SN',
T0.DocTotal AS 'Total del documento',
T1.U_Name AS 'Usuario'
FROM .[ORDR] T0 INNER JOIN .[OUSR] T1 ON T1.UserId = T0.UserSign
INNER JOIN .[OUBR] T2 ON T2.Code = T1.Branch
WHERE
T0.DocStatus = 'O'
AND DATEDIFF(DAY, T0.DocDate, getdate()) >= 10
AND (SERIES=89 or SERIES=90)
ORDER BY T0.DocDate ASC
Gracias de antemano, solo para complementar quiero indicarles que ya borré el Order By, apliqué formato al GetDate() - CONVERT(Varchar(10),GetDate(),101) y siempre tengo la limitante en la cantidad de registros devueltos.
Daniel.
Caso Posteado a SAP Support, y mencionan que es un comportamiento actual del sistema. Workaround in note # 874145
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Esta parte
la parte del u_Name, es correcta? estas haciendo referencia a la tabla de usuarios, pero deberia ser sin el u_ no??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agregando a sus sugerencias,
Ya validé la columna Total del documento en el aspecto si los montos están a cero, pero si recoge registros con montos vacíos. Por lo que cabía la posibilidad de que esos los ignorara pero si hay registros con totales a cero.
Fecha de la Operacion Correlativo SAP Nombre del SN Total del documento Usuario
16/10/2010 601175 SERVICIOS Y EQUIPOS MEDICOS, S.A. DE C.V. 56.5 Luis Garcia
16/10/2010 601176 MUNDO DE LOS FRENOS Y REPUESTOS S A DE C V 56.5 Luis Garcia
16/10/2010 601178 BOREAL S A DE C V 56.5 Luis Garcia
16/10/2010 505966 TEXTILES OPICO, S.A. DE C.V. 399.57 Manuel Aleman
16/10/2010 505968 TELEFONICA MOVILES EL SALVADOR, S.A. DE C.V. 347.62 Manuel Aleman
16/10/2010 505970 COCINA FACIL SA DE CV 316.87 Bessy Hernandez de Quijada
16/10/2010 601179 COMERCIAL AGUIRREURRETA SA DE CV 56.5 Luis Garcia
18/10/2010 601180 SOBRES S A DE C V 56.5 Luis Garcia
18/10/2010 601182 AF COMERCIAL SA DE CV 56.5 Luis Garcia
18/10/2010 601183 CLEAR WATER SYSTEMS S A DE C V 56.5 Luis Garcia
18/10/2010 601184 KENNEY MANUFACTURING EL SALVADOR LTDA 56.5 Luis Garcia
18/10/2010 505978 PAYLESS SHOESOURCE OF EL SALVADOR LTDA DE CV 0 Roxana Tobar
18/10/2010 505979 GOLDTREE S A DE C V 112.01 Roxana Tobar
18/10/2010 505980 GOLDTREE S A DE C V 117.54 Roxana Tobar
18/10/2010 505984 WHIRLPOOL EL SALVADOR S A DE C V 67.8 Roxana Tobar
18/10/2010 601186 REGIOAMERICA TRADING S.A. 56.5 Luis Garcia
18/10/2010 505995 MATERIALES TECNICOS S A DE C V 0 David Rivera
18/10/2010 505998 IGLESIA DE JESUCRISTO DE LOS SANTOS DE LOS ULTIMOS DIAS 542.41 Ivan Rodriguez
18/10/2010 506003 TEXLEE EL SALVADOR, LTDA DE C.V. 0 Manuel Aleman
18/10/2010 506024 C D R S A DE C V 452 David Rivera
18/10/2010 506025 CONSTRUCTORA MECO, SOCIEDAD ANONIMA, SUC EL SALVADOR 82.1 Manuel Garcia
18/10/2010 506026 ARTES GRAFICAS PUBLICITARIAS S A DE CV 0 David Rivera
Agradeceré como siempre su especial apoyo,
Daniel
Daniel,
Veo que tienes un campo de usuario, revisa que en todos los registros que salen (90) no está vacío este campo. A veces sólo muestra aquellos campos no vacíos, ésta sería probablemente tu limitante.
Saludos!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Este total (91 registros) te lo muestra en el Query Manager?? o en el Avisos/Resumen Alarmas
No creo que sea una limitante del sistema
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.