Error (120,9): PLS-00363:

Hello guys,.


I am facing an error while passing an out* parameter in a procedure call.

the error is:

Error (120,9): PLS-00363: expression '< expression >' cannot serve a purpose of assignment

and the code is:
create or replace
PROCEDURE usp_abc
(
v_pct in number  ,    
 v_pVt in number  ,
vr_payagainst ,
vr_Todate
) 
as 
begin
---
---
----
-------
usp_xyz (
        v_pTrantype=>vr_payagainst,
        v_pTrandate=>vr_Todate,
        v_pcd=>v_pct,
        v_pVd=>v_pVt,   
        *v_pLedgerID=>null*,-----------------> the  line generating error
        )
----
---
-----
---------
end;
the v_pLedgerID parameter in the usp_xyz procedure has been defined as

v_pLedgerID OUT NUMBER


could someone help me fix this bug...


Thank you very much

Try something in the sense of:

create or replace
PROCEDURE usp_abc
(
v_pct in number  ,
 v_pVt in number  ,
vr_payagainst ,
vr_Todate
)
as
  l_pLedgerID number;
begin
---
---
----
-------
usp_xyz (
        v_pTrantype,
        v_pTrandate,
        v_pcd,
        v_pVd,
        l_pLedgerID
        )
----
---
-----
---------
end;

http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:325417134618

Tags: Database

