FND_REQUEST_SET.FNDRSSUB

Hi,
I want to submit FND_REQUEST_SET.FNDRSSUB as a anoymous block
It has two IN parameters appl_id and set_id
How can i get these parameters??
basic reason why am submitting this from backend is...i have a CP which has a executable FNDRSSUB
and the CP doesn't have a use in SRS ticked...so as we know it can't be submitted from SRS window..
Any one know what this procedure will do when it is run?
Thanks

Hi,
If you want to submit a request set programatically, try using fnd_submit.set_request_set. You should also use fnd_submit.submit_program to define the parameters for each of the programs in the request set. You can find information about package FND_SUBMIT in the Oracle Applications Developer's Guide.
Hope it helps.

Similar Messages

  • Call FND_REQUEST_SET.FNDRSSUB using a pl/sql procedure

    Hi,
    I am new to Oracle Apps.
    I want to submit a report set.The procedure to do it is FND_REQUEST_SET.FNDRSSUB.Can you pl tell me how can i call this package using pl/sql?
    Regards

    Hi,
    If you want to submit a request set programatically, try using fnd_submit.set_request_set. You should also use fnd_submit.submit_program to define the parameters for each of the programs in the request set. You can find information about package FND_SUBMIT in the Oracle Applications Developer's Guide.
    Hope it helps.

  • 11.5.10.2 SYSTEM alert

    Concurrent Request for "Report Set" has completed with error
    Log file:
    Application Object Library: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FNDRSSUB module: Report Set
    Current system time is 14-SEP-2009 19:10:43
    **Starts**14-SEP-2009 19:10:43
    **Ends**14-SEP-2009 19:10:43
    Request submitted for stage Payroll Process (10) .
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Current system time is 14-SEP-2009 19:10:43
    Request restarted at :14-SEP-2009 19:28:05
    **Starts**14-SEP-2009 19:28:05
    **Ends**14-SEP-2009 19:28:05
    The set completed normally with outcome Error.
    The outcome was determined by the final stage, Payroll Process (10) .
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    Exceptions posted by this request:
    Concurrent Request for "Report Set" has completed with error.
    Concurrent request completed
    Current system time is 14-SEP-2009 19:28:06
    ---------------------------------------------------------------------------+

    Hi,
    Please enable trace/debug, submit the request again and see if more details are generated in the log file -- See (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) and (Note: 453527.1 - How To Trace a Concurrent Request And Generate TKPROF File).
    Regards,
    Hussein

  • Number of Requests per day

    Hi,
    We are a mid size automobile supplier company and we have implemented EBS with most of the basic modules including but not limited to financial, SCM, Purchasing, HRMS, SSHR, Payroll, Advance Benefits, AME, iSupplier, custom modules in PO, OM, INV, etc.
    We are working on some performance issues and I want to know how many total number of requests(including everything) will be submitted in a typical environment with some level(about 30%) of customizations. I know this is a really vague question but any rough number based on the experience will be appreciated.
    Thanks,
    CAH

    Hi Guys,
    Thanks a lot for your responses and sorry for the late reply. I was working some other very high priority issues. Here is the output of the query (Programs starting with XXX, XXXY and XXXZ are custom programs) :
    CONCURRENT_PROGRAM_NAME              COUNT of Request Submitted
    XXX_WMS_LABEL_GENERATION 5759
    XXX_REQ_PO_GETFILE_NAME 1359
    REQIMPORT 860
    PORELGEN 860
    XXX_PO_REQ_PO_RCV_PKG 824
    XXXGETORDERFILES 818
    QLTACTWB 752
    POXPOPDF 613
    XXXZECEPOO 551
    XXX_PO_LABEL_PRINT_REPORT 412
    XXXY_INV_CHAVEZ_IFACE_PKG 407
    XXX_MANIFEST_FORMAT 405
    XXX_PO_REQ_PO_RCV_PKG_UPD 405
    CMCMCW 391
    XXX_REQ_PO_MAIN_CTL 297
    XXXY_SO_OUTBOUND_IFACE_PKG 286
    XXXY_ONT_SHIP_IFACE_PKG 273
    XXXYONTSHIPGETFILE 273
    FNDRSSTG 257
    XXX_PO_LABEL 252
    ARZCAR_FORMAT_REMIT 241
    WICTMS 241
    POXPOIV 188
    XXX_PO_LABEL_W 160
    XXX_EC_TMS856 143
    INCTCM 143
    FNDWFBG 140
    XXXYINVWIPGETFILE 136
    XXXYINVSUBINVGETFILE 136
    XXXYINVOVERUSEGETFILE 135
    XLATBDMW 128
    RVCTP 123
    XXXY_INV_SUBINV_CTL 106
    XXX2GIS 102
    INCTCW 99
    XXX_REQ_PO_MAIN_LABEL_CTL 97
    XXX_PO_MANIF_ALERT_PKG 96
    FNDRSSUB 90
    XXXY_PO_OUTBOUND_IFACE_PKG 72
    XXXY_CZA_RECV_INTF_PKG 70
    XXXYCZARECVINTFGETFILE 70
    WSHPSGL 50
    FNDOAMCOL 48
    XXX_ONT_PCB_EMAIL_NOTIF_PKG 48
    XXX_PO_REQ_PO_RCV_PKG_RCV 48
    XXX_INV_WOLC_IFACE_PKG 48
    XXX_FTP_EDI_FROM_GIS1 48
    XXX_INV_ITEM_BOM_MAIL_PKG 48
    XXXGETRECEIPTFILES 44
    WSHINTERFACE 44
    TBCA_WHS_LOAD_SHEET 42
    XXX_RCV_PO_MAIN_CTL 41
    APXIIMPT 40
    ARHDQMSS 35
    RLMINS 32
    QLTSSCPB 27
    GLPPOSS 27
    XXX_ONT_BO_AUTO_PICK_SHIP_PKG 24
    XXXX_PROCESS850 24
    ECEPOI 24
    GLLEZL 23
    XLAACCUP 22
    XXX_PO_REQ_IFACE_CTL 22
    XXXOMSPL_NONTMS 22
    XLAACCPB 22
    XXX_PO_REQ_IFACE_PKG 22
    CMCLCW 20
    XXXPAFR 20
    MRCSLD 20
    XLABABUP 19
    OEOIMP 18
    XXX_WMS_CASE_LABEL_PRINT_PKG 18
    US_RETRY_PROCESS 17
    XXXZWICDOL 16
    XXXWIPSTSUPDT 16
    ECTRIGO 16
    APINVSEL 16
    XXXBOMUPDT 16
    QLTTRAMB 16
    RLMDSP 14
    QLTTRAWB 14
    FNDMLSUB 14
    RLMDPDER 14
    IBYBUILD 14
    XXX_INV_WOLC_IFACE_PKG_PROD 13
    XXXINVPRODREPOTING 12
    XXX_RLM_EDI_FAILED_NOTIF_PKG 12
    XXX_PO_CLOSE_RCV_PKG 12
    XXXX_PROCESS830 12
    POXPRPOL 12
    XXX_GIS_TO_ORACLE 12
    XXXX_PROCESS862 12
    XXX_MRP_CUSTOM_REPORT 11
    IBY_FD_PAYMENT_FORMAT 10
    XXXFTPF 10
    FNDWFLSC 10
    XXXY_ONT_SHIP_IFACE_CTL 9
    APXPBASL 9
    ARXREC 9
    MRCSDW 9
    RAXMTR 8
    XXXX_PROCESSCZA 8
    XLATBDMG 8
    RAXTRX 8
    XXXGTNR 8
    ARPREMAT 7
    IBY_FD_SRA_FORMAT 7
    APXRECLC 7
    XXX_INV_ITM_SALE_COGS_UPD_PKG 7
    XXXWSHRDIPKX 6
    XXXZ_POS_PAY_FORMAT 6
    XXXGETORDERCANCELFILES 6
    XXXPORCTREG 6
    IBY_FD_POS_PAY_FORMAT_2 6
    XTBOMSPLX 6
    XXX_INV_PRNT 6
    XXX_SUPPLIER_ADDRESS_LOC_PKG 6
    MRCNSW 6
    WSHRDINVX 5
    APPRVL 5
    IBYPICP 5
    IBY_FD_RECORD_PRINT_STATUS 5
    RCVTXRTR 5
    XXXGENCENSUS 5
    WSHRDPAKX 5
    MRRFCS 5
    CSTRAIVR 4
    IBY_FD_FINAL_PMT_REGISTER 4
    XXX_INV_WOLC_CTL 4
    XXXGETRECEIPTCORRFILES 4
    XXX_BCAST_FAILURE_NOTIFY_PKG 4
    XXXX_CUSTOM_INVOICE_REPORT 4
    INVTRDST 4
    CSTACRLR 4
    XXXOMSV 4
    XXX_MOVE850 4
    XXX_KRONOS_OUTBOUND_PKG 4
    GLTRBALD 4
    INVIRSIQ 3
    INVTRREG 3
    MRCMON 3
    MRCMPW 3
    FATXPRFD 3
    GLRFCLD 3
    INCOIN 3
    MRCEAP 3
    MRPCBIS 3
    QUICKPAY 3
    MRCSAL1 3
    MRCNSP 3
    MRCNEW 3
    CHECK_WRITER 3
    XXX_PO_REQ_IFACE_ERR_REP_PKG 3
    XXXARAGFW 3
    XXXITEMCDR 3
    XXXX_WSHRDBOLX 2
    XXXAPDIST 2
    XXXAPINVAG 2
    XTBININVATSSTOCK 2
    FDFVGN 2
    XDOREPPB 2
    XXXPTLR 2
    APXINRIR 2
    CHVPRSBB 2
    ARRXMTRG 2
    CSTACRAP 2
    IBYPICPE 2
    XXX_INV_PA_IFACE_PKG 2
    IBY_FD_PAYMENT_FORMAT_TEXT 2
    XXXY_INV_WIP_CTL 2
    CEXINERR 2
    PAAPIMPR 2
    PAXTRTRX 2
    BENMDSGL 2
    BENTHREAD 2
    PAYUSXFR 2
    FNDWFBES_CONTROL_QUEUE_CLEANUP 2
    ARPLABRC 2
    MRPSLPPR 2
    CSTCRACCRCV 2
    XXX_KRONOS_IB_IFACE_PKG 2
    PYUPRT 2
    XXXWSHRDINVX 2
    GLPREV 2
    RXARMTRG 2
    APXCNCLB 2
    PAYUSGTNXML 2
    XXXX_MOVE862 2
    XXXWSHRDPAK 2
    XXX_PAYROLL_CHKLST 2
    APXVDVSR 2
    PAIGEN_SINGLE 2
    BOMRDBCO 2
    PAYLINK 2
    PREPAY 2
    XXX_ELEMENT_COSTING_UPDATE 2
    XXXX_MOVE830 2
    XXX_GL_SALES 2
    XXX_KRONOS_IB_IFACE_CTL 2
    XXXETRMR 2
    NACHA 1
    PAYUSPRT 1
    BENERRPE 1
    APXEXPER 1
    CSTRCMCR 1
    CSTRCMCR3 1
    ADP_PRINT_REPORT 1
    PER_FND_SESSIONS_CLEANUP 1
    XXX_ASN_INT_CTL 1
    XXX_MRP_SR_DDATE_PKG 1
    ECSPSO 1
    PAXACMPT 1
    INCIAP 1
    BENACTIV 1
    FNDWFAASTATCC 1
    POASLGEN 1
    XXX_PA_KRONOS_IFACE_PKG 1
    XXX_ONT_SO_SUM_COMP_REQ_PKG 1
    APXPCER_XMLP 1
    XXXZFTPPOSPAY 1
    TBCA_SUPP_FCST_PROCESS 1
    XXX_PON_EMAIL_SUP_ATTACH_PKG 1
    XXX_PO_ASL_UPD_PROG_PKG 1
    XXXX_INVOICE_FILE_TRNS 1
    XXXPROTOPRS 1
    GLYRLGLG 1
    ECEPOO 1
    APXATR 1
    POXRRVDR 1
    PASTRM 1
    RUNGEN 1
    PALDLC_RANGE 1
    APXMCCDF3 1
    FNDWFWITSTATCC 1
    ADP_PRINT_INTERFACE 1
    XXXX_MC_FILE_TRNS 1
    XXX_PON_SUP_CERT_EXP_PKG 1
    XXXINVAGING 1
    APXINHIS 1
    PATTGL 1
    CSTRINVR 1
    BENDEAUD 1
    BENGELOG 1
    APXCCOUT 1
    FNDWFMLRSTATCC 1
    XXX_TBCA_IFACE_STG_CTL 1
    XXXPOBALACC 1
    ATS_SUPP_FCST_PROCESS 1
    ECEINO 1
    PAAPIMP 1
    PATTAR 1
    OMPREL 1
    WICTWS 1
    WIPDJATO 1
    BENERTYP 1
    XXXAPXINAGE 1
    XXXPRXPO 1
    XXX_KRONOS_PTO_EXTRACT_PKG 1
    APXBCOBN 1
    INCIAR 1
    CMCCTW 1
    MRCRLF 1
    BENERPER 1
    PAYUSREG 1
    FNDDWPURG 1
    XXX_IC_AR_PREPROC 1
    XXXZ_AUTOMATED_ASN_REQ 1
    XXXX_MOVECZA 1
    MRCSCW1 1
    MRPSLPPR1 1
    BENERRTY 1
    BENLIMOD 1
    XXX_HALOGEN_INTERFACE_PKG_OUT 1
    XXX_IPAY_FLAG_UPDATE_PKG 1
    RGRARG 1
    APXPAYSC 1
    PAAPIMP_SI 1
    PAYLINK(PURGE) 1
    BENDESUM 1
    BENDSGEL 1
    CSTRSCCRP 1
    PAXACCPB 1
    XXX_INV_ITEM_ATTR_UPD_PKG 1
    XXX_TBCA_EMP_IFACE_PKG 1
    XXXPRODREPORTINGFTP 1
    XXXZ_UPDATE_IC_EXP_ACCOUNT 1
    XTBIN_MRP_SUP_NOTICE_REPORT 1
    FNDSCPRG 1
    PARTAR 1
    Is these numbers make sense or they are too low or too high?
    Thanks in advance for your responses.
    Thanks,
    CAH

  • Oracle 11i - Concurrent Request Set Details

    Hi,
    I would like to frame a query that extracts the concurrent request sets and the associated child requests. I am not sure of the data mapping.Can somebody help me with the query.
    Regards,
    Radhika.

    I would like to frame a query that extracts the concurrent request sets and the associated child requests. I am not sure of the data mapping.Can somebody help me with the query. https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_REQUEST_SETS&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Request against is running?

    Hi,
    I am using the following SQL to determine whether a program is runniing or not:
      select  count(*)
      into    l_Cnt
      from    FND_Concurrent_Programs     fcp
             ,FND_Concurrent_Requests     fcr
      where   fcp.Application_ID          = 20003
      and     fcr.Concurrent_Program_ID   = fcp.Concurrent_Program_ID
      and     fcr.Argument1               = cp_sob_id
      and     fcr.Phase_Code              in ('R', 'P') -- 'P' refers to "PENDING" and 'R' to "RUNNING"
      and     fcp.Concurrent_Program_Name = 'GLLEZL' ;How can I determine if a request set is running or not?

    thx for the help Hussein,
    I have a much more complex problem now, and I'm hoping you can shed some light on the matter!!
    I think the SQL that I need is something like this:
    select  count(*)
      into    l_Cnt
      from    FND_Run_Requests            frr
             ,FND_Concurrent_Requests     fcr
             ,fnd_request_sets            frs
      where   frs.request_set_name        ='RBSGLIMPJNLSSOB'
      and     frs.Request_Set_ID          = fcr.Request_Set_ID
      and     frr.Parent_Request_ID       = fcr.Parent_Request_ID
      and     fcr.Argument1               = cp_sob_id
      and     fcr.Phase_Code              in ('R', 'P')However, the request set, which I created using the code in Appendix A below, is made up of two spawned programs, GLLEZL & GLPPOS, both of which require the "Set of Books ID" (SOB ID) as a parameter. GLLEZL takes SOB ID as the 2nd argument whilst GLPPOS takes SOB ID as the 1st argument.
    I am aware one can setup a shared parameter within a request set using the following built in proc;
    fnd_set.program_parameter (program                in varchar2
                              ,program_application    in varchar2
                              ,request_set            in varchar2
                              ,set_application        in varchar2
                              ,stage                  in varchar2
                              ,program_sequence       in number
                              ,parameter              in varchar2
                              ,display                in varchar2 default 'y'
                              ,modify                 in varchar2 default 'y'
                              ,shared_parameter       in varchar2 default null
                              ,default_type           in varchar2 default null
                              ,default_value          in varchar2 default null);
    The questions I have are;
    1. How will the SQL above change if I create two such shared parameters? Bear in mind I would like to check if a request set is running against a specific SOB ID
    2. How will the two calls to FND_SUBMIT.SIBMIT_PROGRAM, listed in APPENDIX B, change if I introduce a shared parameter ?
    3. I do not fully understand the following Oracle documentation on FND_SUBMIT.PROGRAM_PARAMETER
    >
    This procedure registers shared parameter information and
    the request set level overrides of program parameter
    attributes.
    >
    I realise that I have posted a lot of code, and I hope it does not seem too overwhelming. The purpose of what of I am attempting is to run the import/post from the backend in parallel per each SOB ID, hence I have created a request set.
    Any help would be much appreciated!
    P;
    APPENDIX A
    set serveroutput on
    declare
      l_App                 varchar2(10) := 'SQLGL';
      l_Req_Set_Name        varchar2(20) := 'RBSGL_AUTO_IMP_POST';
      l_Req_Set_Short_Name  varchar2(20) := 'RBSGL_AUTO_IP';
      l_Imp_Prg             varchar2(20) := 'GLLEZL';
      l_Post_Prg            varchar2(20) := 'GLPPOS';
      l_Continue            boolean := true;
    begin
      dbms_output.put_line('----------------------------------------------------------------------- ');
      -- CREATE SET FIRST
      begin
        fnd_set.delete_set(request_set => l_Req_Set_Short_Name
                          ,application => l_App);
        dbms_output.put_line(' Request set, ' || l_Req_Set_Name || ', deleted');
        commit;
        exception
          when others then
            dbms_output.put_line(' Request set, ' || l_Req_Set_Name || ', does not exist');
      end;
      begin
        fnd_set.create_set        (name                       => l_Req_Set_Name
                                  ,short_name                 => l_Req_Set_Short_Name
                                  ,application                => l_App
                                  ,description                => 'RBSGL Automatic Import and Posting'
                                  ,owner                      => null --
                                  ,start_date                 => sysdate
                                  ,end_date                   => null
                                  ,print_together             => 'N' -- printing specific parameter, which is irrelevant in this context
                                  ,incompatibilities_allowed  => 'N'
                                  ,language_code              => 'US');
        dbms_output.put_line('Request Set, ' || l_Req_Set_Name || ', created sucessfully ');
        commit;
        exception
          when others then
            l_Continue := false;
            dbms_output.put_line('Request Set, ' || l_Req_Set_Name || ', could not be created; ' || sqlerrm);
      end;
      -- CREATE FIRST STAGE
      dbms_output.put_line('----------------------------------------------------------------------- ');
      if (l_Continue) then
        begin
          fnd_set.remove_stage(request_set      => l_Req_Set_Short_Name
                              ,set_application  => l_App
                              ,stage            => 'STAGE10_IMPORT');
          commit;
          dbms_output.put_line('Stage, STAGE10_IMPORT, removed sucessfully from set, ' || l_Req_Set_Name);
          exception
            when others then
              dbms_output.put_line('Stage, STAGE10_IMPORT, removed sucessfully from set, ' || l_Req_Set_Name);
        end;
        begin
          fnd_set.add_stage         (name                       => 'STAGE10_IMPORT'
                                    ,request_set                => l_Req_Set_Short_Name
                                    ,set_application            => l_App
                                    ,short_name                 => 'STAGE10_IMPORT'
                                    ,description                => 'RBSGL Import Stage '
                                    ,display_sequence           => 1
                                    ,function_short_name        => 'FNDRSSTE' -- This is a standard string that needs to be supplied
                                    ,function_application       => 'FND' -- This is a standard string that needs to be supplied
                                    ,critical                   => 'Y'
                                    ,incompatibilities_allowed  => 'Y'
                                    ,start_stage                => 'Y'
                                    ,language_code              => 'US');
          dbms_output.put_line('Stage, STAGE10_IMPORT, sucessfully added');
          commit;
          exception
            when others then
              l_Continue := false;
              dbms_output.put_line('Stage, STAGE10_IMPORT, could not be added to request set, ' || sqlerrm);
        end;
      end if;
      if (l_Continue) then
        begin
          fnd_set.add_program       (program                    => l_Imp_Prg
                                    ,program_application        => l_App
                                    ,request_set                => l_Req_Set_Short_Name
                                    ,set_application            => l_App
                                    ,stage                      => 'STAGE10_IMPORT'
                                    ,program_sequence           => 1
                                    ,critical                   => 'Y'
                                    ,number_of_copies           => 0
                                    ,save_output                => 'Y');
          dbms_output.put_line('Program, ' || l_Imp_Prg || ', added sucessfully to request set, ' || l_Req_Set_Name );
          commit;
          exception
            when others then
              l_Continue := false;
              dbms_output.put_line('Program, ' || l_Imp_Prg || ', could not be added to request set, ' || l_Req_Set_Name || ' ' || sqlerrm );
        end;
      end if;
      -- No need to add parameters, since parameters are defined against the program using fnd_program.add_parameter
      -- Only shared parameters are specified
      -- CREATE SECOND STAGE
      if (l_Continue) then
        dbms_output.put_line('----------------------------------------------------------------------- ');
        begin
          fnd_set.remove_stage(request_set      => l_Req_Set_Short_Name
                              ,set_application  => l_App
                              ,stage            => 'STAGE20_POST');
          commit;
          dbms_output.put_line('Stage, STAGE20_POST, removed sucessfully from request set, ' || l_Req_Set_Name);
          exception
            when others then
              dbms_output.put_line('Stage, STAGE20_POST, removed sucessfully from request set, ' || l_Req_Set_Name);
        end;
        begin
          fnd_set.add_stage         (name                       => 'STAGE20_POST'
                                    ,request_set                => l_Req_Set_Short_Name
                                    ,set_application            => l_App
                                    ,short_name                 => 'STAGE20_POST'
                                    ,description                => 'RBSGL Post Stage '
                                    ,display_sequence           => 2
                                    ,function_short_name        => 'FNDRSSTE' -- This is a standard string that needs to be supplied
                                    ,function_application       => 'FND' -- This is a standard string that needs to be supplied
                                    ,critical                   => 'Y'
                                    ,incompatibilities_allowed  => 'Y'
                                    ,start_stage                => 'Y'
                                    ,language_code              => 'US');
          commit;
          dbms_output.put_line('Stage, STAGE20_POST, sucessfully added');
          exception
            when others then
              l_Continue := false;
              dbms_output.put_line('Stage, STAGE20_POST, could not be added to request set, ' || sqlerrm);
        end;
      end if;
      if (l_Continue) then
        begin
          fnd_set.add_program       (program                    => l_Post_Prg
                                    ,program_application        => l_App
                                    ,request_set                => l_Req_Set_Short_Name
                                    ,set_application            => l_App
                                    ,stage                      => 'STAGE20_POST'
                                    ,program_sequence           => 2
                                    ,critical                   => 'N'
                                    ,number_of_copies           => 0
                                    ,save_output                => 'Y');
          commit;
          dbms_output.put_line('Program, ' || l_Post_Prg || ', added sucessfully to request set, ' || l_Req_Set_Name );
          exception
            when others then
              dbms_output.put_line('Program, ' || l_Post_Prg || ', could not be added to request set, ' || l_Req_Set_Name || ' ' || sqlerrm );
              l_Continue := false;
        end;
      end if;
      if (l_Continue) then
        dbms_output.put_line('----------------------------------------------------------------------- ');
        begin
          fnd_set.link_stages(request_set                     => l_Req_Set_Short_Name
                             ,set_application                 => l_App
                             ,from_stage                      => 'STAGE10_IMPORT'
                             ,to_stage                        => 'STAGE20_POST'
                             ,success                         => 'Y'
                             ,warning                         => 'Y');
          commit;
          dbms_output.put_line('Stages for requested set, ' || l_Req_Set_Name || ', linked sucessfully');
          exception
            when others then
              dbms_output.put_line('Stages for requested set, ' || l_Req_Set_Name || ', could not be linked. ' || sqlerrm );
        end;
      end if;
      if (l_Continue) then
        dbms_output.put_line('----------------------------------------------------------------------- ');
        begin
          fnd_set.remove_set_from_group(l_Req_Set_Short_Name, l_App, 'GL Concurrent Program Group', l_App);
          dbms_output.put_line('Request set, ' || l_Req_Set_Name || ' removed from group "GL Concurrent_Group" in ' || l_App);
          commit;
          exception
            when others then
              dbms_output.put_line('Request set, ' || l_Req_Set_Name || ' does not exist within group "GL Concurrent_Group" in ' || l_App);
        end;
        begin
          fnd_set.add_set_to_group(l_Req_Set_Short_Name
                                 , l_App
                                 , 'GL Concurrent Program Group' -- Request Group Name
                                 , l_App); -- Report Group Application
          commit;
          dbms_output.put_line('Request set, ' || l_Req_Set_Name || ' sucessfully added to group "GL Concurrent_Group" in ' || l_App);
          exception
            when others then
              l_Continue := false;
              dbms_output.put_line('Request set, '|| l_Req_Set_Name || ', could not be added to group "GL Concurrent_Group", ' || sqlerrm );
        end;
      end if;
      dbms_output.put_line('----------------------------------------------------------------------- ');
      if (l_Continue) then
        dbms_output.put_line('Set Created sucessfully ');
      else
        dbms_output.put_line('Set was not created sucessfully ');
      end if;
      exception
        when others then
          dbms_output.put_line('Unknown error: ' || sqlerrm);
    end;
    APPENDIX B
    drop type tb_gli
    create or replace type ty_gli as object
    (SOB_id           number
    ,Group_ID         number
    ,Source_Name      varchar2(25)
    ,Interface_Run_ID number
    ,Autopost_ID      number
    ,Req_Set_ID       number
    ,Error_Msg        varchar2(200))
    create or replace type tb_gli as table of ty_gli
    -- Extract of code, not full listing!
      update GL_Interface gli
      set    gli.Group_ID  =  Gl_Interface_Control_S.nextval
      where  nvl(gli.Currency_Conversion_Date, gli.Accounting_Date) <= l_Max_Rate_Date
      and    gli.Set_of_Books_ID                                     = v_Set_Of_Books_ID
      returning ty_GLI (gli.Set_Of_Books_ID
                       ,gli.Group_ID
                       ,gli.User_JE_Source_Name
                       ,pkg_GL_Imp_Post.Get_Interface_Run_ID -- function defined within pkg above
                       ,pkg_GL_Imp_Post.Get_Autopost_ID(gli.User_JE_Source_Name) -- function defined within pkg above
                       ,0 -- request ID
                       ,null)
      bulk collect into l_GLI_Tab;
      insert into GL_Interface_Control ( Status
                                        ,JE_Source_Name
                                        ,Group_ID
                                        ,Set_Of_Books_ID
                                        ,Interface_Run_ID)
                             (select    'S' -- no need for an index hint, since data is now in memory
                                        ,gli.Source_Name
                                        ,gli.Group_ID
                                        ,gli.SOB_ID
                                        ,gli.Interface_Run_ID -- obtained from the function pkg_GL_Imp_Post.Get_Interface_Run_ID during the update
                              from       table(l_GLI_Tab) gli);
      r_ISet := Get_Init_Set(v_User, v_Resp);
      fnd_global.apps_initialize(r_ISet.n_User_ID, r_ISet.n_Resp_ID, r_ISet.n_App_ID);
      dbms_session.set_nls(param => 'nls_language'
                          ,value => v_Language);
      -- (1)
      b_Set_NLS := fnd_submit.set_nls_options(v_Language);
      b_Set_Mode := fnd_submit.set_mode (false); -- (2)
    -- (3) submit a request against the set
      b_Req_Set := fnd_submit.set_request_set (v_App_Name, v_Set_Code);
      if (b_Req_Set) and (b_Set_Mode) then
        for i in 1..l_GLI_Tab.count loop
         -- submit each stage/prg individually
          b_Run_Stg_Prg := fnd_submit.submit_program(v_App_Name
                                                    ,v_Stage1_P1 -- "GLLEZL"
                                                    ,v_Stage1_Code
                                                    ,l_GLI_Tab(i).Interface_Run_ID
                                                    ,l_GLI_Tab(i).SOB_ID
                                                    ,'N'
                                                    ,null
                                                    ,null
                                                    ,'N'
                                                    ,'O');
          -- Determine if the submission of the program was sucessful
          if (not b_Run_Stg_Prg) then
            v_Stg_Prg := v_Stage1_P1;
            raise SET_PRG_EXC;
          end if;
          b_Run_Stg_Prg := fnd_submit.submit_program(v_App_Name
                                                    ,v_Stage2_P1  -- "GLPPOS"
                                                    ,v_Stage2_Code
                                                    ,l_GLI_Tab(i).SOB_ID
                                                    ,l_GLI_Tab(i).Autopost_ID);
          -- Determine if the submission of the program was sucessful
          if (not b_Run_Stg_Prg) then
            v_Stg_Prg := v_Stage2_P1;
            raise SET_PRG_EXC;
          end if;
          -- Now the Set can be submitted
          n_Submit_Set := fnd_submit.submit_set;
          l_GLI_Tab(i).Req_Set_ID := n_Submit_Set; -- Update the iteration with
        end loop;
      else
        v_Stg_Prg := 'SET_REQUEST_EXC';
        raise SET_PRG_EXC;
      end if;
      -- check further using the WAIT_FOR_REQUEST, code not included!Edited by: bluefrog on Feb 3, 2010 10:21 AM

Maybe you are looking for

  • Error on adding Delivery / AR Invoice with Freight

    Dear Experts, While punching a delivery or A/R invoice with freight values, i get the following error: Cannot add or update this document, rows are missing [freight code missing for line 0] I have assigned a particular tax code to freight and im usin

  • Why can't I download Adobe reader onto my MacBook Pro?!!

    I have tried to follow the help section to download adobe reader but it just won't work - what do I need to do?

  • Cleaning and organizing iphoto folder in HD

    hi, I was wondering if there is something I can do (or delete without eliminaing important or required files) to clean up and reduce unnecessary usage of my HD capacity. Currently in my iphoto folder is the following: albumdata.xml Data (folder) dir.

  • Distribution rules issue

    Hi, Could anybody explain what is distribution rule and where it comes into picture. Your help is highly appreciated. rgds srikanth rvs

  • SQLLDR: (CTL file) How to ONLY load 1 record of the CSV file

    Hello, We are in 11g, and we get CSV data. I'd like to know if there is a way in the CTL file to specify that I only want to load first row ? I know how to do it if there is a common unique value in the first row (WHEN myColumn = 'value1' ) BUT, in t