Sei sulla pagina 1di 9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

Bet365

Oracle Apps R12

Oracle Apps R11

Oracle Apps Help

Order to Cash (O2C) Cycle in Oracle Apps R12

Home

Concurrent Programs

Procure to Pay Cycle (R12)

Oracle Apps Technical

Oracle Apps Functional Interview Q&A

Steps to create a Concurrent Program of type PL/SQL


Stored Procedure

Search for:
Search

Posted | 0 comments
Recent Posts

Steps to create a Concurrent Program of


type PL/SQL Stored Procedure
The PL/SQL stored procedure is another popular type of the concurrent
program in Oracle Applications extensions. The popularity of this type of the
concurrent program for the concurrent processing is probably related to the
fact that PL/SQL is still seen by most developers to be the most efficient way
of manipulating data in Oracle databases; another important factor for
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

PO Flip Process
Flow of accounting
information in Procure to
Pay Cycle
MOAC Tutorial Step 5:
1/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

using PL/SQL is that the Oracle Applications database comes with a huge
library of PL/SQL programs and APIs that are freely available to developers

Testing if the MOAC is


working fine.

for reuse in their own custom modules and extensions.


The methodology of creating a PL/SQL concurrent program is similar to
creating a SQL*Plus Script or any other concurrent program. First, you have
to write the code in PL/SQL and save it into the Oracle Applications database
in the APPS schema.
Register it with AOL through the Concurrent Program Executable screen by

MOAC Tutorial Step 4: Assign


the Security Profile to Profile
Option of Responsibility
MOAC Tutorial Step 3: Run
the concurrent program
Security List Maintenance

specifying PL/SQL Stored Procedure in the Execution Method field and the
name of the PL/SQL stored procedure defined in the Execution File
Name field.

Categories

We will illustrate how to do this with an example:


Create a PL/SQL stored procedure

Concurrent Programs

create or replace procedure XX_PO_HEADERS_ALL_PROC (errbuf OUT


varchar2, retcode OUT varchar2) AS

Inventory Q&A

cursor po_cursor is

Oracle Apps Functional


Interview Q&A

select
PO_HEADER_ID POI,
TYPE_LOOKUP_CODE TLC,
VENDOR_ID VID,

Oracle Apps Help


Oracle Apps R11
Oracle Apps R12

CURRENCY_CODE CC
Oracle Apps Technical
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

2/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

From PO_HEADERS_ALL
where rownum<5;
begin
FND_FILE.put_line(FND_FILE.output,Starting processing:);
FOR po_rec in po_cursor

Order Management Q&A


Order to Cash (O2C) Cycle in
Oracle Apps R12
Order to Cash (O2C)
Functional

LOOP
FND_FILE.put_line(FND_FILE.output,

Order to Cash (O2C)


Technical

po_rec.POI || po_rec.TLC ||
po_rec.VID || po_rec.CC);
END LOOP;
FND_FILE.put_line(FND_FILE.output,Done!);

Procure to Pay Cycle (R12)


Procure to Pay Functional
Procure to Pay Technical

commit;
Return 0 for successful completion.
errbuf := ;
retcode := 0;
exception
when others then

Purchasing
Purchasing Q&A
R11 General Ledger (GL)
Uncategorized

errbuf := sqlerrm;
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

3/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

retcode := 2;
end;
/
Compile this procedure from SQL prompt.
Note: No need to place this in any Application Folder as this is a stored
procedure and is stored in Database.
Note 2: This PL/SQL stored procedure has 2 parameters. These parameters
are used for the interaction between the concurrent program and the pl/sql
Program.
System administrator>> concurrent>> program>> executable
Enter the following details

Concurrent Program Executable


http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

4/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

Save your work


Define the Concurrent Program
Go to System Administrator>>Concurrent>>Program>>Define

Defining a Concurrent Program

Save your work


Attach this concurrent program to a Request group
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

5/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

System Administrator>> Security>> Responsibility>> Request.


F11.
Group Field:

Type All Reports and Press ctrl +F11

Ensure Application is:

Payables

Click on + icon on the toolbar to create a new request.

Assigning Concurrent Program to a Request Group

Save your work


Run the request
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

6/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

Switch the Responsibility to Payables.>>Toolbar>>View >> Requests.


We get the find Requests screen.
Submit a New request>>Single request>>Provide the Name of the
program>>Submit.

Submitting a Concurrent request

http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

7/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

Post a Reply
Your email address will not be published.
Name

Email

Website

Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr
title=""> <acronym title=""> <b> <blockquote cite=""> <cite>
<code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
SUBMIT COMMENT
http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

8/9

11/4/2014

Steps to create a Concurrent Program of type PL/SQL Stored Procedure | Techmandate.com

Home

http://www.techmandate.com/steps-to-create-a-concurrent-program-of-type-plsql-stored-procedure/

9/9

Potrebbero piacerti anche