Not able to call procedure within procedure in HANA Studio

I am trying to call a procedure I made earlier in new procedure. I am getting error in same line no matter what I try. My original line was :
CALL "PAYROLLDBTEST"."ABS_GetEmployeeHistoryDetail"(:EmpID)
on this I got error "invalid name of function or procedure: ABS_GETEMPLOYEEHISTORYDETAILS: "
then I tried
CALL "PAYROLLDBTEST/ABS_GetEmployeeHistoryDetail"(EmpID)
on this I got error
"sql syntax error: incorrect syntax near "(":"
then I tried
call "_SYS_BIC"."PAYROLLDBTEST/ABS_GetEmployeeHistoryDetail"(:EmpID)
now I am getting
sql syntax error: incorrect syntax near "."
So please let me know whats wrong.
Thanks

To call a procedure in the SQL console the parameters have to be replaced by question marks (?).
CALL "PAYROLLDBTEST"."ABS_GetEmployeeHistoryDetail"(?)
Will work and ask you to enter the parameter value when you execute it in SAP HANA Studio.
- Lars

Similar Messages

  • Not able to use Procedure

    Hello Experts
    I’m trying to add a record into my table. I successfully created & complied a procedure (addnewrow). But I m not able to call this procedure. I used call addnewrow() and I had the following error.
    Error starting at line 1 in command:
    call addnewrow()
    Error report:
    SQL Error: ORA-06575: Package or function ADDNEWROW is in an invalid state
    06575. 00000 - "Package or function %s is in an invalid state"
    *Cause:    A SQL statement references a PL/SQL function that is in an
    invalid state. Oracle attempted to compile the function, but
    detected errors.
    *Action:   Check the SQL statement and the PL/SQL function for syntax
    errors or incorrectly assigned, or missing, privileges for a
    referenced object.
    Can please anybody show me how to call a procedure. Here is my procedure
    --ADD NEW ROW WITH RECORD
    create or replace PROCEDURE addnewrow as
    v_isbn books.isbn%type := '72390';
    v_category books.category%type := 'Advance Application Server';
    v_title books.title%type := 'OCM Level I';
    v_num_pg books.num_pages%TYPE := 340;
    v_copy books.copyright% TYPE := 2008;
    v_author1 books.author1%type := 2;
    v_author2 books.author2%type := 3;
    v_author3 books.author3%type := 4;
    begin
    insert into books
    values(v_isbn, v_category, v_title, v_num_pg, v_copy, v_author1, v_author2, v_author3);
    end;
    Thanks a lot in advance

    Thanks Frank & Peter for replies. Well I fixed the code as per your suggestion but still having the same problem. Infect I got a warning when i compile the procedure as follows
    Warning: execution completed with warning
    PROCEDURE addnewrow Compiled.
    Here is the procedure
    create or replace PROCEDURE addnewrow as
    v_isbn books.isbn%type := '72390';
    v_category books.category%type := 'Advance Application Server';
    v_title books.title%type := 'OCM Level I';
    v_num_pg books.num_pages%TYPE := 340;
    v_copy books.copyright%TYPE := 2008;
    v_author1 books.author1%type := 2;
    v_author2 books.author2%type := 3;
    v_author3 books.author3%type := 4;
    begin
    insert into books(ISBN, category, title, num_pages, price, copyright, author1, author2, author3)
    values(v_isbn, v_category, v_title, v_num_pg, v_copy, v_author1, v_author2, v_author3);
    end;
    Once again when i say call addnewrow();
    I got the following error;
    Error starting at line 1 in command:
    call addnewrow()
    Error report:
    SQL Error: ORA-06575: Package or function ADDNEWROW is in an invalid state
    06575. 00000 - "Package or function %s is in an invalid state"
    *Cause:    A SQL statement references a PL/SQL function that is in an
    invalid state. Oracle attempted to compile the function, but
    detected errors.
    *Action:   Check the SQL statement and the PL/SQL function for syntax
    errors or incorrectly assigned, or missing, privileges for a
    referenced object.

  • Not able to debug procedure using oracle 11g & toad 9.0.1.8

    hi..
    i m using oracle 11g & toad 9.0.1.8 ..i want to debug procedure , i set parameter, but not able to debug procedure , there is 'debug' option, but that option is disable..
    can u plz help me regarding this..
    can u suggest me another tool where i can debug my procedure..
    thanx..
    Edited by: user10502250 on Jun 22, 2009 4:15 AM

    "Help, About" should list the installed options, and "Debugger" should be in the list otherwise you'll need an expensive upgrade or a change of IDE.
    In TOAD you have to open the source code editor, at which point the debugging options should be accessible. You can either set a breakpoint and hit the 'Execute' lightening symbol, or place the cursor at a suitable point in the code and press F12.
    I'm not completely sure how you are supposed to pass runtime parameters but it may be to do with right-click, Action Console, Execute, which brings up a 'Set Parameters' dialog. However this won't run in debug mode, it just runs and remembers the arguments. I don't really get it. As you can probably tell I'm not a great fan of the product. Have you looked at PL/SQL Developer?

  • Not able to call from India but I have credit

    I m not able to call to any landline and mobile still I have Skype credit and 120 min subscription plz help me

    lakhanpandey wrote:
    I m not able to call to any landline and mobile still I have Skype credit and 120 min subscription plz help me
    Hello
    You are attempting to call within India which is no longer supported by Skype.
    https://support.skype.com/en/faq/FA34487/why-can-i-no-longer-make-calls-to-india-from-india
    p.s. You were flagged for duplicate posting which is not permitted. Please avoid in future. Duplicate post removed.
    Thank you.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • My tel Goes after 10 minutes offline, apears à enige Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    My tel Goes after 10 minutes offline, apears à enige Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    Hi Richard,
    You mentioned that 'Apple put the AirPrint spec out there for all printer makers'. I've been looking around but I haven't found any spec. Where did you find it?
    Do printer makers have to buy a license in order to be able to advertise that they've implemented the AirPrint protocol? Is there maybe an Apple review process in place?
    TIA
    Geert

  • My tel Goes after 10 minutes offline, apears à white Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    My tel Goes after 10 minutes offline, apears à white Apple, and i have to unlock again. People are not able to call me while THE Apple apears. Question what can be THE solution ?? It is à 3GS tel iOS 4.2.1

    Hi Richard,
    You mentioned that 'Apple put the AirPrint spec out there for all printer makers'. I've been looking around but I haven't found any spec. Where did you find it?
    Do printer makers have to buy a license in order to be able to advertise that they've implemented the AirPrint protocol? Is there maybe an Apple review process in place?
    TIA
    Geert

  • Manage bean methods not able to call application module methods

    Hi,
    I have an ADF application where in my managed bean method needs to call AppModuleImpl methods. I use the code as below:
    public void getSummary() {
    DCBindingContainer binding = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    OperationBinding op = binding.getOperationBinding("getVOData");
    op.execute();
    The code works fine when I run the application in my IntegratedWeblogicServer and I am able to get the data on my .jsp pages.
    I have installed weblogic server on another machine and I need to deploy and run my application on that server. But when I try doing that, the above code is not able to call the AppModule method and I see no data on my page (Also there is no error or exceptin thrown). Seems that the ViewController project is not able to interact with the Model project.
    Is there any extra configuration to be done on the newly installed weblogic server to get this work? Or will some change in the application code help?
    Please suggest.
    Thanks and regards,
    Ansh

    Hi,
    While creating the weblogic domain, we had the following checkboxes checked:
    1. Basic weblogic server domain [wlserver_10.3]
    2. Oracle JRF [oracle_common]
    I hope this is what we need.
    Yes, I also have the adf runtime installed.

  • Not able to call action method from the javascript

    I am using weblogic 10.3.2 portal.
    My requirement is to call a action in controller throuhg java script when user selects a different option in a dropdown.
    When try it we are not able to call it is returning null as a elementId. Below is the snippet of my code.
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
         var scope = document.getElementById("scopeOneSpan");
         alert("value====arv" + scope);
         //var form = document.getElementById(lookupIdByTagId(form,scope));
         //alert("value====arv" + form);
         var knoVal = document.getElementById(lookupIdByTagId(id,scope));
    alert("in method" + knoVal);
         </script>
    <netui:body>
    <span id="scopeOneSpan">
         <netui:form action="getBillDetails" >
         <netui:select dataSource="actionForm.selection" tagId="arvind" optionsDataSource="${actionForm.resDTO.kno}" onChange="SelectBANSubmit('arvind')"/>
              </netui:form>
         </span>
         </netui:body>
    </netui:html>
    Any help would be appreciated.

    Below is my code
    JS Code
    function fundemo(id)
    alert("so currently we are in fundemo function ");
         var scope = document.getElementById("scopeOneSpan");
    alert(scope);
         var check = document.getElementById(lookupIdByTagId('textbox1',scope));
    alert("check id is " + check.id + " and its value is "+ check.value);
    JSP Code
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-html-1.0" prefix="netui"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-databinding-1.0" prefix="netui-data"%>
    <%@taglib uri="http://beehive.apache.org/netui/tags-template-1.0" prefix="netui-template"%>
    <netui:html generateIdScope="true">
    <head>
    <netui:base/>
    </head>
    <script type="text/JavaScript" src="D:/testWS/testWebProject/WebContent/WEB-INF/js/test.js"> </script>
    <script language="JavaScript" type="text/JavaScript">
    function SelectBANSubmit(id)
    alert("In JS Method of the JSP File ");
    fundemo(id);
    </script>
    <netui:body>
    <span id="scopeOneSpan">
    <netui:form action="getBillDetails">
    <td >
    <netui:textBox dataSource="actionForm.selection" tagId="textbox1" />
    </td>
    <td>
    <netui:button type="button" onClick="javascript:fundemo('textbox1')" value="Test click"/>
    </td>
    </netui:form>
    </span>
    </netui:body>
    </netui:html>

  • Not able to call from the UAE.

    hi there ....
    I am calling from UAE. i have purchased india 800min pack but i am not able to call. Call connects very rarely and whenever it does so it drops automatically after 2-3 secs. Plz help me out.
    Regards,
    Solved!
    Go to Solution.

    Hello,
    It has been brought to our attention that our website has been blocked by one or more ISPs in the United Arab Emirates. Unfortunately there is very little Skype can do about this situation. The best course of action would be for you to speak to your ISP, ask why they are blocking Skype and request that they unblock our site.
    Thank you.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Re: Subscription renewed but not able to call

    Me too having the sme issue here. 
    My subscription starts from 18th of each May; though the subscription charge gets deducted 3 days before each time. And still not able to call even it is 18th May.
    Dear Skype representatives, can you please do the needful asap and solve our issues??

    Hello,
    Using some else's thread is not only unfair to the thread starter but can lead to confusion and cause difficulty for those who are trying to assist you.
    Your issue is different to that of the person(s) whose thread you infiltrated. Two issues are almost never identical. There are too many variables.
    Please start your own thread here.
    Thank you.
    Due to the time it can take for some transactions to be processed, we charge your bank or PayPal account three days in advance to ensure prompt delivery of your subscription. You don’t lose these three days: your subscription is still valid for the full period that you sign up for (one, three or 12 months).
    Although the recurring payment is taken three days in advance to avoid possible delays, your subscription minutes are reset based on the initial purchase date and time.
    Minutes are added to Plans at or about midnight UTC/GMT on the due date.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Some time i am not able to call from iphone 6

    Some time i am not able to call from iphone 6 i have already talked with with my serviceprovider but they not able to find any problem.fom yesterday my outgoing has been stopped again

    Please give me a reply.last 24 hrs i am not able to call anyone from my phone

  • Not able to call on any mobile number even credit ...

    not able to call on any mobile number even credit is there in account 

    Hi,
    Please check your usage call history on your Skype web account page to learn why the calls failed: www.skype.com/go/myaccount
    Follow the latest Skype Community News
    ↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓

  • Svg - xml - why am i not able to call javscript function?

    I just created a sample svg file for displaying a menu. I wanted to change the background onClick/onMouseOver. The problem is it is not able to call the javascript function embedded in that???
    tnx in advance.
    Kalyan
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
    <svg width="500" height="25" onload="change(evt);"><!--viewBox="0 0 100 100"-->
    <!--<script language="JavaScript1.2"><![CDATA[
         function change(evt) {
              alert("fdsf");
              svgdoc = evt.getCurrentNode().getOwnerDocument();
              svgdoc.getElementById("menu1rect").style.visibility="visible";
              svgdoc.getElementById("menu1text").style.visibility="visible";
    ]]></Script>
    -->
         <rect style="fill:#336699" x="0" y="0" width="500" height="25" rx="12" ry="12"/>
         <g id="text1" width="100px" style="width:100px; height:20px;cursor:hand">
              <a xlink:href="JavaScript:alert('Clicked Upload XML !');change(evt);">
              <text x="45" y="15" style="font-size:8pt; fill:white; text-anchor:middle" onMouseOver="change(evt);">Upload XML</text>
              </a>
         <rect id="menu1rect" style="fill:#FFFFFF;stroke:#336699; visibility:hidden" x="0" y="0" X="350" Y="15" width="100" height="25" rx="12" ry="12"/>
         <a xlink:href="JavaScript:alert('Clicked Upload XML !')">
              <text id="menu1text" x="45" y="15" style="font-size:8pt; visibility:hidden;fill:#336699; text-anchor:middle">Upload XML</text>
         </a>
         </g>
         <a xlink:href="JavaScript:alert('Clicked Upgrade Version !')" style="width:100px; height:20px">
              <text x="150" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Upgrade Version</text>
         </a>
         <a xlink:href="JavaScript:alert('Clicked Item Search !')">
              <text x="250" y="15" style="font-size:8pt; fill:white; text-anchor:middle">Item Search</text>
         </a>
    </svg>

    The script language type should be text/javascript when it is used in a svg!!
    Kalyan

  • Not able to call action of a button

    Hi All
    RIght now i am facing a very strange issue.
    In my applictaion if on my page i drop a buttion and add action for that button.
    If i add a SOP(System.out.println()) in that action i am able to see that in my back end means action is called. But on one specific page when i add a button and add action its not working.
    I am not able to see the SOP on a specific page means action is not called.
    Any idea why button on that specifci page is not called ?
    Thanks in advance,
    Vikas

    Which page?
    Which jdev version?
    Which UI technology you are using?
    What's the difference to the other pages?
    How do you get to the page in question?
    Timo

  • Not able to call BPEL web service using RMI call from different machine

    Hi,
    1. I have created a smiple Helloworld asynchoronous BPEL process
    2. I am able to call that BPEL process using java program (RMI call) which I have written in JDeveloper 10.1.3.3 and the java program is running in the embeded OCJ4 instance of JDeveloper sucessfully.
    3. Now I am trying to run the same Java program in my unix machine where oracle application is installed.
    4. I have set all the CLASSPATH for required jars which I have used in JDeveloper and also kept the jar file in Unix machine.
    5. The java codes are complied successfully.
    6. But when I am trying to run it , getting the following exception:
    bash-3.00$ java HelloworldAsyn
    name is Debkanta
    property file data are: {java.naming.provider.url=opmn:ormi://172.18.19.169:6003:home/orabpel, java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory, orabpel.platform=ias_10g, java.naming.security.principal=oc4jadmin, java.naming.security.credentials=welcome1}
    hello3
    java.lang.Exception: Failed to create "ejb/collaxa/system/DeliveryBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/system/DeliveryBean not found
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:52)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:279)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryBean(BeanRegistry.java:293)
    at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:250)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:174)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.java:149)
    at HelloworldAsyn.main(HelloworldAsyn.java:64)
    bash-3.00$
    I need to solve it urgently. Can anyone please help me.
    Is it relaed to some user access issue in unix?
    Thanks & Regards
    Deb
    Message was edited by:
    user587916

    actually , I have laready given print stataement for the data in the context property file that you can see in the output. Today I am also able to call the bpel process using the same java program from my DOS command promt(cmd). Don't understand why the problem is occuring in unix.
    please help.

Maybe you are looking for

  • I want to update my OSX 10.6.8 to Yosemite.

    I want to update my OSX 10.6.8 to Yosemite. My MacBook 7.1 fits the requirements. But when I download 10.10.1, it says that 10.10 is required. Is there a way around this? I want all my MacBooks using 10.10.1 now. Thanks!

  • How do you add chapter markers to your podcast?

    Does anyone know how to add chapter markers to a podcast so that listeners can skip to the section they are interested in? And how to change the artwork as the chapters change?

  • How to get file name in adapter module

    Hi all Is it possible to get the file name in a adapte module? If so how can I achieve this?

  • IPhone Liquid Submersion Sensor and Dead Pixels

    Today I went down to my carrier HQ. (Singtel, Singapore). I went to spoke to the person at the iPhone servicing counter. He told me that my iPhone Liquid Submersion Sensor has been triggered and it's now out of warranty. And my purpose is there, to h

  • GIVING Gift Certificates

    Suddenly (with iTunes 7) the ability for me to surprise my daughter with a $$ gift to her iTunes account is gone. Now it appears that you can only do it by email or snail mail or set up an "allowance"... what's the deal with that?