oracle - How to run this stored procedure -


i have check procedure

im giving following values parameters

34220, 2815,'7/20/2011', 32760, 100, 'pmnt_check', 1, null, "", false, null, null  declare   p_app_id number;   p_user_id number;   p_date date;   p_inv_ids wb_prod.wb_pck_types.t_ids;   p_amnts wb_prod.wb_pck_types.t_numbers;   p_pmnt_method varchar2(15);   p_bank_ac_from number;   p_check_numbers wb_prod.wb_pck_types.t_numbers;   p_memo varchar2(1000);   p_pay_multiple number;   p_crd_ids wb_prod.wb_pck_types.t_ids;   p_crd_amounts wb_prod.wb_pck_types.t_prices;   o_py_id number; begin   p_app_id := 34220;   p_user_id := 2815;   p_date := '7/20/2011';   -- modify code initialize variable   p_inv_ids := 32760;   -- modify code initialize variable   p_amnts := 100;   p_pmnt_method := 'pmnt_check';   p_bank_ac_from := 1;   -- modify code initialize variable  --p_check_numbers := null;   p_memo := '';   p_pay_multiple := false;   -- modify code initialize variable   -- p_crd_ids := null;   -- modify code initialize variable   -- p_crd_amounts := null;    wb_pck_bill_payments.pay_bills(     p_app_id => p_app_id,     p_user_id => p_user_id,     p_date => p_date,     p_inv_ids => p_inv_ids,     p_amnts => p_amnts,     p_pmnt_method => p_pmnt_method,     p_bank_ac_from => p_bank_ac_from,     p_check_numbers => p_check_numbers,     p_memo => p_memo,     p_pay_multiple => p_pay_multiple,     p_crd_ids => p_crd_ids,     p_crd_amounts => p_crd_amounts,     o_py_id => o_py_id   );   dbms_output.put_line('o_py_id = ' || o_py_id); end; 

im getting error @ line

 p_inv_ids := 32760; 

i checked type of

p_inv_ids wb_prod.wb_pck_types.t_ids; 

which in declare statement, this

type t_ids table of t_id    index binary_integer; 

i donot understand how give parameter type. please let me know how give parameter.

thank

p_inv_ids associative array per type declaration.

you can not assign way

p_inv_ids := 32760; 

you need specify index in p_inv_ids assigning value

something like

p_inv_ids(0) := 32760; p_inv_ids(1) := 32761; 

http://www.java2s.com/tutorial/oracle/0520__collections/assignvaluetoplsqltable.htm


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -