cancel
Showing results for 
Search instead for 
Did you mean: 

SAP B1 Query

0 Kudos
180

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

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

ozer_aydin
Explorer
0 Kudos

you should join the table and can find.

select * from ORCT

inner join RCT2 on ORCT.DocEntry=RCT2.DocNum

where ORCT.DocEntry=4762

0 Kudos

Hello

RCT2 is definitely is corrct for incoming Table

but it seems DocNum in RCT2 has Wrong Number it is not DocNumber...

LoHa
Active Contributor
0 Kudos

Hi Han,

try the RTC2, here you find the DocEntry and the InvType

regards Lothar