How to view SYS_REFCURSOR output parameters in TOAD

Hi Team,
Here is my procedure which was compiled succesfully...
procedure SLA_FAILURE_PR_SR(
startdate_i IN DATE,
enddate_i IN DATE,
pacifictimezone_i IN VARCHAR2,
extranet_user_i IN VARCHAR2,
severity_i IN NUMBER,
reportRC_o out sys_refcursor
IS
BEGIN
logpkg.info ('Begin ramOpsReportSummaryPkg.SLA_FAILURE_PR_SR');
open reportRC_o for
SELECT
customer "Client",
case_id_ "Case ID",
to_char(aradmin.datepkg.unixTimeToDate(create_time, 'PST', 'Y'),'MM-DD-YYYY HH12:MI:SS PM') "Created",
to_char(aradmin.datepkg.unixTimeToDate(resolved_time, 'PST', 'Y'),'MM-DD-YYYY HH12:MI:SS PM') "Resolved",
total_downtime__min_ "Down Time",
assigned_to_group_ || ' ' || ASSIGNED_TO_INDIVIDUAL_ "Group Assigned",
reason_for_missed_sla "Reason For Miss",
assigned_to_group_ "Group That Missed",
internal_mgmt_summary "Ops Mgmt summary",
follow_up_proactive_actions "Follow-Up Proactive Actions"
FROM aradmin.hpd_helpdesk
WHERE
create_time >= datepkg.dateToUnixTime(TO_DATE(startdate_i,'YYYY-MM-DD'),pacifictimezone_i)
AND create_time < datepkg.dateToUnixTime(TO_DATE(enddate_i,'YYYY-MM-DD')+7,pacifictimezone_i)
AND extranet_user=extranet_user_i
AND severity = severity_i
AND (MET_RESOLUTION_SLA_=0 or MET_CONTACT_SLA_=0);
logpkg.info ('END ramOpsReportSummaryPkg.SLA_FAILURE_PR_SR');
END SLA_FAILURE_PR_SR;
--The query inside cursor is fetching results. but i couldnt get the results when i executed whole procedure.
-- Can anyone help on this and give me the procedure how to execute it in toad. I am using oracle 10g and Toad 9.6 versions.

In Toad type:
BEGIN
    SLA_FAILURE_PR_SR(
                      DATE '02-01-2013', -- substitute with proper start date
                      DATE '02-18-2013', -- substitute with proper end date
                      'put pacifictimezone_i value',
                      'put extranet_user_i value',
                      1, -- substitute with proper severity
                      :ref_cur
END;
/Click on Execute/Compile Statement (green triangle). Variables dialog will pop-up. Choose variable type - cursor and direction out. Cursor content will be displayed in Data Grid pane (click on it to see results).
SY.

Similar Messages

  • How to view multiple output parameters from web services

    I have used the Labview tool to create a .NET assembly from a WSDL file.
    In the WSDL file the service has been defined to return 2 output parameters.
    In Labview, when I invoke the method for this service the first output parameter ends up as the return value of the method.  I can create an indicator for this and it gets updated properly when I run the VIS to use the web service..  The indicator is an integer value but recognizes the type defined within the WSDL file. 
    The second output parameter shows up as an output value.  When I right click on it and create an indicator for it I get a .NET icon on the front panel rather than an integer value. 
    How can I view the value for this second output parameter after running the web service?
    Is there a difference in how multiple output parameters handled in newer versions of Labview (I am using verison 7.1)?

    scrooge wrote:
    You can try this link .
    the link is dead... or i dont have access..

  • *** Urgent - How to view Cursor output in TOAD ***

    Hi,
    I know how to view the output of a sysref cursor that is an out parameter from an SP, in SQL*PLUS
    But is there a way to see the resultset of a cursor in TOAD?
    This is urgent.
    Thanks for the helping hands.
    Sun

    TOADs SQL Editor works (almost) the same as SQL*Plus.
    You can work with VAR's and PRINT's in the very same way as SQL*Plus.
    Furthermore you can do the following:
    - Write an SQL statement with a bound cursor (with colons)
    - right-click in TAODs Editor
    - check for SQL Substitution variables.
    - run the script (F9) and a substition pop up »pops up«, from where you can choose CURSOR.
    The results will show up in the Data grid.
    Note: I am working with TOAD ver. 9

  • 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.

  • How to allow multiple output parameters in a user-defined service operation???

    I have creating a self-defined service operation “LDAPAddUser” to connect to LDAP server to create user accounts. I want to get 2 output parameters after executing the operation. One is the result (Boolean data type) and one is the error message (String data type). However, since Java only support one return value in a method, it seems that only one output parameter can be returned. May I have the suggestion so that multiple parameters can be supported in this case? Here is the extracted code
    In Java program,
    public Boolean addUser(String url, String aName)
    In file "component.xml",
         <operation name="addUser" method="addUser" orchestrateable="true" anonymous-access="true">
      <hint>Add a new user</hint>
         <input-parameter name="url" type="java.lang.String" required="true" title="LDAP URL">
         </input-parameter>
              <input-parameter name="aName" type="java.lang.String" required="true" title="Admin Login Name">
         </input-parameter>
              <output-parameter name="Result" title="Result" type="java.lang.Boolean">
              </output-parameter>
    Besides the boolean return value, I want to get another return value (string data type). Any suggestion ?

    I've returned multiple values to LiveCycle by using a complex object as an intermediatory.
    For example if I need to return two strings (firstName and lastName), I'll first build a single class (name) with two string attributes (private String firstName; private String LastName) and add getters and setters to my "name" class for each.  My service class method will return an object of type "name".
    for example  public name mymethod(String GUID, String username, String password).......
    Then in the component.xml you can return the two strings as long as you use the binding type "Bean":
    <output-parameter name="firstName" title="First Name" binding-type="Bean" property="firstName">
                        </output-parameter>
    <output-parameter name="lastName" title="Last Name" binding-type="Bean" property="lastName">
                         </output-parameter>

  • How to view the output submitted by other user

    Product : EBS R12.0.4
    Plateform : RHEL AS 4.6
    I want to view the output submitted by other users. I have tested it for responsiblity level in which sysadmin can view the other users request but it is labour work. Can anyone suggest to view it with less work.
    Regards,

    Hi,
    you need to understand the new RBAC concept and the involved objects. Just to mention that Grants are here specific EBS-RBAC objects you have to deal with. You need to be sysadmin and functional Administrator to define and assign those objects. I know that the metalink note is short and could be longer, but all steps are right.
    If you ask mainly what you are doing by utilizing this notes, you are defining additional where clauses, internally added to the basic object (here concurrent requests) and additionally you are granting rights to get buttons enabled (log / out).
    If you need something else, just let me know.
    Regards
    Volker

  • How to manage optional output parameters in an object method ?

    Hi Abapers,
    I've a little coding point to clarify in object programming :
    I've defined an output method parameter as optional.
    I want to prevent execution error with the following test :
    IF et_my_ouput_paramer IS REQUESTED.
       APPEND LINES OF lt_my_data_found TO et_my_ouput_paramer . "*(or other value affectation, no matter)
    ENDIF.
    When activating the code, I obtain the following error :
    "IS REQUESTED" is allowed only with function parameters. This means
    that it is allowed only within the relevant function module and not
    with pure incoming parameters.
    Effectively, I usely use "IS REQUESTED" for module-function... What's the correct syntax in object method ?
    Thanks in advance.

    OK, guys, it was a very tricky and basic error...
    Sorry for this topic, I mistake in declaring type of my parameters.
    Keep programming Quietly !
    Have a nice day.

  • How to view purchase order output

    Hi all,,
    am an ABAPer..
    i have an issue with the purchase order...
    But before that, how to view the output of the purchase order..
    from transaction me23n..
    please let me know the procedure..
    thanks in adv..

    You can get the output from ME23n. You need to go in Change Mode (=ME22n) for the output. If it is SRM PO then you need to go the section of 'Process Purchase Order' and there you can generate the output. 'Process Purchase Order' will be available with the role of Operational Purchaser or Strategic Purchaser role.
    Reward points for helpfull answers.
    Regards, Satya

  • How to View Output From Customized Form

    I have developed a new customized form and attach it in Receipt Form Menu. I have added a button of Print Receipt on the form by name Print Screen.I have added code behind the Print Receipt Button that when it would be clicked report of receipt would be generated.When i click Print Receipt Buttton Request is submitted to Concurrent Manager and i have to view it from Concurrent Request Window.My requirement is when i click Print Screen Button output would be generated and viewable at that place and i dont need to go in concurrent request window to view and print that output.Is there any solution please suggest me.I am thankful in advance to all.

    Hi;
    Please check [this |http://forums.oracle.com/forums/forum.jspa?forumID=129] and see it helpful
    Also see:
    How to view the output submitted by other user
    How to customize look of a view
    Regard
    Helios

  • How to view background job output

    Hi experts,
      I excecuted one of my Z report in background mode, its finished successfully, i want to view the output. How to view this output.
      Otherwise to view this ourput only in Basis people or what? if its so i will contact the basis person. Otherwise give some idea how to view this output.
    Thnx,
    Mohana

    Mohana,
    Go to sm37
    give the job name or *
    give the username
    give the program name
    execute it
    now tick the program that you had executed in the background
    click on the spool button on the top
    You will get a ABAP list under the field type
    click it.
    You wil be able to see the output of the program that you  had executed in the background.When a program is executed in the background mode you will be able to see the output in the List Display mode and moreover you will be able to see at the max only 19 fields when a report is executed in the background.
    You can check the jobs that are running in the background and their status in the table TBTCO.
    Thanks,
    K.Kiran.

  • How to view Output Messages in the LabWindows UI?

    In my LabWindows/CVI I would like to view the output messages that are sent from sequences:
    "RunState.Engine.NewOutputMessage(Parameters.Messa​ge).Post()"
    I thought there might be a TS UI Control like the one in the sequence editor called Output - but I can't find one.
    So far I have managed to catch the message type (TS_UIMsg_OutputMessages) but I can't actually get the string from the event.
    Does anyone have an example of doing this?
    Thanks,
    Ronnie
    TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009

    Ok, let me see if I can explain how to do it more clearly then.
    1) Create a new OutputMessages collection using TS_EngineNewOutputMessages(). This collection will store your own private copy of the output messages. You can hold onto and add to this collection if you want to store them. If not you can just close the handle to free it once you are done with it.
    2) When you get the UIMessage you need to get the ActiveXData property of it. I think the CVI function should be called something like TS_UIMessageGetActiveXData(). The CAObjHandle you get back from this function is a different OutputMessages object that you should NOT hold onto (because of multithreading reasons), you should instead close the handle before returning back from your UIMessage handler. Before doing that though, you should use the TS_OutputMessagesCopyMessagesToCollection method to copy the messages from this OutputMessages object to the new one you created in step 1) above (i.e. you are making your own private copy of the messages and leaving the ones in the UIMessage unchanged (again, it is for multithreading reasons that it must be done this way to avoid race conditions).
    3) You now have a copy of the output messages from the event in your own private OutputMessages collection that you created in step 1) above. You can now access it to get the info for the output messages.  You can get the number of items it contains (and it might contain more than one), by using the TS_OutputMessagesGetItem() function and using CA_VariantInt(index) to package the integer that you pass for the index parameter.
    4) Getting the item gives you an OutputMessage object (notice no plural). You can get information about the output message using the methods and properties of the OutputMessage class (see the online help for more info). There is more to an output message than just the message text. There is also a timestamp, category, location, icon, id, severity, color, etc.
    If you need more information please let us know specifically what you are having trouble with or need more information about.
    Hope this helps,
    -Doug

  • How to copy the output of procedure to a view or table

    Hi...
    I created a procedure using Hana Studio and it returns the multiple rows as output.
    My query is , how to copy the output to a table or view when it is called like this "cal _SYS_BIC.procedureName "
    Please go through the following image:
    How to copy the output content to a table or view....
    Thank u...

    Hi Mohan,
    The logic is like, you can attach a view(so called column view) to any procedure which returns a result set. SO, instead of calling the procedure using CALL statement, you can simply query the VIEW to get the result set. Internally the procedure will be executed.
    Have a look here :
    http://help.sap.com/hana/SAP_HANA_SQL_Script_Reference_en.pdf
    Eg :
    You create a procedure using a result view ProcView to return its results.
    CREATE PROCEDURE ProcWithResultView(IN id INT, OUT o1 CUSTOMER) LANGUAGE SQLSCRIPT
    READS SQL DATA WITH RESULT VIEW ProcView
    AS
    BEGIN
    o1 = SELECT * FROM CUSTOMER WHERE CUST_ID = :id;
    END;
    You call this procedure from an SQL statement as follows.
    SELECT * FROM ProcView WITH PARAMETERS ('placeholder' = ('$$id$$', '5'));
    Hope this helps you to solve the issue
    Sreehari

  • How to view the purchase order output

    Hi all,
    how to view the purchase order output in the transaction me23n?
    How to obtain the purchase order output form?
    Please help..

    HI,
    goto NACE tcode then select the purchase order type and go to output types u cna use standard one NEU and provide the sapcript name and form name default will be there with MEDRUCK and print program.
    then in ME23n click on messages there create ur message type NEU and save it
    then print the purchase order...
    hope u get solved with this
    Regards
    Syed A

  • Output parameters or how to return more than one value

    My RMI server retrieves a list of Strings from the database. I need to return a status code int and an array of Strings to the RMI client. Does anybody have any ideas on how to do this. The only way I have come up with is to return an array of Strings using the first array position as the status code. But this is very ugly. There doesn't seem to be any way to have output parameters. I can use "output parameters" with code that lies in the same app by using wrapper classes or arrays but this does not really apply to a client and server running on different machines. Any ideas?

    Well, my general reaction is that you don't need a status code. (You can instead throw an exception if the status is anything but "OK".)
    However, on the assumption that you really DO need the status, then some alternatives are
    o Return an object that has a status code and an array as member variables.
    o In the call, pass in an object that the server can fill in with the array of strings. have the function return the status code.

  • How to view output of SAP Exit variables

    Hi All,
    I want to view the data of standard SAP Exit variables. For example, for displaying the current date, SAP has provided some variables to use in the report. Can you please guide me where to get all the variables and how to see the output of these variables.
    Thanks.

    Hi,
    1) In Business Content all the variable will available.
    2) If you will proper standard variable in your report, there is no need to check still you need to check then use RSRT tcode, give the report name and execute with EXECUTE+DEBUG option.
    3) for example current calender day data need in report then standard exit variable to you character sticks or depend upon same logic directly use in your key figure, in this case for that key figure value always current day date.
    4) it may helps you and elaborate your idea and explore your issue for further discussion.
    Thanks & Regards,
    Srinu.Raport

