To get the the out put of the procedure..help needed
hi all,
i have a procedure :
CREATE OR REPLACE PROCEDURE EN_GetCategory
StaffID IN VARCHAR2 DEFAULT NULL,
ResultCategory OUT VARCHAR2
AS
v_exec_tx varchar2(2000);
Condition VARCHAR2(1000);
Category VARCHAR2(1);
SQL_ADV VARCHAR2(2000);
Cnt NUMBER(10);
Cnt1 NUMBER(10);
CURSOR curCategory IS
SELECT SMC.Category,SMC.Condition FROM ST_MS_Category SMC ORDER BY OrderRowNo;
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE TMP';
OPEN curCategory;
FETCH curCategory INTO Category, Condition;
while curCategory%FOUND
LOOP
BEGIN
v_exec_tx:='SELECT COUNT(*) FROM ST_EMPLOYEE WHERE StaffID=''' || EN_GETCATEGORY.STAFFID ||''' AND ' || EN_GETCATEGORY.CONDITION;
EXECUTE IMMEDIATE v_exec_tx into Cnt;
IF Cnt > 0 THEN SELECT COUNT(*) INTO CNT1 FROM tmp ;
IF CNT1> 0 THEN
UPDATE tmp SET CAT = Category ;
ELSE
INSERT INTO tmp VALUES (Category );
END IF;
END IF;
FETCH curCategory INTO Category, Condition;
END;
END LOOP;
CLOSE curCategory;
BEGIN
FOR REC IN ( SELECT CAT FROM tmp
LOOP
EN_GetCategory.ResultCategory := REC.CAT;
END LOOP;
END;
END;
i need to execute this procedure..
i tried EXEC EN_GETCATEGORY('812005','');
but getting error invalid sql statemnt..
i think for this we have to write some more code can u please help to to find the output ofthis procedure..
Thanks In advance
Hi,
i tried EXEC EN_GETCATEGORY('812005','');It's execute Procedure_name('Parameters');
Regds.What tosh! "exec" is perfectly ok to use to call a procedure.
The problem is with the OUT parameter. You need to declare a variable into which the OUT value can be put.
Similar Messages
-
Over riding "inbuilt audio" for the audio out put in the easy set up?
Hi all. I just got hold of Final Cut express and I can not get audio to come out of my external audio interface( MOTU 2408 III).
I have noticed that the default setting in the easy set up is for inbuilt audio.
How do I over ride this?
Thanks,
Spigg
PS Audio system setting is set for the MOTU... infact warning beeps are going through external... just not movie audioHi(Bonjour)!
Try the sound system extension SoundFlower:
http://www.cycling74.com/products/soundflower
Michel Boissonneault -
Hi
I have a function in a package where it's out put is a table.
I call it from FORM level procedure.
Could anybody help me with view the data of my out put for the purpose of debugging.
(Note: I use SQL Navigator as the db tool , Forms Builder (9.0.4.2.0))
Rgds
shabarI don't exactly know how your datablock is, the aray you are returning but you can use code like this to populate the data block.
Write this code in when new form instance trigger.
declare
type pkarray is varray(100) of <table_name>.<column_name>%type; --table name on which your varray returning from function is based.
id_arr pkarray := pkarray();
begin
id_arr := <function_name>; -- call to your function which returns the array
go_block('<block_name>');
clear_record;
first_record;
For i in 1..id_arr.count
loop
:<block_name>.<item_name> := id_arr(i);
next_record;
end loop;
end;You can tweak this code to suit your requirement.
Hope it helps.
Please mark answer as helpful / correct, if it helps you
Navnit -
OC4J Report Server is not saving the PDF out put
Hi everybody,
I have a master report running under OC4J.Under this master report 1000's of other reports are runninng by using the srw.run_report.Report name and other required parameters are taking from the database.My aim is to send all generated PDF reports by using the javamail.My problem is report server is not saving any reports until the completion of the master report.Once the master report is completted we can see all the reports under the specified folder, before that we can not see the out put in the folder .So the above reason my mailing part is getting faild because of system cannot find the specified file in that particular path
Hi anybody know how to save each pdf report in a folder insted of waiting the completion of entire report
Is any particular report configuration is required for that?
srw.runreport is running in the batch mode
thanks in advanceee
regards
mathew
Message was edited by:
Mathew ThomasPlease helppp meee
-
How to debugg a script when the Required out put is like Fax or email
Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz normally we will do that one with activating debugger but when a special requirement is like fax or e mail how we will do that one
"how to debugg a script when the Required out put is like Fax or email"
Thanks in advance
Durga Prasad.Hi
DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
script
1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
As per ur question there is nothing new with script debugging,
it is same as normal report debugging...
SMARTFORMS DEBUGGING
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
SCRIPT
There are 2 separate kinds of debugging available when you try to debug scripts.
1. Debugging the print program : This is the normal debugging we do for our report programs.
2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
refer to the link below
http://www.howforge.com/how-to-debugging-sapscript-form
Look at the BLOG here, it is well explained
/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
Regards
Anji -
I received an ipad with seminar materials on it at a recent seminar. Now I want to add apps, using my app account. But when I try to do that, the app store says my ipad is registered to the person who put on the seminar. How can I fix this so I can use my ipad.
Go to Settings>Store>Apple ID - tap on the previous user's ID and sign out. Then tap sign in and enter the information for your ID and password.
-
How to display the out put of the sql query in a text file using forms
I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz
Have a look at the text_io package:
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
cheers -
Importing the out-put to the exel
Hi all,
iam very new to the unix and sql,
just i want to know how to export the out-put of the query into exel using unix(spool)A lot of people rob banks too.
You can spool an output to a file delimiting columns with commas if you wish. But that is outputting a file not outputting to Excel.
Personally I'd fire anyone in a data center I caught outputting Oracle into a non-secure unauditable form and putting the organization at risk. -
I have an iPhone in my name and my wife has an iPad in her name. We have just ordered an iMac and wondered which account we should use to get the best out of all the devices? Can we use both accounts in iCloud?
Yes you can. However, it is better to use one person's account most of the time for purchases in the Mac App Store and iTunes since you can share purchases, such as songs, among various devices using the SAME account. You Cannot share purchases among different accounts, though. So make one of your accounts the main "purchasing" account so you can share purchases.
Hope this helps -
My macbook will not boot. It goes to a blue screen after the logo and wheel goes off. I have taken the battery out and held the on/off button for five seconds and reset the PRAM. I have the the original os disk but have not put it in for fear of losing un backed op data.
Thanks
RichYou won't lose any data unless you erase your hard drive.
Put your install DVD into the optical drive and reboot. As soon as you hear the boot chime, hold down the "c"key on your keyboard (or the Option key until the Install Disk shows up). That will force your MacBook to boot from the install DVD in the optical drive.
When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it.When it comes up is your Hard Drive in the list on the left?
If it is then click on the Mac OS partition of your hard drive in the left hand list. Then select the First Aid Tab and run Repair Disk. The Repair Disk button won't be available until you've selected the Mac OS partition on your hard drive. If that repairs any problems run it again until the green OK appears and then run Repair Permissions. -
What happened to the audio out function in the Music app?
I have had pretty good luck with iOS 7, but the one thing that really bugs me is that they took out the audio out function in the Music app.
In iOS 6.X's Music app the Now Playing screen had an Audio Out option at the bottom of the screen. I am sure it was called something else, but you could tap it and choose the audio out channel you wanted to use, iPhone speakers, earphones, bluetooth and I think AirPlay.
Why would they remove this option?
I was just wondering if there is another music player that still includes this option. I use Stezza for in the car (Big buttons) and Lagu when I want the old iOS music player interface. But neither of them include the audio select option.
I will submit this as feedback on the feedback page to see if they will consider putting it back in.Gary ~ It's now available via a browser:
Street View for Google Maps web app goes live -
Is there anyway to have Premiere Pro recognize the "in" & "out" points and the sequence's "home" (first frame) as edit points so that the up & down arrow work as short cuts on these areas?
Hey guys, I wrote a big long speech trying to be more clear and was just getting more confusing. LOL
Hopefully this image makes my question a bit easier to understand. In green you can see how the up and down arrow keys land while in Final Cut. In red how they land while in Premiere. I'd like them to land like Final Cut. Thanks! -
I'm trying to set up a iTunes allowance account for my 11 year old daughter, I set up the account but put in the wrong email address, now it's trying to send the verification email to an old addy I no longer have access to. Help.
I've tried looking at my own itunes account but I cannot seem to find the allowance account, it says I currently have zero allowance accounts.
All I want to do is change the assigned email address.Who is the email provider? Not all accounts can be set up as POP3
-
the ipod is disabled, when i plug it in to my pc it says it can not connect without the passcode being put into the ipod, how do i fix it?
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
iOS: Wrong passcode results in red disabled screen
If recovery mode does not work try DFU mode.
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings -
HT2478 how to edit the picture you put on the desktop, center it etc.
how to edit the picture you put on the desktop, center it etc.
On what Mac running what version of OS X?
-
Revision: 10599
Author: [email protected]
Date: 2009-09-25 13:07:56 -0700 (Fri, 25 Sep 2009)
Log Message:
-fix spark doc target so the docs are put into the resource bundle swc.
-added building of all spark localized _rb.swcs
QE notes: localization team should look at the spark swcs
Doc notes:
Bugs: sdk-23256
Reviewer:
Tests run: yes
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-23256
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/build.xmlThats good news.
Maybe you are looking for
-
How do I use my laptop download of elements 10
I recently had a hard drive crash on my desktop computer upon which I had installed elements 10,this drive had to be removed and scrapped and was replaced by the current HD on which I installed elements 10.At about the same time Installed elements 10
-
My ~/Documents folder is nearly empty! Gah!!
I was working remotely from my MacBook on a file that was on my iMac. My MacBook started complaining about disk space being full (which isn't true) and started beachballing for about 10 mins, so I forced a reboot. When it finally booted back up, I lo
-
Hi all, Dear abap experts, I have created 3 screens, one of which is to use as a temporary screen for the purpose of selecting value. In fact I want to make it exactly sap's screen that comes when clicked on the F4(possible values) button. How could
-
How do I make a network account a local admin?
I'm using Admitmac to get on a windows domain and every time I try to change the current logged in network account to be an admin the setting never stays, just reverts back to a network account. What do I need to do?
-
Jinstall 1.3.1 crash on Win NT 4.0 with
I created html file using converter from jdk1.3.1 . When jinstall starts downloading the JRE it crashes on Win NT 4.0 SP6 Thanks Leo Perlov