SAP Reports / Programs | Financial Accounting(FI) SAP FI

SAPF124 SAP ABAP Report - Automatic Clearing







SAPF124 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program clears open items from customer, vendor and G/L accounts (in particular, GR/IR clearing accounts) automatically...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter SAPF124 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

F13L - Autom. Clearing Spec. to Ledger Grp
F13E - Automatic Clearing With Currency
F.13 - Automatic Clearing without Currency
J1GPUF124 - Automatic clearing


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SAPF124. "Basic submit
SUBMIT SAPF124 AND RETURN. "Return to original report after report execution complete
SUBMIT SAPF124 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: AUGDT = Clearing Date
Selection Text: BMONAT = Period
Selection Text: BUKRX = Company Code
Selection Text: DOCNR = Document Number
Selection Text: GJAHX = Fiscal Year
Selection Text: KONTD = Customers
Selection Text: KONTK = Vendors
Selection Text: KONTS = G/L Accounts
Selection Text: MIN_BEL = Minimum Number of Line Items
Selection Text: POSTDATE = Posting Date
Selection Text: PZBSISGR = Maximum Number of Groups
Selection Text: SHBKD = Special G/L Indicator-Customer
Selection Text: SHBKK = Special G/L Indicator - Vendor
Selection Text: XAUGDT = Date from Most Recent Document
Selection Text: XAUSBEL = Documents that can be cleared
Selection Text: XAUSLW = Expiring Currencies
Selection Text: XNAUSBEL = Documents that cannot be clrd
Selection Text: SO_ZUONR = D .
Selection Text: P_LG = D .
Selection Text: ZWAERS = Clearing Currency
Selection Text: X_TESTL = Test run
Selection Text: X_SHBLF = Special G/L transactions
Selection Text: X_SHBKN = Special G/L transactions
Selection Text: X_SAKNR = Select G/L accounts
Selection Text: X_LIFNR = Select vendors
Selection Text: X_LGCLR = Ledger Group-specific Clearing
Selection Text: X_KUNNR = Select customers
Selection Text: X_FEHLER = Error Messages
Selection Text: X_AVISD = Grouping by payment advice no.
Selection Text: XTOLEB = Permit individual line items
Selection Text: XTOL = Include tolerances
Selection Text: XSOBWERE = GR/IR account special process.
Selection Text: XSOBEBVK = Clearing curr. from assignment
Selection Text: XNKON = Include suppl. account assgmnt
Title: Automatic Clearing
Text Symbol: 304 = Stop time "
Text Symbol: 303 = Stop date "
Text Symbol: 302 = Start time "





Text Symbol: 301 = Start date "
Text Symbol: 300 = Program started by: "
Text Symbol: 231 = Not all CIs cleared
Text Symbol: 230 = Criterion 5
Text Symbol: 229 = ScName
Text Symbol: 228 = SCIs/OIs in %
Text Symbol: 227 = Success. CIs (SCIs)
Text Symbol: 226 = Message text
Text Symbol: 225 = Criterion 4
Text Symbol: 224 = Criterion 3
Text Symbol: 305 = Documents in the following expiring currencies were not considered:
Text Symbol: 306 = Set the "Expiring Currencies" switch or define the clearing currency
Text Symbol: 307 = Following currencies will expire soon:
Text Symbol: 312 = Error in reading table T100 (&,&)
Text Symbol: 320 = Items with EBPP payment method not selected
Text Symbol: 499 = Total in recording currency
Text Symbol: 500 = Total in document currency
Text Symbol: P01 = General selections
Text Symbol: P02 = Posting parameters
Text Symbol: P03 = Output Control
Text Symbol: T01 = Automatic Clearing Specific to Ledger Groups
Text Symbol: T02 = Program Documentation
Text Symbol: T03 = No ledger group-specific clearing for the account
Text Symbol: T04 = Only ledger group-specific clearing for the account possible
Text Symbol: 125 = Account was selected, but is not entered in table TF123
Text Symbol: 122 = Account blocked by payment proposal (table REGUS)
Text Symbol: 121 = System error in blocking
Text Symbol: 120 = Account is blocked
Text Symbol: 115 = Error in reading line items (BSEG_ADD): &1, &2, &3
Text Symbol: 114 = Error in reading line items (BSEG): &1, &2, &3
Text Symbol: 113 = Error in reading document header(BKPF): &1, &2
Text Symbol: 112 = No G/L account documents selected
Text Symbol: 111 = No vendor documents selected
Text Symbol: 110 = No customer documents selected
Text Symbol: 105 = Items with withholding tax code for customer subject to withholding tax
Text Symbol: 104 = Item's withholding tax amount is not zero
Text Symbol: 101 = Category 'W' special G/L transactions were not selected
Text Symbol: 099 = Additional Log
Text Symbol: 098 = Error Log





