How to call procedure in which one formal parameter is associative array ty
how to call procedure in which one formal parameter is associative array type,
pls explain with eg.
>
above code work fine but when i use case then it give error like
i identifier should be declare
& my code is as
CASE v_array(i)
WHEN 'A' THEN
insert into di_ivpn_report (ID, test_name, table_name, status, entity, proposition)
values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
v_status, v_ent_name, v_array(i));
WHEN 'B' THEN
insert into di_mpls_report (ID, test_name, table_name, status, entity, proposition)
values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
v_status, v_ent_name, v_array(i));
END CASE;
>
Then you have to use ordinary loop
PROCEDURE insert_update_***_array (TRANID IN VARCHAR2, ATT_NAME IN VARCHAR2, ENT_NAME VARCHAR2, v_array IN ***_array)
IS
v_tranid VARCHAR2(1);
v_att_name VARCHAR2(100) := ATT_NAME;
v_ent_name VARCHAR2(100) := ENT_NAME;
v_att_id VARCHAR2(6);
v_ent_id NUMBER;
v_status VARCHAR2(20) DEFAULT 'INACTIVE';
I NUMBER;
BEGIN
i := v_array.first;
while i is not null loop
CASE v_array(i)
WHEN 'A' THEN
insert into di_ivpn_report (ID, test_name, table_name, status, entity, proposition)
values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
v_status, v_ent_name, v_array(i));
WHEN 'B' THEN
insert into di_mpls_report (ID, test_name, table_name, status, entity, proposition)
values (v_att_id, v_att_name, 'DI_'||v_array(i)||'_REPORT'||'_'||v_att_id,
v_status, v_ent_name, v_array(i));
END CASE;
i := v_array.next(i);
end loop;
end;
Similar Messages
-
Same algorithm in function and procedure then which one will better?
Why pl sql function is better to computes a value instead of procedure?
If I apply same algorithm in function and procedure then which one will perform better?It's not a matter of performance, it is more a matter of how it is going to be used.
A function can be used as an expression in an assignment or in a query.
my_var := my_func(my_param);
select my_var(my_col) from my_table;But it can just return a single value (which can be a complex value like a nested table or object or ref cursor, but still a single value.)
The procedure often is more used to perform an action that does not return anything.
execute_invoicing(my_invoice_id);Or procedures can be used if you need multiple return values.
my_proc(my_input, my_output_1, my_output_2, my_output_3);But the procedure cannot be used in an assignment expression or a select query.
Performance wise procedures and functions are completely identical. It is only a matter of what action they perform and how you are going to use them. -
How to Call Procedure or Function
Hi,
How to call a procedure or function in apex, Please let me know
Thanks
SudhirHi,
This post might help
Re: How to Call procedure In Processes
Regards,
Jari -
Session method and call transaction methos which one is the sap recomonded
hi
PLease give me the answer to these questions.
session method and call transaction methos which one is the sap recomonded why .
2) if we want to maintain BDC program in all the systems.wt to d0Hi Revethi,
Here is the difference between the Session and Call Transaction method.
Session
Session method supports both small amount of data aswell as large amount of data
2) data processing is asynchronus and data updation is synchronus.
3) it process multiple apllication while perfomaning validations.
4) in session method data will be updated in data base only after processing session only.
5) system provide by default logfile for handling error records.
6) it supports both foreground aswell as background process
in bdc we use FM ... bdc_open_group " for creating Session
bdc_insert " adding transaction and bdcdata table for updating database
bdc_close_group " for closing Session
Call Transaction
Call transaction exclusively for small amout of data
2) it supports only one apllication while perfoming validations
3) there is no default logfile, We can explicitly provide logic for creating logfile for handling error records.
we can create logfile by using structure....BDCMSGCOLL
4) it doesn't support background processing.
5) data processing is synchronous and Data updation is Synchronous( default), in
this method also supports daya updation in asynchronus process also.
Syntax:
Call transaction <transaction-name> using BDCDATA
mode <A/N/E> update <L/A/S>
messages into BDCMSGCOLL. -
How to call a method of one view in other view
Hi
could any one suggest "how to call a method of one view in other view "
thanks
kaushikHi Kausic,
Its not possible to call a method from view to View.
Since view is private entity we can not pass the data directly.
I suggest you to declare the method in Component/Custom controller and call.
the code is,
wdThis.wdGet<Component/Custom Name>Controller().<methodName>();
Regards,
<b>Ramganesan K</b> -
I have a MacBook 6,1 and have a number of start up discs. How can I find out which one came with my model?
They sometimes have that information on the label. Otherwise, it's trial and error. The model you have is a Late 2009 13" MacBook. It came with a special version of 10.6.1 pre-installed.
-
How to call procedure in Java from SQL Server Database
Hello Every Body
i Have Question about
How to call procedure in Java from SQL Server Database
ThanksHi,
have you tried a Google search? I just gave it a 3 second try and already found: http://stackoverflow.com/questions/6113674/how-do-i-execute-a-ms-sql-server-stored-procedure-in-java-jsp-returning-table-d
Frank -
In bdc call transaction method which one ll prefer synchronous or asynchron
hi could anybody tel me
call transaction method which one is preferred synchronous or asynchronous..?
what ll happen if we do other method..?
foreground or background which one ll prefer..?
what ll happen if we do otehr method..?
on which condition we have to use synchronous and asynchronous
on which condition we have to use foreground and background
thanx
kals.Hi,
if you haven't done yet please visit for general information:
http://help.sap.com/saphelp_nw70/helpdata/en/d2/f8f3393bef4604e10000000a11402f/frameset.htm
for further information:
http://help.sap.com/saphelp_nw70/helpdata/en/69/c2501a4ba111d189750000e8322d00/frameset.htm
This will hopefully answer your question.
Regards
Bernd -
How to call procedure and package in BI
IN OBIEE how to call procedure- function and pass parameter in it.??
Thanks
Jatin.Do you mean DB function. Check this link:
http://oracle-bi.siebelunleashed.com/articles/callingdb-function-in-obiee/
For OBIEE 11g, you have additional options to make calls with Action Framework. For now, I think the above link will help.
If helpful pls mark as correct or helpful -
I have "Camera roll" and "Photo Stream" - effectively storing my photo's twice - how do I delete and which one do I delete?
your photos are in events -
the most common cause of not seeing the events is bad camera dates or event sort being wrong so you are looking in the wrong place - see the view menu ==> sort events to correct sort - if the camera date is off select a photo and right click and show event to find it - then use the adjust time and date command to correct it
and you can drag photos to the desktop - what happens when you do? probably a better work flow with more flexibility is to select the photo(c) and export them (file menu ==> expoprt) to a desktop folder
LN -
I have an ipod I want to sell, but I don't know how to determine the specs, which one it is, how much memory, etc. Where can I find this information?
See this Apple support document.
http://support.apple.com/kb/ht1353
B-rock -
How to call a Report 10g from a parameter form..?
Hello,
pls i wanna know the procedure of :
How to call a Report 10g from a parameter form..?
regards,
Abdetu..hopes it work for you.
procedure get_report is
pl_id paramlist;
p_year varchar2(4);
param_name varchar2(10) :'param';
begin
pl_id := get_parameter_list(param_name);
if not id_null(pl_id_)then
destroy_parameter_list(pl_id);
end if;
pl_id := create_parameter_list(param_name);
p_year := year -- assign the value.
add_parameter(pl_id,'p_year',text_parameter,p_year);
execute_report('report_name',pl_id);
end; -
How to call a dll which has one VISA name as input
Hi there,
The Labview application builder can generate a dll file from a vi which is a simple serial comunication program using VISA name as one control.
The problem is how to call the dll file in Labview which has a VISA name as INPUT?
Thanks!
GeorgeI would suggest modifying the LabVIEW VI so that the input is a string control instead of a visa control. The LabVIEW application will work the same and there is no need for any casting. All visa VIs can take a string as an input. Then when you recreate the dll make the input a string. Then you can easily pass a string to the dll from any API.
-Josh -
How to call Procedure in Forms
Hi All,
I'm having 1Form,in that one check box is there if i check that, if i save the form means it should automatically call the procedure.
Can any one know how to call th procedure inside the Form.When we save form procedure sholud call and Run.
Bit urget plsss
Regards
Sivathanks for ur reply,
i have got the solution
Cloding the Thread..
Regards
Siva -
How to call a function from one viewmodel to another viewmodel
Hi ,
How to call a funtion of another viewmodel in a viewmodel . This help would be much appreciated
Thank You
Jeevan VinayPlease close your previous threads by marking helpful posts as answer before you start a new one.
You need to either get a reference to the second view model from the first one or you could use some kind of messenger or event aggregator to pass a message from the first view model to the second one. The latter approach is preferable as it doesn't create
a tight coupling between the two view model classes.
Please refer to my blog post for more information and an example of how to use Prism's EventAggregator to do this:
http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/
You will need to download and install Prism to be able use the EventAggregator class:
https://www.nuget.org/packages/Prism/
Another popular framework out there is the MvvmLight which contains a Messenger class that works pretty much the same. Andy has provided and example of how to use this one:
http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
You can download and install MvvmLight via Nuget (Tools->Nuget Package Manager->Package Manager Console in Visual Studio):
https://www.nuget.org/packages/MvvmLight/
Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.
Maybe you are looking for
-
I have a strange issue with my Epson R3880 printer: when I make up a composite image in Photoshop CS5 12.0.4 by cutting and pasting from various other images (then flattening the layers), I cannot get it to print although the printer goes through th
-
iTunes will not open at all. It looks like it will and then it doesn't (the windows loading symbol appears and then it disappears). I even tried uninstalling iTunes and downloading it again and installing it, nothing works! Please Help!
-
Situation: Brother got tired of his powermac G4(400MHz), so he gave it to me. He had issues with starting it up, basically it would not turn on. So I went to work on it trying to figure out the problem. I cleaned out the inside with my compressor at
-
Need help centering DIV in CSS
Hi- I had a "coming to jesus" last night regarding my website. I've been out of the professional web design world for about 7 years. I'm getting back in it. I used to design in tables and after some reading, I know I need to design in DIV. My pro
-
Hello Experts, We are trying to establish connection between PI and webshpere ,for that we are using JMS adapter. And in the channel we are getting the error as: Error connecting due to missing class: com.ibm.websphere.naming.WsnInitialContextFactory