FI Document & MM Invoice
EKBE- get Invoice document,
BSEG & BKPF- FI document details
BSAK & BSIK- Payment details
Note 1 :
Use table BKPF there input document type “RE” and then use field AWKEY i.e. Reference Key, it contains MIRO Document No with Fiscal Year.
That is if your LIV document is say 5605100011 and fiscal year is 2011 AWKEY is 56051000112011
You will get the Accounting document number (BKPF -BELNR and year BKPF- GJAHR) for your LIV document
Note – Cancel Document:
tcode cancel paid : that stored in BKPF-TCODE
MR8M – Cancel Invoice Document
FB08 – Reverse Financial Document
FBRA – Reset Cleared Items
if the tcode above exist in the BKPF-TCODE, that document canceled.