SAP Function POSTING_INTERFACE_CLEARING - Post with clearing (FB05) using internal posting interface

Parameter Reference Type Length Default Optional Text
I_AUGLV T041A-AUGLV C 8 Clearing procedure
I_NO_AUTH 0 SPACE X
I_SGFUNCT RFIPI-SGFUNCT C 1 SPACE X Different FUNCT function
I_TCODE SYST-TCODE C 20 Transaction code

Parameter Reference Type Length Text
E_MSGID SYST-MSGID C 20 Message ID (only for Call Trans. ..Using)
E_MSGNO SYST-MSGNO N 3 Message number (only for Call Trans. ..Using)
E_MSGTY SYST-MSGTY C 1 Message category (only for Call Trans. ..Using)
E_MSGV1 SYST-MSGV1 C 50 Message variable 1 (only for Call Trans. ..Using)
E_MSGV2 SYST-MSGV2 C 50 Message variable 2 (only for Call Trans. ..Using)
E_MSGV3 SYST-MSGV3 C 50 Message variable 3 (only for Call Trans. ..Using)
E_MSGV4 SYST-MSGV4 C 50 Message variable 4 (only for Call Trans. ..Using)
E_SUBRC SYST-SUBRC I 4 Return code (only for Call Trans. ..Using)

Parameter Reference Length Optional Text
T_BLNTAB BLNTAB 19 Table of the document numbers (only for Call Trans ..)
T_FTCLEAR FTCLEAR 139 Clearing dates
T_FTPOST FTPOST 268 Document header and item data
T_FTTAX FTTAX 117 Taxes

Exception Text
AMOUNT_FORMAT_ERROR Format error in the specified amount
CLEARING_PROCEDURE_INVALID Transferred clearing procedure is invalid
CLEARING_PROCEDURE_MISSING Clearing procedure not transferred
COMPANY_CODE_INVALID
NO_AUTHORIZATION
SCREEN_NOT_FOUND
TABLE_T041A_EMPTY Table of the clearing procedures (T041A) is empty
TOO_MANY_LINE_ITEMS
TRANSACTION_CODE_INVALID Transferred transaction code not supported


Function module 'POSTING_INTERFACE_CLEARING' creates a batch inputtransaction (or Call Transaction ... Using ...) for a document to beposted using transaction FB05.
The document header data and the data for the bank postings aretransferred to table FTPOST. The rules for filling table FTPOST aredescribed in the documentation for function module'POSTING_INTERFACE_DOCUMENT'.
The selection data for the clearing transaction is transferred to tableFTPOST.
Note the following rules:
  • The AGKOA (Account type) field in each FTCLEAR line must be filled.

  • The field AGKON (Account number) should only NOT be filled, if either
  • the field 'BELNR' (Document number) or the field 'XBLNR' (Referencedocument number) is used as a selection criterion. Otherwise theaccount number must be specified in each FTCLEAR line.
    • The field AGBUK (Company code) must be filled in each FTCLEAR line.

    • The selection criterion in field SELFD is a character field of length
    • 5. The field names from the document index can be used.
      Processing with 'Call Transaction ... Using '
      If processing takes place with 'Call Transaction .. Using', theinitiator can see whether processing was successful by looking at theexport parameter 'SUBRC'.
      SUBRC = 0 means that the document was posted. The document number isstored in table T_BLNTAB. For intercompany documents, several documentnumbers are stored here.
      SUBRC <> 0 means that the document could not be posted. Informationconcerning the error which has arisen is returned via the messagefields MSGID, MSGNO, etc.

849676FB05, FB01: Window size is changed
598514FB05: Incorrect withholding tax w/ external document number