on 06-27-2014 12:45 AM
hola amigos expertos de SAP B1, mi consulta es la siguiente;
necesito realizar una consulta donde me muestre un listado de todos los proveedores que se le debe pagar una factura incluyendo fecha y monto. Estoy realizando unas consultas pero no me muestra lo que necesito y me confundo con los nombres de las tablas. Les agradezco la ayuda.
Modificando el Query que presentó David Peters, podría ser así,
SELECT
T0.CardCode 'Codigo',
T0.CardName 'Nombre',
T0.DocDate 'Fecha Documento',
T0.DocDueDate 'Fecha Venvimiento',
T0.DocTotal 'Total Documento',
T0.PaidSum 'Total Pagado'
FROM OPCH T0
WHERE T0.DocStatus = 'O'
union all
SELECT
T0.CardCode 'Codigo',
NULL,
NULL,
NULL,
SUM(T0.DocTotal),
SUM(T0.PaidSum)
FROM OPCH T0
WHERE T0.DocStatus = 'O'
GROUP BY t0.CardCode
order by [Codigo], [Fecha Documento] desc
Ahora lo que dice Agustín es correcto en caso que no lo quieras para realizar un Crystal o algo por el estilo.
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola
el informe estándar de Partidas abiertas en Compras ¿no te sirve?
Un saludo
Agustín Marcos Cividanes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Buenas Tardes, Luis
Espero te funcione esta consulta
SELECT
T0.CardCode 'Codigo',
T0.CardName 'Nombre',
T0.DocDate 'Fecha Documento',
T0.DocDueDate 'Fecha Venvimiento',
T0.DocTotal 'Total Documento',
T0.PaidSum 'Total Pagado'
FROM OPCH T0
WHERE T0.DocStatus = 'O'
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
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.