How to see the output of associative array in procedure
Hi ,
I tried the following code
And confused about looking at the output of the associative array.
CREATE OR REPLACE PACKAGE test_pak1
AS
FUNCTION map_object (obj_typ_in VARCHAR2)
RETURN VARCHAR2;
CURSOR c_c1
IS
SELECT * FROM emp;
TYPE test_ttyp IS TABLE OF c_c1%ROWTYPE
INDEX BY PLS_INTEGER;
PROCEDURE search_obj (obj_type VARCHAR2);
END;
CREATE OR REPLACE PACKAGE BODY test_pak1
AS
FUNCTION map_object (obj_typ_in VARCHAR2)
RETURN VARCHAR2
IS
BEGIN
dopl ('Hello');
RETURN abc;
END;
PROCEDURE search_obj (obj_type VARCHAR2)
IS
test_tab test_ttyp;
BEGIN
DOPL (test_tab);
end;
END;In the above code i want to see the output of the test_tab which is in the procedure search_obj.
could you please help me in this
Thanks
Hi ,
Though the table has the records , the associatve array declared on this table is showing 0 records..
Create or replace package test_pak1 as
FUNCTION map_object ( obj_typ_in VARCHAR2 ) RETURN VARCHAR2;
CURSOR c_c1
IS
SELECT *
FROM dept;
TYPE test_ttyp IS TABLE OF c_c1%ROWTYPE INDEX BY PLS_INTEGER;
procedure search_obj(obj_type varchar2);
end;
Create or replace package body test_pak1 as
FUNCTION map_object ( obj_typ_in VARCHAR2 ) RETURN VARCHAR2
IS
begin
dbms_output.put_line ('Hello');
return 'abc';
end;
procedure search_obj(obj_type varchar2) is
test_tab test_ttyp;
begin
DBMS_OUTPUT.put_line ('nested array count value'|| test_tab.COUNT);
FOR i IN 1 .. test_tab.COUNT LOOP
dbms_output.put_line( test_tab(i).deptno||' '|| test_tab(i).dname); end loop;
end;
end;
begin
test_pak1.search_obj('HYD');
end; Though the table has the records the count of the associative array is showing 0 records ... Why
Thanks
Similar Messages
-
How to see the output of a FORM of REMITTANCE ADVICE ( PAYMENT ADVICE )??
Hi Experts,
I got a SAP Script of REMITTANCE ADVICE (also known as PAYMENT ADVICE).
And I know the VENDOR #.
I need to see the output of this SAP Script on the screen, so, let me know that, How to test it/see its output. (I know, seeing the Customer statemet from the tx of F.27), I mean, wht r the transactions etc. stuff.
thanqYou should create a variant for payment advice and you can use the same while executing the t.code:F110.
Once payment run has been completed system will generate a spool for payment advice. You can view that payment advice through t.code:SP01. -
How to see the output of stored procedure in database express edition 10g
Hi All,
I have done the workout query in database express edition
create or replace procedure emp_ra (did in number) is
commission real;
no_comm exception;
begin
select commission_pct into commission from employees where department_id = did;
if commission is null THEN
raise no_comm;
else
DBMS_output.put_line(commission);
end if;
EXCEPTION
WHEN no_comm THEN
DBMS_OUTPUT.PUT_LINE ('This employee does not receive a commission.');
WHEN OTHERS THEN
NULL;
end;
the procedure compiled successfully with out any error.
After this i executed the below
set serveroutput on
Begin
emp_ra (90);
end;
it says
Statement processed.
0.00 seconds
But i unable to see the result,could anyone please help me on this.
Thanks
Edited by: thelakbe on May 7, 2012 11:17 PM
Edited by: thelakbe on May 7, 2012 11:17 PM
Edited by: thelakbe on May 7, 2012 11:18 PMi exectued the same procedure in XE Database and have errors:
SQL> create or replace procedure emp_ra (did in number) is
2 commission real;
3 no_comm exception;
4 begin
5 select commission_pct into commission from employees where department_id =
did;
6 if commission is null THEN
7 raise no_comm;
8 else
9 DBMS_output.put_line(commission);
10 end if;
11 EXCEPTION
12 WHEN no_comm THEN
13 DBMS_OUTPUT.PUT_LINE ('This employee does not receive a commission.');
14 WHEN OTHERS THEN
15 NULL;
16 end;
17 /
Advertencia: Procedimiento creado con errores de compilaci¾n.I am not a expert of SQL but i think your variables are wrong and you must initialize
commission real;
no_comm exception;For better information open a new thread at SQL Forum. -
How to see the ouput of a purchase order on screen??
Hi all , how to see the output of a purchase order (ME23) on screen?
Points will be awarded!!!!
Thanks & Regards
JohnHi,
If any output tye is associated to PO and it is been triggered then User ME9F tocde to view the output.
To check thise first Use: ME23 and click on Messages, if any outputs are triggered and they are in Yellow status then Use ME9f. Once you execute you will get Outputs in the screen, then choose the output and click on Display Message button. Your output will be displayed on the screen.
Regards,
Ashok -
How to see the source code of procedure
how to see the sourse code of already created procedure or function
Select text
from all_source
where owner = '<Procedure owner>'
and type = 'PROCEDURE'
and name = '<Procedure name>' -
How to store the output of a analog to digital converter into an 2D array
Hi
I am doing my M.Tech Thesis in Image reconstruction and I am using labview for simulation and I want to know how to store the output of a analog to digital converter into an 2D labview array.nitinkajay wrote:
I want to know how to store the output of a analog to digital converter into an 2D labview array.
How exactly are you performing 'Analog to Digital'???
Grabbing image using camera OR performing data acquisition using DAQ card OR some other way????
I am not allergic to Kudos, in fact I love Kudos.
Make your LabVIEW experience more CONVENIENT. -
How can i see the output of a form
I am having one driver program and form.From these two how can i see the output.
Hi Sunny
You might already know; but for the driver program; a smartform is just a function module.
(In the smartform; this function module name can be found in the menu tab Environment -> Function Module Name.)
Note: The FM 'SSF_FUNCTION_MODULE_NAME' is obviously the correct way of getting the FM name from the smartform name !!
So all you need to do is call this function module passing any variable / tables you need to pass to the smartform from your driver program.
Hope it helps
Neer -
How to see the changed output for purchase order
Hi..
I have zmedruck. i need to increse item text lengh. i done this in editor. how to see the changed output now...I increased the length of text to be displayed. I checked the print preview in me23n. i cant see the increased length. Guide me where i am wrong.
Edited by: Meena 303 on May 1, 2008 6:24 PMHi
In ME22N go to message -
> select old message -
>click change OutPut button -
> Save
then see print priview through ME9F or ME22N it sself.
regards
Sachin -
i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail
"st" wrote:
> answer me at my mail
give a valid e-mail first, and your name, we don't like to help anonymous
people
> try to send me example.
how much do you pay ?
> i have transefer function like (1/(s^2+s+5)) and i have a square wave
> input , i want to use this transfer function with this input to see
> the output , how can i do that
First you have to know what you are doing, like an engineer : you have a
Laplace, continuous time transfer function but LabView handles discrete
signals only. Use matlab/simulink if you want to simulate continuous time
systems easily...
If you definitely want to use LabView, the first step is to discretize your
continuous-time transfer function, i.e. decide a sampling rate and convert
it to a "z transfor
m". Then you can directly use the "IIR Filter.vi" as I
said earlier.
Philippe Guglielmetti - www.dynabits.com me at my mail -
How to see the customer purchase order acknowledgement ?
How to see the customer purchase order acknowledgement ?
in that PO ACK where we see the UOM and Qty ?
thanks & regards,
Srikanth.hi
Customer Purchase Order is nothing but the Sales Order in your system
Customer Po acknowledgement is nothing but the Acknowledgement that is sent out (output type BA00) to the Customer after the Sales Order has been created.
Note: Purchase is to Customer - Sales is to you as the Vendor.
cheers
Nandu
Edited by: Nanda Kumar Veeraraghavan on Apr 1, 2008 12:11 AM -
LabWindows / CVI: how to change the output executable file name
For example, I have an A project a.prj, I do not want to compile the output file is a.exe, but b.exe.
I will try to save as a.prj b.prj, a.cws save as b.cws
eg:a.prj ---->(output)--->b.exe
Solved!
Go to Solution.You can go to Build >> Target Settings menu item, select Release (or Release 64) in the Configuration filed and set the name of the executable to create in Application FIle field, withouyt need to change the prj or cws filename.
See the complete description of available options here.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Where to see the output of batch file run in java
I use RunTime.getRunTime.exec() to run a batch file, it seems going fine. But I can not see the output of the batch file. For instance, the batch file is to print sth on the screen, but it wont display under java.
Why and how?
ThanksYou get the Process and from that yoo use getInputStream().
You need to read the stream in a seperate thread since if it fills the buffer it blocks the thread (which would be your main thread.) -
How to show the output of Idoc variable on content server console
Hi,
Where & How the IDOC Script functions or variable output i can see..
Mean to say..
I have written idoc script regarding work flow, where can i see the output before implementing to check whether my code is fine or whatCheck this out: http://download.oracle.com/docs/cd/E17904_01/doc.1111/e10726/c08_config_ref.htm#CSIDO985
(you can go with console or log:
#console, to display to a console
#log to log a message in the HTML log files) -
Sap isu-cic(how to check the output)
HI to all......
In isu-cic how to check the output,i have done all the assign ments like framewrk creation etc...i defined the organizational structure with assign hoder...after that wats the next steps?
can anybody plz reply....
Cheers..
sateeshHello satish
Step 1:
Create Framework Id( assign hidden & visible components)
Step 2: Create CIC profile
Step 3: create Org unit and assign person
Step 4: Assign CIC profile to Org. unit (or) person
Path : Easy access screen
Logistics>Customer service>Customer Interaction center>Adminstration>CIC structure>Org.Structure(Change,T.code-PPOMW)>select Org. unit
In this screen on the top i.e menu bar find Go To
Go To>detail Object>Enchanced object description
Now u r in Maintain object page(T code-PP01)
Now in the Active tab page select CIC profile
Now in menu bar Edit>create infotype
Again u r in new page(T code-PP01)
Enter the CIC profile Id which u have created in customizing
Run T code- CIC0
I hope u r able to see the screen now
Rgds
Madhusudhan -
How to view the output maintained at handling unit level
Hi All,
How to view the output which was maintained at Handling unit level in the delivery.
Say for ex:- If we maintain the out put type LD00 at delivery level, we can view the output for the same in the change mode of outbound delivery.
In the same way how can e view the output which was maintained at handling unit level.
Regards,
Mallesh.Hi,
Go to 'VL02N' transaction code give the Delivery number and from menu Outbound delivery select issue output to. then select the proper output type (already issued) and select the print preview button.
It is just as you see for other output's only.
Reward if it helps.
Thanks
Venkat Cheedalla.
Maybe you are looking for
-
Delete code in End Routine.
Hi Experts, I have to write a delete code in end routine. I giving it below. Kindly correct for mistakes. Delete data_package where zquantity = 0 and zorder = 0. I find after putting this code it tells that Data_Package is not available. What to put
-
Why JSlider event listener no response?
Thanks, hi, the JSlider does exist, but when it slides, data is unchanged. Please help. import java.io.*; import java.awt.*; import javax.swing.*; import java.util.Hashtable; import java.awt.event.*; import javax.swing.event.*; // import AppletAndApp
-
I am not getting any sound on my ipod touch
I am not getting any sound at all on my ipod. I am not sure what happened to it. I tried a game feature and there is no sound and it does not seem that my ipod is on mute. I tried Pandora which I usually listen to everyday and there is no sound. What
-
Website doesn't recognize my number?
I am trying to make an account with orange/EE but whenever i try it says it doesnt recognize my mobile number?
-
porfavor ayudaaaaa!! necesito saber como poder salvar las fotos que estan en mis copias de seguridad en el ordenador y como puedo saber si es que realmente estan las fotos porfavor ayudenme!