on 09-11-2011 3:19 AM
tengo un reporte en crystal y lo he filtrado por cliente y fecha ...para que me traiga todas las facturas de ese periodo ...pero cuando lo ejecuto me sale de muchas vecs la misma factura ...es como si se duplicara ...la verda no se que sera el error
no se si al guien me pueda ayudar ....gracias
o alguien sabe de video tutoriales de crystal ......
Edited by: trons3467 on Sep 10, 2011 9:21 PM
gracias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenas Noches si la consulta te ejecuta de manera correcta, te recomendaria que en crystal report no realices el reporte utilizando el modelo entidad relacion utilizalo con la opcion de agregar comando eso si te recomiendo que elimines los parametros que tienes en el sql y luego los crees en Crystal Report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Me parece q te sale repetida por los joins que hacen referencia al mismo documento en 1 o mas tablas, prueba metiendo un distinct al docnum para ver si te trae solo uno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oye teresa que pena contigo lo que pasa es que yo soy nuevo en esto y no te entiendo muy bien la pregunta ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SELECT T0.CardCode, T0.CardName,T0.CreditLine,T0.CreateDate, T1.DocNum, T1.DocDate, T1.DocDueDate, T1.DocTotal,T2.PymntGroup,T1.PaidToDate,T1.PaidSum, T3.DocNum, T3.TaxDate,T3.DocDueDate, Datediff(day,T1.DocDueDate,T3.DocDueDate) as D_Mora FROM OCRD T0 INNER JOIN OINV T1 ON T0.CardCode = T1.CardCode INNER JOIN OCTG T2 ON T0.GroupNum = T2.GroupNum LEFT JOIN ORCT T3 ON T1.ReceiptNum = T3.DocEntry WHERE T0.CardCode =[%0] AND T1.DocDate Between [%1] AND [%2] ORDER BY T1.DocNum, T1.DocDate
Este es el query que esta en SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pues este query ya esta en sap
y se ejecuta bien .....
pero yo creo que es algo como en las relaciones de las tablas en crystal creo ...pero lo he intentado muchas veces y no me sale nada
o tocaria probar la consulta directamente en SQL SERVER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pues este query ya esta en sap
y se ejecuta bien .....
pero yo creo que es algo como en las relaciones de las tablas en crystal creo ...pero lo he intentado muchas veces y no me sale nada
o tocaria probar la consulta directamente en SQL SERVER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola,
¿Cuando ejecutas la consulta en sql fuera del crystal te devuelve el mismo resultado con muchas líneas o te devuelve correcto el resultado?
Podría tratarse de algún INNER JOIN que tengas que sustituir por LEFT JOIN o por RIGTH JOIN
Saludos,
Tere
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.