1.
2.
96515580.doc
Page 1 of 4
3.
After the payment of stated in step 1, the following is the vendor listing:
96515580.doc
Page 2 of 4
4.
In order to get all of the payment done by the clearing document, you need to loop through 2 table, which are: BSAK (Cleared items) BSIK (Open Items)
BSAK, logic:
RETRUN 2 lines
96515580.doc
Page 3 of 4
5.
SELECT BSIK-WAERS BSIK-WRBTR WHERE BSIK-BELNR=<Document entered> AND BSIK-REBZG <> ""
BSIK-BELNR=(SELECT BSIK-REBZG WHERE BSIK-BELNR=<Document entered>) AND BSIK-GJAHR=(SELECT BSIK-REBZJ WHERE BSIK-BELNR=<Document entered>) AND BSIK-BUZEI=(SELECT BSIK-REBZZ WHERE BSIK-BELNR=<Document entered>)
RETRUN 2 lines
End .
96515580.doc
Page 4 of 4