Concurrent programe parameters define ?

Hello All
i have created concurrent program parameters as below :
Report to be automated from Oracle ERP system by a concurrent job on a 1st of each calendar month with date parameters of 15th to 31st of previous calendar month .
concurrent job on a 15th of each calendar month with date parameters of 1st to 14th of current calendar month .
i need to define like below :
Parameter1 : 1-JAN-2013
Parameter2: 15-JAN-2013
FUNCTION from_date (from_start_date DATE)
RETURN DATE IS
day CHAR(2);
date_suffix CHAR(18);
BEGIN
IF eff_start_date is null
THEN
RETURN(NULL);
END IF;
day := to_char(eff_start_date,'DD');
date_suffix:= to_char(from_start_date,'-MON-YYYY');
IF to_number(day) > 15
THEN
day := '16';
ELSE
day := '01';
END IF;
RETURN to_date(day||date_suffix,'DD-MON-YYYY');
END get_from_date;
By default i need to define like above parameters in concurrent program oracle apps.
please help me on this and pls tell above function is correct  r not .
thanks
Edited by: 981527 on Feb 7, 2013 10:43 PM
Edited by: 981527 on Feb 7, 2013 11:13 PM
Edited by: 981527 on Feb 7, 2013 11:17 PM

Hi,
Please amke the second Value set as Table Validated value set, and use :$FLEX$.<Prior_Value_Set_Name>.OUTPUT = 'A', where :$FLEX$.<Prior_Value_Set_Name>.OUTPUT returns the value returned by the previous value set.
Regards,
Kiran

