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

Re: relationship in table BKPF and BSAK

$
0
0

In the first query you are joining

BKPF~BLDAT = BSAK~AUGDT which are the Document Date in BKPF and Clearing Date in BSAK not the correct relation

 

BKPF~BELNR = BSAK~AUGBL which are the Document Number in BKPF and Clearing Document in BSAK (should be BSAK BELNR - Document Number)

 

BKPF~DBBLG = BSAK~BELNR which are the BKPF Recurring Entry Document Number and BSAK - Document Number.should be BELNR from BKPF

 

Hence the correct join will be

              ON  BKPF~BUKRS = BSAK~BUKRS

                     AND BKPF~GJAHR = BSAK~GJAHR

                     AND BKPF~BELNR = BSAK~BELNR

 

Thanks

Divya


Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>