Not able to execute the procedure

Hi everybody,
I am trying to execute a procedure as below,
CREATE OR REPLACE procedure test1(n1 IN number, n2 IN number, tot OUT number)
is
i number := null;
begin
loop
if n2>n1 then
i:=i+1;
tot:=n1+i;
dbms_output.put_line(tot);
elsif n2<n1 then
dbms_output.put_line('Enter a higher value for n2');
end if;
end loop;
end;
All im trying to do is to print the numbers according to the values we give during the runtime, but doesn't seem to work for me.
ie.,
n1=1;
n2=5;
tot = 1,2,3,4,5;
I am sorry if there are some error's in the procedure and would really appreciate if you can help me with this. Thanks in advance for your help.
Edited by: Pravin on 31 Aug, 2010 2:25 PM

When i run the procedure now,
CREATE OR REPLACE procedure test1(n1 IN number, n2 IN number, tot OUT number)
is
i number := null;
begin
loop
if n2>n1 then
i:=i+1;
tot:=n1+i;
dbms_output.put_line(tot);
elsif n2<n1 then
dbms_output.put_line('Enter a higher value for n1');
end if;
exit;
end loop;
end;
set serveroutput on;
variable tot number;
execute test1(1,4,:tot);
print tot;
Im getting output as,
PL/SQL procedure successfully completed.
tot
Nothing is getting printed now. Any reasons for it. I would like to appreciate everybody's help, by the way. Hope we will find a solution.
Edited by: Pravin on 31 Aug, 2010 2:40 PM