Text Symbol: 051 = Account blocked - no clearing "
Text Symbol: 046 = No clearing (difference too large)
Text Symbol: 045 = Clearing date
Text Symbol: 044 = Period
Text Symbol: 043 = No clearing
Text Symbol: 042 = Clearing date:
Text Symbol: 041 = Clearing document no.:
Text Symbol: 030 = Detail list of open and cleared items "
Text Symbol: 020 = Short list of open and cleared items
Text Symbol: 008 = Test run "
Text Symbol: 007 = Update run"
Text Symbol: 005 = No display authorization for
Text Symbol: 004 = No change authorization for
Text Symbol: 003 = G/L accounts
Text Symbol: 002 = Vendors
Text Symbol: 001 = Customers
Text Symbol: 223 = Criterion 2
Text Symbol: 222 = Criterion 1
Text Symbol: 221 = Mno
Text Symbol: 220 = Mid
Text Symbol: 219 = Mtyp
Text Symbol: 218 = Scr.
Text Symbol: 216 = S.G/L" Special G/L indicator
Text Symbol: 215 = Recon.acct
Text Symbol: 214 = Amount
Text Symbol: 213 = D/C
Text Symbol: 212 = Crcy
Text Symbol: 210 = OIs/CIs in %
Text Symbol: 209 = No. of CIs
Text Symbol: 208 = No. of OIs
Text Symbol: 207 = Log text "
Text Symbol: 206 = Itm
Text Symbol: 205 = Doc. no. " Document no.
Text Symbol: 204 = Acct no. " Account no.
Text Symbol: 203 = AcTyp" Acct type
Text Symbol: 200 = CoCde" Company code
Text Symbol: 141 = ***** Please note:
Text Symbol: 140 = ***** System message "
Text Symbol: 134 = Authorization Check for Document Type Active



Text Symbol: 133 = Authorization Check for Business Area Active
Text Symbol: 132 = Clearing currency copied from assignment field
Text Symbol: 131 = New group of documents which can be cleared
Text Symbol: 130 = No clearing procedures were carried out
Text Symbol: 129 = No errors were logged during clearing in test run
Text Symbol: 128 = No error occurred during clearing
Text Symbol: 127 = Only accounts with debit and credit postings are included
Text Symbol: 126 = Company code blocked by payment program (table T042X)


INCLUDES used within this REPORT SAPF124

INCLUDE F124TOP.
INCLUDE F124_AUSLAUFENDE_WAEHRUNG_MF01.
INCLUDE F124_CHECK_PAYMENT_METHODF01.
INCLUDE F124_SET_GLOBAL_FLAGSF01.
INCLUDE F124_MODIF_SCREEN_CLF01. "1029245
INCLUDE F124_SET_INFO_ICONF01. "1029245


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

CURRENCY_EXPIRATION_CHECK CALL FUNCTION 'CURRENCY_EXPIRATION_CHECK' EXPORTING currency = zwaers date = augdt object = 'BKPF' bukrs = i001-bukrs EXCEPTIONS warning_occurred = 1 error_occurred = 2.

CURRENCY_CHECK_FOR_PROCESS CALL FUNCTION 'CURRENCY_CHECK_FOR_PROCESS' EXPORTING process = 'SAPF124E' EXCEPTIONS process_not_maintained = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SAPF124 or its description.