Oracle Application unapply credit memo
As discussed in my preovious post, credit memo is issued to nullify pending receivbale.If the payment already applied to the transaction then we first make sure transaction is unapplied and then only apply credit memo in those transactions
The process to unapply credit memo can be done using api:
AR_RECEIPT_API_PUB.unapply
( p_api_version => 1.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_TRUE,
p_validation_level => FND_API.G_VALID_LEVEL_FULL,
x_return_status => l_return_status,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data,
p_cash_receipt_id => LC_REC.cash_receipt_id,
p_customer_trx_id=>I_LATE_FEES.customer_trx_id,
p_reversal_gl_date => sysdate
);