on 05-27-2013 8:19 PM
Ingenieros muy buenas tardes
Necesito hacer en cristal reports el informe de ventas-clientes Entrega
Tengo la siguiente consulta
pero la tabla ODLN DLN1 SE Relacionan por el DocEntry
y la tabla ocrd tambien tiene un DocEntry pero este DocEntry no hace relacion a los DocEntry de las tablas
anteriores
Alguien me puede hacer el favor de orientarme
soy muy nuevo en sap llevo 01 mes Conociendo el mundo Sap
SELECT distinct
T0.[DocNum],
T2.[LicTradNum],
T0.[CardName],
T0.[Address],
T0.[Address2],
T2.[Phone1],
T2.[CntctPrsn],
T0.[CreateDate],
T3.[SlpName],
T1.[ItemCode],
T1.[SubCatNum],
T1.[Dscription],
T1.[Quantity]
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode
De antemano muchas gracias por su atencion
Cordial mente
Ing Beimar trujillo
Beimar, todo bien?
Utilice el generador de consultas de SAP Business One: incluye tablas y campos y que va a hacer la unión entre las tablas automáticamente. Puede ser muy útil sobre todo al principio.
Saludos,
Marcelo Silva Santos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apreciados compañeros
muchas gracias por su colaboración no había vuelvo entrar al foro
porque no me recordaba mi password
Efectivamente en todo este tiempo de experiencia con SAP B1 he logrado aprender muchas cosas
ya este tema lo tengo mas que solucionado
Nuevamente muchas gracias por su atención
Cordialmente
Ing Beimar Trujillo
Buenas tardes Beimar
El campo DocEntry en la tabla OCRD es solo un numerador para cada nuevo registro en la base de datos.
El campo llave con el que puedes unir a las demás tablas es el CardCode.
Saludos
Felipe L.
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 | |
6 | |
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.