Similar Questions

  • Error PLS-00363

    Hello

    I have created a package, but compiling, I got pls-00363
    create or replace package OSAPI_NI as
    procedure my_proc(SID number, cod_prefix varchar2, numar varchar2);
    end OSAPI_NI;
    /
    show errors package OSAPI_NI;
    
    CREATE OR REPLACE PACKAGE BODY OSAPI_NI as
          procedure my_proc(SID number, cod_prefix varchar2, numar varchar2) is
          begin
            SID := null;
            cod_prefix := null;
            numar := null;
          end;
    end OSAPI_NI;
    LINE/COL ERROR
    -------- -------------------------------------------------------------------------
    4/5 PLS-00363: expression 'SID' can not be used as a target of assignment
    4/5 PL/SQL: statement ignored
    5/5 PLS-00363: expression 'COD_PREFIX' cannot be used as a target of assignment
    5/5 PL/SQL: statement ignored
    6/5 PLS-00363: expression "NUMAR" cannot be used as a target of assignment
    6/5 PL/SQL: statement ignored

    Why those who can not be null? This package is just for test...

    Thank you!

    Given that you do not specify the mode of the three parameters of my_proc procedure, Oracle takes the default value, which is in. You will need to define as OUT.

    CREATE OR REPLACE PACKAGE BODY OSAPI_NI as
          procedure my_proc(SID OUT number, cod_prefix OUT varchar2, numar OUT varchar2) is
          begin
            SID := null;
            cod_prefix := null;
            numar := null;
          end;
    end OSAPI_NI;
    
  • Error PLS-00363 while the parameters of the analysis and try to execute the proc

    Hello
    I have a procedure as below
    CREATE OR REPLACE PROCEDURE PBS_LOGIN ( pkullanici varchar2,psifre varchar2,P_KNO OUT NUMBER) is
    sonuc number(10);
    ygs number ;
    begin
    if ( psifre <> 'adminenter' or psifre is null ) then
    
        P_KNO := NULL;
        SELECT K.KNO INTO P_KNO
        FROM PERSONEL.KISI_SYS S,PERSONEL.KISI K
        WHERE K.KNO= S.KNO  AND K.IS_DURUMU in ('Çalisiyor','Beklenen')
            AND s.KULLANICI=PKULLANICI AND SIFRE=to_char(dbms_utility.get_hash_value(PSIFRE,155502,54684541))
            AND  S.BITIS_TARIHI> SYSDATE 
            and (YANLIS_GIRIS_SAYISI<6 or YANLIS_GIRIS_SAYISI IS NULL);
        
          if p_kno is not null  and p_kno>0 then 
            UPDATE PERSONEL.KISI_SYS S
            SET S.YANLIS_GIRIS_SAYISI=0
            WHERE KULLANICI=pkullanici;
          end if;
    else
         SELECT  KI.KNO INTO P_KNO FROM PERSONEL.KISI_SYS KI WHERE KI.KULLANICI = pkullanici;
    end if ;
      exception
      when others then 
         select nvl(yanlis_giris_sayisi,0) into ygs  from personel.kisi_sys where KULLANICI = pkullanici ;
              UPDATE PERSONEL.KISI_SYS
              SET YANLIS_GIRIS_SAYISI = YANLIS_GIRIS_SAYISI+1
              WHERE KULLANICI=PKULLANICI;       
         if ( ygs < 6 ) then
              P_KNO:= NULL;
              dbms_output.put_line('Giren bmt: Hata Olustu : '|| sqlerrm);
         else
             p_kno := -1 ;        
         end if ;
    end;
    in PLSQL Developer I'm testing a procedure and analysis of a parameters as below
    BEGIN  PERSONEL.PBS_LOGIN('sergen','123456',9997); END;
    or
    BEGIN  PERSONEL.PBS_LOGIN('sergen','123456',&KNO); END;
    or
    BEGIN  PERSONEL.PBS_LOGIN('sergen','123456',:KNO); END;
    and I get an error of PLS-00363 for 3rd parameter KNO

    What is the problem, how can I remedy this?
    Thank you

    Published by: SSU on December 24, 2009 04:03

    Published by: SSU on December 24, 2009 04:04

    Your third parameter is OUT parameter. If you can not do like this.

    Try like this

    declare
      lout number;
    begin
      PERSONEL.PBS_LOGIN('sergen','123456',lout);
    end;
    
  • PLS-00363: expression cannot be used as a target of assignment

    Hello

    Oralce9.2

    When I run the insertion process I get the below error:

    Procedure
    --------------

    PROCEDURE proc_one_insert (col1 IN digital OUT,
    col2 IN num,
    numeric IN COL3
    );

    BEGIN
    immediately run proc_one_insert (2,1,111);
    END;
    /


    Error
    ------

    PLS-00363: expression '2' cannot be used as a target of assignment


    How to solve the error above?


    Regarding

    Published by: user640001 on December 2, 2010 03:04

    Example is already there... Recheck the post... v1 is the variable used for the IN OUT parameter.

    Concerning
    Arun

  • PLS-00363

    During the compilation of new package I get error in this statement:

    BEGIN
    l_STATUS: = 1;

    SELECT NULL FROM EM_DA MODEL. OE62_INFO

    WHERE p_ch_message_code_i IN ('0001 ', ' 0002')
    AND IZD = p_ch_izda_i
    AND FR = p_ch_eno_i
    AND PR = p_ch_pr_class_i
    AND KL = p_ch_kl_id_i;
    l_STATUS: = 3;

    EXCEPTION WHEN NO_DATA_FOUND THEN NULL;
    END;

    ERROR: PLS-00363: expression 'l_STATUS' cannot serve a purpose of assignment
    ..................

    The settings in the package body are reported;

    VARCHAR2 DUMMY,
    l_status VARCHAR2)

    Any help will be apreciated.

    Kind regards
    Robert

    Published by: user8660054 on 31.8.2010 04:19

    Or declare the parameter as an OUT parameter.

  • Satellite U400 BIOS 4.0 works no-error 120

    Hi all.

    I tried to update my u400 with the new BIOS 4.0 and said WinPhlash BIOS is not compatible with the current system BIOS + new part number of BIOS does not have part number for the bios system. Error 120.
    He said that I should see the help, but there is no .hlp to open...

    I know that I have downloaded the correct file, I flashed the BIOS previously, I now have version 3.7

    Someone knows how to fix it / had the same problem?

    Tamás Lengyel

    What is the exact model of your Satellite U400 number?

    I checked the Web from Toshiba site and I can find Satellite U400 different model numbers, so I think that not all BIOS is compatible with each U400.

    Then check the Web from Toshiba site again and choose your model from the list:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers
    Laptop-online Satellite-online Satellite U series-online Satellite U400 => (* short model No. *)

  • How to remove the error-120 code in labview?

    Hi all

    I use to communicate with the keithley 2410 13 LabVIEW and GPIB device.

    I made a program of sweeping the stairs of programming using keithley 2400 user manual, but on the interfacing it gives 'error code-120' i.e. error of digital data.

    Can someone tell me please how to remove this error and also check my program with orders.

    Concerning

    sak16091991

    Hi sak.

    you determine the exact command, which gives this message 'error - 120' of the Keithley.

    ymanglik should be able to explain the procedure now, it uses the same device with similar problems

    I guess it's related to this part of the code:

    What is the reason to use FormatIntoString here? Why add a constant number to string? Why not just write the number in the string constant? Where should the number be attached? Everything in the end?

    BTW. you don't need this structure of sequence - it's all in the stream!

  • Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Failed to create the required registry key: vmware, Inc. error: 2 when installing the vm 7 wareinwin and the installation of any software of a few errors in registry pls help...

    Hello mnaveen.kumar,

    Search the registry to see if this key was created. Sometimes, the installation program does not have permission to this key.

    HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.

    You can try to manually create the key to see if this will help.

    Please reply back and let us know if this can help.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Creation function Interior package Error (15,3): PLS-00103: encountered the symbol ";" when expecting one of the following values: back

    Hello

    I am trying to create a function inside the packaging.

    In the Package BODY I've defined the function, but in the definition of the package, it gives me syntax errors.

    • Error (15,3): PLS-00103: encountered the symbol ";" when expecting one of the following values: back
    • Error (39.1): PLS-00103: encountered the symbol "END" when waiting for one of the following values: start the function pragma procedure subtype type current cursor removal exist prior

    What can I do wrong here.

    Thank you

    Ken

    Inner package BODY:

    / * FUNCTION to form the query * /.

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    IN_SRC_CONDN VARCHAR2

    )

    RETURN VARCHAR2

    AS

    varSQLQuery VARCHAR2 (10000);

    BEGIN

    varSQLQuery: = "test query";

    RETURN varSQLQuery;

    DBMS_OUTPUT. Put_line (varSQLQuery);

    END UDF_FORMQUERY;

    Definition of package inside:

    create or replace PACKAGE BODY MY_SQUERY

    AS

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    VARCHAR2 IN_SRC_CONDN( )

    RETURN VARCHAR2

    AS varSQLQuery VARCHAR2 (10000);

    END MY_SQUERY;

    your package definition is incorrect, you have included the part of the declaration of the variables of the function in the package definition. It should be like

    FUNCTION UDF_FORMQUERY)

    IN_CASEID VARCHAR2,

    IN_SRCLYR VARCHAR2,

    IN_SRC_CONDN VARCHAR2)

    RETURN VARCHAR2;

  • "Error 120".

    Whenever I try to download one of the files since the creative cloud it says I have a low disk space. This is not surprising, because I have only a 32 GB computer with < 1 GB open. However, I have a Toshiba external hard drive that holds 1 TB on it and changed all my preferences for download to get on that. I have GB 921 open on my Toshiba drive, but I feel as if it's not it download for Toshiba player that every time I try to download first the CC gives me error 120 (not enough space). Any help?

    Hi Cgmcneil13,

    As you mentioned that you found the 120 error while trying to install first Pro CC, I recommend you to consult the following link for assistance: installers of Adobe on the D drive .

    Let us know if that helps.

  • Error (34.2): PLS-00103: encountered the symbol "END" when you try to compile the procedure.

    Hello

    I get the following error when I try to compile the procedure. I call a package inside this simple procedure. Not sure where I do worng. Here is the error I get.

    Error (34.2): PLS-00103: encountered the symbol "END"?

    Here is my code

    create or replace PROCEDURE BATCH_JOB_CAC_SP

    (

    vstatus OUT NUMBER)

    AS

    vloadserver global_name.global_name%TYPE: = get_dbservername;

    vuseridmod CONSTANT VARCHAR2 (15): = 'SYSTEM '.

    vloadname CONSTANT VARCHAR2 (30): = "BATCH_JOB_CAC_SP";

    v_cnt_upd NUMBER: = 0;

    vrunid NUMBER;

    v_spoutput VARCHAR2 (150);

    CURSOR job_cac

    IS

    SELECT NumCli, job_cac FROM batch_job_cac, batch_recid, jobnum;

    BEGIN

    I'm in job_cac LOOP

    job_cac_pkg.job_cac_valid_sp (i.custnum, i.jobnum, v_spoutput);

    CASE v_spoutput

    WHEN "1" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN "2" THEN DBMS_OUTPUT. Put_line ('update job ACC');

    WHEN '3' THEN DBMS_OUTPUT. Put_line ('can not update working ACC');

    OF ANOTHER DBMS_OUTPUT. Put_line (v_spoutput);

    END CASE;

    END LOOP;

    EXCEPTION

    WHILE OTHERS THEN

    IF job_cac % isopen THEN

    CLOSE Job_cac;

    END IF;

    ROLLBACK;

    vStatus: = 1;

    LOG_ERROR_SP_NM (vLoadServer, vLoadName, SQLCODE, SQLERRM, vUserIdMod);

    END;

    END BATCH_JOB_CAC_SP;

    Thanks for your help.

    Hello

    You have 2 statements END at the bottom of your code, but only 1 BEGIN statement earlier.

    Losing one of these END States.

  • Error (8.3): PLS-00103: encountered the symbol "END".

    Migration to CREATE or REPLACE PACKAGE
    IS
    PROCEDURE load_staging_tables;
    Migration of the END;
    /

    Migration to CREATE or REPLACE PACKAGE BODY
    IS
    PROCEDURE load_staging_tables
    IS
    Date of LAST_CREATE_DATE;
    BEGIN
    LAST_CREATE_DATE: = max (migrate_load_dt) select mgur;
    END load_staging_tables;

    Migration of the END;
    /

    The following error is received:
    Error (8.3): PLS-00103: encountered the symbol "END".

    running in 11 g using sql developer.


    Which is wrong with the script?

    You cannot assign your select statement directly to a variable. You can use an INTO clause in your select statement.

    CREATE OR REPLACE PACKAGE BODY migration IS
      PROCEDURE load_staging_tables IS
        LAST_CREATE_DATE date;
      BEGIN
        --LAST_CREATE_DATE := select max(migrate_load_dt) from mgur;
        select max(migrate_load_dt)
          into LAST_CREATE_DATE
          from mgur;
      END load_staging_tables;
    END migration;
    
  • ADR 3.0.1 install ORDS_PUBLIC_USER of error: ORA-06550, PLS-00103

    Try the Advanced installation of new ADR in a clean PDB 12 c (12.1.0.1) installation.

    If someone had the same problem and a work around?

    Error at startup to the line: 48 in command.

    Start

    run immediately "create user ORDS_PUBLIC_USER identified by ' ^ PUB_PWD ' account unlock default tablespace ^ temporary tablespace PUB_DATATBS ^ PUB_TEMPTBS';"

    end;

    Error report-

    ORA-06550: Line 2, column 23:

    PLS-00103: Fand das symbol "create user ORDS_PUBLIC_USER identified by 'mySecretPwd' als eines der following works wurde:

    (- + new case mod not null < an ID >)

    < between double quote delimited identifiers of > < a variable binding >

    continue the current avg County are min max sql stddev prior

    variance of the sum run forall fusion timestamp interval

    Date < a literal string with the specified set of characters >

    < a > < a SQL string between single quotes > hose

    < ein alternativ in Anfuhrungszeichen geset

    force_print

    It seems to be related to the change here:

    https://community.Oracle.com/thread/3731913

    Finally the installation of ADR is running. However still not showing apex, but which appear to be a different problem.

    Here is my solution to overcome the problem of creation of ORDS_PUBLIC_USER.

    The problem was that they changed it to use execute_immediate. However, lexical surrogates have ' included.

    Gives problems when adding to the string of immediate execution. And also problems for the password in quotation marks.

    In the ords.war file to find the ords_create_rest_users.sql and replace the relevant parts marked with blue lines.

    ...

    set PUB_PWD = ^ 1

    set PUB_DATATBS = ' ^ 2'

    set PUB_TEMPTBS = ' ^ 3'

    ALTER session set current_schema = SYS;

    -Remove user REST if exists

    ...

    -Create user ORDS_PUBLIC_USER and unlock the account

    create user ORDS_PUBLIC_USER identified by ' ^ PUB_PWD ' account unlock default tablespace ^ temporary tablespace PUB_DATATBS ^ PUB_TEMPTBS;

    ...

  • error message - help pls key signing

    Hello

    During the process of setting up my computer to sign applications bb10, I followed all the instructions, but I got this error at the end:

    "Info: CSK created file.

    Info: Developer certificate created to c:\.

    Error: Error: code HMAC information contained in the application for registration are not valid. The probable cause of this problem does not enter the correct PIN code of SJC. "

    ----------------

    solved.

    This means that the PIN code that you have entered the key during installation does not match the PIN entered you on the code signing key order form.  The PIN is case sensitive.

  • BlackBerry Smartphones set to update to OS 4.5, error restoring data. pls help!

    Last night, I installed the blackberry 4.7 Desktop software and updated my blackberry curve 8310 4.5 OS instead of the 4.2.2 it had when I bought it. Installation went well and I was updating the software it saved my blackberry data. I went to restore and put all the data back on it and now it freezes and I get an error when his attempts to restore the content storage items and nothing beyond that point will recover. Can someone help me with this?

    Thanks for the return of the answer, but I found that it was the computer with vista had some problems with it. I tried with XP but now it recharged it back fine.

Maybe you are looking for

  • Camera sound iOS 10 on iPhone 5 is terrible

    I use iPhone 5 of the Japan release iOS 10, I've updated. After checking the rooms, I agree that the sound of the camera is so strong. I can not turn off his camera or the volume to it. Can Apple release a new iOS to fix this? Thank you.

  • V3.6.24 running two computers, one Windows XP Windows 7 other

    Under XP it correctly displays actual resolution images, in Win7 it resizes all the images to "climb" in the Firefox screen. I'd rather display size real XP, any means to get the Win7 display full size image?

  • Satellite L670 - screen don't market not 'start '.

    I'm trying to fix the laptop named. The problem is that the screen start not (still empty) when I press the power button. I can hear the fan running and if I put a cd/dvd in the drive I can hear it turn. The problem occurs randomly and finally a few

  • Windows 7 - MS-DOS compatibility problems

    Hello I tried to run a fairly old program on my new laptop, the current operating system is Windows 7-32 Bit home edition. I'm trying to run a (originally designed for DOS or windows 95) program, which requires the BACK to be run full screen, but I g

  • printer froze a document delete, cant it down

    I tried as an administrator. I tried to delete the printer, but it wont ' happen until the document has disappeared!