How to pass parameter in a concurrent program like PL/Sql procedure

Hello experts,

I created a simultaneous the Plsql procedure type executable program.

In the procedure, I have three user settings

1 p_fnd_user in

2. out errbuf

3. out retcode

I created the simultaneous program with parameter

1 p_fnd_user

the token is disable.

I entered the user id at the time of submitting the application.

I don't get the p_fnd_user inside the procedure.

Please help me.

Thank you inadvance.

Yoann

You can try and reorganize the parameters in your pl/sql procedure to errbuf outside, out retcode, p_fnd_user in

Tags: Oracle Applications

Similar Questions

  • How to call button form oracle concurrent program

    Hi all

    I'm working on forms of Oracle 10 g and Oracle Applications: 12.1.2
    already, I have created a simultaneous program (GRN report) and that with Receipt_number and org_id as parameters and the output format is. PDF. Its working fine.

    Whenever customers need the report, they have to give the values of name and then correct setting program simultaneous then refresh, then clicking on the button view exit they see the output.

    Now what I want is from the button of form (named as print report) is it possible to call this concurrent program and when the button is clicked, it will ask to the parameter values after giving all the parameter values and clicking on the SUBMIT/go button it must give the same output (.pdf) as simultaneous program.

    can someone tell me how to get this.

    Thank you

    Kind regards
    Guru

    Hi guru
    You can set up the format of output with the report itself :)
    As a system administrator, change the output format of program competing in "pdf" format Then the click of a button will appear automatically the output .pdf

    Kind regards

    REDA

  • How to make the status of concurrent program error

    Hi Experts,

    I've written a PL/SQL package procedure, created an executable w / values for my 2 IN parameters and he attributed to a simultaneous program to the e-business suite.

    The specification of the procedure looks like this:
    PROCEDURE PROC1 (
    errbuf OUT NOCOPY VARCHAR2 ,
    retcode OUT NOCOPY NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char IN VARCHAR2 
    );
    Here my requirement is like this,

    How to make the status of the program contributing to the error even if the program successfully completes.
    Please let me know how?

    Thank you
    Suman V.

    Hello

    To give an error output, simply put the RETCODE contains 2
    To give a warning output set to 1
    for and OK output set to 0.

    If your procedure may be:

    procedure proc1 (errbuf OUT NOCOPY VARCHAR2,
    OUT NOCOPY RETCODE NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char in VARCHAR2
    ) IS
    BEGIN
    RETCODE: = 2;
    errbuf: = ' this CR WRONG because I wanted it ';
    END;

    This will give you an error.
    It may be good to your CR PLSQL like this:

    procedure proc1 (errbuf OUT NOCOPY VARCHAR2,
    OUT NOCOPY RETCODE NUMBER,
    p_contract_number IN VARCHAR2,
    p_end_date_char in VARCHAR2
    ) IS
    BEGIN
    RETCODE: = 0;
    return;

    exception
    while others then
    RETCODE: = 2;
    errbuf: = "an error has unhandeled."
    return;
    END;

    This way execptions generate an error.

  • How to pass the Record of entry to the dynamic SQL Code

    Hi all

    I am trying to run under Oracle applications API on the remote database using DB Link. I try to run using dynamic SQL. Part of the code is given below.

    DECLARE

    l_batch_info_rec wsh_picking_batches_pub.batch_info_rec;

    l_rule_id NUMBER;

    l_rule_name VARCHAR2 (240);

    l_batch_prefix VARCHAR2 (240);

    BEGIN

    l_batch_info_rec.document_set_id: = v_document_set_id;

    l_batch_info_rec.order_type_id: = v_order_type_id;

    l_batch_info_rec. Default_Stage_Subinventory: = v_default_stage_subinventory;

    l_batch_info_rec.pick_grouping_rule_id: = v_pick_grouping_rule_id;

    l_batch_info_rec.pick_sequence_rule_id: = v_pick_sequence_rule_id;

    l_batch_info_rec.autopack_level: = v_autopack_level;

    l_batch_info_rec.autopack_flag: = v_autopack_flag;

    l_batch_info_rec.ac_delivery_criteria: = v_ac_delivery_criteria;

    l_batch_info_rec.backorders_only_flag: = v_backorders_only_flag;

    l_batch_info_rec.existing_rsvs_only_flag: = v_existing_rsvs_only_flag;

    l_batch_info_rec.customer_id: = v_customer_id;

    l_batch_info_rec.order_header_id: = v_header_id;

    l_batch_info_rec.from_scheduled_ship_date: = NULL;

    l_batch_info_rec.organization_id: = v_organization_id;

    l_batch_info_rec.include_planned_lines: = v_include_planned_lines;

    l_batch_info_rec.autocreate_delivery_flag: = v_autocreate_deliveries_flag;

    l_batch_info_rec.autodetail_pr_flag: = v_autodetail_pr_flag;

    l_batch_info_rec.allocation_method: = 'I ';

    l_batch_info_rec.pick_from_locator_id: = NULL;

    l_batch_info_rec.auto_pick_confirm_flag: = 'n';         -The value manually to run Transact order

    l_batch_info_rec.autopack_flag: = 'n';         -Manually configure to perform the manual packaging

    l_rule_id: = NULL;

    l_rule_name: = NULL;

    l_batch_prefix: = NULL;

    v_sqlstmt1: = ' START

    wsh_picking_batches_pub.create_batch' | g_db_link | "(1.0,

    fnd_api.g_true,

    fnd_api.g_true,

    : l_return_status,.

    : l_msg_count,.

    : l_msg_data,.

    : l_rule_id,.

    : l_rule_name,.

    : l_batch_info_rec,.

    : l_batch_prefix,.

    : p_new_batch_id

    );

    END;';

    --

    EXECUTE IMMEDIATE V_sqlstmt1

    With the HELP OF THE l_return_status,.

    ON l_msg_count,.

    ON l_msg_data,.

    BY l_rule_id,

    BY l_rule_name,

    BY l_batch_info_rec,

    BY l_batch_prefix,

    OUT p_new_batch_id;

    --

    END;

    After you run this script, I get below error "PLS-00457: expressions must be SQL types ' for variable l_batch_info_rec which is of type record. can someone please guide me how can I pass variable type dynamic SQL record.

    Thank you

    Priyanka

    Food for thought:

    On remote db:

    SQL > create or replace
    package 2 pkg
    3 is
    4 type r_type is (record
    Number 5,
    6 name varchar2 (10)
    7                            );
    (p) 8 procedure
    9 p_rec in r_type,
    10 p_out out varchar2
    11                  );
    12 end;
    13.

    Package created.

    SQL > create or replace
    package 2 body pkg
    3 is
    4 procedure p)
    5 p_rec in r_type,
    6 p_out out varchar2
    7                  )
    8 is
    9 start
    10 p_out: = "ID = ' |" p_rec.ID | 'Name =' | p_rec. Name;
    11 end;
    12 end;
    13.

    Package body created.

    SQL >

    On local db:

    SQL > set serveroutput on
    SQL > declare
    v_rec 2 pkg.r_type@pdb1sol12;
    3 v_out varchar2 (50);
    4 start
    v_rec.ID 5: = 1;
    6 v_rec.name: = 'XXX ';
    7 immediate execution"
    8                        begin
    9 pkg.p@pdb1sol12 (: 1,: 2);
    10                        end;'
    11 using v_rec,
    12 v_out;
    13 dbms_output.put_line (v_out);
    14 end;
    15.
    using v_rec;
    *
    ERROR on line 11:
    ORA-06550: line 11, column 20:
    PLS-00457: expressions must be SQL types
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored

    SQL > declare
    2 number of v_id: = 1;
    3 v_name varchar2 (10): = 'XXX ';
    4 v_out varchar2 (50);
    5. start
    6 immediate execution"
    7 report
    8 v_rec pkg.r_type@pdb1sol12.
    9                        begin
    10                            v_rec.id  := :1;
    11 v_rec.name: =: 2;
    12 pkg.p@pdb1sol12 (v_rec,: 3);
    13                        end;'
    14 using v_id,
    15 in v_name,
    16 v_out;
    17 dbms_output.put_line (v_out);
    18 end;
    19.
    ID = 1 name = XXX

    PL/SQL procedure successfully completed.

    SQL >

    SY.

  • How to pass a list as a bind variable in SQL Developer?

    How can I pass a list as a bind variable in SQL Developer?

    The following query in SQL Developer so work I put ": prmRegionID = 2.

    SELECT COUNTRY_ID,
    COUNTRY_NAME
    OF HUMAN RESOURCES. COUNTRY
    WHERE IN REGION_ID (: prmRegionID);

    The problem is that I can't find how to set ": prmRegionID = 2, 3.

    I know that I can replace ": prmRegionID" by a proxy '& prmRegionID '. The above query will work well with"& prmRegionID = 2" and with "& prmRegionID = 2, 3". "

    But with this solution, I lost all the benefit of the use of bound variables (analysis hard against soft parse, possibility of SQL injection, etc.).

    I'm learning how to do this in SQL, as well as the use of UDT in this thread: How to move a list as a bind variable?

    But with this solution, I've lost nice SQL Developer user interface. In SQL developer, it is easy to test a query using the standard binding variable. When we start the application, a pop up asking for a value of the variable binding.

    With the UDT, the interface request always variable binding standard. You have an idea on how I can get a variable string binding (such as 1, 2, 10) in a set of NUMBER or VARCHAR2? This way I would be able to launch a standard query in SQL Developer to test my application.


    Can someone tell me what is the best approach to this?

    Thank you in advance,


    MB

    Hi Blais,

    Thank you for trying the SQL and PL/SQL instance before coming here - it was definitely the right approach, and you've got some very good suggestions there. Your needs for a invite only bind to the value in the clause list, I think I have a possible solution. I'll introduce you to a list of characters, so you'll have to tweak it for other types of data. First, add the following to your schema:

    create or replace
    TYPE bind_tab_typ AS TABLE OF VARCHAR2(4000);
    
    create or replace
    FUNCTION comma_to_table(iv_raw IN VARCHAR2)
    RETURN bind_tab_typ
    PIPELINED
    IS
       ltab_lname dbms_utility.lname_array;
       ln_len     BINARY_INTEGER;
    BEGIN
       dbms_utility.comma_to_table(list   => iv_raw
                                  ,tablen => ln_len
                                  ,tab    => ltab_lname);
       FOR i IN 1 .. ln_len LOOP
          PIPE ROW (ltab_lname(i));
       END LOOP;
    END;
    

    Now you can write a query, say for scott.dept, as follows, and have executed statement ask the value list in the clause as a single binding variable:

    select *
    from dept
    where dname in (
      select * from table( comma_to_table( :BNDS ))
    );
    

    When you are prompted, provide the list of values separated by a single comma without any extra spaces.

    I don't know if the Varchar2 (4000) really needs to be which is great. I use it because that's what dbms_utility.lname_array uses.

    Kind regards
    Gary
    SQL development team

  • How can see calendar of the concurrent program to a user

    Hi all

    I need an application that can show me the concurrent programms that are scheduled with a user. I need also interval
    timing to execute programs of the programs for this user. I also want to see the names of calendar.

    Please I need urgent I will be very grateful for your kind support.


    Thank you

    Salvation;

    Please see:
    How to determine the regular of simultaneous requests [ID 170107.1]
    Re: At the request of simultaneous queries SQL query

    Respect of
    HELIOS

  • How to pass parameter in cursor loop for?

    Hi Experts,

    I want to pass the parameter l_bom_header_tbl (i) .assembly_item_name in the statement below how to do this?
    for j from 1... l_bom_components_tbl. COUNTING LOOP
    Thank you

    You can just refer to the variable - it is still in scope. There is no 'good' to make.

  • How to pass parameter in the function using the select statement?

    Hello

    I had a problem. I can't pass as parameter to the function by using the select statement. But it can pass as a parameter using the "code". How can I solve this problem?

    For example,.
    Select * from table (SplitFunction ('HS750020, HS750021')) < < < this work.

    but

    Select * from table (SplitFunction (select LOT_NO in the TRACER_SEARCH_SCHEDULE where JOB_ID = '36')) < < < do not work.

    Thank you for trying to help him. Thank you.

    Select * from table (SplitFunction (select LOT_NO in the TRACER_SEARCH_SCHEDULE where JOB_ID = '36'))< do="" not="">

    Try like this

    select * from table(select splitfunction(lot_no) from tracer_search_schedule where job_id='36')
    

    Just make sure that your subquery returns only 1 row.

  • Enabling\Displaying more than one parameter in the concurrent program.

    I need to create four simultaneous program settings where the 2nd, 3rd and 4th are active and disabled depending on the value selected in the first parameter.

    If the first value of the parameter is 'X', then I need to allow the 2nd and 3rd and 4th parameter to disable.

    If the first value of the parameter is 'Y', then I need activate 4th and disable parameters 2 and 3.

    Please help me on this

    Thanks in advance

    Kiran

    Hi Kiran,

    See if the solution in link below helps to:

    Toggle settings for simultaneous program dynamically - Oracle CRM Blog

    Thank you

    Arun

  • How disbale at the request of concurrent programs

    Hello

    Our environment is:

    Apps:R12,
    OS: Linux

    You must disable some unwanted concurrent requests and some games request to disable. How to disable the concurrent requests to the application, we


    and we want to run Gather stats wise scheme, so I think better to use all of the request, how we define, please let me know


    Thank you

    Hello

    You must disable some unwanted concurrent requests and some games request to disable. How to disable the concurrent requests to the application, we

    You can disable several regular simultaneous requests since the backend using the following query:

    SQL> update fnd_concurrent_requests
    set phase_code = 'C', status_code = 'X'
    where status_code in ('Q','I')
    and requested_start_date > SYSDATE
    and hold_flag = 'N'; 
    

    Note: 170107.1 - how to determine at the request of concurrent requests
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=170107.1

    Note: 152209.1 - What are the meanings of the Codes in the STATUS_CODE and the PHASE_CODE FND_CONCURRENT_REQUESTS Table columns?
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=152209.1

    Kind regards
    Hussein

  • How to pass the cc again adobe programs ssd

    Hi, I recently bought a new ssd for my computer. I want to spend all my adobe program files in order to speed up the loading process. I tried the chance the installation directory in the creative application of cloud, but he did nothing. Thanks for your help!

    You must reinstall correctly with a clean slate. Run the cleanup tool and try again.

    http://www.Adobe.com/support/contact/cscleanertool.html

    Mylenium

  • How to pass parameter in the function extract (for XMLTYPE)

    I have a table with XMLTYPE field xml_column PROBLEMXML. In this column, there are many deffinitions for the problem. There is no amount deffinitions max and there can be no definition at all. I need to return all the definitions of all the problems a string wirh separate definitions by '; '.

    Query
    SELECT extract (prob. Def,'/definitions/definition[1]/@var'). ';'|| excerpt (prob. Def,'/definitions/definition[2]/@var')
    OF PROBLEMXML j.
    XMLTABLE)
    "/ problem.
    PASSAGE j.xml_column
    Probid VARCHAR COLUMNS (31) PATH ' / problem/@id',
    Prob def XMLTYPE PATH ' / problem/definitions ")
    where PROBLEM_ID = 1;
    Returns exactly what I want one; m.
    But
    declare
    my_variable varchar2 (2000): = null;
    number of N1;
    number of N2;
    Start
    N1: = 1;
    N2: = 2;
    SELECT extract (prob. Def,'/definitions/definition[N1]/@var'). '|'|| excerpt (prob. Def,'/definitions/definition[N2]/@var') in my_variable
    OF ETL_PROBLEMXML_STG_T j.
    XMLTABLE)
    "/ problem.
    PASSAGE j.xml_column
    Probid VARCHAR COLUMNS (31) PATH ' / problem/@id',
    Prob def XMLTYPE PATH ' / problem/definitions ")
    where PROBLEM_ID = 1;
    dbms_output.put_line ($my_var);
    end;
    Returns null.
    Is there a way to switch the setting to extract the function?

    You have string literal death of n1 and n2. Note the change to select it.

    DECLARE
      my_var VARCHAR2(2000) := NULL;
      n1     NUMBER;
      n2     NUMBER;
    BEGIN
      n1 := 1;
      n2 := 2;
      SELECT extract(prob.def, '/Definitions/Definition[' || n1 || ']/@var') || '|' ||
             extract(prob.def, '/Definitions/Definition[' || n2 || ']/@var')
        INTO my_var
        FROM etl_problemxml_stg_t j,
             xmltable('/problem' passing j.xml_column columns probid VARCHAR(31) path '/problem/@id',
                      def xmltype path '/problem/Definitions') prob
       WHERE problem_id = 1;
      dbms_output.put_line(my_var);
    END;
    

    Published by: RPuttagunta on December 13, 2010 09:18

  • Pass the value NULL of BPEL to pl/sql procedure

    We are invoking a procedure pl/sql (using OA adapater) of BPEL with the attribute IN OUT NOCOPY parameter. Inside the procedure, we insert the data into the Oracle table. We notice that the following values are inserted in the table of attributes with null values

    type - number - inserted value is "999000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000".

    Data type varchar2 - inserted value is chr (0) (it looks like the space)

    The schema definition a minOccur = 0 and nillable = true.

    Any idea, like what's going wrong here?

    Thank you

    What you see are special values representing NULL using the adapter of Apps. Are also inside the Apps there are special constant values such as G_MISS_NUM, which is equal to ' 9900000... "and G_MISS_CHAR, which is equal to" chr (0) ' he constants to date as well. So, when you are in mode Apps (using Oracle applications adapter) and you pass null values (for example, xsi: Nil = 'true'), you will get these special values. It's behavior that has been specifically requested by the Apps Team.

  • Waiting for a concurrent program

    We need to make a report of Bi Publisher in the accounts receivable module.
    But this report of BI Publisher should wait for the concurrent program answered at the end.

    How should I wait for the concurrent program finish in BI publisher?

    From your standard program is intended first of all it would be picked up by CP before your program customized.
    Incompatible Definig is more than enough to make sure that your report is going to get fired after standard report.

    Prasanna-

  • extra in the generated text file spaces of concurrent program

    Hello
    We are production textfile of concurrent program with the sql method * more and that the complaint is,.

    set pagesize 0

    prompt ACCOUNT_ID CUSTNAME INVOICE_ID CONTRACT_ID INVOICESTARTDT ITEMTOTALSERVICES
    Select invoicetracking.account_id. Chr (9) |
    invoicetracking.custName | Chr (9) |
    invoicetracking.invoice_id | Chr (9) |
    invoicetracking.order_id | Chr (9) |
    TO_CHAR (invoicetracking.invoicestartdt, "mm/dd/yyyy '"). Chr (9) |
    Sum (invoiceitems.itemtotal) itemtotalservices
    OF INVOICETRACKING, INVOICECUSTDATA, INVOICEITEMS
    where INVOICETRACKING. INVOICE_ID = INVOICECUSTDATA. INVOICE_ID
    and INVOICETRACKING. INVOICE_ID = INVOICEITEMS. INVOICE_ID
    and INVOICETRACKING. INVOICE_ID as to_char (to_date ('& 1', 'MON-DD-YYYY'), "YYMM"). '%'
    - and INVOICETRACKING. INVOICE_ID as 0309 ' %'
    AND (INVOICEITEMS. STATUS <>0 or status is null)
    AND INVOICETRACKING. DOINVOICE = 1
    AND INVOICEITEMS. ITEMTOTAL <>0
    and (INVOICETRACKING. DELIVERY <>"company 15' or INVOICETRACKING. The DELIVERY is zero)
    AND (INVOICETRACKING. CREDIT_FLG <>1 or INVOICETRACKING. CREDIT_FLG is Null)
    Invoicetracking.custname group,
    invoicetracking.account_ID,
    invoicetracking.invoice_id,
    invoicetracking.order_id,
    TO_CHAR (invoicetracking.invoicestartdt, "mm/dd/yyyy")
    order of upper (invoicetracking.custname)
    ;

    We recorded conc program like sql * more and generate the text and sending file to the remote directory using shell script.
    previously, we used to run this query in Toad and save as TAB delimited text and send to remote directory manually.
    recently, we have this automated using shell script.


    The problem is when the user checks it says the new files is different from old file generated manually.
    It opened in Notepad the file generated text recently and that generated manually into another notebook and uses the format-> wordrap

    If he uses wordrap in the new file after that some gap of a single line of lines is coming so he says that some additional special characters are at - it something like that.
    without option of wordrap the two are identical.

    Can someone tell me is this query generates the output with spaces at the end of the line.

    Add a

    Set trimspool on

    to account for that

Maybe you are looking for

  • Satellite A500 - rattling noise

    Hey guys,. I ve bought my A500 a month ago and since I got it, there is a small click on the right side, then where is the Num-Lock button.I Don t think it s HARD drive because it is not a permanent by clicking, it's like * click * seconds later * cl

  • WiFi extender Nighthawk EX7000 connects to the wireless or Ethernet network

    I tried all the steps that I can find online to get my extender to connect to the network but even physically sitting next to him using the WPS and a direct ethernet connection, it will not be.

  • LCD brackets on the lower left corner of cracking

    I work in a school and we have about 150 T61 machines for our 2012 graduates. We brought them over the summer for repairs and re-imaging. Probably more than 1/3 of them had a crack in the bezel LCD at the bottom left of the LCD screen outside of the

  • BLUE SCREEN = &#62; STOP: 0 X 00000019 (0X00000020, 0XA28E6000, 0XA28E6120, 0X0A24080)

    I bought a desktop computer brand new, while surfing on the internet (google chrome is not serious or IE), read something etc... This blue screen all of a sudden I wonder what is the source of this problem, first it is hardware or software than can d

  • Message of pursuit

    For the past two weeks whenever I turn on my computer, I get a message asking me to download "A tool to help develop services for Windows NT." Given that I'm not a developer, I chose No., but the message came back in return.  Finally, I decided to se