Maybe you are looking for

  • XML Publisher Report ends with Warning -- Invalid Character Error in XML

    Hi, I have migrated the standard report 'Invoice Print Selected Invoices' from Reports 6i to XML Publisher. It has to print a Euro(€) in the report. It does not even generate the XML File fully. It gives the below error in the XML File. When i remove

  • Remove Header text from a sales order, created with reference to quotation

    Hi all, I have a sales order(in VA01) which is created with reference to quotation (in VA21). If header text (Notes for logistics, Note for responsible person, Header text Doc & Declaration) in texts tab is maintained in the quotation they are gettin

  • Problem using BAPI to create Service Confirmation in CRM

    Good afternoon all. I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too. We are encountering a problem using a BAPI to create a transaction in CRM, specifically: I am trying to create a Service

  • Number of rows in DB

    To know the number of rows in a table, count(*) is used. It is fast to get the result if you directly type the command into MYSQL, but not in servlet. The codes I often used look like this way: ResultSet resultSet = stmt1.executeQuery("SELECT COUNT(*

  • BPS - Distribute with Reference data sender 2 reciever functionality

    Hi All,        I'm looking for some documentation on this planning function(Distribute with reference data / from sender to reciever).When I run this function I have problems finding the Reference data,although I have defined the refernce data correc