Issue in concurrent program parameter.

Hello
I have one request set which has 2 concurrent programs. All the parameters of first programs are shared by 2nd program.
In first program there is one parameter p_load_seq where I am using default type=
"SQL Statement" and default value "select per_hr_br_outbound_seq.nextval from dual' .
If we submit this program/req set manually then it is taking the nextvalue correctly but If we schedule this job or copy this job/program it is not taking next value of the sequence.
Please let us know what is to be done to get the next value even if we schedule or copy this job.
Thanks
Ganesh Mane

This seem to be due to the fact that when You copy, previous execution parameter values are inherited, not defaulted again, and for scheduling, the values are derived when You secify parameter values and then they are carried to the next scheduled execution.
The only ways to circunvent this may be to obtain the sequence in concurrent program itself, and if that is not possible because of a standard program, You may code a launcher that calls the request set, so everytime it fetches the new sequence value.

Similar Messages

  • How to validate concurrent program parameter and display a custom message?

    Hi Friends,
    I have a concurrent program which has two non-mandatory parameters.
    The requirement is that user should provide value for any one of the parameters.
    If user does not enter value for both the parameters, i need to display a custom error message.
    Parameter1 has an independent value set.
    Parameter2 has character value set with validation type as special.
    Process i tried so far:
    In the value set for the second parameter, under the Validate event, i have written the following code:
    FND PLSQL "declare
    l_paramb VARCHAR2(20) := :!VALUE;
    l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
    BEGIN
    IF 1 = 1  THEN
    fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
    fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
    fnd_message.raise_error;
    END IF;
    END;" I am not using those variables that are defined for the time being.
    Now since the condition 1=1 is always satisfied, i should always receive the error message.
    I am not receving any error message and i can go ahead and submit the program..
    Please advise on where am i going wrong.
    Reports Version - 6i
    Oracle Apps Version - 11.5.10.2
    Regards,
    Sreekanth Munagala

    Hi srrekanth,,
    I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
    Can you pl provide solution.

  • Using concurrent program parameter in bursting

    Hi there,
    I am passing a concurrent program parameter into my rtf using the ?param@begin method & displaying it on the XMLP PDF output.
    However when I am sending that PDF via bursting the param data does not show, even though it's present when viewing the PDF output via the concurrent request.
    Does that mean I cannot do that and need to define the parameter as part of the Oracle report first?
    cheers.

    please check xml user guide

  • Help needed in setting Default Value of Concurrent program parameter

    Hi All,
    I have 3 parameters in a concurrent program
    Org ID From
    Org ID To
    Currency Code
    In the Currency Code parameter I want to use the following query in the Default Value
    SELECT currency_code
    FROM gl_sets_of_books sob, org_organization_definitions ood
    WHERE ood.organization_id = :p_org_id_from
    AND sob.set_of_books_id = ood.set_of_books_id
    Now, at runtime this gives me an error of p_org_id.
    Can anyone please advice me how can I use this parameter(p_org_id_from) in the above query.
    Any help will be really appreciated.
    Regards,
    Shruti

    Hi Helios,
    Thaks a lot for the help.
    I modified the query as follows:
    SELECT currency_code
    FROM gl_sets_of_books sob, org_organization_definitions ood
    WHERE ood.organization_id = :$FLEX$.ORG_INTRANSIT
    AND sob.set_of_books_id = ood.set_of_books_id
    Here ORG_INTRANSIT is the valueset I am using in From Org ID and To Org ID.
    Now the problem which I face is that when I use ORG_INTRANSIT valueset in both From Org as well as TO Org then the Currency is not defaulted, but if I use it in either From Org or To Org then the Currency is defaulted.
    How can I resolve this. Please help.
    Regards,
    Shruti

  • Date lov in the concurrent program parameter field

    Hi,
    I have a date parameter in the concurrent program. I need to have a date calendar for the parameter, can I have the data calendar? I am not sure if we can do that.
    Can anybody throw some light on this.
    Thanks a million
    Regards
    Ruma

    Hi swati
    u cannt create a multi select LOV for Apps concurrent program.
    Some of the options:
    -> Create different parameters. Also u cannt create parameters dynamically depending upon the number of options u want to give for that parameter, better fix the maximum no. of options say 5 .. ORG1, ORG2, ORG3, ORG4, ORG5
    -> If multi select LOV are of high priority, go for Discoverer if it is a Report.
    cheers
    chakoo

  • Fnd_Standard_Date in concurrent program parameter

    Hi All,
    I hv a Pl/Sql concurrent program which has to accept date parameter in format 'DD-MON-YYYY'. I am using the value set, FND_STANDARD_DATE. But after passing parameter, it gets converted to 'dd/mon/yyyy hh:mi:ss', due to this the program is erroring out with the msg "ORA-01861: literal does not match format string".
    Pls suggest a workaround.
    regards
    Suresh

    Hi ,
    in the PL/SQL do format mask for variable of date type to the exsting format of
    FND_Standard_Date value set.
    try with this.
    --Basava.S                                                                                                                                                                                                                                                                                                       

  • 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

  • Performance Issue with Concurrent Program

    Hi Gurus,
    I have a loader program which updates some information in the OM sales orders, this is been done using oe_order_pub.process_order and I do not see any performance issue in the package.
    Using this program i had tried to update some huge number of orders uand it gets completed in few minutes, but at times this program runs for more than 6-7 hours even with
    Pls could anyone advise what could be the issue with this?
    Thanks & Regards,
    Genoo

    I have a loader program which updates some information in the OM sales orders, this is been done using oe_order_pub.process_order and I do not see any performance issue in the package.
    Using this program i had tried to update some huge number of orders uand it gets completed in few minutes, but at times this program runs for more than 6-7 hours even with
    Pls could anyone advise what could be the issue with this?Do you have the statistics collected up to date?
    Can you find any errors in the database log file?
    Any locks in the database?
    Any invalid objects?
    Please enable trace and generate the TKPROF file once the program is completed.
    Thanks,
    Hussein

  • Making Concurrent Program Parameter manadatory during runtime

    Hi
    For AR Invoice Print Reprot we want to make Customer number parameter mandatory based onsome responsiibilities used to submit this report
    for other responsibilities mandatory option is not required. Would like to know if there is possible solution for this
    Thanks
    Kamalakar

    You can try the following.
    Add a new hidden parameter. The default for the parameter should be set to the responsibility_id.
    And then in the customer number parameter's value set, you should say use the hidden parameter.
    See How to make 2nd Param requried , when First Param is set to Y? for a similar example.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

  • How to make Concurrent program parameter should not dependent on previous parameter if it is blank else it should be dependent.

    Hi,
    Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
    I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
    Thanks,
    Venkat.

    Hi,
    Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
    I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
    Thanks,
    Venkat.

  • How can i schedule concurrent program for every one hour from back end

    Hi ,
    I want to schedule concurrent program for every one hour from back end .
    Example
    1) xyz is the concurrent program that should run for every one hour with a parameter 111 and the SAME concurrent program that
    should run every 2 hours with a different parameter like 222.
    I mean Conc prog should run for different parametrs with a different scheduling..
    Please guide me to solve the issue.
    Thanks in advance...
    Regards
    Narender B

    Hi ,
    I have used following code for scheduling the concurrent program from backend.
    declare
    l_request_id NUMBER;
    l_return_code boolean := FALSE;
    BEGIN
    fnd_global.apps_initialize(62991,54477,20003);
    l_return_code := FND_REQUEST.SET_OPTIONS ('YES');
    l_return_code :=fnd_request.set_repeat_options('16:36:00','','DAYS','START','','Y');
    l_request_id:=fnd_request.submit_request(application => 'xbol',
    program => 'NAPP_START_GENERATE_CHART_DATA',
    description => 'Processing chart ',
    start_time => SYSDATE,
    sub_request => FALSE,
    argument1 =>4000130957231588,
    argument2 => null
    COMMIT;
    dbms_output.put_line('Program has been submited and request id is '||l_request_id);
    END;
    Here the issue was concurrent program is completing with a warning like
    Resubmission of request 75588551 has been cancelled.
    FND_RESUB_PRIVATE.PROCESS_INCREMENT EXCEPTION: ORA-01403: no data found
    Resubmission of request 75588551 has been cancelled.
    FND_RESUB_PRIVATE.PROCESS_INCREMENT EXCEPTION: ORA-01403: no data found
    so i could not find the solution for this issue,please anybody guide me to solve this issue.
    Regards
    Narender B

  • Oracle Concurrent Programs remains in Running Normal State for long time.

    Hi All,
    We have encountered an issue where Concurrent Programs remains in the state of Running Normal.
    Importantly when we try to cancel those requests , it displays a pop-up message "*Could not lock request*".
    Also, when we click on Diagnostics button; it says
    *"Post-processing has completed for this request, but the manager has not yet marked it as Completed", the report is completing normal but the status is not marked as completed by manager."*
    Please help me to find the root cause of this issue.
    It happened twice in this week and we had to bounce the Database followed by the CMCLEAN.sql
    Thanks in advance.
    Regards,
    Avadhut

    Hi,
    We have encountered an issue where Concurrent Programs remains in the state of Running Normal.
    Importantly when we try to cancel those requests , it displays a pop-up message "*Could not lock request*".Please see (Note: 1076452.1 - Requests Show as Running Forever But Give Could Not Lock Request When Cancelling).
    Also, when we click on Diagnostics button; it says
    *"Post-processing has completed for this request, but the manager has not yet marked it as Completed", the report is completing normal but the status is not marked as completed by manager."*
    Please help me to find the root cause of this issue.
    It happened twice in this week and we had to bounce the Database followed by the CMCLEAN.sqlPlease mention the application release.
    Is the issue with specific concurrent program?
    Was this working before? What changes have been done recently?
    Thanks,
    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

  • Current date parameter in concurrent program is not not taking current date

    Hi All,
    I have scheduled one concurrent request running very day @21:30 ,one of the parameter passed is current date ,which defined as default value at the time of defining concurrent program.Surprisingly its taking next day date as parameter.Can someone help me resolving this issue.
    From where this current date is taken.
    When I am logged in unix as oracle user and executing following query I am getting follwoing results
    SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS';
    Session altered.
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 07:40:11
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:40:20
    date
    Tue May 25 07:40:35 SAUST 2010
    When I logged in unix as applmgr user:
    SQL> select current_date from dual;
    CURRENT_DATE
    05/25/2010 04:41:17
    SQL> select sysdate from dual;
    SYSDATE
    05/25/2010 07:41:19
    date
    Tue May 25 07:41:04 SAUST 2010
    Unix level date is correct and sysdate is also correct in both cases.
    But current_date when logged in s applmgr user is wrong,is this reason for the issue.
    If so how can I change it
    Version : 11.5.10.2
    Database : 10.2.0.4
    OS : AIX 5.3
    Thanks in advance

    Hi;
    Please check below and see its helpful:
    Scheduled Request Set Using 'Current Date' In Parameters Will Set Parameters One Day Out [ID 242654.1]
    The parameter Argument 2 (GL DATE) does not select the Current Date when schedule [ID 250431.1]
    Regard
    Helios

  • Issue in getting output through concurrent program

    Hi,
    I have developed a procedure and registered in APPS and passing 2 parameters.
    while running the concurrent program i have entered values for 2 parameters and submitted.. but it is going as null (log file) and i am not getting output.
    This procedure is working fine in Back End.
    Please help me to fix it.
    What could be the issue...
    Thanks
    Winsky.

    Hi,
    stored procedures MUST be coded with errbuf and retcode OUT parameters
    which MUST be defined as first parameters of your procedure if you want to
    use the procedure as concurrent request.
    errbuf parameter comes first, retcode comes second, then the rest of your
    parameters.
    Populate retcode with 0 if logic within your procedure completes successful,
    use 2 if the program ran into an exception (either a logic exception or when
    an unexpected error should occurr) and use 1 for retcode, if your logic
    should indicate a warning such as "no data found for processing" or something
    like this.
    When defining concurrent program in sysadmin responsibility do NOT define
    parameters for errbuf and retcode, only for the rest of your parameters.
    That's all - in short.
    Regards

Maybe you are looking for

  • How can I make triple partition for OSX, Windows 8, and for saving Data

    I read many articles on googles yet I still can't figure out how to. The point that I get is when you're installing Windows using bootcamp, before it actually try to install windows, i have to go back to OSX, choose disk utility and create the 3rd pa

  • Deleting standard Function, subroutine, ....

    Hi experts,    Can I delete standard Function, subroutine, .... of SAP ECC 6 !? If can, what authorization do I have to ?    In case, I created some function group,function, ... at report painter, or copy from standard program, function, ... and then

  • How can i add row selector

    Hi, i want to add row selector in my reports. as we do in sql command promt. i want to create select list with values like 500,1000,2000,6000 and so on. if i choose 500 in select list it show 500 records in report,if i choose 1000 then show 1000 rows

  • Overage Charge for prior month on first bill

    Got my first Verizon bill today and found something interesting.  I was charged for going over my data for the prior month to the tune of $15 for a gig.  Problem is, I've only had the phone for a month and there is no prior month on my account! Or at

  • Manual for iphon 4

    Where do I go online to get the manual for the iphone 4