cancel
Showing results for 
Search instead for 
Did you mean: 

Relation between BKPF and EKBE table for reversing document?

Former Member
0 Kudos

Is there any relation between BKPF and EKBE table for reversing document when STBLG is blank in BKPF.

AND

How to differentiate Old Accounting document / Reverse document / New document when in BKPF-STBLG is blank for all three document and BKPF-XBLNR are same for all.

Accepted Solutions (0)

Answers (1)

Answers (1)

santosh_kavitkar
Contributor
0 Kudos

Hi Varun,

Table Document no (BKPF-BELNR) is link between Material document no (EKBE-BELNR). If you are looking for validating Material reversal document then please use following logic for your requirement.

Material Document (MBLNR) & Material Document Year (MJAHR). Pass material document (MBLNR) to MSEG-SMBLN to read MSEG-MBLNR with MSEG-MJAHR to MSEG-SJAHR, if record found delete both the documents i.e. MSEG-SMBLN & MSEG-MBLNR (donu2019t consider these documents in the logic) and display Material Document No. (MSEG-MBLNR)

Regards,

Santosh