SAP Function BAPI_CTRACCONTRACTACCOUNT_CLR - BAPI: FI-CA Clear Open Items

Parameter Reference Type Length Default Optional Text
DOCUMENTHEADER BAPIDFKKKO u 231 Document Header

Parameter Reference Type Length Text
DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Assigned Document Number
RETURN BAPIRET2 u 548 Confirmations

Parameter Reference Length Optional Text
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements - Import
OPENITEMS BAPIDFKKCL 1500 Open Items for Clearing

Functionality
You can use this method to clear open items against one another. Thesystem posts a clearing document, the number of which is returned inthe DOCUMENTNUMBER parameter.

Notes
Open items to be cleared can be selected using the "GetOpenItems" BAPI.

Description
Number of the new clearing document that was posted.

Description
The return code of the method. If the parameters do not contain amessage code, the method was successful.

Value range
The most important messages are as follows:
E >BAPI 013 ... 018 Formal error in parameters
E >0 127 No authorization
E B1 500 ... Error in ISO conversion
E >4 >0 ... Error reading account balance

Description
Document header of the clearing document. The transaction currency mustbe the same as that in the open items.

Description
The table with open items. The clearing currency and the transactioncurrency must match. Before an item can be cleared, the field"ITEM_ACTIVATED" must be set, and the clearing amount entered in the"CLEARING_AMOUNT" field. This amount must be less than or equal to theposting amount of the open item. The total of the clearing amounts mustbe equal to zero.