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. |