FND_FORM.EXECUTE session_flag parameter

Hi
From the Order Entry form I need to open a custom form . This form has logic to perform some weight optimizations and then update the Order details.
If I open the new form using FND_FUNCTION.EXECUTE by passsing session_flag as 'N' everything works fine. But if I open it by passing 'Y' for this it is not able to preserve the record for update.
I know that the reason behind this is because, 'N' opens the form in the same session as the parent form so any changes made are committed in both the forms which is OK.
My question is , is it alright to pass this parameter as 'N' since the developer guide specifically mentions to pass it as 'Y'. I'm wondering if what I am doing could lead to any potential errors .
Thanks

ya i am able to open the invoice form using zoom. Also through when button pressed . my issue is whatever the way i open i want to query the invoice details automatically by passing the parameter . i am not finding any parameter in transaction(Invoice) form by which i can achieve the autoquery .e
anyone can help ?
also i am not finding the below note ,
Note: 430643.1 - Zoom to AR Transactions and AR Receipts Form from Collections Form using Forms Personalization
where can i find this in metalink .
Edited by: kd on Nov 1, 2011 3:38 AM

Similar Messages

  • How to execute the parametered stored procedure in sql *plus ?

    how to execute the parametered stored procedure in sql *plus ?
    my storedprocedure format
    CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE
    (empDOB out date, empEmpName out varchar2)
    thanks & regards
    mk_mur

    Oh, sorry... making many reading-too-fast mistakes today...
    You can't declare date variables in SQL*Plus (seel help var), but you can cast to varchar2:
    TEST> CREATE OR REPLACE PROCEDURE SMS_SELECTMPLOYEE (empDOB out date, empEmpName out varchar2) IS
      2  d date := sysdate;
      3  e varchar2(10) := 'bob';
      4  begin
      5  empdob := d;
      6  empempname := e;
      7  end;
      8  /
    Procedure created.
    TEST> var d varchar2(30)
    TEST> var n varchar2(30)
    TEST> call  SMS_SELECTMPLOYEE(:d,:n);
    Call completed.
    TEST> print d n
    D
    11/07/06
    N
    bobYoann.

  • Execute ANYTYPE Parameter in pl/sql

    any one help me, its very important
    how to execute this procedure for insert data in table using type object
    CREATE OR REPLACE PROCEDURE gen_insert1 (
    p_table VARCHAR2,
    p_anydata ANYDATA)
    IS
    l_statement VARCHAR2 (32767);
    BEGIN
    l_statement :=
    ' DECLARE' ||
    ' l_anydata ANYDATA := :p_anydata;' ||
    ' l_object ' || p_anydata.GetTypeName || ';' ||
    ' l_result_code PLS_INTEGER;' ||
    ' BEGIN ' ||
    ' l_result_code := l_anydata.GetObject (l_object);' ||
    ' INSERT INTO ' || p_table || ' VALUES (l_object);' ||
    ' END;';
    EXECUTE IMMEDIATE l_statement USING IN p_anydata;
    END;
    Edited by: user9516641 on Dec 16, 2009 4:58 PM

    any one help me, its very important
    how to execute this procedure for insert data in table using type object
    CREATE OR REPLACE PROCEDURE gen_insert1 (
    p_table VARCHAR2,
    p_anydata ANYDATA)
    IS
    l_statement VARCHAR2 (32767);
    BEGIN
    l_statement :=
    ' DECLARE' ||
    ' l_anydata ANYDATA := :p_anydata;' ||
    ' l_object ' || p_anydata.GetTypeName || ';' ||
    ' l_result_code PLS_INTEGER;' ||
    ' BEGIN ' ||
    ' l_result_code := l_anydata.GetObject (l_object);' ||
    ' INSERT INTO ' || p_table || ' VALUES (l_object);' ||
    ' END;';
    EXECUTE IMMEDIATE l_statement USING IN p_anydata;
    END;
    Edited by: user9516641 on Dec 16, 2009 4:58 PM

  • Dynamic hyperlink runs executable with parameter

    Hi
    I have created a BI template for the Final Payment Register report in EBS Payables. We have a requirement to provide a link in the report next to each invoice so that users can view a scan of the invoice stored in a LONG RAW column from a third-party application.
    I can view source and hack the HTM output with the following:
    <script type="text/vbscript" language="vbscript">
    sub inv_link
    Set wshShell = CreateObject ("WSCript.shell")
    wshshell.run "\\amcmfs01\applications$\PRODOCI\StartViewFacturen.exe 70065 1A"
    set wshshell = nothing
    end sub
    </script>
    <*a href="javascript:void(0)" onclick="inv_link">View Scan<*/a>
    (Asterisks added so that HTML is visible.) 70065 is the ID of the scan. Is there a way to dynamically do this or something similar in the BI template? Thanks in advance.
    Regards
    Paul

    The control is in the exe, but if you only have your plugin vi without the control, then the vi is not executable.
    --- I don't understand what you're saying.  The control does exist in the EXE, it's used in lots of other places in the EXE.  So I was expecting the plugin to be able to find it. 
    Every vi, you want to load dynamically, has to be executable independently from the exe which calls them.
    --- That's not exactly true, specifically the "independently" part. 
    More testing with lots of these plugins has yielded the following rules for my case:
    The plugin itself does NOT have to be in the ALWAYS INCLUDE list.  That's obvious, or it wouldn't truly be a dynamic VI.
    If the plugin uses a typedef control, then that control must be in the ALWAYS INCLUDE list.  It doesn't matter if it's used in the main already, even 800+ times.  It simply has to be in the list.
    Any subVIs that the plugin calls have to either A) be already used in the main, so that they're in the EXE, or B) in  the ALWAYS INCLUDE list.
    My confusion comes from the difference between 2 and 3.  Controls are fundamentally different from VIs in this treatment, and I didn't (don't) understand why. 
    I said that your "independently" comment was not true because of #3.  These plugins are capable of finding subVIs in the parent EXE.  They're dependent on the EXE, but they can still work if that dependency is resolvable.  
    For some reason, they're not capable of finding typedef controls in the parent. 
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Tween executes, then parameter returns to default value.

    Hey, I trying to do two simultaneous tweens of two movie
    clips(when someone rolls over a different movie clip), one is just
    an image, the other contains a static text field with the word
    contact in it. here's my code
    rus_mc.onRollOver = function () {
    rus_mc._x += 3;
    rus_mc._y += 3;
    new mx.transitions.Tween(logo_mc, "_alpha",
    mx.transitions.easing.Regular.easeIn, 100, 0, .5, true);
    new mx.transitions.Tween(contact_mc, "_alpha",
    mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
    rus_mc.onRollOut = function () {
    rus_mc._x -= 3;
    rus_mc._y -= 3;
    new mx.transitions.Tween(logo_mc, "_alpha",
    mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
    new mx.transitions.Tween(contact_mc, "_alpha",
    mx.transitions.easing.Regular.easeIn, 100, 0, .5, true);
    Whats really weird about it is that it worked great the first
    5 times I ran my movie, then the movie with the text box in it
    started acting really funny. When I rollout, the contact_mc tween
    either doesn't even happen, or at the end the _alpha value of the
    movie with the text in it jerks back from 0 to 100, and then it
    stays there.
    I have ran into this problem before on different projects,
    and I'm starting to think that something is wrong with my version
    of flash. I just don't understand why it would work fine for 5
    compiles, and then start screwing up!!!???

    I tend to use other Tween engines, but I suspect its because
    you can have a situation where you're assigning a new Tween to the
    same clip before the old one has finished. This is not all the
    time... its just when you roll out and roll back in (or vice versa)
    before its finished.
    I did a quick search and found some comments about it here
    (the context is different but I think you can have the same
    situation arise with what you're doing as I mentioned in last
    paragraph)..:
    http://www.actionscript.org/forums/showthread.php3?t=92791

  • How to call a sales order form using a parameter?

    hi
    i am creating a custom form and upon quering the form i am getting all the records
    and
    i have a button and when i click on that button it should take me to oracle apps order form ?
    what i tried doing ?
    IF :parameter.actions='Order' THEN
    v_startup_mode := 'ORDER';
    v_header_id :=:SSWMS_SHIPMENT_LINES.ORDER_HEADER_ID;
    FND_FUNCTION.EXECUTE(
    FUNCTION_NAME=>:parameter.call_function,
    OPEN_FLAG=>'Y',
    SESSION_FLAG=>'Y',
    ACTIVATE_FLAG=>'ACTIVATE',
    OTHER_PARAMS=>'STARTUP_MODE="'||v_startup_mode||'" HEADER_ID="'||v_header_id||'"');
    END IF;
    i am doing for that line id? can someone help me as how to call this form?
    sudharshan

    Hi Prashanth,
    I dont think so OPEN_FORM will work out here.
    If we want to call new form/open form insted of using call_form / open_form/ New _form
    we need to use FND_FUNCTION.EXECUTE which allows you to open forms without bypassing Oracle Applications security, and takes care of finding the
    correct directory path for the form.
    here FND_FUNCTION.EXECUTE is similar to APP_NAVIGATE.EXECUTE,
    except that APP_NAVIGATE.EXECUTE allows a form to be restarted if
    it is invoked a second time.
    So in the parameters of FND_FUNCTION.EXECUTE,
    open_flag indiacates Y/N.
    ’Y’ indicates that OPEN_FORM should be used;
    ’N’ indicates that NEW_FORM should be used.
    You should always pass ’Y’ for open_flag, which
    means to execute the function using the Oracle
    Forms OPEN_FORM built–in rather than the
    NEW_FORM built–in
    i think sudharshan is using the right method FND_FUNCTION.EXECUTE.
    --Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • While Executing the Sp in Query manager Getting Error.

    hi.
    i need a small information.
    I Created a small table in Sql 
    ccode
    varchar
    no
    250
    cname
    varchar
    no
    250
    ctype
    varchar
    no
    250
    My Stored Procedure at  Sql
    i am inserting values in to the temporary table by using below one after passing the parameter
    i am executing the parameter is
    EXEC 'cardcode' ,'cardname' ,'c'
    if i execute the stored procedure in sql values are inserting  same thing i want to do in sap b1 at query maanger
    USE [WCTBRPLDB21-05-2014]
    GO
    /****** Object:  StoredProcedure [dbo].[uspGetAddress1]    Script Date: 8/1/2014 4:07:20 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER Procedure [dbo].[uspGetAddress1]
    @Cuscode varchar(250),
    @customertName VARCHAR(250) ,
    @custype varchar(250)
    As
    Begin
    DECLARE @Cur_Product CURSOR
    set @Cur_Product= cursor for select CardCode,CardName,CardType  from ocrd  where  CardCode =@Cuscode and   CardName= @customertName  and  cardtype =@custype
    open @Cur_Product
           fetch next
           from @Cur_Product into @Cuscode,@customertName,@custype
           while @@FETCH_STATUS = 0
           begin
           insert into custupdate (ccode,cname,ctype) values (@Cuscode,@customertName,@custype)
           fetch next
           from @Cur_Product into @Cuscode,@customertName,@custype
           end
           close @Cur_Product
           deallocate @Cur_Product
        select * from custupdate
    End
    @Cuscode varchar(250),
    @customertName VARCHAR(250) ,
    @custype varchar(250),
    select @Cuscode = T0.CARDCODE from OCRD T0 where T0.CARDCODE = '[%01]' AND
    select @CARDNAME = T0.CARDNAME from OCRD T0 where T0.CARDNAME = '[%02]' AND
    select @CARDTYPE = T0.CARDTYPE from OCRD T0 where T0.CARDTYPE = '[%03]'
    uspGetAddress1 @Cuscode ,@CARDNAME ,@CARDTYPE
    The above one i pasted at query manager.
    if i run it it is asking the parameters
    but after execute it
    i am getting the error that must declare the Scalar variable like that  it is showing.
    but i am all ready giving the scalar variable but it is not running.
    Any information plz update me
    is there any declaration problem in query  manager.....................

    Try below in query generator:
    Declare @Cuscode varchar(250),
    Declare @customertName VARCHAR(250) ,
    Declare @custype varchar(250)
    /*SELECT FROM [dbo].[OCRD] T0*/
    /* WHERE */
    SET @Cuscode = /* T0.CardCode */ '[%0]'
    /*SELECT FROM [dbo].[OCRD] T0*/
    /* WHERE */
    SET @customertName = /* T0.CardName */ '[%1]'
    /*SELECT FROM [dbo].[OCRD] T0*/
    /* WHERE */
    SET @custype = /* T0.CardType */ '[%2]'
    EXEC uspGetAddress1 @Cuscode,@customertName,@custype
    **Don't remove comments
    Thanks
    Navneet

  • Passing parameter to a dynamic page portlet

    We need to create a drill-down report using pl/sql, but it's not working when we passed a parameter. We did the following:
    1. Create a package and a store procedure.
    2. The store procedure creates the report and the look-and-feel of the report.
    3. Create a dynamic page with the following code:
    <ORACLE>DECLARE
    BEGIN
    mvdata.interbay_ops_rpts_pkg.ops_detail_procssr_rpt(p_processor);
    END;
    </ORACLE>
    4. Set the parameter to "public" in the "customization form display option".
    5. Create a page group and a page.
    6. Clicked on properties of page and then clicked on the parameter tab.
    7. Added a parameter named "p_processor_code"
    8. We also added the portlet parameter under the "portlet parameter values" and set the parameter to be a page parameter and select the name of the parameter and click OK.
    9. Launch the URL: ttp://iasdev01.bftg.com:7782/pls/portal/url/page/PG_GRP_DEVELOPMENT/PG_OPS_DETAIL_PROCESSOR?p_processor_code=DUBOIS.
    10. When we tried to launch the application we get an empty report(doesn't execute the parameter).
    11. Edit the page and went into layout mode.
    12. Click on the "edit default" of the dynamic page portlet and put the value of the parameter and it works without any problems.
    I don't understand why it doesn't take the parameter with the page url. Any help is greatly appreciated.

    I had more luck with PL/SQL items. Try something like this:
    declare
    zip varchar2(10);
    begin
    zip := portal.wwpro_api_parameters.get_value('zip', 'a');
    if zip='94065' then
       ... do something ...
    end if;
    end;Peter

  • Parameter sweep from labview

    Hi,
    Can anyone show me an example for setting and executing a parameter sweep in Labview? (with Multisim Automation API). Is it actually possible to do something like that?
    Thanks,
    Ussr123.

    Hi ussr,
    is this what you are looking for?
    Exporting NI Multisim SPICE Simulation Data to NI LabVIEW
    http://www.ni.com/white-paper/16/en/
    Best regards,
    Adilo

  • Executing SP in MSSQL takes forever?!

    Hi all,
    I need to execute a stored procedure in our database server, MS SQL Server 2000 and it takes forever...
    I'm using Microsoft SQL Server 2000 Driver for JDBC Version 2.2.0022
    My code:
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Connection conn = DriverManager.getConnection
                ("jdbc:microsoft:sqlserver://myhost:1433;DatabaseName=MYDB;User=me;Password=secret");
    CallableStatement cs = conn.prepareCall("{call my_sp(?,?)}");
    cs.setString(1,"param1");
    cs.setString(2,"param2");
    long start = System.currentTimeMillis();
    ResultSet rs = cs.executeQuery();
    System.out.println("exec time: " + (System.currentTimeMillis() - start) + " ms");
    ...Every time I execute this piece of code, it takes between 45-50 seconds...
    I have tried to execute my SP from DBVisualizer and it is the same result. But, when I execute my SP from Enterprise Manager it takes less than a second?! Why? What have I missed? Does anybody recognize this problem?
    Greatfull for any suggestions...
    Cheers
    //Anders =)

    For a single call, Statement is better in performance.This depends on the driver and the database. If you care about the last few milliseconds per call, measure your setup!
    According to my measurements, in Oracle Statement and PreparedStatement are exactly the same speed for the first call, and PreparedStatement is faster on subsequent calls.
    <speculation>
    In some databases, the driver needs to do two round trip calls for the first execution of a PreparedStatement:
    driver: Please prepare "select x from y where z = ?".
    database: Prepared, you can refer to that as "statement 7".
    driver: Execute statement 7 with parameter 42.
    database: Done, here is the result set: <...>
    In other databases, there is only one call:
    driver: Prepare "select x from y where z = ?" and execute with parameter 42.
    database: Use "statement 7" in later calls, and here is the result set: <...>
    Depends on the database protocol which form is possible. In both cases, second, third, etc calls only need one step, so they are faster.
    Another factor that affect PreparedStatement speed is how much work the database does to prepare something. Some databases may invoke a more time consuming compilation process for a PS than a plain Statement.
    </speculation>

  • How tochange the description ofa field inthe parameter form query generator

    I have a parameter form which is fetching the details from the Location table.
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    when i execute the parameter form Query selection criteria displayed is
    Name
    OLCT table the description of the field location is Name i want to change the description to location
    Please Help

    Thanks for the reply , It does not help.
    If meant the selection box when I run query to input values
    for example
    /* Select From [OINV] T1 */
    Declare @FromDate Datetime
    /Where/
    Set @FromDate = /* T1.DocDate*/ '[%1]'
    /* Select From [OINV] T2 */
    Declare @ToDate Datetime
    /Where/
    Set @ToDate = /* T2.DocDate*/ '[%2]'
    /* Select From [OLCT] T3 */
    Declare @FromLoc Varchar(300)
    /Where/
    Set @FromLoc = /* T3.Location*/ '[%3]'
    /* Select From [OLCT] T4 */
    Declare @ToLoc Varchar(300)
    /Where/
    Set @ToLoc = /* T4.Location*/ '[%4]'
    /* Select From [OLCT] T5 */
    Declare @Country Varchar(300)
    /Where/
    Set @Country = /* T5.Country*/ '[%5]'
    /* Select From [OLCT] T6 */
    Declare @State Varchar(300)
    /Where/
    Set @State = /* T6.state*/ '[%6]'
    Exec [SAP_SP_DB]..[NABC_TaxReport] 'SAP2007B','Inflow',@FromDate,@ToDate,@FromLoc,@ToLoc,@country,@state
    In the above query I have from and To Location which displays as Name in the selection box

  • Populating a parameter of a task flow from a different task flow

    I have created a BPM process, where two human activities are there. Two human task consist of two task flows. I have inserted some data into table using store procedure from first task flow and passed the id (unique id of table) through BPM process data object into the second task flow. Now I want to start the second task flow with execute with Parameter attribute(where customized query been written on the view object to find details from table) and find the inserted row in the second task flow using the id and show it in a jspx page.
    Please help.

    You can pass managed bean as input parameter to your BTF, or you can use contextual events, or ...
    Maybe I didn't understood you description correctly, but if you use only one dynamic region, then you can't call BTF2 from BTF1.
    If you have two regions, one displays BTF1 and second displays BTF2, then this is possible.
    Dario.

  • Show parameter optimizer --- table or view does not exist

    one of our programmer needs to have the ability to execute "show parameter optimizer". when he does he receives "table or view does not exist". when i run said command as system i do not receive said error. is the only way around this to grant him specific rights within the database? if so, what is the lowest level of rights i can grant him to allow a proper execution? can i grant rights to only said command? -a

    It's a SQL*PLUS command and can't be used in PL/SQL block. You may use something like
    select * from v$parameter where name like 'optimizer%'

  • DYNAMICALLY MAKE A parameter OBLIGATORY

    CAN I DYNAMICALLY MAKE A FIELD OBLIGATORY i m not defining that parameter obligatory in declaration but i want when i execute this parameter become obligatory

    Hi,
    Here is the code.
    parameters : p_abc type i.
    at selection-screen on p_abc.
    if <condition1>.
      if p_abc is initial.
        message e001 .
      endif .
    endif.
    Regards,
    Richa

  • About BPS Automatically executed function before the WEB display.

    First i has already create the layout and parameter group and assigned the parameter group in "automatically plng funct." of layout.
    i want to execute the parameter group before the layout display in web set.
    but it never do it. help me please!

    The configuration you have maintained has no influence in Web. Take a look at how to document "How to Run Planning Sequences on Save and Other Events -WEB.pdf". There you can find detail step by step guide. Good luck!

Maybe you are looking for

  • How to enter customised Org Units in R/3 system

    Dear Members, Can we have our own Org Units in R/3 apart from the standard ones that are supplied by the SAP? If so how can we maintain in R/3 systems, when we tried to enter to have own values for WERKS for MM01 transaction via M_MATE_WRK object fro

  • N8 apps make unwanted internet connection automati...

    Dear users, I have had my N8 for a week now. It's beautiful, but there is only one issue I cannot resolve. With my other Nokia's (also Vodafone as provider) I was able to set any internet connection manually by selecting "Always ask" in the phone's c

  • PlzzHow can we check the version of Business Content in ECC 5.0 version??

    Hello Experts, Plz tell me.. How could we check the version of the business content installed for ECC 5.0?  I tried to search for the same in the forum but I couldnt.. plz let me know as I doubt that the business content is not properly installed for

  • PO Header Text Types

    Hi everyone, we've maintained the set of text header types to use for Purchase Orders in SPRO. The view that's behind the customizing is V_TTXID_MM_UPD, which is a join of TTXID and TTXIT. The thing is that we want to retrieve the list of the text he

  • Dynamic User Input

    Hello, my collegue and I are working with Oracle Application Server 10g Release 2 (10.1.2). We want to create an inputmask, that let's the user choose from a Combobox. We create a 'simple inputmask' from the portlet repository. Now we want to to have