Similar Messages

  • Help required for Concurrent program parameters

    Hi All,
    I have a Concurrent program which has the following set of parameters.
    From Project Number
    To Project Number
    From Org
    To Org
    We dont want to make any of these mandatory, but we have a condition that either of the two sets must be entered i.e. before submitting we have to validate that either From Project Number/To Project Number parameter set is populated or From Org/To Org parameter set is populated.
    If someone could help me with this it would be a great help.
    Regards,
    Shruti

    Hi Shruti;
    What is your OS and EBS level?
    Please check below:
    Setup for Defined Concurrent Program with Parameters - SQL Script
    How to enable/disable parameters in concurrent program dependent prev. para
    Concurrent Program with conditionally required parameters
    Need to do validation while entering concurrent program parameters
    If those are not help,please try to look [this search|http://forums.oracle.com/forums/search.jspa?threadID=&q=Concurrent+program+parameters+&objID=f475&dateRange=all&userID=&numResults=15]
    Also check http://download-uk.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/progde04.htm and this
    Hope it helps
    Regard
    Helios

  • Tables and views relevant to concurrent program parameters

    I'd like to know all the tables and views relevant to concurrent program parameters.
    As far as I know, fnd_descr_flex_col_usage_vl, fnd_flex_value_sets, and fnd_parameters are such kind of tables or views. They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
    Thanks in advance!

    Hi,
    I'd like to know all the tables and views relevant to concurrent program parameters. See these tables:
    FND_CONCURRENT_QUEUE_PARAMS
    FND_RUN_REQUESTS
    FND_CONC_REQUEST_ARGUMENTS
    FND_CONCURRENT_REQUESTS
    FND_CONCURRENT_PROGRAMS
    More details about these tables can be found in eTRM website.
    eTRM
    https://etrm.oracle.com
    > They can not provide enough information I want. As I guess that for some parameters, their values are queried from tables. Where can I find the information about how such parameters are queried?
    What information you are looking for?
    You could get the query executed from the application by following the steps in (Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i) -- Query the concurrent program, then check the value of "SYSTEM.LAST_QUERY".
    Regards,
    Hussein

  • How to control range of dates in concurrent program parameters

    Hi,
    I have a requirement to show date fields in the concurrent program parameters and I also need a validation as follows:
    TO_date between from_Date and from_Date+30
    Can we achieve this ?
    Any pointers/he is highly helpful as this is quite urgent for us.
    Thanks in Advance.
    regards,
    Mukthi

    Please see if these links help.
    Enabling/disabling DATE parameters of a concurrent program
    http://chandramatta.blogspot.com/2009/11/enablingdisabling-date-parameters-of.html
    Enable/Disable Concurrent program parameter based on Other Parameter
    http://sureshvaishya.blogspot.com/2008/05/disable-concurrent-program-parameter.html
    Thanks,
    Hussein

  • Passing concurrent program parameters thru OA.jsp?akRegion

    Hi, I'm trying to create a submit button thru a personalization in order to print a custom expense report (rdf).
    Thru a personlization, I've been able to create a button and set the "Destination URL" to use OA.jsp?akRegionCode=FNDCPPROGRAMPAGE......
    I'm almost there, but the only thing left is that I'm trying to figure out how to pass parameter the the concurrent program in the destination URL.
    For example, I've created an item thru a personalization
    ID : XX_SUBMIT
    Destination URL : OA.jsp?akRegionCode=FNDCPPROGRAMPAGE&akRegionApplicationId=0&programApplName=XX&programRegion=Hide&scheduleRegion=Hide&notifyRegion=Hide&printRegion=Hide&&programName=XX_EXPENSE_REPORT&P_ACCOUNT_NO={$ReportNumber}
    Prompt : Print Report
    Target: _blank
    When on my expense report page, on each line there is a button to print the report itself. Basically, I'm calling FNDCPPROGRAMPAGE and hide a couple of sub-pages and then I want to be able to pass the report number the the concurrent program 'XX_EXPENSE_REPORT'.
    My problem is that if in the concurrent program definition I uncheck "Display" parameter, the report_number shows in the URL but doesn't get transferred to the report so my output is blank. The report didn't receive the report number value but I saw the value in the URL.
    If I check the 'Display' parameter, after clicking on the "Print Report button", system ask me for the Report number input which I don't want to do.
    I'd like to pass it automatically to the concurrent program based and not input it.
    Does anybody knows how to solve or is it possible witout extending controller and other stuffs..
    I'm am missing something ?
    Thanks for your help.

    Wee too face similar issue.
    Are you populating default falue for Report Number from Database sequence?
    if yes you can handle this in 'XX_EXPENSE_REPORT' (in PLSQL or RDF based on your execution metohd).
    another oprion is dont hide the parameter page, instead make the parameters read only using controller extension.
    Regards,
    Ram

  • How Can I get Concurrent program parameters in the bursting output file????

    I have rtf template. I am passing parameter PC_REPORT_TYPE,pd_week_ending_date in my concurrent program. In rtf header I am passing this parameters as <?PC_REPORT_TYPE?> and <?param@begin:pd_week_ending_date?><?xdofx:to_char(to_date(replace(substr($pd_week_ending_date,1,10),’/’,’-‘),’YYYY-MM-DD’),’MM/DD/YY’)?> .
    I am getting the values in my report which is generated from this concurrent program. But I am not getting these values in my bursting output file which is generated from that previous concurrent program.
    Thanks in advance....

    The same exact video played back perfecly fine 2 weeks ago.  The same project too, with no changes at all.  I have a Nvida card too and have made no changes to that either.  Not sure everything worked a couple weeks ago.  Then every once in a while I started having issues, but I could just close and reopen the project and it would be OK.  Now, I can't get any vieo at all.  If I double click in the monitor box the frame I am on pops up but nothing plays, I just get one frame while audio plays with no issue.

  • Register concurrent programs parameter customization.

    Is there a way to register customization of concurrent programs parameters (I need to make one of the parameters mandatory) like it is done with customized files in applcust.txt?

    Sorry about the late reply, but the issue with applcust.txt is that it only checks files updated by the patch. To provide an update to a concurrent program definition, Oracle includes an LDT file in the patch, but the name of the file doesn't have to relate to the concurrent program being updated. For example, the Purchasing concurrent program POXACREC is defined in the following files (look for the BEGIN PROGRAM "POXACREC" "PO" line in the ldt files in $PO_TOP/patch/115/import/US), shown in their applcust.txt format:
    po patch/115/import/US cst4946920_1.ldt
    po patch/115/import/US poprg.ldt
    po patch/115/import/US poxacrec.ldt
    Based on the name of the file and the concurrent program name, you would assume the last of these is the "correct" one, but all three could provide an update to the concurrent program definition. If you have multiple files defining your customised concurrent program, I would suggest you list all three in your applcust.txt. However, even if you list all three, there is nothing stopping Oracle from updating the POXACREC concurrent program with a file called abc123.ldt.
    To help with this, I would suggest for your concurrent program you also include the concurrent program executable itself in the applcust.txt file (po reports/US POXACREC.rdf in my example) as a change to parameters in an unexpected ldt file would require a change in the program as well.
    This basic problem can occur with any of data provided by LDT files or objects where the object name is not dependent on the file name - even views can be updated by odf files or sql files.
    theFurryOne

  • How to submit a concurrent program from a custom form.

    I'm use Forms [32 Bit] Version 6.0.8.26.0 (Production) and Oracle Applications : 11.5.10.2.
    I need execute a concurrent program from a custom form.
    In the custom form I have a button and when that button is clicked I want to submit this cocurrent program. I am using the below code.
    fnd_profile.get('USER_ID', v_user_id);
    fnd_profile.get('RESP_ID', v_resp_id);
    fnd_profile.get('RESP_APPL_ID', v_resp_appl_id);
    fnd_global.apps_initialize(v_user_id,v_resp_id,v_resp_appl_id);
    vn_request_id := apps.fnd_request.submit_request (
    'XBOL',
    'CSUV_GL_STATEMENT_EXPORT'                                                            
    ,NULL
    ,NULL
    ,FALSE
    commit;
    But the concurrent program finished in error:
    "ORACLE error 6550 in FDPSTP
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'MAIN'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    The SQL statement being execute"
    The executable of the concurrent program is the next:
    PACKAGE CSUV_GL_STATEMENT_EXPORT_PK
    IS
    PROCEDURE Main (
    pouc_errbuf OUT VARCHAR2,
    poun_retcode OUT NUMBER,
    pinc_OWNER in varchar2,
    pinc_VESSEL in varchar2,
    pind_GL_DATE in varchar2,
    pinc_STATE_NUM in varchar2,
    pind_STATE_DATE in varchar2,
    pinc_EXCEL_LAYOUT in varchar2
    END CSUV_GL_STATEMENT_EXPORT_PK;
    And de value set of the all my concurrent program parameters is "240 Characters".
    I dont't understand why the concurrent program finished wrong.

    Hi,
    Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'MAIN'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignoredPlease refer to "Oracle Applications Developer's Guide" manual for the correct syntax and the number of arguments you need to pass to this API.
    Oracle Applications Developer's Guide
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf
    Thanks,
    Hussein

  • Restrict concurrent program w.r.t responsibility

    Hi,
    We have a concurrent program that is shown in 5 responsibilities with the same request group. Can we restrict that to be shown in ony one particular responsibility.
    Best Regards
    Arun Kumar S.R

    Arun
    You can explore the security rules. Concurrent program parameters can be secured by responsibility (like any other key or descriptive FF). So if you secure one parameter value (hope there are mandatory parameters) for the required resp, then the other resps cannot submit the program.
    Thanks
    Nagamohan

  • XML Pub enabled concurrent program --- from self-service responsibility

    How do I run XML publisher enabled concurrent programs from a self-serivce responsiblity?
    Is there any document/whitepaper on this issue?
    Thanks

    Same way as you define any other concurrent program.
    Define Executable based on this JCP. Concurrent>Program>executable
    Create report Definition based on this executable from Concurrent>Program>Define.
    Include this report definition to respective report set.

  • Help with Defining a new Concurrent Program using Parameters

    I wrote a very simple sql script and I want to register it as an Oracle Concurrent Program. I included a parameter field in the sql script to allow the entry of value to determine the number of days prior for the script. The script runs successfully in SQL*Plus, but when I try to register it as an Oracle Concurrent Program I get the following errors below:
    This works in SQL* PLUS
    SELECT emp_id, amount
    FROM tblSalaries
    WHERE hire_date > SYSDATE-&Days;
    Enter value for Days: 7
    old    3: hire_date > SYSDATE-&Days
    new  3: hire_date > SYSDATE-7
    And it provides my results....Although when I register this as a concurrent program and assign the parameter in the setup, and run the concurrent program and enter the number in the parameter field, the job completes in ERROR with the following:
    Enter value for Days: EXEC FND_CONC_STAT.COLLECT;
    hire_date > SYSDATE-EXEC FND_CONC_STAT.COLLECT; and
    ERROR at line 3:
    ORA-00933: SQL command not properly ended If I put single quotes around '&Days', in line 3, I get a different error:
    ERROR at line 3:
    ORA-01722: invalid number Do you know what could be the problem?
    Thanks for reviewing!

    Duplicate post - Setup for Defined Concurrent Program with Parameters - SQL Script
    Srini

  • How to select multiple values from the Parameters in the concurrent program

    How to select multiple values from the Parameters defined in the concurrent program...and i believe multiple selection is not a direct feature of EBS, but is there any workaround solution to acheive mulitple selection?

    I think there's no way to do that using standard feature.
    Some workaround I use :
    1. If the number of selections are fixed, you could use multiple parameters for the same valueset. For example :
    Selection1 : <choose first selection>
    Selection2: <choose 2nd selection>
    ..etc.
    If you don't use it then leave it empty.
    2. Use text varchar valueset and enter it manually and separate by comma (or other value) , eg : selection1,selection2,selection3....etc.

  • How to call a concurrent program with some parameters in a stored procedure

    Hi All,
    I have made two procedures, xx_nidhi_proc1 and xx_nidhi_proc2.
    xx_nidhi_proc1 takes four parameters from front end and is registered as concurrent program in oracle apps and running fine alone.
    xx_nidhi_proc2 calls the concurrent program of xx_nidhi_proc1 which is XX_NIDS_PROC1_PROG1.
    But the problem in my code is , It runs the second concurrent program for xx_nidhi_proc2 but shows the Inactive- No Manager status for my first concurrent program XX_NIDS_PROC1_PROG1,
    Please find out the error in my code...
    CREATE OR REPLACE PACKAGE BODY NIDHI IS
    procedure xx_nidhi_proc1 (errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2,
    name_t varchar2,
    empno varchar2,
    doj date,
    desig varchar2) is
    begin
    fnd_file.PUT_LINE(Fnd_File.output,'/**************Start of the output **********/');
    fnd_file.PUT_LINE(Fnd_File.output, 'Name:'||name_t);
    fnd_file.PUT_LINE(Fnd_File.output, 'Number:'||empno);
    fnd_file.PUT_LINE(Fnd_File.output, 'DOJ:'|| to_char(doj, 'DD-MON-RRRR'));
    fnd_file.PUT_LINE(Fnd_File.output, 'Designation:'||desig);
    fnd_file.PUT_LINE(Fnd_File.output,'/**************End of the output **********/');
    errbuf:='SUCCESS';
    retcode:='SUCCESS';
    end xx_nidhi_proc1;
    --calls the xx_nidhi_proc1 as concurrent program.
    procedure xx_nidhi_proc21 (errbuf OUT VARCHAR2,
    retcode OUT VARCHAR2)
    is
    v_request_id number;
    begin
    fnd_file.PUT_LINE(Fnd_File.output,'/**************Start of the output **********/');
    fnd_file.PUT_LINE(Fnd_File.output, 'Deptartment Number:'||'Computer');
    fnd_file.PUT_LINE(Fnd_File.output, 'Location:'||'TCS Towers');
    fnd_file.PUT_LINE(fnd_file.output,'Starting XX_NIDS_PROC1_PROG1');
    fnd_global.apps_initialize(user_id => 1318 ,resp_id => 50578, resp_appl_id => 201);
    v_request_id := FND_REQUEST.SUBMIT_REQUEST('PO',
    'XX_NIDS_PROC1_PROG1',
    null,
    null,
    TRUE,
    'Nidhi gupta',
    138609,
    '12-Dec-2003',
    'ASE');
    commit;
    fnd_file.PUT_LINE(fnd_file.OUTPUT,'Request ID is '||to_char(v_request_id));
    fnd_file.PUT_LINE(fnd_file.OUTPUT,'End XX_NIDS_PROC1_PROG1');
    fnd_file.PUT_LINE(Fnd_File.output,'/**************End of the output **********/');
    errbuf:='SUCCESS';
    retcode:='SUCCESS';
    end xx_nidhi_proc21;
    Thanks
    Nidhi
    END NIDHI;

    Nidhi this might help u
    v_num_request_load_id :=
    fnd_request.submit_request (c_chr_application_short_name,
    c_chr_apl_short_name,
    NULL,
    NULL,
    FALSE,
    p_chr_allocation_view,
    p_chr_flow_type,     
    p_chr_operating_unit,
    p_dte_planned_from,          
    p_dte_planned_to,
    p_num_application_id,
    p_num_loc_seg1_id,
    p_num_loc_seg2_id,
    p_num_organization_id,
    p_num_responsibility_id,
    p_num_session_id,
    p_num_user_id,
    p_chr_arrival_status,
    p_chr_statuses,
    p_chr_locations,
    p_chr_transport_unit
    COMMIT;
    IF v_num_request_load_id = 0
    THEN
              o_num_stat := 2;
         o_chr_err_msg := 'Report could not be submitted';
    END IF;
              o_chr_err_msg := 'Request Id :' || v_num_request_load_id;
              v_boo_wait :=
         fnd_concurrent.wait_for_request (v_num_request_load_id,
    c_num_interval,
    c_num_max_wait,
    v_chr_phase,
    v_chr_status,
    v_chr_dev_phase,
    v_chr_dev_status,
    v_chr_err_buf
    IF v_chr_dev_phase = 'COMPLETE' /* 1.1 */
    THEN
    IF v_chr_dev_status = 'NORMAL' /* 1.2 */
    THEN
    BEGIN
    -- some your own logic
    EXCEPTION
    WHEN OTHERS THEN
         o_chr_err_msg := o_chr_err_msg||' Unable to determine Report File Path.';
                   o_num_stat := 2;
    END;
    ELSIF v_chr_dev_status = 'WARNING'                                             /* 1.2 */
    THEN
    o_chr_err_msg := o_chr_err_msg||' Report program completed with Warning.';
    ELSE                                                                                               /* 1.2 */
    o_chr_err_msg := o_chr_err_msg||' Report program completed with Error.';
    END IF; /* 1.2 */
    ELSE /* 1.1 */
    o_chr_err_msg := 'Report program Timed Out.';
    END IF; /* 1.1 */

  • Dynamic parameters for concurrent programs

    All
    Is there any way to add/remove concurrent program's parameters dynamically. If the concurrent program's parameter p1 has a value v1, parameter p2 should get displayed. If parameter p1 has a value v2, parameter p3 should get displayed and parameter p2 should get hidden and disabled. New parameters (p2 or p3) should allow the user to enter free text.
    I reviewed the usage of :$FLEX$ and value sets to achieve this requirement. However, this approach grays out the unwanted parameters (parameters still gets displayed) and the new parameters (p2 or p3) become an LOV instead of allowing the user to enter free text.
    Thanks.

    Hi,
    I don't think it's possible to make the parameters disappear. All you can do is to gray out them so that the user cannot enter any value (that is what you've already done). About allowing the user to enter a free text, you simply need to use a value set that is not validated (Validation Type = None). You can create a new one or you can use the ones already existing in the EBS, like '30 Characters', '120 Characters', ...
    Hope it helps.
    Regards.

  • Create Host Concurrent Program with parameters

    Hi All,
    I have created a host concurrent program in Oracle APPS with one parameter. My shell script in unix is this :
    cd $1
    mv _oracle.txt Especificacion.txt
    it is in $AC_TOP/bin directory.
    When I execute the host concurrent program with oracle APPS with one parameters that is the path that I want to send it to shell script this error occurs.
    /hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb: cd: bad argument count
    mv: cannot rename _oracle.txt to Especificacion.txt:
    No such file or directory
    /hogr-949-000/oracle/prodappl/ac/11.5.0/bin/xx_opm_cambio_nomarch_iweb
    Program exited with status 1
    I have read many papers in metalink and I understand that at first parameter it includes many details programs such as, user id, concurrent program name, etc etc, and not only the value that I want to send.
    So I know the problem, but my question is, how can I resolve it ?. I'm not a unix expert.
    Please,
    Thanks in advance
    Mariano.-

    It doesn't work. But I finally find the solution. The point is this...
    p1=`echo $1|cut -f9 -d " "|cut -f2 -d '"'`
    In f1, f2, f3, etc you receive the information of the concurrent, and in f9 receive the first value of your parameter that you create in de concurrent program.
    Regards,
    Mariano.-

Maybe you are looking for

  • How to populate a combobox2 when value selected from combobox1, both are present in datagrid

    Hi, I have a mx:datagrid which has 2 columns that has 1 component each, say combobox1,combobox 2 when i select a value from combobox 1 i need to populate the combobox 2, how can it be done kindly suggest, The rows of datagrid can increase or decrease

  • MacBook froze, can't get it to work again

    My MacBook half-froze - I could move the cursor but couldn't click on anything, none of the keys would work either - so I shut it down by holding down the power button. When I turned it back on, there was a grey screen with 4 options: restore using T

  • Error in TTE tax Processing

    Hi Experts, I am working in CRM 5.0 and getting the following error while stimulating an output for the tax document. Error during the RFC call : Get Tax Procedure Log. Message no. CA_TTE_TEST182 I have configured the related settings in TTE  like de

  • REPORT TO GET CUBE OR VOLUME  AGAINST PO DUMP

    Hello Experts... I am new to MM and looking for the report where I can dump POs and get the  no of cube for each PO. Or in other words in which report I can find total volume for POs dump. The table and field name is MEPO1312-VOLEH2 Your help will be

  • Change status not appearing

    Hi All, In planning work flow change status not appearing to promote and write annotations.,please advice Regards, Prabhu.