Home » Applications » Oracle Fusion Apps & E-Business Suite » Ar_Receipt_Api_Pub.Create_cash Error
Ar_Receipt_Api_Pub.Create_cash Error [message #180890] Wed, 05 July 2006 14:05 Go to next message
mchittib
Messages: 87
Registered: September 2005
Member
Hi there,

I am trying to populate the DFF(just attribute6,7,8) using receipt api.
I am getting the following error.

Ar_Receipt_Api_Pub.Create_cash
*
ERROR at line 24:
ORA-06550: line 24, column 1:
PLS-00306: wrong number or types of arguments in call to 'CREATE_CASH'
ORA-06550: line 24, column 1:
PL/SQL: Statement ignored


Can someone tell me what am i doing wrong.

Declare
.....
l_attrib Ar_Receipt_Api_Pub.attribute_rec_type;
.......
Begin
.....
l_attrib.attribute6 :='Test6';
l_attrib.attribute7 :='Test7';
l_attrib.attribute8 :='Test8';
.....
Ar_Receipt_Api_Pub.Create_cash(
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 => l_msg_count,
x_msg_data => l_msg_data,
p_currency_code => 'USD',
p_amount => 69.16,
p_receipt_number => '1188',
p_receipt_date => SYSDATE,
p_gl_date => SYSDATE,
p_customer_number => 1248,
p_deposit_date => SYSDATE,
p_receipt_method_id => 1001,
p_cr_id => l_cash_receipt_id,
p_attribute_record => l_attrib,
p_comments => 'Test'
);
........
End;



Do i need to populate attribute1 through attribute5 with nulls?

Anyhelp or comments is greatly appreciated.

Thanks,
mchittib.

[Updated on: Wed, 05 July 2006 14:09]

Report message to a moderator

Re: Ar_Receipt_Api_Pub.Create_cash Error [message #180919 is a reply to message #180890] Wed, 05 July 2006 16:37 Go to previous messageGo to next message
Art Metzer
Messages: 2480
Registered: December 2002
Senior Member
It's probably because the parameter is named
p_attribute_rec
instead of
p_attribute_record
A lesser infraction: p_customer_number is a VARCHAR2 (not a NUMBER), so technically, you should probably have:
p_customer_number => '1248',
Finally, make sure in your declaration section you have:
l_return_status    VARCHAR2(1);
l_msg_count        NUMBER;
l_msg_data         VARCHAR2(2000);
Re: Ar_Receipt_Api_Pub.Create_cash Error [message #180924 is a reply to message #180919] Wed, 05 July 2006 17:25 Go to previous messageGo to next message
agostino_neto
Messages: 180
Registered: July 2005
Senior Member
I agree with Art.
Possibly you could also change all SYSDATE to trunc(SYSDATE)
Re: Ar_Receipt_Api_Pub.Create_cash Error [message #181050 is a reply to message #180924] Thu, 06 July 2006 08:59 Go to previous message
mchittib
Messages: 87
Registered: September 2005
Member
Thanks Art and ngouadjeu.
Changing p_attribute_record to p_attribute_rec solved the error.
I have followed other suggestions too.

Thanks.
Previous Topic: Oracle workflow problem
Next Topic: Order workflow is getting stuck
Goto Forum:
  


Current Time: Thu Jun 27 12:56:08 CDT 2024