cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Query

0 Kudos

HI Experts!

i want to get query for Document No(Yellow one) but i don't know which table is including Doc No

anyone know where is it?

View Entire Topic
jitin_chawla
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Check below for start:

Select T2.DocNum as 'AR Invoice Number', T0.DocNum as 'Incoming Payment Number'
from ORCT T0 INNER JOIN RCT2 T1 on T1.DocNum = T0.DocNum
INNER JOIN OINV T2 on T2.Transid = T1.Doctransid and T2.DocEntry = T1.BaseAbs
ORDER BY T0.DocNum

Kr,

Jitin