on 05-06-2020 11:44 AM
Hi
Is OJDT & TDS Tables can be related with any common fields
Thanks
Hi!
You may relate the tables with the fields TransType and TransId in the OVPM Table.
select * from OJDT t0
inner join OVPM t1 on T0."TransType" = '46'
and t1."TransId" = t0."TransId"
where T1."DocType" = 'D' and T1."Canceled"='N'
/*If you want to include also the canceled ones, use this:
and t1."DocNum" = t0."BaseRef
instead of:
and t1."TransId" = t0."TransId"
and delete the "Canceled" condition */
Hope it helps!
Regards
Augusto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
8 | |
7 | |
4 | |
4 | |
3 | |
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.