Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Clearing in REFEBKA00 without match of XBLNR with Algorithm 021

Former Member
0 Kudos
356

Hello together.

I have set up the electronic bank statement process. I have set up the algorith 021 - sarch for reference XBLNR.

Unfortunately the program also cleares items that match ONLY by amount.

Instead of "Just" posting on account, if no match, the system clears every open item with the same amount.

If I select the explicitely the reference search, why would I want the fall back solution of selecting just the amount:

IF sy-subrc NE 0.
* no advice found
* IF TFILL_XFEBCL = 0. n1388198
IF tfill_xfebcl = 0 "n1388198
AND NOT ( febep-intag = '001' AND sfnam = 'BELNR' ) "n1388198
AND NOT ( febko-input_format = 'PS') "WEC_PSP
.
* no clearing information available -> FB05 with amount
xfebcl-kukey = febep-kukey.
xfebcl-esnum = febep-esnum.
xfebcl-csnum = 1.
xfebcl-koart = agkoa.
xfebcl-agkon = agkon.
xfebcl-selfd = 'WRBTR'.
xfebcl-selvon = febep-kwbtr.
APPEND xfebcl.
ENDIF.
ELSE.

Due to a lot invoice with same amounts, it is not wanted the random invoices are cleared just by matching amount.

Posting typ in the Posting rule is "8" Clear cred.subl.acct and on on account posting key 15 (incoming payment)

1 REPLY 1

Former Member