Question

How can I execute a oracle Request Set trought a PL/SQL ? (500 pts)

Asked by: PETERJORDAN

Is there a command so I can execute a entire Request Set trought a PL/SQL ?

I know about FND_REQUEST.SUBMIT_REQUEST but this command only execute a single concurrent.

Best Regards,

Peter.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-10-21 at 11:08:11ID21177653
Topic

Databases Miscellaneous

Participating Experts
1
Points
500
Comments
1

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. fnd_profile_option_values update/insert
    here the scenerio...I have numerous profiles to change at the responsibility level. So I'm trying to do this via a script. Basically there will be a responsibility_name and a profile_name passed to the script and the value that you want it changed to wll also be passed. Th...
  2. Delete fnd_conc_pp_actions & fnd_conc_release_cla…
    What information stores fnd_conc_pp_actions & fnd_conc_release_classes tables? This tables are about 25 million rows. Is there a way for purge this tables? Thanks in advance.
  3. FND_TIMEZONES_VL
    Hi When converting a form frm 4.5 to 6i, I am getting the following error FRM-30064: Unable to parse statement select timezone_code,name ,to_char(trunc(gmt_offset),'S09') || ':' || to_char(abs(gmt_offset - trunc(gmt_offset))*60,'FM900') offset ,decode(daylight_savings_flag...
  4. FND Basics
    Here is a trivial question: I have worked with FND packages and tables before, but I've never known (or thought to ask) what FND means. Please give a brief description of what it is. Thanks!
  5. Using FND_MESSAGE database package
    Hi. I have an exception handler in a database trigger that is to display a message in the application when a certain condition is met. I'd like to use the fnd_message package to do this, but I am having some difficulty. I'm looking for an examples for use of the package. ...
  6. Oracle 11i Apps -> Concurrent Program
    Hi I need help related to oracle 11i apps concurrent program. I have writen a interface using pl/sql now I want this excetable to be register under concurrent program in 11i apps Can you please provide me tutorial that helps me to register the executable in concurrent pogram...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: PontisPosted on 2004-10-23 at 06:37:01ID: 12388032


See the Metalink Note on how to do it....

Doc ID:       Note:104260.1
Subject:       How to Submit a Report Set from a Custom Form
Type:       PROBLEM
Status:       PUBLISHED
      
Content Type:       TEXT/PLAIN
Creation Date:       03-APR-2000
Last Revision Date:       14-NOV-2001

Problem Description

-------------------

You want to submit a report set from a custom form. You know there is

an API , FND_REQUEST.SUBMIT_REQUEST, to submit individual requests , but

what about report sets ?

Solution Description

--------------------

A new API was developed for 11i , FND_SUBMIT, to submit report sets via a

custom application. This feature was backported to R11 through patch 914123.

You can apply patch 1113909 to get the latest version of the API.

Explanation

-----------

This is the readme from patch 914123 which explains how to use FND_SUBMIT :

This document describes the PL/SQL APIs for the Request set submission.

The APIs are described in the order the developer has to call. Some of them may

be optional APIs. The APIs that are having * are mandatory APIs to complete the

submission of Request set.

APIs that are required to identify the Request set and set the over all context:

FND_SUBMIT.SET_MODE

Syntax:

function FND_SUBMIT.SET_MODE( db_trigger IN boolean)

return boolean;

Description:

Call this function before calling FND_SUBMIT.SET_REQUEST_SET

from a database trigger. Note that a failure in the database

trigger call of FND_SUBMIT.SUBMIT_SET does not rollback changes.

Arguments:

db_trigger Set to TRUE if request set is submitted from a

database trigger.

FND_SUBMIT.SET_REL_CLASS_OPTIONS

Syntax: function FND_SUBMIT.SET_REL_CLASS_OPTIONS

(application IN varchar2 default NULL,

class_name IN varchar2 default NULL,

cancel_or_hold IN varchar2 default 'H',

stale_date IN varchar2 default NULL)

return boolean;

Description:

Call this function before calling FND_SUBMIT.SET_REQUEST_SET

to use the advanced scheduling. If both set_rel_class_options

and set_repeat_options were set then set_rel_class_options will

take the percedence. Returns TRUE on succesful completion, and

FALSE otherwise.

Arguments:

application Short name of the application associated with

the release class.

class_name Developer name of the release class.

cancel_or_hold cancel or hold flag.

stale_date Cancel this request on or after this time if

the request not run.

FND_SUBMIT.SET_REPEAT_OPTIONS

Syntax: function FND_SUBMIT.SET_REPEAT_OPTIONS

(repeat_time IN varchar2 default NULL,

repeat_interval IN number default NULL,

repeat_unit IN varchar2 default 'DAYS',

repeat_type IN varchar2 default 'START',

repeat_end_time IN varchar2 default NULL)

return boolean;

Description:

Optionally call before submitting a concurrent request set to

set repeat options. If both set_rel_class_options and

set_repeat_options were set then set_rel_class_options will

take the percedence.Returns TRUE on succesful

completion, and FALSE otherwise.

Arguments:

repeat_time - Time of day at which it has to be repeated

repeat_interval - Frequency at which it has to be repeated.

This will be used/applied only when

repeat_time is NULL

repeat_unit - Unit for repeat interval. Default is

DAYS. MONTHS/DAYS/HOURS/MINUTES

repeat_type - Apply repeat interval from START or

END of request default is START. START/END

repeat_end_time - Time at which the repetition should be

stopped

FND_SUBMIT.SET_REQUEST_SET *

Syntax: function FND_SUBMIT.SET_REQUEST_SET

(application IN VARCHAR2,

request_set IN VARCHAR2)

return boolean;

Description:

This function will set the request set context. Call this

function at very beginning of the submission of a concurrent

request set transaction. Call this function after calling the

optional functions SET_MODE, SET_REL_CLASS_OPTIONS,

SET_REPEAT_OPTIONS. It returns TRUE on sucessful completion,

and FALSE otherwise.

Arguments:

request_set The short name of the request set

(developer name of the request set)

application The short name of the application that owns

the request set.

APIs to set Request set programs and their attributes:

FND_SUBMIT.SET_PRINT_OPTIONS

Syntax: function FND_SUBMIT.SET_PRINT_OPTIONS

(printer IN varchar2 default NULL,

style IN varchar2 default NULL,

copies IN number default NULL,

save_output IN boolean default TRUE,

print_together IN varchar2 default 'N')

return boolean;

Description:

Called before submitting request if the printing of output

has to be controlled with specific printer/style/copies etc.,

Optionally call for each program in the request set. Returns

TRUE on sucessful completion, and FALSE otherwise.

Arguments:

printer - Printer name where the request o/p should be sent

style - Print style that needs to be used for printing

copies - Number of copies to print

save_output - Should the output file be saved after printing

Default is TRUE.TRUE/FALSE

print_together - Applies only for sub requests. If 'Y',

output will not be printed until all the sub

requests complete. Default is 'N'. ( Y/N )

FND_SUBMIT.ADD_PRINTER

Syntax: function FND_SUBMIT.ADD_PRINTER

(printer IN varchar2 default null,

copies IN number default null)

return boolean;

Description:

Called after set print options to add a printer to the print

list.Optionally call for each program in the request set.

Returns TRUE on sucessful completion, and FALSE otherwise

Arguments:

printer - Printer name where the request o/p should be sent

copies - Number of copies to print

FND_SUBMIT.ADD_NOTIFICATION

Syntax: function FND_SUBMIT.ADD_NOTIFICATION (user IN varchar2)

return boolean;

Description:

Called before submission to add a user to the notify list.

Optionally call for each program in the reques set. Returns

TRUE on sucessful completion, and FALSE otherwise.

Arguments:

User - User name.

FND_SUBMIT.SET_NLS_OPTIONS

Syntax: function FND_SUBMIT.SET_NLS_OPTIONS

(language IN varchar2 default NULL,

territory IN varchar2 default NULL)

return boolean;

Description:

Called before submitting request to set request attributes.

Optionally call for each program in the request set. Returns

TRUE on sucessful completion, and FALSE otherwise.

Arguments:

implicit - nature of the request to be submitted

NO/YES/ERROR/WARNING

protected - Is the request protected against updates YES/NO

Default is NO

language - NLS language

territory - Language territory

FND_SUBMIT.SUBMIT_PROGRAM *

Syntax: function FND_SUBMIT.SUBMIT_PROGRAM

(application IN varchar2,

program IN varchar2,

stage IN varchar2,

argument1, ....argument100)

return boolean;

Description:

Call FND_SUBMIT.SET_REQUEST_SET function before calling this

function to set the context for the report set submission.

Before calling this function you may want to call the optional

functions SET_PRINT_OPTIONS, ADD_PRINTER, ADD_NOTIFICATION,

SET_NLS_OPTIONS. Call this (submit_program) function for each

program (report) in the request set. You must call

set_request_set before calling this function. You have to call

set_request_set only once for all the submit_program

calls for that request set.

This function returns TRUE on successful completion, and FALSE

otherwise.

Arguments:

application Short name of the application associated with

the program with in a report set

program Name of the program with in the report set.

stage Name of the stage that the program belongs to

(developer name of the stage).

argument1..100 Arguments for the program.

API to submit Request Set:

FND_SUBMIT.SUBMIT_SET *

Syntax: function FND_SUBMIT.SUBMIT_SET

(start_time IN varchar2 default null,

sub_request IN boolean default FALSE)

return integer;

Description:

Call this function to submit the request set which is set by

using the SET_REQUEST_SET. If the Request set submission is

successfully, this function returns the concurrent request ID;

otherwise; it returns 0.

Arguments:

start_time Time at which the request should start running,

formated as HH24:MI or HH24:MI:SS.

sub_request Set to TRUE if the request is submitted from

another request and should be treated as a sub-request.

Examples for Request Set submission:

Example 1:

/* To submit a Request set which is having STAGE1 and STAGE2. STAGE1 is having

'FNDSCARU' and 'FNDPRNEV' programs. STAGE2 is having 'FNDSCURS'. */

/* set the context for the request set FNDRSTEST */

success := fnd_submit.set_request_set('FND', 'FNDRSTEST');

if ( success ) then

/* submit program FNDSCARU which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDSCARU', 'STAGE1',

CHR(0),'','','','','','','','','',

..arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* submit program FNDPRNEV which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDPRNEV', 'STAGE1',

'','','','','','','','','','',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* submit program FNDSCURS which is in stage STAGE2 */

success := fnd_submit.submit_program('FND','FNDSCURS', 'STAGE2',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* Submit the Request set */

req_id := fnd_submit.submit_set(null,FALSE);

end if;

Example 2:

/* To submit a Request set FNDRSTEST with repeating request set.

Request set FNDRSTEST is having STAGE1 and STAGE2. STAGE1 is having 'FNDSCARU'

and 'FNDPRNEV' programs. STAGE2 is having 'FNDSCURS'. */

/* set the repeating options for the request set before calling the

set_request_set */

success := fnd_submit.set_repeat_options( '', 4, 'HOURS', 'END');

/* set the context for the request set FNDRSTEST */

success := fnd_submit.set_request_set('FND', 'FNDRSTEST');

if ( success ) then

/* submit program FNDSCARU which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDSCARU', 'STAGE1',

CHR(0),'','','','','','','','','',

..arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* submit program FNDPRNEV which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDPRNEV', 'STAGE1',

'','','','','','','','','','',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* submit program FNDSCURS which is in stage STAGE2 */

success := fnd_submit.submit_program('FND','FNDSCURS', 'STAGE2',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* Submit the Request set */

req_id := fnd_submit.submit_set(null,FALSE);

end if;

Example 3:

/* To submit a Request set FNDRSTEST with 5 copies of the Print environment

variables report.

Request set FNDRSTEST is having STAGE1 and STAGE2. STAGE1 is having 'FNDSCARU'

and 'FNDPRNEV' programs. STAGE2 is having 'FNDSCURS'. */

/* set the context for the request set FNDRSTEST */

success := fnd_submit.set_request_set('FND', 'FNDRSTEST');

if ( success ) then

/* submit program FNDSCARU which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDSCARU', 'STAGE1',

CHR(0),'','','','','','','','','',

..arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* set the print options for the program */

success := fnd_submit.set_print_options( 'hqunx138',

'Landscape',

5,

'Yes',

FALSE);

/* submit program FNDPRNEV which is in stage STAGE1 */

success := fnd_submit.submit_program('FND','FNDPRNEV', 'STAGE1',

'','','','','','','','','','',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* submit program FNDSCURS which is in stage STAGE2 */

success := fnd_submit.submit_program('FND','FNDSCURS', 'STAGE2',

CHR(0),'','','','','','','','','',

...arguments...);

if ( not success ) then

raise submit_failed;

end if;

/* Submit the Request set */

req_id := fnd_submit.submit_set(null,FALSE);

end if;

References

----------

BUG:914123

BUG:1113909

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...