Anda di halaman 1dari 4

SAP ECC 6.

Partial Payment Remarks

1.

Before payment 4 invoices created for settlements:

Full settlement: 1900000037, MYR 30 1900000038, MYR 110

Partial settlement: 1900000036, MYR 600 1900000039, MYR 400

2.

The followings are the table view:

Last printed 2/10/2011 15:59:00 a2/p2

96515580.doc

Page 1 of 4

SAP ECC 6.0

Partial Payment Remarks

3.

After the payment of stated in step 1, the following is the vendor listing:

Clearing document is 1500000009

Last printed 2/10/2011 15:59:00 a2/p2

96515580.doc

Page 2 of 4

SAP ECC 6.0

Partial Payment Remarks

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:

Determine whether the document entered by user is clearing document or not:

Select BSAK-BELNR=BSAK=AUGBL, if return true, then it is a clearing document.

Select BSAK-XBLNR BSAK-SGTXT BSAK-BLDAT BSAK-WAERS BSAK-WRBTR

WHERE BSAK-AUGBL=<Document entered>, and BSAK-BELNR=BSAK=AUGBL. Clearing date

RETRUN 2 lines

Last printed 2/10/2011 15:59:00 a2/p2

96515580.doc

Page 3 of 4

SAP ECC 6.0

Partial Payment Remarks

5.

for open items: BSIK (Open Items), logic

SELECT BSIK-WAERS BSIK-WRBTR WHERE BSIK-BELNR=<Document entered> AND BSIK-REBZG <> ""

For invoice reference and SGTXT, get line where the

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 .

Last printed 2/10/2011 15:59:00 a2/p2

96515580.doc

Page 4 of 4

Anda mungkin juga menyukai