Oracle Apps Technical Materialdoc PDF Free
Oracle Apps Technical Materialdoc PDF Free
1) Buying
2) Manufacturing
3) Selling
4) Payments
5) Receiving
6) Balancing
Shipping Assembling
Payments
Costing
Receiving Customers Marketing & Sales
Accounts
Human Resources
Employees Payroll
Recruiting Employees
Bank Transactions
Assets
It may be developed by using software such as C, C++, Java, .Net, Oracle and etc….
Development of new ERP involves high risk i.e complete SDLC is to be followed.
2) Existing ERP
Advantages
1) Time will be reduced
2) Minimization of Cost.
3) Vendor independent.
4) Already Successfully implemented.
5) Much enhancements and modifications not necessary
6) Enhancement and Maintenance will be look after by the Supplier ( vendor)
7) Minimization of Resources.
With an existing ERPs 60 to 70 % of time will be reduced.
Only 30 to 40 % modifications are required to implement the existing ERP.
Generally any industry will spend only 10% of their turnover on the software.
Hence clients will prefer the exiting ERPs.
Recently the ERPs such as SEIBEL, People Soft, and JD Edwards were adapted by the ORACLE Corp… and
Developed as Oracle Fusion.
Hence with oracle apps we can handle the Financials, CRM, HRMS and Manufacturing
2) SAP uses the Oracle database and uses the 2) Its Own Data base. Since Sun micro system has
Sun Soft servers. been taken over by Oracle Corp, Sun servers
can be used directly.
3) Client has to depend on the No.of Vendors. 3) Oracle Corp is responsible for all and need not
to depend on No.of vendors.
6) Only Large Scale industries can afford 6) Small Scale Industries can also afford
7) Not Easy to develop and maintain the 7)Easy to develop and maintain the applications
applications
8) It is an old ERP and having no. of customers 8) New ERP having less No.of customers.
Shipping Assembling
Payments
Costing
Receiving Customers Marketing & Sales
Accounts
Human Resources
Employees Payroll
Recruiting Employees
Bank Transactions
Assets
The above transactions will be maintained by the ORACLE Apps ERP, with Integration between the Modules.
Q.A
A.P
BOM
CM A.R OM
FPT
G.L FA
HRMS
PAY
Product : it is for the public usage eg: O/S, ERPs, and packages.
Project : it is for the specific client
Types of Project :
1) Implementation Project :
Legacy it is other than Oracle Apps such as BANN, Main Frame, Java and etc
2) Support Project :
3) Migration Project :
4) Up Gradation Project :
Adding new modules to existing Oracle application to obtain new features
Project Process:
2) Preparing the Setup documents How the client is going to use different modules such PO, AP, AR, GL
and etc Sr. F.C
3) GAP Analysis Analyzing gap between existing Oracle ERP and Client requirement, Use of RICE Object
By the Solution Architect
5) Preparing Technical Requirement Document ( MD070) by the T.C and it will be sent Technical Lead
( T.L ) for review After review by the T.L it will be sent client.
9) Testing testing the functionality of the application. By the F.C and T.C
10) Creating Production Instance and Providing Access to Testers by the DBA
11) System Integration Test Integration of different Modules by the both F.C and T.C
12) Creating Quality Instance and Providing Access to Testers by the DBA
15) GO – LIVE
To implement any Oracle ERP the following Human Resources are required.
1) DBA ( Database Administrator )
2) Functional Consultant
3) Technical Consultant
if task is concerned to DBA, then he should introduce the DBA to the client,
if task is concerned to Technical Consultant, then he should introduce the Technical Consultant to the client,
E Extensions = Forms 6i
During an Implementation development of RICE components involves:
1. Creation of Reports that are not available as standard reports in the oracle apps modules.
2. Creation of the Interfaces to external systems.
3. Creation of Conversion programs to transfer data from a legacy system to the new system.
4. Enhancements (or extensions) to the existing system to add additional functionality to existing system without
disturbing the core software functionality of the system.
INV
INV
O – 2 – C Cycle == OM AR CM GL
Compiled and Developed by 9
M.Nageswar Rao, B.Tech, MBA
Software used in development of Oracle Application
10.7 Standalone
11.0.3,
11i 11.5.3, 4, 5, 6, 7, 8, 9,
11.5.10, 11.5.10.2
12.0.0
12.1.1
Release – 12
12.1.2
( R -12 )
12.1.3
12.1.4
Fusion Future release
Oracle Applications
3) Oracle Cash Management ( CE = Cash Entry ) Cheques and Cash ( Bank Statement of the company )
Registration
where abouts of the assets
responsible person
Insurance
Tax payments
Distribution:
Manufacturing:
HTTP Request
Application
Components Request
WEB Servlet / JSP/
CLIENT Oracle Data Base
Application Response
Forms, JSP
Pages
Compiled and Developed by 13
M.Nageswar Rao, B.Tech, MBA
HTTP Response
It is an Enterprise Application.
HTTP Request
Application Request
Components
WEB Request
Servlet / JSP/
CLIENT Oracle Middleware Data Base
Response
Application
Forms, JSP
HTTP Response Response
Pages
Middleware :
Java EJB Components are used as Middleware Components.
Some Middleware Components can be Distributed.
If Application –Tier and Middle-Tier are on the Same system, then it is called as Enterprise Application.
If multiple Middleware components are running on different systems in a network, then it is called as distributed
application.
Oracle Applications architecture
Oracle Applications architecture is a framework for multi-tiered, distributed computing, that supports Oracle
Applications products. In this model, various services are distributed among multiple levels, or tiers.
User Tier Application Tier Database Tier
SERVICE
A Service is a process or group of processes running on a single machine that provides a particular
functionality. The HTTP service, for example, is a process that listens for and processes HTTP requests, and the
Forms service is a process that listens for and processes requests for Oracle Forms.
Compiled and Developed by 14
M.Nageswar Rao, B.Tech, MBA
TIER
A tier is a grouping of services, potentially across physical machines.
desktop tier, which provides the user interface display. Only the presentation layer of Oracle Applications is on the
desktop tier in the form of a plug-in to a standard Internet browser.
The application tier, which manages Oracle Applications and other tools;
The tiers that, manages the Oracle database is a Database-Tier;
The forms client applet is a general-purpose presentation applet that supports all Oracle Applications
forms-based products, including those with customizations and extensions. The Forms client applet is packaged as
Java archive (JAR) files. The JAR files contain all Java classes required to run the presentation layer of Oracle
Applications forms. The Forms client applet and commonly used JAR files are downloaded from the Web server at
the beginning of the client’s first session. Other less commonly used JAR files are downloaded as needed. The JAR
files remain in the disk cache on the desktop, ready for future sessions, minimizing network traffic. All updates are
installed on the application tier and downloaded to the client automatically through the use of the JInitiator-enabled
Web browser.
Oracle JInitiator
The forms client applet must run within a Java Virtual Machine (JVM) on the desktop. For Oracle
Applications, the JVM is supplied by Oracle JInitiator. Oracle JInitiator works in conjunction with the Web browser.
It is implemented on the desktop client as a plug-in (Netscape Communicator/ Mozilla Browser) or ActiveX
component (Microsoft Internet Explorer). When a user enters the desired Oracle Applications signon URL within
Compiled and Developed by 16
M.Nageswar Rao, B.Tech, MBA
the Web browser, Oracle JInitiator is executed. If Oracle JInitiator has not been installed, the Web browser prompts
the user to download the necessary installation executable to the desktop client. Once installed, Oracle JInitiator
runs the Forms client applet and starts an Oracle Applications session.
The Application Tier
The application tier hosts the servers that process the business logic and provides the communication
between the desktop tier and the database tier. This tier is also referred to as the middle tier. Oracle 9 i Application
Server (9iAS) provides the technology stack used on the application tier. Six servers comprise the application tier
for Oracle Applications:
■ Web server
■ Forms server
■ Concurrent Processing server
■ Reports server
■ Discoverer server
■ Admin server
Load Balancing
The application tier supports load balancing among many of its servers to provide higher availability, fault
tolerance, reliability, and optimal scalability. Load balancing occurs when there are multiple installations of the
following:
■ Web server
■ Forms server
■ Reports server
■ Concurrent Processing server
■ Discoverer server
The database tier contains the database server, which stores all the data maintained by Oracle Applications.
It also contains some processing code that is stored in the database to optimize performance. In Release 11 i, the
database includes the Oracle Applications online help information as well. More specifically, the database tier
contains the Oracle data server files and Oracle Applications database executables that physically store the tables,
indexes, and other database objects for your system. In general, the database server does not communicate directly
APPL_TOP
forms reports sql plsql admin include bin lib java Log out driver
US US
Subdirectory
Description
Name
Forms
Contains Oracle Forms generated runtime (.fmx) files (Oracle Forms form files).
Reports Contains Oracle Reports .rdf files for each product, which are platform-specific binary report files.
Reports for each language are stored in subdirectories of the reports directory.
Sql Contains SQL*Plus scripts used to upgrade data, and .pkh, .pkb, and .pls scripts to create PL/SQL
stored procedures.
Plsql Location where .pll files (PL/SQL library files for Oracle Reports) are unloaded, later in the
installation they are moved to the plsql subdirectory in the AU_TOP directory.
Forms display messages at the bottom of the screen and in popup boxes. Concurrent programs also
print messages in the log and output files. These messages are translated and stored in message files
Mesg
separate from the forms and concurrent programs. This directory contains the .msb files (binary
message files used at runtime), and language-specific message files (such as a US.msb file for
American English and a D.msb file for German.)
PROD_TOP/admin contains files used by Auto Upgrade to upgrade each product. Note that this
directory is not the APPL_TOP/admin directory. The APPL_TOP/admin directory contains upgrade-
Admin
related files for all products. This PROD_TOP/admin directory contains product-specific upgrade
files.
Contains .drv files (driver files). Auto Upgrade processes in several phases, and each phase is
Driver
controlled by a driver file.
Odf Contains object description files (.odf files) used to create tables
and other database objects.
Help Contains the online help source files. Within this directory are subdirectories for each language you
choose to install.
Html
HTML, Javascript, and Java Serve Page files, primarily for Self-Service Applications products.
Include Contains C language header (.h) files that my be linked with files in the lib directory. Not all
products require this directory.
Contains files used to relink concurrent programs with the Oracle server libraries.
These files include:
Lib object files (.o) with compiled code specific to one of the product’s programs;
■ a library file (.a) with compiled code common to the product’s programs;
■ a makefile (.mk) that specifies how to link executables.
Contains JAR files (Java Archive files) and Java dependency files. Copies of JAR files are also
Java
located in JAVA_TOP.
Media The desktop client displays text and graphics from the .gif files
in this directory.
Patch
Updates to the data or data model use this directory to store the patch files.
resource Contains .pll files (PL/SQL library files for Oracle Forms),
which, like the plsql directory files, are later copied to AU_TOP.
Custom Top :
This module is to support customer new requirements other than provided by oracle Corp. Custom Top is used
to create the customer ( client ) own forms / reports / or other data base objects as per the requirement of the customer. It
will be created by the customer. DBA is the responsible to create this module. At least on custom top is required for
every client. Multiple custom tops can also be created as per the demand.
Client need not to develop the modules such AP, PO, INV, AR, GL and etc. These will be provide by the oracle
corp. If any customer developed the database objects like forms/reports/ or any other objects inside the modules
provided by the Oracle Corp., these will be over written when the patches are applied to the oracle application.
US folder :
This folder is a language specific. Default language is American English. Regional languages such as Japanese,
German, Hindi, Chinese and etc can be used for better under standing of the end users. This folder is applicable only for
Forms and Reports as they contain G.U.I components.
Functional consultant must have the clear idea about the version of the Oracle Application and its features
Most of the applications are being developed with 11.5.0 and R-12.
Schema contains database objects such as Tables, procedures, functions, triggers, views, indexes, synonyms, packages.
If any user logged into any schema he can access concerned objects only. He can not have the access to other schema
objects. To other schemas user must have privileges.
Eg:
There are two schemas called X and Y . if user logged into schema X then he can access the objects of
schema X only . He can not have the access to Schema Y. If user wants access the Schema Y, then user must be granted
permissions by the Schema Y.
There is no integration between schemas. To integrate the all schemas in a database oracle provides Apps
Schema.
APPS schema:
Oracle provides Apps Schema, which enable the user to access all schemas in a database. Apps schema integrate
all the schemas in a database.
The APPS schema has access to the complete Oracle E-Business Suite datamodel. It is analogous to the
SYSTEM schema, which has access to the entire database. Oracle Applications responsibilities connect to an APPS
schema and the environment variable FNDNAM is set to the name of the APPS schema.
APPS schema contains only synonyms to the database objects in other schemas. Every object in the base
product schema will have a synonym in the APPS schema.
PO
Schem
a
AP
Schem
a
INV Apps
Schem Schem
a a
AR
Schem
HRMS a
Schem
a
We have to select the data from four tables. Apps Schema provides corresponding synonym for every table in
other Schemas, so as to enable the user to access the data from tables of different schemas.
Eg:
A.P Schema is having 50 objects
P.O Schema is having 100 objects
INV schema is having 100 objects
A.R Schema is having 50 objects
HRMS Schema is having 100 objects
Then apps Schema will maintain 350 ( A.P + P.O + INV + A.R + HRMS ) synonyms.
For convenient name of the synonym and database object will be the same.
2) only synonyms and few of Multi Org views 2) all Database Objects
3) User will always be connected to Apps schema 3) User will never be connected. Some times may be
connected to particular schema only.
In development of oracle applications, we use 95 % DML and TCL commands and 5 % DDL commands.
User id : apps
Password : apps
SID : vis
Sql > conn apps/apps@vis
Sql > select count (*) from tab;
62561
Sql > conn po/po@vis;
Utilities used in the development of Oracle Application are 1) TOAD 2) FTP 3) Win SCP
Library : It is a registry
AOL is a key where we are going to complete Technical and Functional aspects.
1) System Administrator
2) Application Developer
System Administrator :
Creation of users
Security Groups
Responsibility
Profiles
Programs
Application Developer :
Forms
Reports
Menus
Form function
Messages
Application
Tables
Creation of a user
Place the cursor in the responsibility cell and click ( right side …)
Find : appl% enter key and select application developer , then OK
Place the cursor in the responsibility next row and click ( right side …)
Find : system administrator % enter key and select application developer, then OK
2nd way
Using query
Select * from FND_USER ;
Using Toad Utility :
User name : apps
Password : apps
Database : vis
Click on Connect
Go to editor then execute following query ( Ctrl + Enter to execute query )
Select * from FND_USER where trunc(creation_date)=trunk(sysdate)
Creation of one more user
Users form:
New button ( + ) ( 1st one on the tool bar with green color )
Repeat the above procedure and save it.
For checking users form : F11 to get into query mode,
User Name : mnrao% : Ctrl + F11 it queries for the users starting with user
Down arrow key display the users one by one .
Find button : ( 2nd one in the tool bar )
To display users
Click and find : user % ( enter key )
Close Form : to close the form
Clear form : to clear the current form
Delete : this will be in the disabled position, to disable the user set effective dates
From :
To :
Set the To date same as the form date.
Significance of colors in the form
The above details will be obtained from the Table called FND_USER
Column names
Help diagnostics examine
Block : USER
Filed : USER_NAME, to see the more fields click at right side, it shows all the columns in the table
(or)
using toad utility we can query the fields
Select * from FND_USER
Value : mnrao10
Oracle Applications
Copyright (c) 2004 Oracle Corporation,
Redwood Shores, California.
All Rights Reserved.
Site : UNKNOWN
Types of executables :
These are programs
concurrent program : Instance of executable file along with input parameters and incompatible programs.
Development of sample report and Move to oracle apps and execution
Report Registration Steps:
1) Develop the report (.rdf) as per client requirement by using Reports 6i Builder
6) Create Responsibility
a. Request Group – Collection of Concurrent Programs
b. Data Group – Collection of User IDs
c. Menu – Collection of forms
Last Page :
Total No.of Users : 2836
2 ) Layout Model
Header Section
Main Section
Trailer Section
Program : user_prog ( any name ) ( copy this next step, it will be supplied in the next step for REQUEST
NAME), THE SEME NAME WILL BE ADDED IN THE SUBMITTION REQUEST )
Request group
Menu : Position Control, Vision University ( supply some, which is already existing one )
Eg: ( LG company : clerk, senior clerk, manager, General Manager, Managing Director, CEO )
Data Group is a Collection of Oracle Application UserID's. it will be for Security purpose.(STANDARD will
be used)
Request group is a collection of Concurrent Program add the request group whatever we have created.
it will automatically retrieves the Application Name.
Menu : Menu is a collection of Forms and Sub Menus select any one of Existing Menu.
Note : Once we create the Responsibility we can not delete instead of that we can disable by using Effective
start Date and End date.
Security : user
Compiled and Developed by 39
M.Nageswar Rao, B.Tech, MBA
Define
add the responsibility to user
Query for the user ( F11 )
Name : MNRAO ( CTRL + F11)
This request completed successfully. The request started at 05-MAR-2011 19:47:06 and ended on 05-MAR-
2011 19:47:23.
Executable:
After moving .rdf in to the server, we will crate executable by specifying execution
name execution method and application name.
Request Set:
Request set is a collection of report / Programs that you group together and can be submitted to run is a
single interaction.
Request Id:
When submit a request oracle application assigns a request id to the request. We can use this request id
to search for request.
Concurrent Manager:
A concurrent manager is a component of concurrent processing that monitors and runs tasks without
typing up your computer.
Refresh Data:
This button will show you the latest status of the concurrent program
Find Request:
This button will take you to request find window
Diagnostics:
This button will show the completion details of the concurrent program
Cancel Request:
This button will help to stop the running request.
View LOG:
Using this we can see the technical details of the concurrent programs.
View Output:
Using this we can see the actual result data.
Concurrent Program:
After creation of executable we will create concurrent Program by attaching
Executable, if parameters are there we will attach parameter if incompatibility
Programs are there we will add those programs , for single executable we create
Multiple concurrent programs with different parameters.
Request Group:
After creation of concurrent program we must add the program to the request
Group. Request Group is nothing but collection of Concurrent Programs and
Reports.
Responsibility:
It is level of authority where we will combine Data Group, Request Group and
Menu. Request Group is optional, where as menu and data group is mandatory.
Data Group:
Data Group is nothing but collection of applications names and Oracle User
Names based on this Username data will be retrieved from database.
Menu:
Menu is nothing but collection of functions (forms) and submenus.
Value Set:
values set is nothing but list values. It will be used to validate values
while entering the parameters.
Token:
Token is one the field will be used to map concurrent Program
parameters with report builder find variable. We will enter the find variable name
in the toke field so that parameters will be passed to the find variable.
Default Types:
If we are hiding the parameters user can’t enter the values that
Time we can pass default values by using default type and default value filed.
Scheduling:
Using this we can schedule the program to run periodically or on specific time also we coy a schedule for
future.
2. Once: It will submit the rest only once for future date.
5. Save this Schedule: This check box will be used to save the schedule and
apply same schedule to other concurrent programs by selecting the button called
‘Apply save schedule’
*****************************
Application
Responsibility1, Responsibility2, Responsibility3
Responsibility
Combination of 1) Menu Group 2) Request Group 3) Data Group
Step1: login
Step2: system administrator
Step3: select concurrent : program
Define and close the form
Step4: select the required form the left pane and to top ten list
Eg:
1) Concurrent : Program
Executable
Click on add
2) Concurrent : Program
Define
Click on add
4) Security : responsibility
Define
Click on add
5) Security : user
Define
Click on add
Note : click on one of the option from the LIST for auto navigation
1) Interface Tables
2) Base Tables
1) Global Tables
2) Org Specific Tables
3) Language Specific Tables
Interface Tables :
These are intermediate tables between apps base tables and external tables. Oracle Program is used to transfer data
from other tables to Apps Interface tables. Apps interface program is used to transfer data from Interface tables to
Base tables.
Base Tables :
These are actual tables where the data will be stored. These tables will not be updated from the back end .
A from is dependent on one or more tables.
Eg:
AP_INVOICE_ALL
1) Global Tables
2) Org Specific Tables
3) Language Specific Tables
Global Tables :
The data in this tables is not specific to any organization of a business. This data can be shared across all the
organizations of business group.
Eg: Employs data, Suppliers data, Accounting data, Bank Transactions data
Language Tables :
Apps supports the multiple languages. These tables will maintain the language specific data.
These table will have TL as it’s suffix
Eg : MTL_SYSTEM_ITEMS_B
1) Data Columns :
These columns contains base transactional data, which is entered from the apps form.
USER_NAME, DESCRIPTION, EMPLOYEE_ID, EMAIL_ADDRESS
2) Derived Columns :
These are primary key columns. This data will be generated from oracle database sequence.
USER_ID
GLOBAL_ATTRIBUTE1
GLOBAL_ATTRIBUTE2, …. 10.
5) Additional Cols :
These columns are used to store the data, which is from additional fields added to the existing form during the
customization of a form.
ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3….. 15
6) Key Columns : These are called as segment columns. Used to maintain the key flex field data.
A field will have subfields
Eg:
Account Num :
COMPANY-COUNTRY-DEPARTMENT-ACCOUNT
LG-IND-SALES-4523
Requirement:
First Page :
Title from the user input
Second Page :
Last Page :
Total Users :
Enter From Id :
Enter To Id :
Enter Title
2) Data Model
Query :
SELECT USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
WHERE USER_ID BETWEEN :P_FROM AND :P_TO
3) Layout model
STEP 2: transfer the file user-param.rdf from local machine to the server
Total Users :
Step1: Develop the report
1) Create Parameters
P_FROM : Date type : date, input mask : YYYY/MM/DD HH24:MI:SS
P_TO : Date type : date, input mask : YYYY/MM/DD HH24:MI:SS
2) Data Model
Query
SELECT USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
WHERE CREATION_DATE BETWEEN :P_FROM AND :P_TO
create a summary column : TOTAL_COUNT
3) Layout Model
Header Section :
Prepare the required title
Main Section:
UserId UserName CreationDate
Trailer Section :
Total Users :
Repeat the other steps such registry and running as explained in the previous examples
Step 5 : while creation of concurrent program :
Parameters :
Pre defined Date value set : FND_STANDARD_DATE
In all the above example we have followed following steps
1) Executable
2) Concurrent Program
3) Request Group
4) Responsibility
5) Users
Compiled and Developed by 53
M.Nageswar Rao, B.Tech, MBA
6) SRS
Here the question is why not use executable directly with users ?
Default Types
1) Constant
2) SQL Statement
3) Segment
4) Current Date
5) Current Time
6) Profile
Enter From Id :
Default Type : sql statement Default Value : select min(user_id) from fnd_user
The above select query returns user_id : -1, -ve value will not be considered for 10/number, we have to
change data type as 15 char
Enter To Id :
Default Type : sql statement Default Value : select max(user_id) from fnd_user
Segment :
This is to get previous parameter value to the next parameter
Enter From Id:
Enter To Id :
Default Type: segment Default Value : Enter From Id
Value Sets : System provides built-in ( pre-defined ) value sets
Value set is a list of values with validations which will be used to restrict the user without entering the
invalid data in the Parameters
value sets are used in two scenarios.
1)Concurrent Program parameters
2)Flex fields
These are of 8 types of Validation types
1) NONE
2) Dependent
3) Independent
4) Table
Compiled and Developed by 55
M.Nageswar Rao, B.Tech, MBA
5) Translate dependent
6) Translate Independent
7) Special
8) Pair
Note : the 1st four are mostly used.
All pre-defined are NONE type.
1) NONE type
Eg 1: conditions
1) only digits ( 0-9)
2) Max 4 digits
3) Min Value : 150
4) Max Value : 5600
Note : After define use in the concurrent program, while defining parameters
Eg 2: conditions
5) Max 15 chars
6) Upper
7) If user input is number, it should precede with zeros
2) INDEPENDENT
Independent provides the list of values, user has to select the value from the list
Last Page:
Total Employees : 50
Step1 : create the independent values set ( list = India, US, UK )
System Administrator Application Validation Set
Value Set ( form )
Value Set Name : CUST_COUNTRY
Description : List of Countries ( as desired )
List of values : List of values
Format type : Char Max Value : 50 ( as desired )
Validation Type : Independent
SAVE THE FORM
Step2 :
Create the dependent values set
2) Independent Value : US
Select Find
Values ( California, Chicago, Detroit )
SAVE THE FORM
3) Independent Value : UK ( London, Anderson )
Use the above dependent and independent value sets in the application.
Note : use the above in Concurrent Program Parameters
4) Tables : Values will be provided from the database table
5) Translated Independent and 6) Translated Dependent are to display translation values
7) Speed and 8) Pairs are to display flex fields data values
1) Table Name
System Administrator User Define
After getting above form Query for all users ( Ctrl + F11 ) ) user down arrow key to move to next user.
Place the cursor in the User Name filed go to Help Record History get the Table Name : FND_USER
2) Column Name
Table Columns
Name
Value : USER_NAME
Where/Order by : USER_NAME LIKE '%USER%'
Select Test
Save the above and close the form
Working with Stored Procedures and Packages
Stored Procedure :
1) It is sub a program, which contains set of statements.
2) It is a pre-compiled program at server side.
3) It carries three type of parameters, In, Out , InOut
In Parameter to pass the value
Out Parameter to return the value
InOut Prameter to pass as well as to return the value.
4) It can not return the values directly from the stored procedure. It returns the values
through the out parameter or InOut Parameter.
Advantages:
1) We can obtain more performance as it is a precompiled program at server side.
2) Since It will be stored at the server side , it can be shared by multiple clients at time.
Developing and Registering with Oracle Application
1 ) Develop the stored procedure
Syntax :
Create Or Replace Procedure <ProcedureName> (ErrBuff OUT varchar2,
RetCode OUT varchar2,
P1 IN NUMBER,
P2 IN VARCHAR2,
P3 IN DATE) AS
Local variables, Cursor, Collections Declare;
Begin
If statement
For Loop
Procedure Calling
Compiled and Developed by 68
M.Nageswar Rao, B.Tech, MBA
Fnd_File API will be used instead of DBMS_OUTPUT.Put_Line
FND_FILE.PUT_LINE(Fnd_File.Log ,'Message'||Variable Name);
FND_FILE.PUT_LINE(Fnd_File.Output, 'Message'||Variable Name);
Exception
When Other then
-Exception Statements;
End [ <Procedure Name> ];
ErrBuff : to get the runtime error messages into the log file
RetCode: To get status of the concurrent program
0 Normal termination
1 Warning
2 Error
Eg:
Create or replace procedure test_proc(
ErrBuff out varchar,
RetCode out number) as
l_name varchar2(100):='MNRAO';
begin
FND_FILE.PUT_LINE(Fnd_File.Log , 'Employye name into the log file'|| l_name );
FND_FILE.PUT_LINE(Fnd_File.Output, 'Employye name into the log file '|| l_name );
end;
1) create executable method as PL/SQL Stored Procedure
2) Create concurrent program as PL/SQL Stored Procedure
3) Out put format must be in text format only for PL/SQL Stored Procedure
Repeat the remaining as explained in the previous examples.
We can find all the flex field details in Application Developer Responsibility
General Ledger Vision Operations ( USA ) Setup Financials Flexfields Key Segments
The Oracle Applications organization models define organizations and the relationships among them in
arbitrarily complex enterprises. This organization model serves as the cornerstone for all of the Oracle Applications
products. It dictates how transactions flow through different organizations and how those organizations interact with
each other.
Generally, a complex enterprise has several organization structures, such as Internal, Accounting, and Human
Resources. You are able to define different structures to customize Oracle Applications according to your business
needs.
Organization can be a Company / Branch / Dept / Area / Unit
Oracle Applications provides you with the features you need to satisfy the following basic business needs:
• Use a single installation of any Oracle Applications product to support any number of organizations, even if
those organizations use different sets of books.
• Support any number of legal entities within a single installation of Oracle Applications.
• Secure access to data so that users can access only the information that is relevant to them.
• Sell products from a legal entity that uses one set of books and ship them from another legal entity using a
different set of books, and automatically record the appropriate intercompany sales by posting intercompany
accounts payable and accounts receivable invoices.
• Purchase products through one legal entity and receive them in another legal entity.
Secure Access
You can assign users to particular organizations. This ensures accurate transactions in the correct operating unit.
You can support multiple organizations running any Oracle Applications product with a single installation.
When you run any Oracle Applications product, you first choose an organization—either implicitly by choosing a
responsibility, or explicitly in a Choose Organization window. Each window and report then displays information for
your organization only.
Organizations that share the same functional currency, Accounting Flexfield structure, and calendar can post to
the same set of books.
Stock Location
Rack/bin Rack/bin Rack/bin
Business Group
The business group represents the highest level in the organization structure, such as the consolidated
enterprise, a major division, or an operation company. The business group secures human resources information. For
example, when you request a list of employees, you see all employees assigned to the business group of which your
organization is a part. Employment will also be created.
Eg : Head Office , Regional Level Head Quarter
Note: This is true in all applications except the HR applications, which support more granular security by a
lower–level organization unit, the security profile. Multiple sets of books can share the same business group if
they share the same business group attributes, including HR flexfield structures.
Set of Books
Compiled and Developed by 77
M.Nageswar Rao, B.Tech, MBA
It is a logical entity. A financial reporting entity that uses a particular chart of accounts, functional currency, and
accounting calendar. Oracle General Ledger secures transaction information (such as journal entries and balances) by set
of books. When you use Oracle General Ledger, you choose a responsibility that specifies a set of books. You then see
information for that set of books only.
Legal Entity
A legal company for which you prepare fiscal or tax reports and submitted to the government. You assign tax
identifiers and other legal entity information to this type of organization.
Operating Unit
An organization that uses Oracle Cash Management, Order Management and Shipping Execution, Oracle
Payables, Oracle Purchasing, and Oracle Receivables. It may be a sales office, a division, or a department. An operating
unit is associated with a legal entity. Information is secured by operating unit for these applications. Each user sees
information only for their operating unit. To run any of these applications, you choose a responsibility associated with
an organization classified as an operating unit.
Inventory Organization
An organization for which you track inventory transactions and balances, and/or an organization that
manufactures or distributes products. Examples include (but are not limited to) manufacturing plants, warehouses,
distribution centers, and sales offices.
Business group at the top of each hierarchy. When you define new organizations, they are automatically
assigned to the business group associated with your current session. Each organization is part of a business group. The
business group is usually the top box on an enterprise organization chart.
Below this level, you represent the groupings in which employees work, such as branches, departments, or
sections, by means of internal organizations. To enable the assignment of employees to an internal organization, you
classify the internal organization as an HR organization.
You can define external organizations in the same way as internal organizations, so that you can represent
organizations that are not part of your enterprise (such as training vendors or tax offices). The major difference between
internal and external organizations is that you cannot assign people to an external organization.
Using the accounting, distribution, and materials management functions in Oracle Applications, you define the
relationships among inventory organizations, operating units, legal entities, and sets of books to create a multilevel
company structure, as shown in Figure
It involves two steps 1) create the location ( address ) 2) create the business group
1) Creation of a Location :
Login : Operations
Navigation steps :
Inventory Vision Operations ( USA ) Setup Organizations Location
The above address information will be stored into the table called
The Business Group information will be stored into the table called : HR_ORGANIZATION_UNITS
Business Group Classification, Others information will be stored into the table called :
HR_ORGANIZATION_INFORMATION
select * from HR_ORGANIZATION_UNITS where NAME ='VIS_BG'
obtain the ORGANIZATION_ID
and check the following
Navigation
The above one is a predefined currency. We can define our own currency.
Eg:
Code : XX_CUR name : Test_Currency Desc : Test Currency Territory : India Symbol : #
Navigation :
General Ledger Vision Operations ( USA ) Setup Financial Accounting Calendar Types
Shows the types of Calendars
GL_PERIOD_TYPES
Standard Calendar :
Navigation :
Yearly :
Month1 Month2 Month3 ………..Month12
Quarterly :
Qrt1 Qrt2 Qrt3 Qrt4
Mon1 Month2 Month3
W1 W2 W3
M1 M2 M3
4 5 4 ( 13 weeks ) = 91 days / 7
5 4 4
4 4 5
AP INV PO GL
Eg:
Code : TEST_27_APR_ACFF
Title : TEST_27_APR_ACFF ( auto )
Desc : TEST_27_APR_ACFF ( as desired )
Select Segments
Navigation :
General Ledger, Vision Operations ( USA ) Setup financials Books Define
Query for the existing one ( Ctrl + F11 and down arrow key )
Company : 01
Department : 000
Account : 3310
Sub Account : 0000
Product : 000
Note : The above set of books information will be stored into the table called
GL_SETS_OF_BOOKS_
select * from GL_SETS_OF_BOOKS where trunc(creation_date)=trunc(sysdate)
Legal Entity :
Navigation :
Inventory Vision Operations ( USA ) Setup Organizations Organizations New
Name : Test_29_APR_LE
Location : REG10_SRNAGAR ( select from existing Ctrl + F11 )
Note : The above information will be stored into the table called :
HR_ORGANIZATION_UNITS
Operating Unit :
Creating Operating Unit
Navigation
Inventory Vision Operations ( USA ) Setup Organizations Organizations New
Name : Test_29_APR_OU
Location : VIS_CORPORATE ( select from existing Ctrl + F11 )
Inventory Organization :
It is a place where actual business transactions takes place ( called as transaction point )
1) Master Inventory
2) Child Inventory
Eg :
SONY
IND USA UK
HYD MUMB PUNE NY WSH LOND X
In the above suppose Sony is manufacturing computers and may 100 models
First step We have to identify the Master and Child based on Company Name.
( SONY, LOGTECH, LG, SAMSUNG )
ORG_ORGANIZATION_DEFINITIONS
and
MTL_PARAMETERS
BUSINESS_GROUP_ID = 202
Step2 :
Get the ORGANIZATION_CODE form the above ( select any one as desired eg; M1 )
ORGANIZATION_CODE = M1
Step 3:
MASTER_ORGANIZATION_ID = 204
Step4 :
Sub Inventory :
INV
Raw Material Finished Goods Semi Finished Goods Damaged Goods Sub-INV
Name : VIS_SINV ( allows only 9 chars ) ( Name as desired ) ( Copy this name into note pad )
Desc : as desired Status : Active Locator Control : Dynamic Entity Type : Storage
Navigation
Application : Inventory FlexField Title : Stock Locators ( use down arrow key to get )
Select Segments
Copy the Flex Field Title (Stock Locators ) into note pad (Stock Locators) : it is a mapping to Stock locator
Inventory Vision Operations ( USA ) Setup Organizations Stock Locators M1 ( Inv Org Name )
Select New
Locator ( Click here ) : Row :1 Rack : A Bin: 1
Locator : 1.A.1
Status : Active
Status : Active
Subinventory : VIS_SIN
Inventory Module :
ITEMS
Indirect Items : Stationary Items. It is a secondary. It will not impact on the business.
It is called as Expensive Item ( Technical Term )
Eg: White Papers, Pens and etc
Master
Navigation
The following form contains 16 tabs such as Main, Inventory and etc.
If it is manually user have to fill the all 16 tabs.
To enter all the above fields tame taken. Templates are provided to reduce the time of work.
In the above 1st and 2nd are mandatory where as 3rd one is an optional
1) Creation of INV Organization setup has already been discussed. It is a Multi Orgs concept.
Navigation :
Click in name column and select new for new unit of measure. And enter as shown above (Yellow Colour)
Unit : VIS_DOZ Class : Quantity ( auto ) Conversion : 14 ( as desired ) Basic unit : Each ( auto )
All Unit Of Measure information will be stored into the table called : MTL_UNITS_OF_MEASURE
Template basis
Display Attributes :
Master Org All
Select the master and observe, some fields will be disabled colour, those fields can not be entered in the
master level
Similarly select Org, some fields will be disabled colour, those fields can not be entered in the Org level
Step2 :
Assign the item Child
After save the Master go to Tools Organization Assignment
Item names will be stored into the Segment1. Reason is that, Item name is a Key information.
Item Basis :
Apply Done
All the properties of REG10_ Monitor Item will be inherited to REG10_Printer ( such as V1. M1, M2 .. )
Save the above
Assign to Child
Compiled and Developed by 105
M.Nageswar Rao, B.Tech, MBA
Tools Organization Assignment ( if not saved it will be disabled )
Select V1, M1, M2 and save it .
Create Item for CPU : ( Mother Board, HDD. CDDrive are part of CPU )
Mother Board, HDD. CDDrive are part of CPU are purchasing from the outside and assembling CPU in the
organization. Hence CPU is a manufacturing Item. It comes under sub assembly.
-----------
Eg : CROMA is a distribution Center for different products such as Computer, Mobiles, HDD, IPOD
----------------------------------------------------------------------------------------------------------------------------
HCL IBM LEN SONY DELL Category Code
S.D S.G KS
-----------------------------------------------------------------------------------------------------------------------------
Desktop Laptop
----------------------------------------------------------------------
Model1 M2 M3 Items
----------------------------------------------------------------------
In real applications 1st create Category Code , 2nd create Category set and then assign to Item.
Eg : VIS_CAT_CODE
Navigation :
System Administrator Application Flex Fileds Key Segments
Application : Inventory ( Query ) FlexFileds Title : Item Categories ( Down Arrow Key )
Navigation : Inventory Vision Operations ( USA ) Setup Items Categories Category Codes
New
Tools Categories
Item Cost :
Item Cost = (Material Cost + Material Over Head Cost + Resource Cost )
Master Item form contains 16 Tabs : one of the tab is Costing tab
Costing Enabled
Inventory Asset Value
Include In Rollup
If the all the above are checked, then it will be available for costing
Item : Click here and Query for the Item, It shows all Costing items.
If the following are disabled at time of Items creation, then it will not shows in the list
Costing Enabled
Inventory Asset Value
Include In Rollup
Costing an item :
1) Eg : VIS_CDDrive
Item : VIS_CDDrive
Cost Type : Frozen ( 4 Types of costing 1) Frozen 2) LIFO 3) FIFO 4) AVG
Select Find
Select Open
Make/Buy : Buy ( Buy : purchased Items, Make : Manufactured Item )
Select Cost
Cost Element Sub Element Basis Amount
Material Material Item 250
Material Over Head
2) VIS_HDD
Repeat the above steps
Costing Types information is available in the table called : CST_COST_TYPES
Unit Costing information is available in the table called : CST_ITEM_COSTS
Items :
1) Receivings
When received from the Suppliers, the Godown on hand stock will be increased
2) Issues
When Issued to the Customers, the Godown on hand stock will be decreased
Get the
Calendar Name = Accounting ( copy into note pad )
Get the period
Go to Inventory Vision Operations ( USA ) Setup Financials Accounting Calendar Accounting
Inventory Vision Operations ( USA ) Accounting Close Cycle Inventory Accounting Period
Select Find
1) Requisition
a) Internal Requisition It will be placed between branches ( transfer of Goods from Inventory to another
Inventory of the Company (or) on Godown to another Godown )
b) Purchase It process of purchasing from the out side. It can be from approved supplier or from the local
suppliers .
If goods are not available at approved supplier, then it will be purchased from local suppliers .
if purchase form the local suppliers, then buyer should purchase the goods with in the cost of certain limit. If
cost is more than the certain limit , the it should be approved by the Top Management .
Once quotation has been Approved, the confirmation document will be sent supplier.
Confirmation document consists of terms and conditions such Price, quality of the goods, payment terms,
Purchase Order : The Order requisition will be placed by the concerned person ( Stores Manager )
Quotation is only once and it is valid for one year. Order can be placed at any time in the year with out
any prior intimation to the supplier .
Supplying the Material : Supplier supplies the material as per the quality sample mentioned in the quotation. If not
meet the quality, then goods will be treated as inferior quality and it will be rejected.
Once goods have been received, the stores manger will issue the receipt of the goods.
Requisition Types
• The requestor might have to mail the requisition to an approver at a different location and wait a number of days to get
it back.
• You may lose significant quantity discounts if the buyer cannot locate all the requisitions that reference a particular
item.
Many companies want to provide on–line requisitions to everyone in the company. Others want to limit
the number of users who have access to the system. Purchasing is flexible enough to meet the needs of your company.
To give everyone access to the system, simply create a user name for each employee in the company and assign the
employee the appropriate responsibilities. You can easily designate a smaller group of individuals as requisition
preparers if you want to limit the number of requestors on the system. These people can create requisitions for anyone in
the company by identifying the appropriate requestor directly on the requisition line. You might also want to limit some
preparers to internal requisitions and others to purchase requisitions. You can also print requisitions to obtain signature
approvals if some of the approvers do not have access to the system. You can then assign an individual to update the
authorization status for these requisitions.
Purchase Requisitions
Use the Requisitions window to create requisitions. You must choose the requisition type (internal or
purchase). You can also provide a description, unlimited notes, and defaults for requisition lines. For each requisition
line, you choose the item you want to order along with the quantity and delivery location. You can get sourced pricing
from catalog quotations or open blanket purchase agreements. You can also choose a price from a list of historical
purchase order prices. In the Distributions window, you can charge the item to the appropriate 3 – 8 Oracle Purchasing
User’s Guide accounts, or you can let the Account Generator create the accounts for you. Once you complete the
requisition, you send it through the approval process.
Compiled and Developed by 120
M.Nageswar Rao, B.Tech, MBA
Internal Requisitions
Unlike purchase requisitions, which are supplied from purchase orders, internal requisitions are
supplied from internal sales orders. Internal requisitions are not picked up when you AutoCreate RFQs or purchase
orders, nor can they be assigned to a buyer in the Assign Requisitions window.
Requisition Templates
Use the Requisition Templates window to define requisition templates for items you purchase
frequently. For example, if you frequently buy certain office supplies, you can set up an office supplies template for
your requestors. This template consists of a list of all items, prices, and sourcing information you want available to the
requestor. When you want to order items from this template, use the Supplier Item Catalog, choose the office supplies
template, and indicate the quantity you want to order. Purchasing supplies default sourcing and delivery information.
Imported Requisitions
Purchasing lets you import or reschedule requisitions from other Oracle or non–Oracle systems. For
example, Work in Process uses Requisition Import to create requisitions for outside processing. Similarly, Master
Scheduling/MRP automatically creates requisitions using Requisition Import when you mass load purchase requisitions.
Master Scheduling/MRP also automatically reschedules existing requisitions by updating the need–by date during this
process. If you are using Inventory, you can send a requisition requirement to Purchasing and then run Requisition
Import in Purchasing to create the requisition.
Paper Requisitions
You do not need to create a requisition on–line to purchase an item. Instead, you can reference a paper
requisition number directly on the Requisitions 3 – 9 purchase order Distribution Details.
Prerequisite for Requsition :
1) Items Purchasing Purchased and purchasable flag must be enabled
2) Supplier Should in Active State
3) User Must be Employee of the company and Must be a buyer
Types of Purchase
1) Standard Purchase One time purchase
2) Blanket Purchase Deal with Amount
3) Contract Purchase Purchase for some period ( contract may be for one year or five years etc..)
4) Planned Purchase Purchase plan is base past history
Select Assignments :
Suppliers :
Supplier Supplier
Sites
Address1 Address2 Address3
Classification ( tab )
Type : Government
Control ( tab )
Invoice Match Options : Purchase Order
Payment ( tab )
Terms : 45 Net
Compiled and Developed by 126
M.Nageswar Rao, B.Tech, MBA
Purchasing ( tab )
Ship To Location: M1- Seattle
Bill To Location: V1- New York City
Save the above
General ( tab)
Pay ( Disable/Un Checked) Purchasing ( Checked/enable )
Communication
Compiled and Developed by 127
M.Nageswar Rao, B.Tech, MBA
Code Number
Voice : 040 6656321
Fax : 040 6656321
Contacts ( tab )
Last Name: MNRAO
Save the above
For the Address2 ( OFFICE ) place the cursor at Site Name and select New and repeat the above steps
Address2 ( OFFICE )
Site Name : VIS_OFFICE Alternate Name :
Inactive unchek
Country : India
Address : as desired
----------
----------
City : Hyderabad State : A.P Postal Code : 500072
General ( tab)
Pay (Checked/enable) Purchasing (Disable/Un Checked )
On creation of supplier, Supplier Number will generated automatically
Supplier Master information will be stored in a table called : PO_VENDORS ( Master table )
Primary Key VENDOR_ID
select * from PO_VENDORS where trunc(creation_date)=trunc(sysdate)
Purchasing :
For the purchase Demand Sheet (or) REQ Sheet will be prepared by sales dept / Manufacturing Dept /
Inventory Dept / Planning Dept / etc…..
Lines ( tab )
Note :
Compiled and Developed by 129
M.Nageswar Rao, B.Tech, MBA
If Source is Supplier , then Type is : Purchase Requisition
If Source is Inventory, then Type is : Internal Requisition
Save the above : Once saved the Requisition Number will be generated Automatically (5632, 5633 ) these
copy into notepad for the following transaction
Select Distributions for Account,
Total No.of items will be distributed to multiple accounts or some times Single account.
the tables ends with ALL means Multi Arg tables provides business group information.
With out ALL means Multi Arg views, provides only specific Organization information ( O.U )
Block : $PROFILES$
Field : ORG_ID
Value : 204 ( this value will be populated automatically )
BEGIN
FND_CLIENT_INFO. SET_ORG_CONTEXT ( '204');
END;
Compiled and Developed by 131
M.Nageswar Rao, B.Tech, MBA
Procedure success fully completed
Supplier will prepare the Quotation and will send the same to the purchase Dept.
Purchase dept analyze quotations and convert the RFQ into the Purchase Order.
For Manual
Select Manual
Supplier : VIS_SUPP
Supplier Site : VIS_PURCHASE
Requisition Details
1) Headers
2) Line
3) Distributions
1) Headers
2) Lines
3) Shipments
Compiled and Developed by 140
M.Nageswar Rao, B.Tech, MBA
4) Distribution
Lines PO_LINES_ALL
select *from PO_LINES_ALL where trunc ( creation_date) = trunc(sysdate)
Shipments PO_LINE_LOCATIONS_ALL
select *from PO_LINE_LOCATIONS_ALL where trunc ( creation_date) = trunc(sysdate)
Click on lines Shipments Distributions and go to More tab it shows the requisition number ( way to
identify the requisition number from purchase order)
Requisition
Line1 Purchase Order1
Line2 Purchase Order2
Line3 Purchase Prder3
Purchase Order can also be created with out RFQ. Demand sheet can directly be converted into Purchase
order.
Purchase Order Types Summary
Standard Planned Blanket Contract
Purchase Purchase Purchase Purchase
Order Order Agreement Agreement
No.of Times Purchase One Time Multiple Times Multiple Times Multiple Times
Navigation :
Lines :
Num Types Item Category Desc UOM Quantity Price
1 Goods Hyd CD Drive MISC.MISC as desired Each 20 1275
Promised Need By
05-JUN-2011 00:00:00 06-JUL-2011 00:00:00
Note : Need By Date must be greater than the Promised Date.
Select Distributions
It can be single Distribution or Multiple Distribution
Save the above ( take Purchase order No (4422 ) into note pad before approval )
Select Approve and check the Submission for Approval OK
Lines :
Num Types Item Category Desc UOM Quantity Price
1 Goods Hyd Printer MISC.MISC as desired Each ( Disabled ) 250
Compiled and Developed by 143
M.Nageswar Rao, B.Tech, MBA
Blanket will not have these Two dates Promised and Need By Date
Select Price Breaks for Discounts enter details as shown below ( as desired )
Note : In the case of conversion form RFQ to Purchase order, once converted from RFQ to
Purchase, then RFQ details will not be available
PO, Rev : 4423 ( Purchase Order Number : enter this only remaining automatically populated )
Shipments ( tab )
Num Line Org Ship To Quantity Promised Need By
1 1 M1 M1- Seattle 5 31-MAY-2011 00:00:00 30-MAY-2011
00:00:00
RFQ ( Requisition )
Enter the Purchase Order No : 4422 ( was created in the previous step : Standard purchase )
Navigation :
Inventory Vision Operations (USA) Setup Financial Books Define
In the above if period is not available then create new period by using new ( green Colour )
Find : %period%
Compiled and Developed by 152
M.Nageswar Rao, B.Tech, MBA
Select Find
Make the Status as Open for the period May – 11 as shown below and save it
Again ( Ctrl + L )
Find : %period%
Select Open and Close Periods for GL
UPDATE gl_period_statuses
SET closing_status ='O'
WHERE Period_Name ='Jun-11';
1) 2 – Way method :-
3) 4 – Way Method :-
Creation of a Receipt :-
Purchasing Vision Operations ( USA ) Receiving Receipts
Lines ( Tab )
Quantity
Check 75
Select Headers
Save it
It generates the receipt Number : 9609
Lines ( tab )
Quantity
Check 75
Check 25
As shown below
The above counting information will be stored into the table called : RCV_TRANSACTIONS
Once data has been moved it will impact on the following table
1) MTL_MATERIAL_TRANSACTIONS
select * from MTL_MATERIAL_TRANSACTIONS where trunc(creation_date) = trunc(sysdate)
2) MTL_TRANSACTION_ACCOUNTS
select * from MTL_TRANSACTION_ACCOUNTS where trunc(creation_date) = trunc(sysdate)
3) MTL_ONHAND_QUANTITIES_DETAIL
Select Find
Payments:
Creating Invoice :
Creating Invoice :
Purchase Order
Num : 4422
Select Find
Check for the Match as shown below
Select Distribution
See the Control Amount and Actual Amount ( ensure that, both are same amount)
Save the above
Note : Distributions Information will be stored into the table : AP_INVOICE_DISTRIBUTIONS_ALL
Select Actions
AP_ACCOUNTING_EVENTS_ALL
AP_AE_HEADERS_ALL
AP_AE_LINES_ALL
Paying Amount :
Go to Actions
Check Pay in full OK
Select Actions
Check Create Accounting OK
Cash Management Vision Operations ( USA ) Bank Statements Bank Statements and Reconciliation
Select New
Enter the Check Number and Query for it ( It will not show any details i.e it was cleared )
Material Cost :
The Purchase cost of a CPU Sub Assembly Item is as follows
CPU (Sub Assembly)
Mother Board 1000 USD +
CD Drive 750 USD +
Floppy Drive 250 USD
--------------
Purchase Item Cost 2000 USD
=========
Manufacturing Cost of CPU Sub assembly is as follows
Purchase Item Cost is 2000 USD
Operations Cost
Soldering Dept Cost 100 USD
Fixing Dept Cost 500 USD
600 USD
Departmental Overheads 650 USD
--------------
Manufacturing Cost of CPU 3250 USD
========
The Purchase cost of a CPU Sub Assembly Item is as follows
CPU (Sub Assembly) 2000 USD
Mouse 100 USD
Printer 900 USD
Monitor 500 USD
--------------
Purchase Item Cost 3500 USD
=========
Manufacturing Cost of CPU Sub assembly is as follows
Purchase Item Cost is 3500 USD
Operations Cost
Soldering Dept Cost 100 USD
Fixing Dept Cost 500 USD Variable cost of an Item
Assembly Dept Cost 400 USD
1000 USD
Departmental Overheads 1000 USD Fixed Cost Apportionment
--------------
Manufacturing Cost of Dell Computer 5500 USD
========
Selling Price of Dell Computer is 6000 USD
Resources :
1) Man Power 2) Machine Power
Total Cost
Material Cost + Fixing Resources Cost + Soldering Resources Cost + Assembling Resources Cost +
Compiled and Developed by 178
M.Nageswar Rao, B.Tech, MBA
Fixing Dept Maintenance Cost + Soldering Maintenance Dept Cost + Assembly Dept Cost
Navigations :
We can either of the following responsibilities
1) Bill OF Material
2) Manufacturing and Distribution Manager.
Select Rates
Creation of Dept :
Compiled and Developed by 181
M.Nageswar Rao, B.Tech, MBA
Bill OF Material Routing Department M1
(or )
Manufacturing and Distribution Manager Bill Of Material Routing Department M1( if not
showing go to change Organization and Change to M1 )
Routing :
It is a sequence of Manufacturing.
Main (tab)
Place the cursor on the Dept filed then select Operation Resources
BOM Routings Master information will be stored into the table called :
BOM_OPERATIONAL_ROUTINGS
select * from BOM_OPERATIONAL_ROUTINGS_V where trunc(creation_date)=trunc(sysdate)
Compiled and Developed by 185
M.Nageswar Rao, B.Tech, MBA
BOM Sequence of Operations information will be stored into the table called :
BOM_OPERATION_SEQUENCES
select * from BOM_OPERATION_SEQUENCES_V where trunc(creation_date)=trunc(sysdate)
BOM Sequence Resources information will be stored into the table called :
BOM_OPERATION_RESOURCES_V
Creation of BOM :
Navigation:
Supply Type : Assembly Pull ( Purchase from Third party Sub Inventory
Operational Pull ( Internal Purchase ) stores
Generating Bill :
Manufacturing and Distribution Manager Bills Of Material Bills Bills
Item : Hyd CPU ( Query for it )
Tools Rollup Cost
Cost Type : Pending
OK Submit Request Id OK
Cost Rollup - Print Report ( Refresh it and View output )
Checking for the Cost
Manufacturing and Distribution Manager Inventory Costs Item Costs
Pre-requisite :
1) Item should exist
2) Item on hand stock should be available in stores.
3) Pricing List should be defined ( Pricing )
4) Customer should exist.
5) Periods should be opened
Application Method
Unit Price
Creation of a Customer :
To create a customer profile should defined
Compiled and Developed by 189
M.Nageswar Rao, B.Tech, MBA
Profile contains
1) Payment Terms 2) Collector 3) Statement ( installments )
If Name : IMMEDIATE
If Name : 2 Net
Compiled and Developed by 190
M.Nageswar Rao, B.Tech, MBA
Amount : 100 or can be changed
Due Date : 2 days
**************
Multiple discount terms, if paid within 10 days a 3% discount is applied, if paid within 11-30 days 2%
discount is applied, if paid after 30 days no discount is allowed.
Payment terms Master information such as NAME will be stored into the table : RA_TERMS
select * from RA_TERMS where NAME='IMMEDIATE'
Payment terms Line information will be stored into the table : RA_TERMS_LINES
select * from RA_TERMS_LINES
Payment terms Discount information will be stored into the table : RA_TERMS_LINES_DISCOUNTS
select * from RA_TERMS_LINES_DISCOUNTS
Creation of Collector :
Place the cursor in the lines and select New to create New
Collectors information will be stored into the table called : AR_COLLECTORS
Name : Hyd_Rao
Employee name : MNRAO, RAO ( Employee of the company) from the table PER_ALL_PEOPLE
Creation of Statement :
Statement Master information will be stored into the table called : AR_STATEMENT_CYCLES
Statement Cycle Dates information will be stored into the table : AR_STATEMENT_CYCLE_DATES
Creation of Profile :
Create the profile with the following
1) Payment Terms 2) Collector 3) Statement ( installments )
Name : HYD_PROF_CLASS Desc : Profile Class for Hyderabad Company Check Active
Collectors :
Name : Hyd_Rao Payment Terms : IMMEDIATE
Finance Charge :
Days in Period : 30
Statements :
Cycle : Monthly
Dunning :
Letter Set : STANDARD
Profile Class information will be stored into the table called : HZ_CUST_PROFILE_CLASSES
select * from HZ_CUST_PROFILE_CLASSES where trunc(creation_date) = trunc(sysdate)
Compiled and Developed by 194
M.Nageswar Rao, B.Tech, MBA
Profile Amount information will be stored into the table called : AR_CUST_PROF_CLASS_AMOUNTS
select * from AR_CUST_PROF_CLASS_AMOUNTS where trunc(creation_date) = trunc(sysdate)
Customer Hierarchy :
1) Type of Customer
2) Name of the Customer Customer Master
3) Customer Number
4) Address : Address1, Address2, Address3…… ( Called as Sites )
Sites
Site use
Contacts 1) Ship To Location2) Bill To Location
Person, Mobile, FAX, E-Mail.
Site
Customer
Name : HYD_CUST
Communication ( tab )
Communication Type : Telecommunication ( Choose ) / E-mail
Country Code Area Code Telephone Number Extension Type Primary Purpose Active
1 040 66361220 2 Telephone Check Business Check
Select New
Country : India ( preferred United Stattes bcoz Taxation rules have been defined for US )
Address : Flat No-01, Block No-A, Ameerpet, Hyderabad
Check Active
Usage
Bill To ( first create Bill to )
Ship To ( don’t in the immediate line , first save the Bill to and close, then Select Address New, then Ship To Address )
Bill to and Ship to Location : ( 9204 and 9206 will be generated automatically )
Pre-requisite :
1)Item Should exist
2) Cost should be defined ( Pricing )
3) Check for the periods are opened
1 and 2 have already been completed .
Fined : %period%
Select Open / Close Accounting period
Make the Status as Open as shown below
Others ( tab ) ( will populated automatically, need not enter any one )
Payment Terms : IMMEDIATE
Lien Ordered Item Qty Unit Price Extended Price ( Qty * Unit Price ) Request Date
1.1 Hyd CD Drive 2 1500.00 3000.00 31-MAY-2011 22:49:42
Save the above it generates Order Number : 56699 ( any one ) 56703
Check for availability
Select Availability ( place the cursor on Qty )
If items are available fine.
Master Information ( Headers ) OE_ORDER_HEADERS_ALL
select * from OE_ORDER_HEADERS_ALL where trunc(creation_date) = trunc(sysdate)
to check the on hand quantity transaction period should be open ( for this check the previous in the above )
If items are not available increase on hand stock
Creation of a Transaction :
Inventory Vision Operations ( USA ) Transactions Miscellaneous Transactions ( M1 )
Customer Service Representative will enter the all the above details and takes the confirmation from the
customer based on the payment terms weather it is Immediate payment or Credit Limit.
If do not have the credit limit order to be cancelled or it put into hold.
Releasing Hold
Booking Order:
After the order has been Booked, the Customer Service Representative will send following information to Shipping
Department through E.Mail / FAX
Customer Details
Ship To
Order Num
Schedule Date
Shipping department will forward the same to Inventory Department.
If the items are available, then it will be delivered ( pick release ) is based on LIFO/FIFO/RANDOM
Default is FIFO.
Once picked the item from the inventory, it will be moved to Security Point Called as Staging Area
The items which are in Staging Area are called as Reserved Items
Select Lines/LPNs
IMP NOTE : Launch pick release will run the following three Concurrent Programs
Shipping Confirmation :
When click on GO Ship Confirm request will call all the above five programs
WSH_DELIVERIES
WSH_NEW_DELIVERIES
WSH_DELIVERY_DETAILS
1) WSH_TRIPS
2) WSH_TRIP_STOPS
Order Management Super User, Vision Operations ( USA ) Orders, Returns Sales Orders
Once Delivered to the Customer. Acknowledgement ( consignment ) will taken from the customer.
Once Acknowledgement ( consignment ) has been taken from the customer, Inventory should be updated.
Updating Inventory :
Click OK Submit
Note : Autoinvoice Master Program is the parent of Autoinvoice Import Program. It showing in the following screen.
Auto invoice Master Program it will transfer the data from O.M base tables to RA Interface tables
RA Interface tables
RA_INTERFACE_LINES_ALL
RA_INTERFACE_DISTRIBUTIONS_ALL
RA_INTERFACE_ERRORS_ALL
Auto invoice Import Program It will transfer the data from RA Interface tables to AR Base tables.
Compiled and Developed by 211
M.Nageswar Rao, B.Tech, MBA
Checking for weather data has been moved or not ( Invoice has been generated or not ).
Here invoice is Customer Invoice.
Order Management Super User, Vision Operations ( USA ) Receivables Control Auto Invoice Interface Lines
If no lines getting, then successfully data has been moved from RA Interface tables to AR Base tables.
If getting any lines, then error in moving data Click on Errors to see the errors.
Select Find
It shows Customer Bill to and Ship To Addresses
It shows Customer Number : 3845 and party Number : 31197
Query ( F11 )
Reference : 56703 ( Enter the Sales Order Number ) and Query for it ( CTRL + F11 )
Go to Number and Select JSP page ( Right side ) it shows the Invoice as below
Creation of a receipt :
Receivable Vision Operations ( USA ) Receipts Receipts
Details
Identify By
Transaction Number : 10020677 ( Paste the Invoice Number, which was taken into notepad )
( remaining details will be populated automatically )
It shows as below.
Select Apply
Save the above
Take the Batch number : 1050 ( into the Notepad ) it can be from the output / remittance form
Auto Create
Select Approve for Collecting and depositing into bank
Select Yes
View Request find (Automatic Remittances Creation Program)
Select Find
Query ( F11)
Receipt Status :
Receivable Vision Operations ( USA ) Receipts Receipts
Query with receipt Number : 12345
Number : 10020677 ( Enter the Invoice Number and Query ) as shown below
To find table information of JSP Page Select About this Page and View Option
Qualifier Line information will be stored into the table called : QP_QUALIFIERS
Defining a Modifier :
Pricing Phase : Header Level Adjustments ( depends on Level . if it is order then, Header Level Adjustments
If it is line then, All Lines Adjustment. )
Application Method : Percent Value : 10
Eg :
SONY is a Company wants to Migrate from Main Frame Applications to Oracle Applications.
Step1:
GAP Analysis : It GAP between the Oracle ERP Package and Requirement of SONY Company.
GAP Analysis will be done by Solution Architect. He will prepare the High level document.
GAP Analysis document is called as : MD020.
Step2 :
It will be sent to Sr. F.C for more Analysis. F.C will Analyase the exact requirement to fulfill the GAP.
He define what are the RICE Components are required to fulfill the GAP.
F.C prepare the document for the Required components and sent to the T.C
Functional Document is Called as : MD050
Step3 :
Technical Consultant will go through the entire document and he will prepare the technical approach
for the requirement given by the F.C
Technical Consultant Approach Document is called as : MD070
After getting above information To develop the report T.C should identify the following
1) Tables 2) Columns 3) Mapping Columns 4) Join Condition / Filtering Condition.
To develop the above T.C should get information such as Application Name, Responsibility and Form
Name from the F.C
Eg:
ORGNAME ITEMNAME DESCRIPTION UOM STATUS
Application Name : Inventory
Compiled and Developed by 240
M.Nageswar Rao, B.Tech, MBA
Responsibility : Inventory Vision Operations ( USA )
Form : Item Master Item
Required tables
ORGNAME from the table : ORG_ORGANIZATION_DEFINITIONS
Column : ORGANIZATION_NAME
ITEMNAME from the table : MTL_SYSTEM_ITEMS_B
Column : SEGMENT1
DESCRIPTION from the table : MTL_SYSTEM_ITEMS_B
Column : DESCRIPTION
UOM from table : MTL_SYSTEM_ITEMS_B
Column : PRIMARY_UNIT_OF_MEASURE
Query :
A user profile is a set of changeable options, which will be used to change the way of applications execution.
Oracle Application Object Library establishes a value for each option in a user’s profile when the user logs on or
changes responsibility.
Your user can change the value of profile options at any time. Oracle Application Object Library provides many options
that your users can set to alter the user interface of your applications to satisfy their individual preferences.
Eg:
There is a company called Reliance, for which Oracle Application has been installed
Different authority at different levels are working on the same Application
For example, login are
CLERK
SUPERVISOR
MANAGER
GENERAL MANAGER
MANAGING DIRECTOR
CEO
The above all authorities will not have same limits, every authority will have their own limits
For example CLERK can purchase items for max value of $1000
SUPERVISOR ………………………………$2000
MANAGER…………………………………..$3000
Hence based their limits way of applications execution should be changed.
Based on profile of the employee application is to executed
Here profile means employee personal details such as clerk limits, branch of working, dept of working, position of
working.
Every module consists of 40 to 50 profiles.
Compiled and Developed by 243
M.Nageswar Rao, B.Tech, MBA
User Profile Levels
1) User Level
2) Responsibility Level
3) Application Level
4) Site Level
Oracle Application Object Library treats user profile levels as a hierarchy, where User is the highest level of the
hierarchy, followed by Responsibility, Application and at the lowest level, Site. Higher–level option values override
lower–level option values.
Each user profile option ordinarily exists at each level. For example, Oracle Application Object Library
provides a site–level Printer option, an application–level Printer option, and so on. Oracle Application Object Library
enforces the level hierarchy to ensure that higher–level option values override lower–level values. As a result, if your
Site–level Printer value is ”Printer1”, but your User–level Printer value is ”Printer2”, your reports print on the printer2.
User Level :
User is the highest user profile level and is immediately above
Responsibility. User–level option values affect the way applications run for an application user.
Responsibility Level :
Responsibility is the user profile level immediately above Application.
Responsibility–level option values affect the way applications run for all users of a responsibility.
Application Level :
Application is the user profile level immediately above Site.
Application–level option values affect the way a particular application runs.
Site Level :
Site is the lowest user profile level.
Site–level option values affect the way all applications run at a given installation.
If we assign profile value at Site Level, then it is applicable for all users.
If we assign profile for more than on level then top level value will be given more priority
Application level profile overwrites the profile value at the SITE LEVEL
Responsibility level profile overwrites the profile value at the SITE LEVEL and APPLICATION LEVEL
User level profile overwrites the profile value at the SITE LEVEL , APPLICATION LEVEL , and
RESPONSIBILITY LEVEL.
Responsibility is a group of FORMS, REPORTS and PROGRAMS . It is for specific position in the organization
Application is also a group of FORMS, REPORTS and PROGRAMS . It is for specific buisiness in the organization
Application will be divided into responsibilities and the responsibilities will given to employees
Same forms will be grouped and named as responsibility and assigned user.
These are
1) Site ( Global )
2) Application
3) Responsibility
4) User
5) Server
6) Organization
AP AR GL Application Level
Navigation :
System Administrator Profile System
Level Value
Site Box
Application ( INV ) Dozen
Responsibility KG
User Each
Steps :
Query for the profile Profile Name ( F11 ) INV% ( ctrl + F11 )
Select Site
Profile = INV: Default Primary Unit of Measure ( paste, which was copied into the notepad )
Go to Mater Item form and check the default value at all levels
2) Application Level
Go to Mater Item form and check the default value at all levels
Add Manufacturing and Distribution Manager Application to OPERATINS User and test
Manufacturing and Distribution Manager Inventory Items Master Item M1
Compiled and Developed by 251
M.Nageswar Rao, B.Tech, MBA
3) Responsibility level
Select Responsibility = Inventory, Vision Operations (USA)
Profile = INV: Default Primary Unit of Measure
Click on Find
Responsibility = Kilogram
Go to Mater Item form and check the default value at all levels
Inventory Vision Operations ( USA ) Item Master Item M1
4) User level
Go to Mater Item form and check the default value at all levels
Inventory Vision Operations ( USA ) Item Master Item M1
Item Status
Level Value
Site Prod
Application ( INV ) Lease
Responsibility Engineer
User Active
Steps :
1) Site Level
Eg:
Users
X1 MO : Operating Unit Vision Operations
Get() is Procedure
Value() is Function
Oracle Has provided both Procedure and Function becuase in some of the areas we can not
use procedure then we can use function.
For Ex: in SELECT clause we can not use procedure we have to go for using the Function.
Submitted By :
Data Model
Query:
SELECT VENDOR_ID,
VENDOR_NAME,
CREATION_DATE
FROM PO_VENDORS
Take a formula at group level for TotalPO
Name : TOTALPO
PL/SQL Formula :
function TOTALPOFormula return Number is
l_total number(9);
begin
select count(*) into l_total from PO_HEADERS_ALL
where Vendor_Id=:Vendor_Id;
return l_total;
end;
First time check the report with out using Submitted User :
Submitted By User
To get current user ( profile )
fnd_profile.value(‘USERNAME);
to get the user name we have need
profiles
multiorg
flexfields
Go to report builder and follow the following steps
Step1:
create a bind parameter by name P_CONC_REQUEST_ID ( name always same and mandatory )
Step2 :
Create bind parameter to hold the user name P_USER ( as desired )
Step3:
Compiled and Developed by 256
M.Nageswar Rao, B.Tech, MBA
Go to before report trigger and write the following code
function BeforeReport return boolean is
begin
srw.user_exit('FND SRWINIT' );
-- it will initialize the profile values
:P_USER:= fnd_profile.value('USERNAME');
return (TRUE);
end;
Step4:
Go to after report trigger and write the following code
function AfterReport return boolean is
begin
srw.user_exit('FNS SRWEXIT');
--it will remove the all profile values from memory and makes the memory as free
return (TRUE);
end;
Layout Model
Responsibility Name
Take one more parameter (P_RESP )
Go to before report trigger and write the following code
function BeforeReport return boolean is
begin
srw.user_exit('FND SRWINIT' );
-- it will initialize the profile values
:P_USER := fnd_profile.value('USERNAME');
:P_RESP := fnd_profile.value('RESP_NAME'); -- It is added to previous.
return (TRUE);
end;
Layout Model
Add title responsibility name and text field
Compiled and Developed by 257
M.Nageswar Rao, B.Tech, MBA
Responsibility Name : < text_field> map to P_RESP
To get Name of the Operating Unit
Add place holder column ( UNIT )
Go to before report trigger and write the following code
function BeforeReport return boolean is
l_id number(9);
begin
srw.user_exit('FND SRWINIT' );
-- it will initialize the profile values
:P_USER:= fnd_profile.value('USERNAME');
:P_RESP:= fnd_profile.value('RESP_NAME');
fnd_profile.Get('ORG_ID',l_id);
select name into :UNIT from HR_OPERATING_UNITS
where organization_id=l_id;
return (TRUE);
end;
Layout Model :
Add label Organization : < Text Filed > map to UNIT
If login user is Operations then, display the Total field otherwise not requires
Right click on POTOTAL field in the Layout Model and write PL/CODE as shown below.
begin
If( : P_USER = ‘OPERATIONS’) then
return true;
else
return false;
end if;
end
PL/SQL Program
USER_ID : Your user’s current Oracle Application Object Library user ID.
APPL_SHRT_NAME : The short name of the application connected to your user’s current responsibility.
RESP_APPL_ID : The application ID of the application connected to your user’s current responsibility.
FORM_NAME : The name of the current form. Not available for concurrent programs.
FORM_ID : The form ID of the current form. Not available for concurrent programs.
FORM_APPL_NAME : The name of the application for which the current form is registered. Not available for
concurrent programs.
FORM_APPL_ID : The application ID of the application for which the current form is registered. Not available for
concurrent programs.
LOGIN_ID : Your user’s Sign–On Audit login ID in Oracle Application Object Library.
CONC_REQUEST_ID : The request ID associated with a particular instance of your running current program. You
Can only use this profile option in a concurrent program. You use this profile option to fill the
REQUEST_ID Who column.
CONC_PROGRAM_ID : The program ID associated with a running current program. You can only use this profile
option in a concurrent program. You use this profile option to fill the PROGRAM_ID Who
column.
Vendor Id
Vendor Name
Cdate
Total PO :
From PO_VENDORS ( table name )
1) Download the TEMPLETE.fmb from AU_TOP\Resource Folder
D:\oracle\visappl\au\11.5.0\forms\US
2)Open with Forms6i builder and delete the existing Window, Canvas, Block
Delete BLOCKNAME in Windows
Create new window
Properties
Name : SUPPWIN
Sub Class Information:
Select property class : WINDOW
Layout Frame
Properties
Sub Class Information :
Compiled and Developed by 261
M.Nageswar Rao, B.Tech, MBA
Property Class : FRAME_RECT
Text Fields
Properties ( select all fields at a time )
Sub Class Information :
Property Class : TEXT_ITEM
Data Block
Properties
Name : VENDORSBLOCK
Sub Class Information :
Property Class : BLOCK
Form Module
Modify the following Triggers
Pre-Form
FND_STANDARD.FORM_INFO('$Revision: 115.12
$', 'Template Form', 'FND',
'$Date: 2003/12/19 11:02 $', '$Author: appldev $');
app_standard.event('PRE-FORM');
app_window.set_window_position('BLOCKNAME', 'FIRST_WINDOW');
/* In place of 'BLOCKNAME' supply the new window name as shown below /*
app_window.set_window_position('SUPPWIN', 'FIRST_WINDOW');
Compile and close
WHEN-NEW-FROM-INSTANCE
Create Function
FUNCTION USER FUNCTION NAME
SUPPFUNCT (any name ) SUPPFUNCT1 ( any name ) ( COPY )
Type : form
Form : SUPPFORM_DETAILS ( PASTE )
Create Menu
Menu : SUPPMENU ( any name )
User Menu Name : SUPPMENU_USER ( copy )
SEQ PROMPT SUBMENU FUNCTION
Q. What is the reason to down load the existing TEMPLATE.fmb file and customize it
Ans : to acquire AOL features into the new form such as open form, querying ( f11 ) and ctrl+f11
TEMPLATE.fmb is pre defined file which was developed to get the actions such as open form, querying ( f11 ) and
ctrl+f11 . TEMPLATE.fmb was developed with triggers and packages to achieve the actions.
Steps
1) New Table
1) First connect to Schema ( INV ) and create the table
1) New Table
connect to Schema ( INV ) and create the table
go to SQL * PLUS
2) Registration of table
Using AD_DD package we can register the table
To see the contents of above package go to TOAD tool and AD_DD ( f4 )
AD_DD package provides register_table procedure to register the table
register_column procedure to register the table columns
go sql command prompt and register
SQL> EXEC AD_DD.REGISTER_TABLE('INV', 'ITEM_TEST', 'T');
Register the columns
SQL>EXEC AD_DD.REGISTER_COLUMN('INV','ITEM_TEST','ITEM',1,'VARCHAR2',100,'N','Y');
SQL> EXEC AD_DD.REGISTER_COLUMN('INV','ITEM_TEST','ITEM_DESC',2,'VARCHAR2',100,'N','Y');
Compiled and Developed by 265
M.Nageswar Rao, B.Tech, MBA
SQL> EXEC AD_DD.REGISTER_COLUMN('INV','ITEM_TEST','ITEM_DATE',3,'DATE',11,'N','Y');
SQL> EXEC AD_DD.REGISTER_COLUMN('INV','ITEM_TEST','ITEM_PRICE',4,'NUMBER',9,'N','Y');
SQL> COMMIT ;
To see the above table from the front end
Go to application developer Application Database Table Query ( F11)
Vendor Id :
Vendor Name :
Eg :
Table Name : ITEM_INV
create table ITEM_INV( item varchar2(100),
itemdesc varchar2(100),
itemcost number(9),
itemdate date,
po_item varchar2(1),
inv_item varchar2(1),
INV_item varchar2(1),
created_by number(9),
creation_date date,
last_updated_by number(9),
last_update_date date,
attribute_category varchar2(100),
attribute1 varchar2(100),
attribute2 varchar2(100),
attribute3 varchar2(100),
attribute4 varchar2(100),
attribute5 varchar2(100)
);
Register the table and it’s columns as explained in previous example
Requirement :
Item :
Item Desc :
Inventory Item O Yes
O No
Purchase Item
Fields Mapping
Item item
Item Desc itemdesc
Item Cost itemcost
Item Date itemdate
Inventory Item inv_item
Purchase Item po_item
Radio Group ( Yes / No ) INV_item
Radio Group initial valaue > Y
Yes Radio Button Value Y
No Radio Button Value N
All steps are same as previous example.
Attaching to DFF to form :
1) Table Must be registered
2) Table Must Contain Attribute Columns
3) Attribute Columns Must be selected in the form
Create DFF columns
Application Developer Flex Fields Descriptive Register
go to segments double click F11 Title : DFFTITLE ( paste ) ctrl + F11
segments
Number Name Column Value set
1 Item category attribute2 15 character
2 Item Location attribute3 15 character
Go to Layout form and add text filed for the DFF
Name : DFF
Date Base Item : NO.
Write the trigger called WHENNEWFROMINSTANCE
APP_STANDARD.EVENT('WHENNEWFORMINSTANCE');
FND_DESCR_FLEX.DEFINE( BLOCK => 'ITEM_INV',
FIELD => 'DFF',
APPL_SHORT_NAME => 'PO',
DESC_FLEX_NAME => 'ITEM_DFF');
'ITEM_DFF' Name Descriptive Field
fnd_flex.event('WHENNEWITEMINSTANCE');
Vendor Id : 1456
Vendor Name :
SITES
1) Develop the Vendor Form with Vendor Id and Vendor Name and Sites ( button with out trigger )
Table Name : PO_VENDORS
3) Develop the Sites form with VendorId, SiteCode, CreationDate, Address, City
Table Name : PO_VENDOR_SITES_ALL
Data block fields are :
Vendor_ID, Vendor_Site_Code , Creation_Date, Address_line1, City
WHEN-BUTTON-PRESSED
WHEN-NEW-FORM-INSTANCE
GO_BLOCK ( 'PO_VENDOR_SITES_ALL');
EXECUTE_QUERY();
8) Write the block level trigger
PRE_QUERY
:PO_VENDOR_SITES_ALL.VENDOR_ID := :PARAMETER.P1;
--:Blockname .fieldname := :PARAMETER.Parametername
Form
Menu
Responsibility
User
Application developer
Function :
Description Tab :
In the above form the value in the form for the both function will be same ( SITESFORM )
Here parameter is for the second function only, which will be linked to first function by the giving same names in the
form filed (SITESFORM ).
In the following + symbol is sub menu and with out + symbol it is a form
VENFUN1
SITESFUN1
Copy the user menu name value (FUNCTIONS) and attach to main menu as submenu
Go to System administrator and get name of the menu and attach to above menu
F11 --
Responsibility Name : Supply the responsibility
Go to menu exclusion
Type : menu
Name : submenu name
To get the function name : help About Oracle Applications Current Form Form name
Select function :
Form Tab :
Form : paste the copied one
Description Tab :
Function : Copy ( 1st field )
FORMS PERSONALIZATION
Can be done to achieve the following
1) Changing Labels 2) Hiding Fields 3) Making as Mandatory / Optional Fields 4) Validate 5) LOVs
1) WHEN-NEW-FROM-INSTANCE
2) WHEN-NEW-BLCK-INSTANCE
3) WHEN-NEW-RECORD-INSTANCE
4) WHEN-NEW-ITEM-INSTANCE
5) WHEN-VALIDATE-RECORD
6) SPECIAL
7) ZOOM
In the Form Client would like to change the title ( Order Number to Claim Number )
Get the Block Name : ORDER
Get the filed name : ORDER_NUMBER
Actions ( Tab )
Seq : 1
Type : property
Language : All
Save all and Call the form at different Responsibilities and Check it.
Check with Manufacturing and distribution Manager Order Management Orders, Returns Sales Orders
Eg2:
Purchase Vision Operations ( USA) Purchase orders Purchase orders
Level : Responsibility
Actions :
Block : LINES
Field : SOURCE_TYPE_DISP
Help Diagnostics Custom Code Personalize
Requirement :
Setting default value to Supplier field
Conditions :
Seq : 1
Description : Default value for supplier field
Trigger Even : WHEN-NEW-RECORD-INSTANCE
Target Object : PO_HEADERS
Action :
Seq : 1
Type : Property
Object type : item
Target Object : PO_HEADERS.VENDOR_NAME
Property Name : INITIAL_VALUE
Value : GE Capital
Save and call the from
Note : Initial value can be set at WHEN-NEW-RECORD-INSTANCE level only
Messages :
Compiled and Developed by 291
M.Nageswar Rao, B.Tech, MBA
Requirement :
On sat and sun, user should not access the sales orders form
Test the following in the TOAD
select trim(to_char(sysdate, 'DAY')) from dual;
Order Management Super User, Vision Operations ( USA ) Orders, Returns Sales Orders
Seq : 1
Description : Sat and Sun User Should Not Acces the Sales Order Form
Level : Function
Trigger Event : WHEN-NEW-FROM-INSTANCE
Condition : trim(to_char(sysdate, 'DAY')) in ( 'SATURDAY', 'SUNDAY')
Select Validate To validate the condition.
Processing Mode : Both
Level : Responsibility
Compiled and Developed by 292
M.Nageswar Rao, B.Tech, MBA
Value : Order Management Super User, Vision Operations (USA)
Actions ( tab )
Seq : 1
Type : Message
Language : All
Message Type : Error
Message Text : Sat and Sun User Should Not Acces the Sales Order Form
Select Validate to validate the Message Text
Save all the Above and Call the form
Messages :
Any modifications in the form, then has to be displayed
Conditions :
Seq : 4
Description : Show Message
Trigger Even : WHEN-VALIDATE-RECORD
Target Object : PO_HEADERS
Action :
Seq : 1
Type : Message
Message type : Show
Target Object : PO_HEADERS.BILL_TO_LOCATION
Property Name : ENABLED
Value : false
Save and call the from
MENUS
Conditions :
Seq : 5
Description : Attach Menu
Trigger Even : WHEN-NEW-FORM-INSTANCE
Action :
Seq : 1
Type : Menu
Menu Entry : Special23 ( Inquiry menu ) ( as desired )
Menu Label : Procedure ( as desired )
Render line before menu : enable ( to get the separator )
Save and call the from
GO to Inquiry menu and select Procedure option, then it shows Special23 on the status bar ( no such trigger )
Requirement :
When selected the Procedure option, then
Condition :
Seq : 6
Description : Action
Trigger Even : Special23
Action :
Seq : 1
Type : Builtin
Built Type : Execute Procedure ,
Argument : num_proc
Save and call the from
GO to Inquiry menu and select procedure , then num_proc will be executed automatically
Create a table : num_test
Compiled and Developed by 300
M.Nageswar Rao, B.Tech, MBA
create table num_test ( num number(9), descript varchar2(10) )
Zoom Trigger will be used to call the another forms from the standard forms.
Special triggers will be used to attach the menu options.
5)Transfer both .pll and .plx files into the Resource folder in the AU top. (D:\oracle\visappl\au\11.5.0\resource )
(Note: before going to copy into the server close the complete Application)
ZOOM Option :
ZOOM Icon is used to To open a form from another from
ZOOM Icon can not be used in the form personalization.
ZOOM Trigger is similar to the Button
It is a global to the Oracle Application, Using this any form can be invoked
It is a global. It can be used for all forms.
fnd_function.execute(FUNCTION_NAME=>'PO_POXPOEPO',
OPEN_FLAG=>'Y',
When we are working in the project all the Users will be connected to
Oracle apps we can not ask every one to close the application. for that we will get the Alternative Path(Link File Path),
which will be provided by DBA, we will place the CUSTOM.pll in that folder only we have to reLogin we can find
the Customization
Other users no need to Logout
1) SQL
2) PL/SQL
3) RDF
4) Discoverer
5) XML Publisher
6) BI Publisher
7) OBIEE
1) COGNOS
2) INFORMATICA
SQL :-
Using SQL we can generate report in a ASCII format.
We can not in a GUI format.
Images can not be displayed as it is ASCII output
SELECT statement is used to generate the report
PL/SQL :-
Using SQL we can generate report in a ASCII format.
RDF :-
We can display out put in GUI format.
Images can also be displayed.
Discoverer :- Older one . it is not being used with current version Oracle Apps.
XML Publisher : -
It is a mostly used one in the current version of Oracle Apps.
It is an extension to RDF.
Easy to design the layout
7) Platform Independent
platforms such as Reports-6i, Discoverer, OBIEE and any one which can generate the XML files )
Disadvantages :
Eg :
TOTAL : 14
Steps :
1) Data Model Query
SELECT EMPNO, ENAME, SAL, DEPTNO FROM EMP
Take a Summary Column for TOTAL
Properties :
Name : TOTAL
Function : count
Source : EMPNO
After Development of the above
Generate the XML file
File Generate to File XML
Supply the name of the file with extension .xml
Step3 : Go to Preview Menu and select Required output format ( PDF / HTML / EXCEL / RTF ) as desired
Any Headings are required, it can be inserted Directly like Normal Word Document.
2) Manual Development
1) Open the new file
2) Adjust the Margins either by dragging the Margins or By Page Setup.
3) Save the file as .rtf file
4) Prepare the Header ( go to View Menu Header and Footer Option
It will be displayed on the every page of the Report.
5) Insert the Table with Required No.of Columns ( as desired ) and Rows ( 2)
6) Place Headers on the First Row ( Select Row, Make them Bold and Rt.Click Center Align )
7) Insert the Fields on by one into Columns in the Second Row
View Tool Bars Enable the Form
Place the cursor inside the Column Select text ( ab | )
Double Click on Filed
Default Text : as desired
Add Help Text : <? FIELD-NAME ?>
FIELD-NAME Can be Obtained from the .rdf report or from the XML file.
From the .rdf :
Go to properties of the field and take XML Tag
8) Repeat the Same for Remaining Fields
9) Insert the Group to get All records in a group ( use for loop )
Place for loop Beg before the first field and place for loop end after the last filed.
Beginning <?for-each:Group-Name?>
Eg: <?for-each:G_EMPNO ?>
Ending <?end for-each:Group-Name?> or <?end for-each?>
Group-Name is an Optional
10 ) Load the XML data and save the rtf file
11) Preview to Check the output
Total Users : 16
SELECT USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
8) Go to preview and select the required option such as HTML, PDF, EXCEL, RTF
Steps :
SELECT USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
Steps :
Select Apply
Select Template
Create Template
Type : RTF
Language : English
Territory : united states
Click on Apply
Result shows
Responsibility
SRS
Name : user_xx (automatically )
Lay out : user_xx (rtf file Template name automatically )
Submit
Select Options in the above for different Format outputs such PDF / XML / HTML / TEXT
Example :
( parameters )
From Vendor Id
Compiled and Developed by 312
M.Nageswar Rao, B.Tech, MBA
To Vendor Id
Total Suppliers :
Total No.of Pos:
Total No.of Invoices :
Select vendor_id,
vendor_name,
creation_date
from po_vendors
where vendor_id between :P_FROM and :P_TO
end;
Total PO : CS_2
beg-vendor-loop <?for-each:G_VENDOR?>
<?split-by-page-break:?>
1)Inbound Interface
2)Outbound Interface
Inbound Interface :
Inbound Interface is used to upload the data from legacy system (Flat files) into Oracle Applications base tables.
If it is Only one time of time data transfer, then it is called Conversion / Migration
If it is Multiple times of data transfer ( i.e every day / week / month ), then it is inbound interface
Outbound Interface:
Outbound Interface is used to extract the data from oracle Database tables into the flat files.
While developing the outbound Interface we use UTL_File to Extract the data.
While Developing the Inbound interface we use SQL * loader to import the data
into base tables.
UTL_FILE Package :
==================
This is One of the PL/SQL Package which will be used to transfer the data from table to files and
from files to tables
But when we are transferring data from file to table SQL *Loader can also be used. It is recommended.
To transfer from table to file we don’t have alternative, we have to use only UTL_FILE.
1)Develop the PL/SQL Program (Either Procedure or Package) with the following statements
2)Register the Procedure or Package as Concurrent Program and submit from SRS Window.
File_Handler UTL_FILE.file_type;
l_rCount number default 0;
begin
File_Handler=UTL_FILE.fopen('D:\oracle\visdb\9.2.0\plsql\temp','users.txt','w');
for X in C1 loop
UTL_FILE.fclose(File_Handler);
fnd_file.put_line("No of Records Written to the File :'||l_rCount);
retCode:=0;
exception
File_Handler utl_file.file_type;
begin
File_Handler:=utl_file.fopen('D:\oracle\visdb\9.2.0\plsql\temp','Inventory.txt','w');
for x in C1 loop
l_rCount:=l_rCount+1;
utl_file.put_line(File_Handler,x.item_id || '#' ||
x.item_name||'#'||
x.item_desc||'#'||
x.item_uom||'#'||
x.item_cat_code||'#'||
x.org_id ||'#'||
x.org_name);
end loop;
utl_file.fclose(File_Handler);
retCode:=0;
exception
when utl_file.invalid_filehandle then
fnd_file.put_line(fnd_file.log,'Invalid File Handler');
utl_file.fclose_all;
retCode:=2;
It is process, which will be used load the data from Flat file to Oracle Apps base table.
It is process of Loading data form legacy systems ( other applications : flat files) into oracle applications
It can be in methods
1) Using SQL * LOADER ( recommended )
2) UTL FILE Package
3) Data Loader ( External / Third party tool )
Data Loader : in this Source file will be mapped to table columns.
Flat File
Staging Table
Error Tables PL/SQL Program ( Procedure / Package )
Interface Tables
Base Tables
Staging table : It is a temporary table create by the user. It is called as pre-interface table
Inter face table : It is a built-in table need not to create by the users. Here data will be stored temporarily. Hence it is
called as temporary table. This table is used to store valid data temporarily.
SQL * Loader : It is used to load the from Flat file to staging table by using control file
PL/SQL procedure : It is used to read the data form the staging table and validate then insert into the interface table.
In the above Interface table, Standard program , base tables and error table/ columns / reports are built-in need not to
develop by the user.
To develop the In-bound interface the following four actions are required
1) Staging table Creation
2) Develop the SQL * LOADER program and register
Compiled and Developed by 323
M.Nageswar Rao, B.Tech, MBA
3) Develop the PL/SQL procedure and register
4) Submit standard program
SQL * LOADER
It is one of the oracle tools and it is used to load the data from flat file to oracle base table. It is used in the development
There are five types of files are used with SQL * LOADER.
1) Data file 2) Control File 3) Discard File 4) Bad File 5) Log File
Extension is( .dat , .txt, .csv) .csv is an excel file csv common separated value. If data is available in excel file with
extension .xls then save it as .cvs file before going to load into database table. Mostly data in the form of excel files.
2) Control file : It is SQL * LOADER program. It provides syntax to load the data form flat file to database table.
This file has to be developed and executed by the Technical Consultant. It will be developed in the
notepad and saved with extension ( .ctl )
3) Bad File : It will be generated automatically by the SQL * LOADER. Bad file contains the records, which are
rejected by the SQL * LOADER
4)Discard File: It will be generated automatically by the SQL * LOADER. It contains the records, which are rejected
by the Control file. Control file rejects the record, when the record is not as per the specified format in
the Control file. Discard File Extension is ( .dis)
5)Log File : It contains the Log information like Program Time of start, Time of end, No of records, which are
successfully uploaded into the database table. Rejected Records which are sent to the Bad file and
Discard file. Error Message during the execution of Control file. Extension is ( .log )
1) Received the flat file form the client and check the file format.
2) Identify the data base table name and database
3) Develop the control file using notepad and save it.
Syntax to develop the control file.
LOAD DATA
INFILE ‘ Data File Path with file name ‘
INSERT INTO TABLE <Table Name>
FIELDS TERMINATED by ',' OPTIONALLY ENCLOSED BY ' " '
TRAILING NULLCOLS
(Column1 , column2 , column3 ,......)
Order of the columns in the flat file
Eg1:
Data file Path ( C:\ MyUser\User10\emp.txt )
Data format order Empno, empname, salary, comm, deptno
Control file
LOAD DATA
INFILE 'C:\MNRAO\emp.txt'
INSERT INTO TABLE MyEmp
FIELDS TERMINATED by ','
(empno, ename, salary, comm, deptno )
Eg2: if data is available in the format ( empno, ename, deptno, salary, comm.)
1001,Smith,20,5600,300
1002,Allen,10,4500,,
1003,Ramu,30,7600,350
1004,Krishna,40,5400,,
LOAD DATA
INFILE 'C:\MNRAO\emp.txt'
INSERT INTO TABLE MyEmp
FIELDS TERMINATED by ','
(empno, ename, deptno, salary, comm )
LOAD DATA
INFILE 'C:\MNRAO\emp.txt'
TRUNCATE INTO TABLE MyEmp1
FIELDS TERMINATED by ','
( empno,ename,salary,comm,deptno )
Compiled and Developed by 326
M.Nageswar Rao, B.Tech, MBA
INSERT database table should be empty
APPEND table may be with record or empty
TRUNCATE it will delete the existing records and inserts the new records into the database table
Imp Note : if file has been received in the excel file format with extension ( .xlc ), then save the file with
extension (.cvs ) . The filed separator will be comma ( , ) ( default )
Loading data with default values
Eg:
create table EMP_DEFAULT( empno number(10),
ename varchar(50),
Compiled and Developed by 327
M.Nageswar Rao, B.Tech, MBA
jdate date,
sal number(10),
comm number(10),
location varchar(50),
deptno number(10))
Test it
select * from EMP_DEFAULT
Requirement
EmpNo should be generated automatically by using database sequence
Ename should be in upper case only
Jdate sysdate
Comm 10% of basic sal ( sal * 0.10)
Location ‘H’ : Hyderabad
‘B’ : Banglore
‘C’ : Chennai
: Mumbai
Deptno constant =10
Steps to develop the application for above requirement
1) create the sequence using TOAD utility
Create Sequence
Sequence owner : SCOTT
Sequence name : EMP_SEQ
Start with : 1
Code generated by TOAD utility
CREATE SEQUENCE SCOTT.EMP_SEQ
START WITH 0
INCREMENT BY 1
MINVALUE 0
NOCACHE
NOCYCLE
NOORDER
begindata
,Saritha,12000,H
,Ramu,13500,B
,Ranjith,5600,C
,Rakesh,8600,,
,venkat,12400,B
Leave space for the first filed (empno) as it is being generated automatically by using sequence.
Note : in the above UPPER, DECODE are the sql functions. We can use all built-in SQL functions but we can not use
the user defined functions.
3) go to command prompt and SQL * Loader
LOG file and BAD file
The log file will be generated automatically in the ORACLE bin directory. It will be generated by the name of control
file
D:\oracle\visdb\9.2.0\bin \ DEFAULTS.txt
Compiled and Developed by 329
M.Nageswar Rao, B.Tech, MBA
Sample of LOG file as shown below
Table EMP_DEFAULT:
5 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
BAD File : It will be generated in the folder, where control file is located.
Control file
LOAD DATA
INFILE 'C:\MNRAO\myemp.txt'
discardfile 'C:\MNRAO\test.dis'
TRUNCATE INTO TABLE EMP_TEST
FIELDS TERMINATED by ','
TRAILING NULLCOLS
( empno, ename,deptno )
Data File
1001,Ramesh,55
1002,Sirisha,43
1004,Venkat,76
1005,Ramu,23
Note : 1) When data file is using with oracle application then, the file should be provided with new line at the
end of the data file ( if new line is not provided, then last record will not be loaded into the table )
2) When data file is using with at the command prompt then, the file should not have the new line at the
end of the data file ( if new line is provided, then empty record will be loaded into the table )
Table :
create table ITEM_TEST(
Item_Code varchar2(10),
Item_Name varchar(50),
Item_desc varchar2(100),
Item_price number(10))
Control file
LOAD DATA
Compiled and Developed by 333
M.Nageswar Rao, B.Tech, MBA
INFILE ‘&1’
TRUNCATE INTO TABLE ITEM_TEST
FIELDS TERMINATED by ','
TRAILING NULLCOLS
( Item_Code, Item_Name, Item_desc, Item_price )
Data file
ACD01,KeyBoard,Peripherals,350
BFS03,Monitor,Computer,6500
CFG21,Chair,Office,2300
GHT2A,Table,Conference Hall,8500
2) write control file as above
3) move the control file from local machine to server
D:\oracle\visappl\po\11.5.0\bin
4) create executable with executable method as SQL * LOADER
5) create the concurrent program with executable method as SQL * LOADER
define the parameter for data file
seq, Parameter
1 Enter the Data File Path
Value Set : 100 characters
Request Set :
Request Set is used in the interfaces / conversions. Request set is group of concurrent programs. Using request
set, multiple programs can be submitted at a time in SRS window either sequentially or in parallel.
Executable
Concurrent Program
Request Set
Compiled and Developed by 334
M.Nageswar Rao, B.Tech, MBA
Request Group
SQL * LOADER
STANDARD PROGRAM
User
SRS
5) Interface will be used to load the current data. 5) Conversions are used to load old or historical data.
PO_VENDORS AP_SUPPLIERS
PO_VENDOR_SITES_ALL AP_SUPPLIER_SITES_ALL
PO_VENDOR_CONTACTS AP_SUPPLIER_CONTACT
AP_INVOICES_ALL AP_INVOICES_ALL
Compiled and Developed by 335
M.Nageswar Rao, B.Tech, MBA
AP_INVOICE_LINES_ALL
AP_INVOICE_DISTRIBUTIONS_ALL AP_INVOICE_DISTRIBUTIONS_ALL
Profiles Same
Mutli Orgs
BG -do-
Set Of Books Ledgers ( Currencies, Calendar, Chart Of Accounts, Method )
LE -do-
OP -do-
IP -do-
GL_SETS_OF_BOOKS GL_LEDGERS
MO : Operating Unit
MO : Operating Unit
MO: Security Profile
Forms Same
Banks
Suppliers
Customers
Employees
HZ_PARTIES