0% found this document useful (0 votes)
69 views

AP Partial Payment Logic - Additional Logic

The document discusses partial payments in SAP ECC 6.0. It describes 4 invoices created for a vendor, with one invoice receiving a full settlement and the others receiving partial settlements. It then explains the logic and processes for how partial payments are handled, including selecting open items and invoice lines, and subtracting partial payment amounts from the total owed. A second example is provided of another partial payment with one invoice receiving a full settlement and another receiving an additional partial payment.

Uploaded by

Siber CK
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views

AP Partial Payment Logic - Additional Logic

The document discusses partial payments in SAP ECC 6.0. It describes 4 invoices created for a vendor, with one invoice receiving a full settlement and the others receiving partial settlements. It then explains the logic and processes for how partial payments are handled, including selecting open items and invoice lines, and subtracting partial payment amounts from the total owed. A second example is provided of another partial payment with one invoice receiving a full settlement and another receiving an additional partial payment.

Uploaded by

Siber CK
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

SAP ECC 6.

Partial Payment

Remarks

1.

2.

Before payment

4 invoices created for settlements:


Vendor: 3000062

Full settlement:
1900000715, MYR 30

Partial settlement:
1900000714, MYR 600, then 40
1900000716, MYR 10, then full settlement

Final settlement:
1900000717, MYR 500

3.

Last printed 2/10/2011 3:59:00 PM

The followings are the table view:

263262700.doc

Page 1 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

4.
Payment document: 2000000082

Full settlement: MYR 30


Partial payment:
MYR: 600
MYR: 10

Last printed 2/10/2011 3:59:00 PM

263262700.doc

Page 2 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

5.

BSAK, logic:

Payment document: 2000000082


KR document: 30 (full settlement)
ZP document: 600 (partial payment)
ZP document: 10 (partial payment)
TOTAL: Net amount: 640

BSAK > [First loop]

SELECT * WHERE BSAK-AUGBL = (SELECT


BSAK-AUGBL=<Clearing document> WHERE
BSAK-AUGBL<>BSAK-BELNR)

RETURN > 1 line


Get the ALL (invoice and ZP) line
If BSAK-SHKZG=S, then (BSAK-WRBTR)
If BSAK-SHKZG=H, take BSAK-WRBTR directtly

BSAK > [Second loop] (same with BSIK)

SELECT * WHERE BSIK-BELNR=<Clearing


document> WHERE BSIK-REBZG<>'' AND
BSIK-REBZJ<>'' AND BSIK-REBZZ<>''

Get the ZP line

Last printed 2/10/2011 3:59:00 PM

263262700.doc

If BSIK-SHKZG=H, then (BSIK-WRBTR)


Page 3 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

6.

for open items:

BSIK (Open Items), logic

Payment document: 2000000082

KR document: 30 (full settlement)


ZP document: 600 (partial payment)
ZP document: 10 (partial payment)
-----------------------Net amount: 640
------------------------

BSIK >

SELECT * WHERE BSIK-BELNR=<Clearing


document> WHERE BSIK-REBZG<>'' AND
BSIK-REBZJ<>'' AND BSIK-REBZZ<>''

RETURN 2 lines

Get the ZP line


If BSIK-SHKZG=H, then (BSIK-WRBTR)
If BSIK-SHKZG=S, take BSIK-WRBTR directtly

Last printed 2/10/2011 3:59:00 PM

263262700.doc

Page 4 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

7.
Second payment

Full settlement:
1900000716:

First payment, MYR 10,

then full settlement MYR 100

Partial settlement:
1900000714:

First payment, MYR 600,

Second partial payment MYR 40

Payment document: 2000000085

Last printed 2/10/2011 3:59:00 PM

263262700.doc

Page 5 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

8.

Payment document: 2000000085


KR document: 110 (full settlement)
ZP document: -10
ZP document:

40 (partial payment)

TOTAL amount: Net amount: 140

BSAK >

SELECT * WHERE BSAK-AUGBL = (SELECT


BSAK-AUGBL=<Clearing document> WHERE
BSAK-AUGBL<>BSAK-BELNR)

RETURN > 2 lines


Get the ALL (invoice and ZP) line
If BSAK-SHKZG=S, then (BSAK-WRBTR)
If BSAK-SHKZG=H, take BSAK-WRBTR directtly

BSAK > [Second loop] (same with BSIK)

SELECT * WHERE BSIK-BELNR=<Clearing


document> WHERE BSIK-REBZG<>'' AND
BSIK-REBZJ<>'' AND BSIK-REBZZ<>''

Get the ZP line


If BSIK-SHKZG=H, then (BSIK-WRBTR)
If BSIK-SHKZG=S, take BSIK-WRBTR

Last printed 2/10/2011 3:59:00 PM

263262700.doc

directtly

Page 6 of 8

SAP ECC 6.0

Partial Payment

Remarks

1.

9.
Payment document: 2000000085

KR document: 110 (full settlement)


ZP document: -10
ZP document:

40 (partial payment)

-----------------------Net amount: 140


------------------------

BSIK >

SELECT * WHERE BSIK-BELNR=<Clearing


document> WHERE BSIK-REBZG<>'' AND
BSIK-REBZJ<>'' AND BSIK-REBZZ<>''

RETURN 1 line

Get the ZP line


If BSIK-SHKZG=H, then (BSIK-WRBTR)
If BSIK-SHKZG=S, take BSIK-WRBTR directtly

Last printed 2/10/2011 3:59:00 PM

263262700.doc

Page 7 of 8

SAP ECC 6.0

Partial Payment
End .

Last printed 2/10/2011 3:59:00 PM

263262700.doc

Page 8 of 8

You might also like