Problem with IN OUT parameters whiloe calling procedure from Form 6i

Hi
Could some help please? I have the following scenario.
I am calling a stored procedure from form 6i by pressing a button on the form. Procedure has two IN OUT parameters, and I am passing these two IN OUT parameters and have declared them the way they are declared passed to the procedure. But I get an error when calling that procedure with these IN OUT parameters. the procedure works fine if parameters are IN only. The error says:
PLS:00363: Expression '1' cannot be used as an assigment target.
NO matter I pass some value or leave it blank, I get the same error message persistenetly.
Please help.
Thanks

make sure you are calling your procedure with variables as parameters,
i.e.
      l_v1 := 1 ;
      l_v2 := 'hello world' ;
      your_proc(l_v1, l_v2)
not
      your_proc(1,'hello world')

Similar Messages

  • Error when calling procedure from form personalization

    Hi every body
    I want to call a procudre using form personalization . I made the procedure and in form personalization i call it as follow:
    built in type : Execute a Procedure
    Argument :
    ='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )'
    but the following error raised when i click on Apply Now button :
    the string (='GAZ_EMP_ASSIGN_UPDATE(' || :ASSGT.ORGANIZATION_ID || ', ' || :ASSGT.ASSIGNMENT_ID || ', ' || FND_PROFILE.VALUE('USER_ID') || ', ' || FND_PROFILE.VALUE('DB_SESSION_ID') ||' )' )
    couldn't be evaluated because of error ORA-06550 :line 1 , column 43
    PLS-00103:encountered the symbol ")" while expecting one of the folowing (- + ...... etc
    can anyone have a solution to this problem because it made me mad .(urgent)
    Or if anyone have another way to call the procedure ??
    Note that i want to pass db_session_id to the procedure from the application so does anyone have a complian about the way of passing this parameter to the procedure ??

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

  • Call procedure from form which displays HTML

    I have a form based on a table with three columns. When I press the insert button, I want to insert the data into the table and then pass the data to a procedure (wihtin a package), which will call an external java procedure and get a passcode returned to it. I then need to display the passcode to the user's screen (which I am currently attempting to do via htp/htf calls within a procedure in the package).
    I tried to put the call to the package in a trigger. It succeeded in calling the external procedure, but did not display anything to the browser afterwords.
    I then tried to put the call to the PL/SQL code on my Insert button. I have tried various flavors of this call, but here is the current version:
    declare
    v_user_key_id lcams_db.user_token_link.user_key_id%TYPE;
    v_tkn_ser_no lcams_db.user_token_link.tkn_ser_no%TYPE;
    v_actv_ind lcams_db.user_token_link.utl_actv_ind%TYPE;
    blk varchar2(10):='DEFAULT';
    begin
    v_user_key_id:=p_session.get_value_as_number(
    p_block_name=>blk, p_attribute_name=>'A_USER_KEY_ID');
    v_tkn_ser_no:=p_session.get_value_as_varchar2(
    p_block_name=>blk, p_attribute_name=>'A_TKN_SER_NO');
    v_actv_ind:=p_session.get_value_as_varchar2(
    p_block_name=>blk, p_attribute_name=>'A_UTL_ACTV_IND');
    lcams_db.otp.set_otp_user_key_id(v_user_key_id);
    lcams_db.otp.set_otp_tkn_ser_no(v_tkn_ser_no);
    lcams_db.otp.set_otp_actv_ind(v_actv_ind);
    doInsert;--- This is the default handler
    lcams_db.otp.otp_utl('INSERTING');
    end;
    otp is the package. I have three variables in my package otp_user_key_id, otp_tkn_ser_no, and otp_actv_ind which I pull from session storage and put into the package variables. the otp_utl sets a variable and calls otp_add_user, which gets more data from the table and calls the pl/sql wrapper for the java routine to actually add the user into the external OTP database. The java routine returns the status and initial passcode and then I call a routine internal to the package to display the results to the user via htp and htf calls.
    The best result was getting the table to update and the external database to update, but I never got the resulting html to diplay. With the current code, the browser goes away with a message of Connecting to... and nothing gets updated and my browser eventually comes back with a 'No data...' message.
    Is there a way to do what I want? Ideally I would like to call the package, display the results, and provide a back link so the user can get back to the original form after the user has read the passcode message.
    null

    Okay. I put the following code in the 'On successful submission of the form...'
    section of the form and I tinkered with it until it works; however, it currently assumes
    the Insert button was the button clicked.
    declare
    v_user_key_id lcams_db.user_token_link.user_key_id%TYPE;
    v_tkn_ser_no lcams_db.user_token_link.tkn_ser_no%TYPE;
    v_actv_ind lcams_db.user_token_link.utl_actv_ind%TYPE;
    blk varchar2(10):='DEFAULT';
    my_url VARCHAR2(200);
    return_url VARCHAR2(200);
    begin
    v_user_key_id:=p_session.get_value_as_number(
    p_block_name=>blk, p_attribute_name=>'A_USER_KEY_ID');
    v_tkn_ser_no:=p_session.get_value_as_varchar2(
    p_block_name=>blk, p_attribute_name=>'A_TKN_SER_NO');
    v_actv_ind:=p_session.get_value_as_varchar2(
    p_block_name=>blk, p_attribute_name=>'A_UTL_ACTV_IND');
    my_url := 'lcams_db.otp.otp_utl?' | |
    'p_user_key_id=' | | TO_CHAR(v_user_key_id) | |
    '&p_tkn_ser_no=' | | v_tkn_ser_no | |
    '&p_actv_ind=' | | v_actv_ind;
    call(my_url,return_url);
    end;
    How do I determine which button was clicked for the 'On successful submission...' section so I can call the correct routine?
    null

  • Problem with database adapter on plsql procedure with in/out parameters

    running BPEL 10.1.3.1 and using the database adapter on a plsql procedure with in/out parameters I get errors
    the plsql procedure:
    create or replace procedure proc_with_clob_inout_parameter(
    p_string in varchar2,
    p_clob in out clob)
    is
    begin
    p_clob := p_string;
    end proc_with_clob_inout_parameter;
    In BPEL I call this procedure. When I only assign a value to the p_string parameters (in a BPEL assign) all is well. When I also assign a value to the p_clob parameter the error occurs:
    <part name="summary">
    <summary>
    file:/ora1/app/oracle/as101.3/bpel/domains/digitaaldossier/tmp/.bpel_janb_inout_1.0_f6908ccf864581b7265c362444e88075.tmp/twee.wsdl
    [ twee_ptt::twee(InputParameters,OutputParameters) ] - WSIF JCA Execute of
    operation 'twee' failed due to: Error while trying to prepare and execute
    an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_PARAMETER2 API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_INOUT_PARAMETER API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    Check to ensure that the API is defined in the database and that the
    parameters match the signature of the API. Contact oracle support if error
    is not fixable.
    </summary>
    </part>
    In BPEL 10.1.2.0 this isn't a problem. I tested it against a 10.2.0.1 and a 10.2.0.2 database and in both situations I get the error with BPEL 10.1.3.1 and no error with BPEL 10.1.2.0
    it appears to be a problem in the database adapter...
    anyone with the same problems and/or a solution?

    Not of any use to you, but we had exactly the same problem on Friday when we applied AS 10.1.2.2 Patchset on top of BPEL 10.1.2.0.2.
    The clob in our pl/sql proc wan't declared as in/out but for some reasons JDeveloper had created a clob on the Output Parameter type in the db partner link xsd. I removed this and it worked. This code had been untouched , and working fine, for months.
    I'll be raising an SR today.
    Rob J

  • Reg:execute procedure with in out parameters

    hi,
    what is the code to execute a procedure with in out parameters.can anyone give me an example
    thanks

    872296 wrote:
    thanks for the reply.
    i am very much new to oracle database.i need this code to put in one of my informatica mapping.
    so can you just elaborate what does 'karthick' mean?is it the name of the procedure.No, karthick is the value of the variable that is being passed into the procedure called "P" in karthicks example, then if that procedure changes the value inside, the variable will have that new value passed back out of the procedure to it.
    PROCEDURE prc_mv (name VARCHAR2)
    IS
    BEGIN
    dbms_mview.refresh (mv_name);
    END prc_mv;
    PROCEDURE refresh (response IN OUT NUMBER)
    IS
    BEGIN
    dbms_mview.refresh('mv1','C');
    dbms_mview.refresh('mv2','C');
    response := 1;
    EXCEPTION
    WHEN OTHERS
    THEN
    response := 0;
    END refresh;
    can you give the code for this procedure.Yes.
    DECLARE
      v_response NUMBER;
    BEGIN
      refresh(v_response);
    END;Though your code is awful. There's no point in having the response parameter as an IN OUT if you're not going to pass IN a value and use that in the code anywhere. In your case it only needs to be an OUT parameter because you're just passing back OUT a value. You are also masking any exceptions that happen by using a WHEN OTHERS clause.
    Better code would be something like...
    FUNCTION refresh (mv_name) RETURN NUMBER IS
      v_response NUMBER := 0; -- default response value
      e_mv_not_exist EXCEPTION; -- exception variable
      PRAGMA EXCEPTION_INIT(e_mv_not_exist, -23401); -- connect exception name to internal oracle error number
    BEGIN
      dbms_mview.refresh(mv_name,'C');
      v_response := 1;
    EXCEPTION
      WHEN e_mv_not_exist THEN -- handle specific expected exception
        -- if the materialized view does not exist, handle it gracefully as we don't want to stop
        response := 0;
    END refresh;
    declare
      v_response NUMBER;
    begin
      v_response := refresh('mv1');
      if v_response = 0 then
        -- the materialized view did not exist
      else
        -- the materialized view refreshed ok
      end if;
    end;where your exception handler explicity checks for expected exceptions such as :
    ORA-23401: materialized view "SCOTT"."FRED" does not exist... and any other exceptions that you're not expecting will be raised for you to see.
    It's also better as a function because you don't need to pass in a response value, you just want to get a response value back.
    There's rarely a good need to use OUT or IN OUT parameters. (there's some cases, but it's not something to consider doing as part of your regular design)

  • Database procedure with IN/OUT parameters

    Hi,
    I have a procedure with multiple OUT parameters,
    but I do not know how to get the values of these out parameters in the calling procedure.
    What I mean is I can simply get the value of a function from a calling procedure as:-
    declare
    val1 number;
    begin
    val1 := func_get_num;
    end;
    How can I get the values of OUT parameters of a procedure in a similar way?

    like
    SQL> var ename_v varchar2(30);
    SQL> var empno_v number;
    SQL> create or replace procedure get_employee(empno out number, ename out varchar)
      2  as
      3  begin
      4     select empno, ename into empno, ename from emp where rownum <=1;
      5  end;
      6  /
    Procedure created.
    Elapsed: 00:00:00.51
    SQL> exec get_employee(:empno_v, :ename_v);
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.12
    SQL> print empno_v
       EMPNO_V
           666
    SQL> print ename_v;
    ENAME_V
    fdddfdf1
    SQL>

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • Problems with TV Out signal after upgrading to iOS 5.1

    Has anyone experienced problems with TV Out signals on their iPad 2 using the Apple HDMI Adapter after upgrading to iOS 5.1?  I am trying to connect to my HDTV after upgrading and cintunally receive an "Unsupported Video Signal" message with a blank/back screen.  Prior to upgrading, I had no connection problems and could view TV Shows, Movies, Music Videos, Keynote, etc...without problems.  I've been unable to find any resolution to this problem, even followed Apple guidance to detach and reattach the HDMI adapter without success.  Seems like a software bug to me and it's a major problem when trying to conduct business or personal activities.  Hopeing Apple has a fix in work already...anyone else have any ideas?  Thx in advance...

    Try a reset. Press & hold the Power and Home buttons together for 10+ seconds, ignoring the red power-off slider, until you see the Apple logo. It is safe to do, there should be no content loss. It is the same as rebooting your computer.
    If that does not work, restore the iPad to the factory settings.

  • Problem with fading out particles in cs5

    I have a problem with fading out particles or anything for that matter in my CS5 after effects!  I set up the key frames right.  O opacity at first and whatever number at next and it fades in fine,  But when I try to do the reverse it will not fade out and only stops the effect if I cut its durration at the red par representing it on the top of the time line. This produces and rough aburpt cut of the effect which will not due.  Please can anyone tell me what I am doing wrong that I can't fade out particles with opacity?

    First question: What OS and what's the build of CS5.5?
    Second question: What effect are you using? There are a bunch of ways to generate particles.
    Last question: if you turn off the effect can you get the layer to fade out? Pressing Alt/Option + t will set a keyframe for opacity on your layer and reveal the keyframe in the time line. Do that, set the value to 0, then move down the timeline a few frames and set the value to 100. This should generate another keyframe. Now move down a few more frames and press Alt/Option + t or change the value for opacity to anything and then back to 100, or copy the previous keyframe and paste to set a 3rd keyframe. Finally move down a few more frames and set the value to 0. You should have 4 keyframes in your tlimeline for opacity. If you want to clean up the layer press Alt/Option + ] to set the out point for the layer.
    Everything should work just fine. Turn on the effect and your layer and the effect should fade out.
    If you want to do something else with the particles, like fade out a particle over the lifetime of the particle we'll need to know which plug-in you're using.

  • Problems with filling out PDF forms

    We have problems with filling out PDF-forms. Aotomatic filling of forms is deactivated and we use the Adobe Reader 11.0.05. The problem is: After some time the inputs are wrong put down in the form. For example: I write 120 and in the form stands 125. We have already extinguished the cache. Thanks for your help in advance.

    You will get that first message when the document has been changed in a way that invalidates the internal digital signature that's applied when a document is Reader-enabled. Certain changes are allowed (e.g., filling fields, commenting, signing) and will not invalidate the signature, but others are not. The exact cause of the change is often hard to track down, but it can be due to font problems, some type of file corruption, or something that Acrobat/Reader attempts to correct when the file is opened/saved. You will also get the message if the users system time is not correct and is currently set to some time before the document was Reader-enabled. It seems best to use the most recent version of Acrobat to enabled the documents and recent versions of Reader to work with them.
    It problem is probably not related to the user using anything in the Sign pane.

  • Has anybody had a problem with greyed out wifi on i phone 4 gs

    Has anybody had a problem with greyed out wifi setting on iphone 4gs

    Forty four in the last week.
    wifi greyed out

  • Web service with multiple out parameters

    Hi Developers,
    I have been playing around with som web services in the developer studio.
    I can create a webservice from a normal ejb.
    But i can only get one out parameter, which is the return parameter of the ejb.
    I tried to make an object to use as return parameter, but then i couldn't use the method for the web service.
    Can anyone tell me how to make a web service with multiple out parameters?
    Br Rasmus

    Hi Developers,
    I have the same question, is it possible to have multiple outgoing parameters?
    When not, does SAP Netweaver knows a IN-OUT parameter? Because I found on the internet that it is possible to have a IN-OUT parameter. But that was with the BEA Weblogic 8.x.
    When not, is then the only solution to return a object? With in this object all the parameters you want.
    Or otherwise is there a other workaround?
    Thanks in advance,
    Marinus Geuze

  • Hi i am having problems with a crackling speaker on calls. Its started with every once a hour or so, to now being every call. Its starts crackling and then the person on the other side cannot hear me. I run iPhone 4 with iOS 5 an this happend after update

    Hi i am having problems with a crackling speaker on calls. Its started with every once a hour or so, to now being every call. Its starts crackling and then the person on the other side cannot hear me. I run iPhone 4 with iOS 5 an this happend after update to ios 5... What should i do. I have now resulted in using another phone as i cannot operate like this...

    Hi i am also having problems with a crackling speaker on calls every few calls. Its starts crackling and then the person on the other side cannot hear me. I run iPhone 4 with iOS 5 an this happend after update to ios 5... I will watch to see what advice you get.

  • 'ORA-12571: TNS:packet writer failure' error while calling procedure from VC++

    hi all,
    i am writing stored procedures and calling these from vc++. I have one stored procedure in that all
    in and out perameters are numeric. When i am calling these procedure i am able to get the values properly. But in another procedure one in perameter is varchar and one out perameter is varchar. When i am calling these procedure from vc++ the error i am getting is "ORA-12571: TNS:packet writer failure". I test my vc++ code on different computers but its giving the same errors. I think ora-12571 error is when i can't communicate with oracle. But other stored procedures(in and out perameters are numbers) and sql statements are running properly. Only these stored procedure which has in and out perameters as varchar is giving me the above said problem. My out perameter in this procedure strtax is of type varchar and the length 100. Is it the problem. Please suggest me how to over come this problem.
    thanks in advance,
    with regards
    vali.

    Hi
    We recently changed our load balancer to a new load balancer. we get this error only after the load balancer change.
    When the error occurs, I could see ORA-12571 error message only in the application error log. The listener.log has only the following message about TNS 12502. It does not have any message about ORA -12571.
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2202)) * establish * AppName * 0
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2203)) * establish * AppName * 0
    12-MAR-2010 12:23:26 * (CONNECT_DATA=(SERVICE_NAME=AppName)(CID=(PROGRAM=c:\wind ows\system32\inetsrv\w3wp.exe)(HOST=WEB02)(USER=NETWORK?SERVICE))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.x.x.x.x)(PORT=2204)) * establish * AppName * 0
    12-MAR-2010 12:24:09 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    Thanks
    Ashok

  • ORA-12571: TNS:packet writer failure while calling procedure from VC++

    hi all,
    i am writing stored procedures and calling these from vc++. I have one stored procedure in that all
    in and out perameters are numeric. When i am calling these procedure i am able to get the values properly. But in another procedure one in perameter is varchar and one out perameter is varchar. When i am calling these procedure from vc++ the error i am getting is "ORA-12571: TNS:packet writer failure". I test my vc++ code on different computers but its giving the same errors. I think ora-12571 error is when i can't communicate with oracle. But other stored procedures(in and out perameters are numbers) and sql statements are running properly. Only these stored procedure which has in and out perameters as varchar is giving me the above said problem. My out perameter in this procedure strtax is of type varchar and the length 100. Is it the problem. Please suggest me how to over come this problem.
    thanks in advance,
    with regards
    vali.

    hi,
    thanks for reply,
    I wanna let u know that this is my personal lappy & i have installed apps dump on it in Linux & connect it through VM player in Window environment. I have recently purchased a new Antivirus K7 & installed it on my Lappy. i wanna know does this impact your application or Dbase Bcoz the application is running fine after starting the services in linux.
    The only thing is that i am not able access the database through TOAD or SQL*Plus. the same error i am facing in both.
    So
    shud i uninstall the antivirus on this And this is the only solution to it ?
    If yes, then how do i fix it again when i'll reinstall it Bcoz i need Antivirus as well.
    kindly suggest.
    thanks
    D

