Skip to Content
author's profile photo Former Member
Former Member

BAPI for automatic clearing (similar to F.13)

Hi ABAP Gurus,

I need to create a new program that should be able to clear by comparing the ASSIGNMENT filed of the payment document (DZ) against the REFERENCE field of the installment invoice (II).

With this, do you know a BAPI that I can use for this? I assume this BAPI will be similar as to how F.13 works.

Thanks for your inputs.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2010 at 02:21 AM

    You may have to write your own... the F.13 / SAPF124 process will follow the clearing rules defined in SPRO under in "Prepare Automatic Clearing" which allows grouping by up to 5 separate grouping fields, but not cross-field matching .. so ZUONR vs XBLNR isn't a typically supported combination.

    My general approach when asked to do similar processing has been to write my own function module (or class method) that will accept an array document line items to clear and feed these into a BDC / Call Transaction for FB05... and then you have to write a program to read in the open items (BSID for customer items), identify the matched items, and feed these into the FM / method to do the SAP clearing work (the reason for the FM / method is re-usability / modularity... it always seems that once you've built this once, the client finds another process that needs similar clearing logic).

    Any chance you could get clearing reference key value recorded into the Assignment field on both the payment document and installment invoice instead?.. then SAPF124 could be scheduled to do the clearing in the background once a day / hour.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.