Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: How to ADD update date field (from ADOC table) link with opor table?? in crystal report

$
0
0

Hi,

 

You can use OPOR.UpdateDate field to get UpdateDate, or you can get it from ADOC table by link (OPOR.DocEntry = ADOC.DocEntry and OPOR.ObjectType = ADOC.ObjectType).

 

Try below query

 

select a.DocNum, b.ItemCode, b.Dscription, a.DocDate,

  isnull((select MAX(t0.UpdateDate)

  from dbo.ADOC t0 where t0.DocEntry = a.DocEntry and t0.ObjType = a.ObjType),a.UpdateDate) as UpdateDate

 

 

from dbo.OPOR a

inner join dbo.POR1 b on b.DocEntry = a.DocEntry

 

Thanks&Regards,

Alvin


Viewing all articles
Browse latest Browse all 8581

Trending Articles