Thursday, January 28, 2010


Applies a cash receipt to a particular installment of a debit item.
 The application can also be a cross currency application.
This api works only when you set the org_id using DBMS_APPLICATION.SET_CLIENT_INFO(&v_org_id)
But dont forget to set the session through FND_GLOBAL.APPS_INITIALISE because it will set the
necessary profile values defaulted to user

Another important thing to note is...
Incase if you want to apply against the invoice installment then we have to pass the parameter named
"P_INSTALLMENT" with the installment number
Remember Oralce provides another api named Ar_receipt_api_pub.Create_and_apply to create and apply simultaneously.
Let us have the detailed view of the mentioned api in another post

l_return_status varchar2(1);
l_msg_count number;
l_msg_data varchar2(240);
l_count number;
l_msg_data_out varchar2(240);
l_mesg varchar2(240);
p_count number;
( 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,
p_cash_receipt_id => '&cash_receipt_id',
p_customer_trx_id => '&customer_trx_id',
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
dbms_output.put_line('Status ' || l_return_status);
dbms_output.put_line('Message count ' || l_msg_count);
if l_msg_count = 1 Then
dbms_output.put_line('l_msg_data '||l_msg_data);
elsif l_msg_count > 1 Then
p_count := p_count+1;
if l_msg_data is NULL Then
end if;
dbms_output.put_line('Message' || p_count ||'.'||l_msg_data);
end loop;
end if;

if the Status is 'E', check for the error message and debug log.

1 Responses to “Ar_receipt_api_pub.Apply”

Sridevi K said...
September 24, 2016 at 3:11 AM

Sridevi Koduru (Senior Oracle Apps Trainer
LinkedIn profile -
Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at | +91 - 9581017828.

Post a Comment


The ideas, thoughts and concepts expressed here are my own. They, in no way reflect those of my employer or any other organization/client that I am associated. The articles presented doesn't imply to any particular organization or client and are meant only for knowledge Sharing purpose. The articles can't be reproduced or copied without the Owner's knowledge or permission.