Request Set - Passing Request Id as Parameter

Hi Guys,
I have following request set
STAGE1: Receiving Transaction Processor
STAGE2: Receiving Interface Error Report
STAGE3: Send Email (This custom program)
Send Email Program looks for Request ID of Receiving Interface Error Report and sends out and email with attachement. The attachement is output of Receiving Interface Error Report.
So my question is...how can i pass request id of STAGE2 request.
thanks in advance
Prashant Pathak

Prashant,
This might help you.
select request_id from fnd_concurrent_requests a
where description='2'
and exists (
select 1 from fnd_concurrent_requests b
where b.request_id=<your_request_id>
and a.parent_request_id=b.parent_request_id);
Thanks
Nagamohan

Similar Messages

  • Request set - pass parameter

    Hi all,
    I'm using EBS 12.1.3. In Receivables I've created a Request Set with 4 concurrent programs. I want the last one of the chain to accept as a parameter the request id from the previous concurrent program. Any ideas how to achieve this?
    Thanks in advance,
    Bahchevanov.

    Hi,Hussein,
    Thanks for reply. The docs you provided for me are helpful. In my case I don't want to pass a parameter which occurs in other concurrent programs in the request set but to pass the REQUEST_ID from the previous concurrent program. Request set for examle:
    1). Autoinvoice Master Program with request_id = '111'
    2). My Concurrent Program with parameter P_REQ_ID must accept the request_id from 1) = '111'.
    Thanks,
    Bahchevanov.

  • Re: Request set - pass parameter

    Hello,
    I don't see docs through these links!!!
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Request+AND+Set+AND+Pass+AND+Parameter&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Request+AND+Set+AND+Pass+AND+Parameter+AND+REQUEST_ID&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Can you help me?
    Thanks
    Regards

    c368397c-e6a9-4273-bcf5-e7efb7ac0353 wrote:
    Hello,
    I don't see docs through these links!!!
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Request+AND+Set+AND+Pass+AND+Parameter&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Request+AND+Set+AND+Pass+AND+Parameter+AND+REQUEST_ID&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Can you help me?
    Thanks
    Regards
    Those links from the old forum and that's why they are not working for you.
    If you want to search the new one, please use the following links:
    https://forums.oracle.com/community/developer/search.jspa?q=Request+AND+Set+AND+Pass+AND+Parameters
    https://forums.oracle.com/community/developer/search.jspa?q=Request+AND+Set+AND+Pass+AND+Parameter+AND+REQUEST_ID
    Thanks,
    Hussein

  • Pass ORG_ID as sql statement for parameter in request set

    We are in a multi-org environment. We are running the request PRC: Generate Draft Revenue for a Single Project as part of the request set. We want the request to automatically fill in the open pa period as the accrue through date. We have been using the SQL Statement below as the value for the accrue through date parameter.
    select end_date
    from pa_periods_all
    where status = 'O'
    and current_pa_period_flag = 'Y'
    Unfortunately that does not limit to a specific company. We a company that still have DEC-05 while another has an open period of JAN-06. This is causing the program fits. How do I pass the org_id to the request? [in beginners terms please]
    Thanks.
    Anne

    No idea what might be wroong without more info...
    Do some output. Test the ${params.id} variable passed to the second jsp. If that is correct, then error is in the select statement or display of jsp2. If it is correct the error comes from jsp1.
    If I have to guess, then I would say the error comes from JSP1, and the ${row.vac_id} should only be called once. In which case I would do something like this:
    //in jsp 1
                <c:forEach var="row" items="${results.rows}"  varStatus="counter"  >
                    <c:set var="vac_id" value="${row.vac_id}" scope="page"/>
                    <tr>
                        <td>${vac_id}</td>
                        <td><a href="vacancydetails.jsp?id=${vac_id}">More</a></td>But that is a guess only...
    Errr... Hold on to that as reference, but the it is entirely likely that I misspelled ${params.id} It may be ${param.id} I forget and away from my machine right now...

  • How to pass 1st program request id to 2nd program in request set

    Hi,
    I have following requirement, kindly help.
    I registered report as concurrent program1. After running the report, i have to email the output. For that i prepared a shell script and registered that as concurrent program 2.
    I put concurrent program1 and 2 in request set, i want to pass the request id of concurrent prog1 to concurrent prog2.
    Is there anyway i can achieve this.
    If not possible, suggest me alternative way.
    Thanks.

    Here is a not so sophisticated approach.
    First find the concurrent_program_id for your Outbound Interface from fnd_concurrent_programs_tl.
    Say it is 12345
    Then, in your 2nd program, find the id as follows
    select fcr.request_id outbound_request_id
    /*, fcr2.request_id,fcr3.request_id,fcr4.request_id,fcr5.request_id*/
    from fnd_concurrent_requests fcr --2nd request
    ,fnd_concurrent_requests fcr2 -- 2nd request phase
    --,fnd_concurrent_requests fcr3 -- request set
    ,fnd_concurrent_requests fcr4 -- request phase for outbound api
    ,fnd_concurrent_requests fcr5 -- outboudn api request
    where fcr.request_id = fnd_global.conc_request_id
    and fcr.parent_request_id = fcr2.request_id
    --and fcr2.parent_request_id = fcr3.request_id
    --and fcr4.parent_request_id = fcr3.request_id
    and fcr2.parent_request_id = fcr4.parent_request_id
    and fcr4.request_id = fcr5.parent_request_id
    and fcr5.request_id != fcr.request_id
    and fcr.concurrent_program_id = 12345Hope this helps,
    Sandeep Gandhi

  • How to use shared parameter on request set

    Hi
    I have a request set with two stages
    First stage contains From Date and To date where i have named the shared parameter as StartSP and EndSP
    i have to use these shared parameter in one of the query in next stage where my Type is SQL Statment and i have these two date fields From date and To date in next stage as well where i am able to retirve the values from previous stage
    based on these values i need to get the name in next parameter where my Type is SQL Statment
    select name from tablename where '02-MAR-09' > =start_Date and '29-MAR-09' <=end_Date
    I have written SQL as
    select name from tablename where StartSP > =start_Date and EndSP <=end_Date but it throws an error.
    I need the values of 02-Mar-09 and 29-Mar-09 from StartSP and EndSP
    Appreciate if any one has idea about this.

    hi user;
    please check:
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/repset04.htm
    http://download-east.oracle.com/docs/cd/A60725_05/html/comnls/us/fnd/10gch609.htm
    Also you can check this search:http://www.google.com.tr/search?hl=tr&source=hp&q=How+to+use+shared+parameter+on+request+set+&meta=&aq=f&oq=
    Hope it helps
    Regard
    Helios

  • Passing Reuest ID in a Request Set.

    Hi Guys,
    I've created a request set to run a Financial statement at stage 10 and then defined XML Report Publisher to run at stage 20.
    Problem is that XML Report Publisher requires the request id from stage 10. I've tried creating an SQL statement to get that value but seeing that the request set has no run yet.. I'm getting a request ID from the previous run.
    Is there a way to get the request Id of the previous stage?

    Thanks for the reply Sujoy.
    I have a Conc. Request Set with 2 concurrent programs which run one after the other.
    I need to get the conc. request Id of program1 which has completed successfully in program2 of the concurrent request set.
    Thanks,
    Satya
    Message was edited by:
    stammine

  • Using Shared Parameters in Request Sets

    Hi.
    I have a Request Set created but I want to pass one of the parameters entered in the 1st stage STAGE10, but also for this to be picked up by the 2nd stage STAGE20.
    I have heard that this is possible but have not been able to find any evidence from Metalink or Oracle Documentation, unless I just have not found the right document(s).
    This would require our users to not to have to enter the FileName parameter at each stage of the Request Set.
    I do not want to have each of the stages coded together as I want them to be standalone also (if required).
    Many thanks fro any help forthcoming.
    Regards
    Michael Brown
    Edited by: user621432 on 29-Oct-2008 02:10

    On the request set, review the program where You first specify the parameter to inherit and click on the parameters button. There You can specify an alias for the parameter that can be referren in the other programs in the set to inherit the value specified.

  • Manually running request set before dashboard is displayed

    Hi!
    I'm planning to create custom dashboards, reports, etc. and let us say that the request set runs every 1 hour. What I need is that whenever the custom dashboard is run and already more than 30 minutes have passed during the last request set run, it shall run the request set manually before the custom dashboard is displayed. Is this possible? Can a workflow be used in this situation?
    Thanks.

    I think your DBA is correct in saying that oracle do take care of data corruption in case of any system failure.
    In case of concurrent progmram their is a filed you need to tick, something "Restart in case of system failure" so that oracle take care of any such issue., you can check the parameter.
    In case of request set i think if sequencing and all is taken care in good way then i think you should not fall in this situation. Request wizard is good tool to define request sets.
    Thanks,
    JD

  • Calling a request set from a concurrent program

    Hi,
    I am trying to call a request set( say RS1) from a concurrent program ( say CP1). I have used fnd_submit.set_request_set and related APIs, and I am able to submit the request set. But the problem is that I have to either hard code the request set parameters in the concurrent program CP1( which I am currently doing), or define the parameters in the concurrent program CP1 and pass the parameters while calling the request set requests. The second method does not work because the request set has around 30 requests, and it is not possible to accept the parameters for all those requests from CP1.
    What I would like to do is to define a parameter in CP1 which accepts the request set name( or short name), and then pop-up a window which shows the sub-requests in the request set so that I can enter the parameters of each request within the request set. ( something similar to $FLEX$)
    Have anyone done such a thing? Does anyone know if it is possible?
    Any suggestions are welcome!

    Hi,
    Sharing parameters will not work because my request set has many requests and none of them have any common parameters. I am looking for a solution which will show me all the programs in the request set with the default values so that I can change the parameter values if required.
    Thanks,
    Sridhar

  • Getting Rolling Date for a request in scheduled request set

    Hi All,
    I have a request set and autoinvoice runs as a part of this request set , autoinvoice has parameter default Date and when I schedule this request set , I have to fill this parameter (eg:07/07/2006) as this is mandatory parameter. However when I schedule this request set , I find that now reques set runs autoinvoice everyday with default date parameter having same value ie 07/07/2006 even though I have setup request set correctly ie I have supplied current date as default value for this parameter in request set.
    Can anybody tell me how do I get rolling date for a Autoinvoice request which fires as a part of scheduled request set running everyday.

    Hi Robert,
    This is an AOL problem. Please post your query in the AOL forum to get better replies.
    Regards,
    Swapna.

  • How to schedule the Request set in Oracle Apps

    Hi Everyone,
    Hope all are doing good, I would like to know scheduling in Oracle Apps.
    Here is the my scenario, i.e I have an one Request Set named Custom Invoice Request Set.
    Now i want to run this request set for every 5 minutes. For that what do i have to do.
    Can anyone please suggest me.

    Hi,
    Please follow the below steps:
    1. Log into the system
    2. View > Request > Submit a new Request > Request Set > Select the request set (from list of values)
    3. Click on schedule (Dont click on submit)
    4. Click on Periodically
    5. For "Re-run every" parameter enter value
              i.    5
              11. minutes (from the drop down value).
    6. Click OK
    This will achieve your objective.
    Hope answered the question.
    Best Regards,

  • Passing Request to a POPUP LOV from previous page

    Hi All,
    I'm stuck again :( and its urgent..
    I have a popup LOV and i want to populate values in it based on REQUEST coming from first page.
    If I click CREATE on first page POPUP LOV should display certain values and if I click UPDATE on first page, it should populate different set of values.
    Also when I navigate further from this page and return back, the LOV's should have values based on previous request selected.
    For this I have created an item P_REQ which stores value of request from first page i.e :P_REQ wil have values CREATE or UPDATE.
    Now I'm able to pass this value to a select list. However a POPUP list is not able to fetch this P_REQ value.
    MY query for LOV is as below
    select d1 d ,r1 r
    from
    (select name d1 ,ID r1,'C' up_cr
    FROM Client
    'WHERE statusid in (1,3)
    union
    select name d1,ClientID r1,'U' up_cr
    FROM Client_List)
    where up_cr = decode(:P_REQ,'CREATE','C','U')
    ORDER BY d1
    Kindly help.. Its Urgent..

    Hi,
    If you use that computation to set the value of P_REQ it is actually also saving it in the session. The value stored can then be retrieved by the popup LOVs query using :P_REQ so you don't need to pass the value at all as it is already available.
    To see this, go to: [http://apex.oracle.com/pls/otn/f?p=33642:237] The list of employees has INSERT or UPDATE in the final column. This is used in the link on the EMPNO column as the "Request" setting. This link passes you to another page which uses the computation to set the value in P238_REQUEST (this is displayed on the screen). Then you have a link to "Open popup". All this does is open another page which has a region with a source of: Request value: &P238_REQUEST.
    Andy

  • Can we schedule a concurrent program with in a request set

    HI,
    I have a requirement that to schedule a concurrent program in a request set after completing the another request with in the set
    ie i have request set with two concurrent programs and each concurrent program having two parameters for each
    if i submit the request set once
    the first programs completes successfully after completing the first program i need to schedule the second concurrent program with the same parameter values of the first parameter
    is it possible if yes how it can be done
    Regards
    DRK

    Ripendra durgam wrote:
    HI,
    I have a requirement that to schedule a concurrent program in a request set after completing the another request with in the set
    ie i have request set with two concurrent programs and each concurrent program having two parameters for each
    if i submit the request set once
    the first programs completes successfully after completing the first program i need to schedule the second concurrent program with the same parameter values of the first parameter
    is it possible if yes how it can be done
    Regards
    DRKI believe it is not possible.
    Thanks,
    Hussein

  • Is it possible to bypass stages defined in Concurrent Request Set

    Hi,
    I have a concurrent request stages where there are multiple stages defined(corresponds same concurrent program with different parameter values) and this request is called from backend.
    The way the stages are presently defined is on success,error & warning it will go to the next stage (e.g stage1 -> stage 2 -> stage3).
    Now I have a requirement where based upon some condition, I would receive parameter values for stages. E.g I would received parameter for stage 1 to run and stage 3 to run and no parameter for stage2. In this case what I want is in the request set, stage 1 program will run and then stage 3 program will run bypassing the stage2 program as no parameter value received for stage 2 program.
    Will there be any change required in the way the the link stages are defined or if there is any other way to accomplish the same.
    Ultimate aim is that all the required stages(1,2,3......and so on w) will be defined but based upon the parameter value availability, corresponding stages will run like 1 then 3 then 5 and request set should complete.
    I am assuming that its possible so I a trying for some workaround within PLSQL itself. Appreciate if any one can throw some light on this if clearing only the link stages could be a solution.
    Regards,
    Ad

    What version of the DB are you running?
    Here is a PL/SQL example: http://www.oracle-base.com/articles/misc/xml-over-http.php
    You could also do it in Java: http://www.oracle.com/technetwork/developer-tools/jdev/dbcalloutws-howto-084195.html
    HTH,
    --Johnnie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for