Maybe you are looking for

  • Line Drawing Script on Stage doesn't work in MovieClip?

    I have a little snippet of code that allows the user to create a line with the mouse, and clears the line if they end up touching the hitbox with the mouse, while they're drawing the line. It works fine when it's just thrown onto the main timeline. H

  • Outlook 2010 SP1 - mailto link fails when forwarding an email to someone?

    This works fine in OWA so it is a client Outlook 2010 SP1 problem.  To recreate it perform the following: 1. Email yourself from an EXTERNAL email address 2. Within Outlook forward that email to another person in your environment internally (your ext

  • Sticky Footer impasse

    Bogged down trying to put a sticky footer on a page. Without the footer, all the body text displays correctly. Add the footer and about the bottom third of the text is unavailable, that is, when you scroll to the bottom you're seeing only about the t

  • [SOLVED]USB stick shown twice in nautilus

    After I've accidently unsafely removed my usb stick, it is now displayed twice in nautilus: Every other usb stick, dvd or alternative media works as normal. It's this specific usb stick. Any ideas how to make things normal again? I already tryed remo

  • Can I get live help?

    I have been using Firefox 6 for the last couple of months yet when I tried to log into my Hotmail account, it keeps telling me that my password is incorrect. But when I try and reset, it keeps sending me on a wild goose chase and I still cannot reset