Similar Messages

  • We are not able to execute below procedure, plz help me ASAP.

    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
    V_VITALCHARTING VARCHAR2,
    V_DOCIDPATIENTS VARCHAR2,
    v_fromdate varchar2,
    v_todate varchar2) AS
    D1 VARCHAR2(500);
    D2 VARCHAR2(500);
    G1 VARCHAR2(500);
    R1 VARCHAR2(500);
    R2 VARCHAR2(500);
    R3 VARCHAR2(500);
    R4 VARCHAR2(500);
    R5 VARCHAR2(500);
    H1 VARCHAR2(500);
    H2 VARCHAR2(500);
    V_COUNT NUMBER;
    RC VARCHAR2(100);
    RMI VARCHAR2(100);
    RMAX VARCHAR2(100);
    R12 VARCHAR2(500);
    REQ NUMBER;
    V_MAX number;
    v_idcount number;
    RSEQ NUMBER;
    RCH VARCHAR2(500);
    BEGIN
    INSERT INTO TEMPDATA
    SELECT ROWNUM G, TIME1
    FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
    'DD/MM/YYYY') BETWEEN
    TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
    TO_DATE(V_TODATE, 'DD/MM/YYYY'));
    SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
    V_IDCOUNT := 0;
    WHILE V_IDCOUNT < V_MAX loop
    FOR J IN (SELECT id, ROWNUM G, vdate time1
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    D1 := D1 || 'COL' || J.G || ',';
    D2 := D2 || '''' || J.TIME1 || '''' || ',';
    END LOOP;
    D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
    D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
    DBMS_OUTPUT.PUT_LINE(d1);
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
    V_IDCOUNT || ',' || D2 || ')';
    --EXECUTE IMMEDIATE G1;
    DBMS_OUTPUT.PUT_LINE(d1);
    DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
    DBMS_OUTPUT.PUT_LINE(G1);
    EXECUTE IMMEDIATE G1;
    FOR K IN (SELECT id, ROWNUM G, vdate time2
    FROM (SELECT id, ROWNUM, VDATE
    FROM TEMPDATA
    WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
    FOR I IN (select s.*, rownum hslno
    from (SELECT v.CHARTNAME,
    v.PARAMETERNAME_CS,
    ' ' || v.PARAMETERNAME PARAMETERNAME,
    TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
    CASE
    WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
    CASE
    WHEN TO_NUMBER(d.recordedvalue) <
    TO_NUMBER(D.MINVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'L')
    ELSE
    CASE
    WHEN TO_NUMBER(d.recordedvalue) >
    TO_NUMBER(D.MaxVALUE) THEN
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'H')
    ELSE
    decode(d.recordedvalue,
    null,
    d.recordedvalue,
    d.recordedvalue || ' ' || 'N')
    END END ELSE d.recordedvalue END IMAGECHAR,
    d.minvalue,
    d.maxvalue,
    D.UOMCODE
    FROM VIEW_PATIENTCHART V,
    chartingtxheader H,
    chartingtxdetails D
    WHERE h.docid = d.docidchartingtxheader
    and v.VITALCHARTING_PK = h.docidvitalcharting
    and v.VITALPARAMETER_PK = d.docidvitalparameter
    and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
    and H.DOCIDPATIENTS = V_DOCIDPATIENTS
    ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
    -- v.PARAMETERNAME_CS,v.PARAMETERNAME
    ) s
    where s.time1 = k.time2) LOOP
    select count(1)
    into v_count
    from GETDATA2 d
    where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
    and PARAMETERNAME = i.PARAMETERNAME
    and idcount = v_idcount;
    IF V_COUNT = 0 THEN
    RCH := I.CHARTNAME;
    R1 := 'COL' || K.G;
    R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
    R3 := '''' || I.PARAMETERNAME || '''' || ',';
    R4 := '''' || I.IMAGECHAR || '''';
    RC := '''' || I.CHARTNAME || '''' || ',';
    RMI := '''' || I.minvalue || '''' || ',';
    RMAX := '''' || I.maxvalue || '''' || ',';
    R12 := '''' || I.UOMCODE || '''' || ',';
    SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
    H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
    ' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
    EXECUTE IMMEDIATE H1;
    ELSE
    R5 := 'COL' || K.G;
    R4 := '''' || I.IMAGECHAR || '''';
    H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
    'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
    ' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
    EXECUTE IMMEDIATE H2;
    END IF;
    END LOOP;
    end loop;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
    ' -- ' || maxvalue || ') ' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue != 0
    and maxvalue != 0;
    UPDATE getdata2 s
    set s.parametername = s.parametername || ' -' || UMCODE
    where s.parametername is not null
    and idcount = v_idcount
    and minvalue = 0
    and maxvalue = 0;
    UPDATE GETDATA2 S
    SET S.PARAMETERNAME_CS = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY PARAMETERNAME_CS)
    and idcount = v_idcount;
    UPDATE GETDATA2 S
    SET CHARTNAME = NULL
    WHERE ROWID NOT IN (SELECT MIN(ROWID)
    FROM GETDATA2
    WHERE idcount = v_idcount
    GROUP BY CHARTNAME)
    and idcount = v_idcount;
    UPDATE getdata2 s
    set s.parametername = ' PARAMETER'
    where s.parametername is null
    AND S.PARAMETERNAME_CS IS NULL;
    v_idcount := v_idcount + 8;
    D1 := null;
    d2 := null;
    end loop;
    for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
    FROM GETDATA2 G
    WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
    INSERT INTO GETDATA2
    (IDSLNO, PARAMETERNAME)
    VALUES
    (I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
    END LOOP;
    update GETDATA2 h set h.PARAMETERNAME_CS = null;
    update GETDATA2 h set h.chartname = rcH;
    INSERT INTO GETDATA1
    SELECT CHARTNAME,
    PARAMETERNAME_CS,
    PARAMETERNAME,
    COL1,
    COL2,
    COL3,
    COL4,
    COL5,
    COL6,
    COL7,
    COL8,
    COL9,
    COL10,
    MINVALUE,
    MAXVALUE,
    UMCODE
    FROM GETDATA2
    ORDER BY IDSLNO;
    OPEN RPT_CURSOR FOR
    SELECT * FROM GETDATA1;
    END;
    CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
    as
    type RPT_RESULTS is REF CURSOR;
    type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
    END RPT_PACKAGE;
    Execute
    declare
    type my_newcursor IS REF CURSOR;
    begin
    GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
    end;

    Parwez wrote:
    Dear All
    I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
    see a picture of my car.
    my car won't go.
    tell me how to make my car go.
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • I am not able to execute the transport.send(message)

    I am not able to execute the transport.send(message) when trying for sending mail. I am getting error like this : -
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: 10.175.80.50, port: 25;  nested exception is: java.net.ConnectException: Connection timed out: connect
    Please help me on this to resolve this issue asap. thanks

    Hi Vinod,
    public void SendMail( )
        //@@begin SendMail()
              // Specify the host name of the mail server
              String host ="----
              IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
              // Initialize Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              props.put("mail.smtp.auth", "true");
              Authenticator auth = new Auth();
              Session session = Session.getInstance(props, auth);
              // Create new MimeMessage
              MimeMessage message = new MimeMessage(session);          
              try
                    // Set the From Address
                    String from = wdContext.currentContextElement().getCtx_From();
                   message.setFrom(new InternetAddress(from));
                   //  Set the To Address
                   String to = wdContext.currentContextElement().getCtx_To();     
                   Address ar[] = new Address[1];
                   ar[0] = new InternetAddress(to);
                   message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   // Set the Subject
                   message.setSubject(wdContext.currentContextElement().getCtx_Subject());
                   //  Set the Text               
                   message.setText(wdContext.currentContextElement().getCtx_Text());            
                   Transport tr = session.getTransport("smtp");
                   tr.connect("Put again here Host Name", Port Noumber, "userid", "password");               
                   tr.sendMessage(message, ar);
              }catch (AuthenticationFailedException e){
                   messageMgr.reportException(e.toString(),false);
              }catch (AddressException e)     {
                   messageMgr.reportException(e.toString(),false);
              } catch (MessagingException e) {
                   messageMgr.reportException(e.toString(),false);
              }catch (Exception e){
                   messageMgr.reportException(e.toString(),false);
        //@@end
    And also create the class Auth() like
    public class Auth extends Authenticator {
         public PasswordAuthentication getPasswordAuthentication()
              String username = "userID";
              String password = "Passwod";     
              return new PasswordAuthentication(username,password);     
    Please check it i think i will work. Also please use constant value for the to, from, subject and text.

  • Not able to execute a procedure from Process

    Hi
    I have created a Tabular Form type region.
    And I have created a Database procedure to insert records into some other table.
    Inorder to execute this procedure I was trying to create a PL/SQL Page process.
    When I am trying to enter the procedure details it is giving below error.
    1 error has occurred
    ORA-06550: line 3, column 1: PLS-00201: identifier 'XXSURCHARGE_PKG.INSERT_INTO_MAIN' must be declared ORA-06550: line 3, column 1: PL/SQL: Statement ignored
    But I am able to create a page process with same procedure in another application.
    Is there any restrictions on Tabular Form type regions.
    Regards
    Kiran Akkiraju

    Hi
    I am able to find out the problem. Application was created on a particular Schema and procedure was created another schema. So, there was a permission issue.
    Regards
    Kiran Akkiraju

  • Not able to execute the explain plan in development.

    Hi In TOAD when try to click "Explain plan current statement." icon, I getting the below error message. ORA-00604: error occurred at recursive SQL level 1 ORA-01950: no privileges on table space 'DEFAULT_DATA' can anybody give some idea to solve this issue?

    Is this a new user?  You could be running out of quota.
    Ask your DBA to user on that tablespace.
    Alter user <username> quota unlimited on DEFAULT_DATA;
    OR
    Title
    When I do an Explain Plan, I get the error: ORA-00604: error occurred at recursive SQL level 1 OR 
    Description I get the error below when I run / execute an Explain Plan.ORA-00604: error occurred at recursive SQL level 1 ORA-01536: space quota exceeded for tablespace ‘USERS’ (not same but similar)
    Resolution Ensure the Plan Table your Toad is using exists, valid, and can use enough space in the tablespace or give unlimited tablespace rights. Setting Toad to use the PLAN_TABLE from SYS schema via View menu | Toad Options | Oracle | General | Explain Plan can resolve the issue as well.

  • Not able to execute the Method on 64 Bit OS

    Hello All,
    We are compiling the plug-ins for InDesign Server CS3 on XP which has 32 bit Operating system. These plug-ins work fine if the InDesign Server CS3 is also installed on 32 Bit OS.
    But if the InDesign CS3 server is installed on 64bit OS the plug-in method is not invoked also it displays a message as method not found.
    Do we need to compile the plug-in in a specific manner to make it work on 64 Bit OS or it should work as it is.
    Thanks for all the help in advance.
    Regards
    Farzana.

    Hi, 
    Anyone have a solution for this?   I am experiencing the same thing - QC can connect to QTP on VM if I have a remote session open to the VM, but if not I get the error mentioned.
    Also using QTP 11 and QC/ALM 11.

  • I am not able to execute the following code....Help me ...I am a beginner

    REPORT  YCL_TEST1                               .
    tables : pernr.
    data : pn_begda type p0001-begda,
           pn_endda type p0001-endda.
    infotypes : 0001, 0002, 0006.
    get pernr.
    provide * from p0001
    from p0002 between pn_begda and pn_endda.
    write : p0001-sprps, p0006-locat.
    endprovide.

    Hi
    When you use the Statement <b>get PERNR</b>. This referst to the Logical Database.
    Define the Logical Database in the attributes of your program and you should not face this error.
    Hope this helps and welcome to SDN

  • PLS-00201: Not able to execute Oracle Package through Java app

    Hi,
    My struts application is trying to execute an oracle procedure (in a package) and is getting following error.
    I have granted execute priveledge to the user using "Grant execute on <package name> to <user>"
    Also, I am able to execute the procedure through this user in sqlplus.
    I am using Oracle thin driver for JDBC.
    Please guide.
    +06:36:17,500 ERROR [STDERR] java.sql.SQLException: ORA-06550: line 1, column 7:+
    PLS-00201: identifier 'uhbvn_public.GENSYSLOGIN' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2709)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)+
    +06:36:17,500 ERROR [STDERR] at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:656)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.execute(WrappedPreparedStatement.java:209)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.ejb.common.utility.DBUtilitiesBean.callProc(DBUtilitiesBean.java:390)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.sysadmin.ejb.business.SysLoginBO.getSysLoginUserInfo(SysLoginBO.java:57)+
    +06:36:17,500 ERROR [STDERR] at wenrgise.sysadmin.ejb.facade.SysLoginFacadeBean.getLoginInfo(SysLoginFacadeBean.java:37)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +06:36:17,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:592)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:960)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +06:36:17,500 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +06:36:17,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:592)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)+
    +06:36:17,500 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)+
    +06:36:17,500 ERROR [STDER+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    What part of
    identifier 'uhbvn_public.GENSYSLOGIN' must be declareddon't you understand?

  • Why two different users from same login group not able to access the database object(stored procedure)?

    I have SQL login group as "SC_NT\group_name" in server. There are multiple users using this login group to access database objects. User "A" can able to access db object(stored_procedure_1) from .net application. But when user "B"
    tried to access same db object(stored_procedure_1), its showing like
    Error: The EXECUTE permission was denied on the object 'stored_procedure_1', database 'test',schema 'dbo'. 
    Both the users are using windows authentication for access the objects. Could you suggest me the way to resolve this?
    Venkat

    Thanks for your response
    Erland Sommarskog....
    my stored procedure "stored_procedure_1"
    does not has any granted permissions to execute. But still user A
    able to execute the sp from UI, where user B not able to do it.  If any permission provided for a particular object, then only it will display in the above query whatever u have given.  
    Any other possibilities??
    Venkat G

  • SECATT - Not able to see the screen shots

    Hi All,
    I am trying to execute the SECATT for one of the testing of HR, but I am not able to see any of the screen shots in downloaded folder.
    While executing the test script I had selected the check boxes
    1) Save Screen shots
    2) Before User Inputs
    3) After user Inputs
    I am able to see the folder created after each executiion of the test script, but not able to see the screen shots in any format (like some of the blogs mention that screen shots will be in JPEG or in BMP format).
    We are on ECC6.0 EHP7 and we are using the sap GUI 730.
    Kindly Suggest.
    Regards,
    Umesh Chaudhari.

    Hi Umesh,
    I suspect that one of the below mentioned option is the reason for not getting the screen shots.
    1. It could be something to do with the SP level that you have.
    2. It could be because of a different path mentioned in Screenshot Path (default or user specific).
    3. The default path for the file containing the external variants is specified in the user-specific settings. 
    Procedure
      1.  From the menu in eCATT or the ABAP Workbench (transaction SE80), choose Utilities → Settings.
      2.  On the eCATT tab, choose the relevant tab and make the required changes.
    Path for Screenshots
    You can specify the default path for screenshots taken during the replay of SAPGUI commands.
    Regards,
    PB

  • Not able to see the changes in log

    Hi All,
    I have a question here. Audit log is enabled as well as changes lofs is also enabled in my system ECC 6.0. Suppose i have changed some table entry via SE16, i mean i have updated a table via SE16, but i am not able to track the changes in SM20 or SCU3. the logs only shows that i have executed the transation but there is not any evidence of which table i have updated the entry, Is there any way to find out this in SAP in my scenario?
    Regards,
    Subhash

    Got it, Table was not in Authorization group so it was not showing the data updation information, after assigning the table into Auhtorization group now i am able to see the updated records for that table in SCU3

  • Report exection problem for one user - not able to see the data.

    Hello Friends ,
    Need some help . I have got the one ticket from bussniess side about the report execution .
    Unfortunately , I am also not having authorisation of that report due to sensible data.
    Problem - User is executing the report but some how he is not ABLE TO see the data for one company code Hierachy .
    I executed the same report through RSSMQ via his user id , and I got the  below message.
    All value were selected . Hierachy Authorisation cannot be used.
    A displayed hierachy requier a hierachy authorisation .
    But when i checked his authorisation , I am able to see that he should have authorisation to all the hireachy .
    could you please let me know , how can I check more ?
    Regards,

    after accessing the report , u go to su53 tcode and check the authorization and u can see what is problem in authorization for the that user and u can send the details to secuity team to rectify the issue ,

  • Problem Using HTTP Dispatcher -- Could Not able to get the data in JSP

    Hi, I am using HTTP Dispatcher to send my events to particular URL which is a JSP page. I am trying to populate the received event through URL and populate to a oracle data base. But could not able to get the data in Oracle database.
    Code is :
    <h1>JSP Page</h1>
    <%
    long type = 0;
    String tagId = null;
    String timeStr = "0";
    String deviceName = "";
    // Get Event Parameters
    // Available Parameters: id, siteName, deviceName, data, time, type, subtype, sourceName, correlationId
    try
    type = Long.parseLong(request.getParameter("type")); // Get type
    tagId = request.getParameter("id"); // Get tagId
    timeStr = request.getParameter("time"); // Get time
              deviceName = request.getParameter("deviceName");
    catch (Exception e)
    out.println( "Error: "+e.getMessage() );
              // Write into DB.
              try {
              if ((tagId == null) || (type != 200) ){
                   // Do Nothing
                   //return;
              } else {
                   OracleDataSource ods = new OracleDataSource();
                   String URL = "jdbc:oracle:thin:@//3.235.173.16:1525/vislocal";     
                   ods.setURL(URL);
                   ods.setUser("cus");
                   ods.setPassword("cus");
                   Connection myConn = ods.getConnection();     
                   Statement stmt = myConn.createStatement();
                   String selectQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads ";
                   ResultSet rs = stmt.executeQuery(selectQuery);
                   String maxId = "1";
                   if (rs.next()) {
                        maxId = rs.getString(1);               
                   String selectMaxTagIDQuery =
                             "SELECT MAX(rfid_raw_reads_id) as max_id FROM "+
                        "cus.rfid_raw_reads WHERE tag_id = '" + tagId + "'" ;
                   stmt = myConn.createStatement();
                   rs = stmt.executeQuery(selectMaxTagIDQuery);
                   String maxTagId = "1";
                   if (rs.next()) {
                        maxTagId = rs.getString(1);               
                   long primaryKey = 1;
                   long tagKey = 1;
                   try {
                        primaryKey = Long.parseLong(maxId) + 1;
                        tagKey = Long.parseLong(maxTagId) + 1;
                   } catch (Exception e) {
                   long currentTime = System.currentTimeMillis();
                   long updateKey = (tagKey - 1);
                   String updateQuery = " UPDATE cus.rfid_raw_reads SET read_end_time = " + currentTime + " WHERE rfid_raw_reads_id = " + updateKey;
                   Statement updateStmt = myConn.createStatement();
                   updateStmt.execute(updateQuery);     
                   String query =
                        "INSERT INTO cus.rfid_raw_reads (rfid_raw_reads_id, tag_id,device_name,read_start_time) VALUES ("+ primaryKey + ",'" + tagId + "'," + deviceName + "'," + System.currentTimeMillis() + " )" ;
                   Statement insertStmt = myConn.createStatement();
                   insertStmt.execute(query);     
                   myConn.commit();
                   myConn.close();
              } catch (Exception e) {
    %>
    <p>For browser debug:
    <%
    out.println( "Type="+type+" ID="+tagId +" time="+timeStr );
    %>
    Kindly suggest where is the problem...
    Thanks and regards
    Mohammad Nasim Akhtar

    HI Prabhat,
    Thanx for your reply, I worked out and able to receive the data in oracle database, Actually there was some problem in insert Query. Now I have tested the same... and able to edit the same in the Database.....
    But I am facing a new problem, Http Dispatcher in SES console is displaying all the Events generated as well as event in Que but there is no events in the Event Send. I guess it is not able to send the events.....?????
    Event statical is showing like this
    Events Received: 0 (0.00/sec)
    Events Generated: 311 (0.19/sec)
    Events Sent: 2 (0.19/sec)
    Queued Events: 309 (0.19/sec)
    Kindly suggest where is the problem, Is it a JSP problem or OSES end problem.....
    Thanks and regards
    Nasim

  • Not able to get the data in PE51

    Dear Freinds,
                  I have copied similar to the standard in IN01 , in the Pe51> Windows i have kept under W1 all the wage types which comes under earnings and when i execute the payslip   i.e  in the simulation run and when i view the form i can see
    only the wage types but i dont find the correspnding amounts agains each wage type. Please could any one help me
    why iam not able to get the amount agains the wge type?
    regards
    divya.

    Hi,
    I think u might have done some mistakes while configuring PE51 in cumulation ID ..........
    First of all as Siki said check ur master data whether the WT has given in IT 0008 and corresponding amounts entered to the resp WT. if it is ok then check the pe51 config once........
    go to pe51 give ur form name and select cumulation IDs go to change mode and double click on Earnings and see whether the data is maintained in this manner or not .......
    Table = RT ,   ID = your WT code ,    MS = + (sign)   ,  Dsplit = * (sign),      rest all coulumn leave blank ........ save it and then again run the payrl in Live mode and see the Pay slip.........
    If any problem Pls let us know.... and see other gurus post also.
    Regards,
    Prashant

  • Not able to get the connection to mssql server thro native sql

    Dear Experts,
               I have created a database connection to mssql server thro DBCO t.code.Am not able to get the connection when i am executing Native SQl for geting connection of mssql server.
    DATA: CON_NAME LIKE DBCON-CON_NAME VALUE 'BIW'.
    EXEC SQL.
      CONNECT TO :con_name AS 'C1'
    ENDEXEC.
    Am always getting sy-subrc = 4. The user name and password i have given in dbcon table having full authorization to access mssql database. I am working SAP ecc 5.0. Also both servers are running in windows.
    could anyone hlep me on this issue.
    Thanks in advance.

    Hello, the submitted error must be analyzed according to the Syntaxis and characteristics of the MSSQL database. See explanation of error.
    http://doc.ddart.net/mssql/sql2000/html/trblsql/tr_reslsyserr_1_1o1i.htm
    Error 156
    Severity Level 15
    Message Text
    Incorrect syntax near the keyword '%.*ls'.
    Explanation
    This error indicates that the syntax of a Transact-SQL statement is incorrect and that the syntax error was detected near the keyword specified in the error message. The most frequent causes for syntax errors are misspellings of Transact-SQL keywords or operators, and specifying the syntax of a Transact-SQL statement in the wrong order.
    One of the more complicated causes for this error may be a compatibility level mismatch for the current database. If the current database has a compatibility level other than 70, Microsoft® SQL Serveru2122 will not recognize any of the keywords that a database with a compatibility level of 70 would recognize.
    Action
    First, check the Transact-SQL statement syntax near the keyword specified in the error message. Because Transact-SQL language syntax can be very complex, SQL Server may incorrectly report the position of the syntax error as later in the Transact-SQL statement than it actually occurred. Second, reexamine the entire Transact-SQL statement that generated the error. Verify the syntax order of the statement.
    Ensure that the database does not have a compatibility level of 65 and has a compatibility level of 70.

Maybe you are looking for