Z Oracle - Apps Student Matrial
Z Oracle - Apps Student Matrial
Z Oracle - Apps Student Matrial
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(Software Development Life Cycle) 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
3
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
CE A.R OM
FPT
G.L FA
HRMS
PAY
4
9) AP ( Account Payable) Payments
To implement any Oracle ERP the following Human Resources are required.
1) DBA ( Database Administrator )
2) Functional Consultant
3) Technical Consultant
5
5) Define the setups
Ex: report generation ( inr India, Dollar US )
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,
6
RICE Components are
R Reports === Reports 6i
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.
1) P – 2 – P Cycle
2) O – 2 – C Cycle
P – 2 – P Cycle == PO AP CM GL
INV
INV
O – 2 – C Cycle == OM AR CM GL
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 :
7
Providing support to already implementing project
Resolving Functional issues and Technical issues
3) Migration Project :
It is a moving data from Older version Oracle Apps to New Version of Oracle Apps
4) Up Gradation Project :
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
8
1) MD020 ( Methodology document ) HLD ( High Level Document )
It will be prepared by Solution Architect
1) Installation Process : Installation stages are four 1) development 2) testing 3) production and 4) Quality.
When A form or a report is moving form one instance to other instance, after it has been developed, it’s all
associated components are also to be moved. It will be done by the DBA.
2) Execution Process: It will be developed by the Technical Consultant. It has to be developed by specifying
the logic implemented and functionality of an application.
CR Document :
It tells about the request made by the client, It could be minor changes such as some fields are to be added /
deleted to the existing form or may be deletion of procedure.
9
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
10
Tax payments
Distribution:
Manufacturing:
3) CRM :
11
Application Architectures
Single Tier Architecture :
Data and Application will be running in the same memory. Application and Data both are on the same system.
Eg: C / Java / .Net Applications working files
12
Client / User Tier ( Desktop App ) Database Tier
HTTP Request
Application
Components Request
WEB Servlet / JSP/
CLIENT Oracle Data Base
Application Response
Forms, JSP
HTTP Response Pages
It is an Enterprise Application.
HTTP Request
Application Request
Components
WEB Request
Servlet / JSP/
CLIENT Oracle Middleware Data Base
Response
Application
Forms, JSP
Pages 13
HTTP Response Response
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.
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.
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;
14
Clients are generally windows
Application and Data base on Linux/Sun Solaris
The Desktop Tier
The client interface is provided through HTML for the Self-Service interface, and a Java applet for the
professional, forms-based interface using a Java-enabled Web browser. The desktop client with Oracle JInitiator
downloads the applet on demand and the applet is cached locally for future use.
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
15
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 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 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
16
■ 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 11i, 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
with the desktop clients, but rather with the servers on the application tier, which mediate the communications
between the database server and the client.
17
Oracle Apps file Architecture
APPL_TOP
forms reports sql plsql admin include bin lib java Log out driver
US US
18
Applications Directory and File Types
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.
19
import
Contains DataMerge files used to upgrade seed data.
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.
20
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.
Custom Top module can be uploaded and down loaded from the server where as other modules can only be
down loaded from the server but can not be uploaded to the server.
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.
21
Schema
Schema is an area in the oracle database, where we can create database objects. One schema or more than one
schema can be created in one database as per the client requirement.
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.
There is one schema for each product—a base product schema—that owns the data objects for that product.
There is one schema—APPS—that owns all the code objects for the E-Business Suite and has access to all data objects.
There is one APPS schema for every product installation group. The following code objects are installed in the APPS
schema:
22
■ Views
■ Packages
■ Procedures
■ Functions
■ Triggers
PO
Schem
a
AP
Schem
a
INV Apps
Schem Schem
a a
AR
Schem
HRMS a
Schem
a
23
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.
If customer want to add own custom schema, then we have create the custom schema and grant the privileges to Apps
schema. It is a job of DBA. The Technical consultant must have idea of all important tables, which are used in the
application.
24
Connection to Apps Schema
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
25
System Administrator :
Creation of users
Security Groups
Responsibility
Profiles
Programs
Application Developer :
Forms
Reports
Menus
Form function
Messages
Application
Tables
26
3) Go to right side pane
Security : User
Define ( click )
4) Users form
27
User Name : mnaro10
Password : xxxxxx ( at least 5 chars )
( re-enter password ) ( it shows on the status bar of the form )
Description : any one ( purpose of user ) ( is an optional )
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
1st way
Go to Oracle Application Home for checking weather the user created or not
Security : user
Define
Users form : press f11 to query
When pressed F11, users forms enters into the query mode
User Name : mnrao% and Ctrl + F11 , it shows user details
2nd way
Using query
Select * from FND_USER ;
Using Toad Utility :
User name : apps
Password : apps
Database : vis
28
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
29
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.
----------------------------------------
Login
----------------------------------------
Site : UNKNOWN
Application : System Administration
Responsibility : System Administrator
Security Group : Standard
User Name : OPERATIONS
User Login:
Types of executables :
Once the above programs have been transferred to oracle application, then these are called as concurrent programs.
concurrent program : Instance of executable file along with input parameters and incompatible programs.
1) Develop the report (.rdf) as per client requirement by using Reports 6i Builder
31
3) Select System Administrator
a. Create Executable
b. Executable name
c. Application Name
d. Execution Method
e. Report (.rdf) file name
a. Executable
b. Parameters
c. Incompatibilities
6) Create Responsibility
Step 1 :
Develop the report (.rdf) as per client Requirement by using reports 6i Builder
Step 2:
Move the report from Local machine into Server
CUS_TOP\11.5.0\Reports\US\ .rdf
Eg:
PO_TOP\11.5.0\Reports\US\ .rdf
Step 3:
Select System Administrator and create EXECUTABLE
1)Executable Name
2)ApplicationName
3)Execution Method
4)Report(.rdf) file Name
32
Step 4:
Create Concurrent Program and attach 1)EXECUTABLE
2)PARAMETERS
3)INCOMPATIBILITIES
Step 5:
Create Request Group and attach Concurrent Program
Step 6:
Create Responsibility and attach
1)Request Group
2)Data Group
3)Menu
Step 7:
Create user, attach Responsibility to the user.
Step 8:
Select the Responsibility and go to SRS(Standard Request Submission) Window
Submit the Request.
First Page :
Users Information Report
Second Page :
Last Page :
33
Step 1 : Develop the report using report builder
1) Data Model :
Query : SELECT
USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
2 ) Layout Model
Header Section
Main Section
Trailer Section
34
Executable : user_reports ( name can be any one )
Short Name : user_reports ( important it is to be attach with concurrent program in the next step,
executable name )
Application : purchasing ( click right side and find : pur% )
Description : purpose of the report as desired by the client
Execution Method : Oracle Report
Execution File Name : user ( name of the file which was developed in the oracle reports )
SAVE THE RECORD ( click on save button )
STEP 4 : Create Concurrent Program and attach EXECUTABLE
Concurrent : Program Define
35
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 )
Short Name : It can be any one
Application : purchasing
Description : as desired by the client
Executable :
Name : user_reports ( the short name in the 3rd is to be supplied here ) or click right side will be populated
Method : Oracle report ( automatically )
Output :
Format : PDF ( choose from the list provided )
Save : enable to save the report for the future
Disable if not required for the future
Print : disable as the printing is not required
Style : A4 ( choose from the list provided )
SAVE THE RECORD ( click on save button )
Security : Responsibility
Request
36
Group : user_group1 ( any name )
Application : purchasing
Code : any one
Description : any one
Request
Type Name Applicatio
Program user_reports_prog purchasing ( automatically )
(program name supplied in the 4th step )
SAVE THE RECORD ( click on save button )
Request group is a collection of Concurrent Programs and Reports we can group All concurrent Programs.
37
Responsibility Name : user_resp ( any name )
Application : purchasing
Responsibility Key :any one
Description : any one
Data Group
Name : standard
Application : purchasing
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.
38
STEP7 : attach Responsibility to the user.
Security : user
Define
add the responsibility to user
Query for the user ( F11 )
Name : MNRAO ( CTRL + F11)
39
Click on OK
view menu Request
40
Name : user_reports_resp( automatically/select from the list )
Click on submit ( at the bottom )
Submit another request Yes/No No
Click on Find
Click View output : to see the out put
View Log : to see the log details
View details : to see the of the request details such as name the request, date submitted, requestor, date started,
date completed
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
Hold Request:
This button will help to hold the running request for same time and period
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.
41
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.
Range Option:
While defining the form and to parameters if we wanted to accept
Values in accession order menus from values is low and to value is high we will
Select the options called low and high.
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.
42
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
Data Group
43
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
3) Security : responsibility
Request
Click on add
4) Security : responsibility
Define
Click on add
5) Security : user
Define
44
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.
Eg:
AP_INVOICE_HEADER_INTERFACE
AP_INVOICE_LINES_INTERFACE
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:
45
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
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
3) Who Columns :
These are called as history columns. This data will be gerated automatically by the oracle application form.
46
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
Eg:
Employees information report
47
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
Select the label and place on the canvas ( user information report )
end;
50
if ( :USER_COUNT <=0 )THEN
return false;
else
return true ;
end if ;
Again Change in the above report
Using lexical parameters dynamically
If input for both From Id and To Id is null where clause should be obtained dynamically
1) Create lexical parameter : P_WHERE
2) Query :
SELECT USER_ID,
USER_NAME,
CREATION_DATE
FROM FND_USER
&P_WHERE
Here lexical parameter is not reading form the user. It’s value populated dynamically. Hence it is not required to
map with the application parameters
To populate dynamical write PL/CODE in the after parameter form trigger
function AfterPForm return boolean is
begin
if ( :P_FROM is null and :P_TO is null ) then
:P_WHERE:='';
else
:P_WHERE:='where USER_ID between :P_FROM and P_TO';
end if ;
return (TRUE);
end;
Requirement
Input :
From Date :
To Date :
UserId UserName CreationDate
51
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
6) SRS
Here the question is why not use executable directly with users ?
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
55
Format Type : Number Maximum Size : 4 ( digits ) Precession : 4
( format Types are
1) Char 2) Date 3) Date Time 4) Number 5) Standard Date 6) Standard Date Time 7) Number )
Numbers only : enable ( 0-9)
Min Value : 150 ( as desired ) Max Value : 5600 ( as desired )
Validation type : None
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
56
Note : After define use with parameters of concurrent program
2) INDEPENDENT
Independent provides the list of values, user has to select the value from the list
Entering values
System Administrator Application validation set Values
57
Enter the values
Supply the desired values in the value column
Value: Translated Value Description
10
200
500
Note : The above use with parameters of concurrent program
3) DEPENDENT
Provides list of values but depending on another Independent values
Eg:
Country : India City : Hyderabad
Banglore
Chennai
Delhi
Mumbai
Country : USA City : Dellos
58
California
Detroit
Country : UK City : London
Anderson
Report output
First Page:
Employees information
India : Hyderabad
Second Page :
EmpNo EmpName Salary Comm
Last Page:
Total Employees : 50
Step2 :
59
Create the dependent values set
60
Dependent value set information
Independent value set : CUST_COUNTRY
Dependent Default value : INDIA ( as desired )
Description : Default value
Providing Values :
Values
Check Value Set
Name : CUST_CITY ( auto )
1) Independent Value : INDIA ( default, use down arrow key to list )
Select Find
Value
Hyderabad, Chennai, Banglore, Delhi, Mubai
SAVE THE FORM
2) Independent Value : US
Select Find
61
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
1) Table Name
System Administrator User Define
62
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
Go to Help Diagnostics Examine Password : apps
Get the Column Name : USER_NAME
3) Data Type
Application Developer Application Database Table
Table Name : FND_USER ( Query for it )
63
Get the Column Type : VARCHAR2
Width : 100
Application Name : Application Object Library
Creation of Table Value Set
System Administrator Application Validation Set
Value Set Name : CUST_USER_NAMES_TAB
List Type : List of Values
Format Type : Char Max Size : 100 ( must be less then or equal to size of the column )
Validation Type : Table
Select Edit Information
Table Columns
Name
Value : USER_NAME
64
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
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> ];
65
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.
Stored Procedure with parameters
Create or replace procedure test_param_proc(
ErrBuff out varchar,
RetCode out number,
V_Id IN number,
V_Name IN varchar ) as
l_id number(2);
begin
select Vendor_Id into l_id from PO_VENDORS where Vendor_ID=V_ID;
update PO_VENDORS set Vendor_Name = V_name where Vendor_Id=V_Id;
commit;
FND_FILE.PUT_LINE(Fnd_File.Output, 'Vendor name has been updated successfully '|| V_Name );
exception
when NO_DATA_FOUND then
FND_FILE.PUT_LINE(Fnd_File. Log, 'Vendor ID does not exits '|| V_Id );
when TOO_MANY_ROWS then
FND_FILE.PUT_LINE(Fnd_File. Log, 'Duplicate Vendor Found '|| V_Id );
when OTHERS then
FND_FILE.PUT_LINE(Fnd_File. Log, 'Other Errors ');
66
end;
FLEX FIELDS
==========
Flexfield are made up with Attribute columns or Segment columns .
which are more flexible than the normal fields.
Flex fields are two types
1)DFF (Descriptive Flex Field)
2)KFF (Key Flex Field)
DFF: It will be used to capture the Additional information from the end user without change the code in the form and
without Alter the DB object. ATTRIBUTE Columns will be used to Capture the DFF data.
Eg :
EMP Form(old ) Emp Table
Emp No : empno
Emp Name : ename
Sal : sal
Additional fields
Project :
Designation :
Loc :
[ ] called as flex fields
Additional fields will be stored into attribute columns ( attr1, attr2, …..attr15)
Data Type of attribute columns is varchar2
If DFF is available then need not down load the form and customize the form
Pre-Requisite to create DFF:
1) Application Name 2) Form Name
67
Purchasing Vision Operations ( USA ) Items Master Item M1
68
Un Check Freeze Flex Field definition
Place the cursor at Global Data Elements and Select Segments
Add the require
Number Name Window Prompt Column Value Set
50 Company Company Attribut4 100 Characters
Select Open and Check Required ( as desired )
Save the above
Check Freeze Flex Filed Definition OK Compile OK OK Warning OK
Close the form
69
Enter the Application : Inventory Title : Items
70
Un Check Freeze Flex Field definition
Place the cursor at Global Data Elements and Select Segments
Uncheck the Displayed and Enabled
Save the above
Check Freeze Flex Field definition OK Compile OK Warning OK
We can find all the flex field details in Application Developer Responsibility
General Ledger Vision Operations ( USA ) Setup Financials Flexfields Key Segments
71
Create New Flex Filed ( + )
72
Save the above
Place the cursor in the first line COMPANIES
Select Flexfiled Qualifier
73
COMPANIES : Intercompany Segment ( Check )
BRANCHES : Balancing Segment ( Check )
ACCOUNTS : Natural Account Segment
74
Enter the Structure : LGS_INDIA_KFF
Select Find as shown below
75
FUNCTIONAL MODULES
Multi Orgs ( Multiple Organizations ) :-
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.
76
Major Features
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.
77
It is in seven levels.
1) Business Group
2) Set Of Books
3) Legal Entity
4) Operating Unit
5) Inventory Organization
6) Sub Inventory
7) Stock Location
Head Office Business Group
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
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
78
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.
The following applications secure information by inventory organization:
Oracle Inventory, Bills of Material, Engineering, Work in Process, Master Scheduling/MRP, Capacity, and
Purchasing receiving functions. To run any of these applications, you must choose an organization that has been
classified as an inventory organization.
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.
79
The business group is the largest organization unit you set up in Human Resources to represent your enterprises
as an employer. After defining one or more business groups for your enterprise, you set up one or more government
reporting entities (GREs) within each business group. The GRE is the organization that federal, state, and local
governments recognize as the employer.
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
80
Multilevel Company Structure Example
81
C C C : Currency, Calendar, Char Of Accounts ( Set Of Books )
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
82
Scope : Global It can be accessed by all levels of organization
Name : VIS_CORPORATE ( registration / location name )
Desc : Location of the the company ( as desired )
Inactive date : it is required when the location is not in use
Name, Desc and Inactive Date, Address Style, Address, Time Zone will be stored into the table called :
HR_LOCATIONS
The above address information will be stored into the table called
83
Save the above details and enter the Organization Classification Name as Business Group
Select enabled
Save the above and select Others for Additional Organization Information.
84
Click on OK OK
Do you want to save the changes yes
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
85
Set Of Books : It is a combination of Currency, Calendar and Chart Of Accounts
Currency :
Depending on the territory it will be changed .
Eg :
Navigation
The above one is a predefined currency. We can define our own currency.
86
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
Indian Calendar :
Navigation :
87
Query it ( Ctrl + F11 ) use arrow key
GL_PERIODS_V
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
88
Chart of Accounts :
It is a bank account details
Eg :
LG
AP INV PO GL
89
Eg:
Code : TEST_27_APR_ACFF
Title : TEST_27_APR_ACFF ( auto )
Desc : TEST_27_APR_ACFF ( as desired )
Select Segments
90
After entering the above information save it
The above flex fields information will be stored into the table called : FND_ID_FLEX_SEGMENTS_VL
Deselect Freeze Flexfield Definition OK Save ( compiling ) OK OK
Navigation :
General Ledger, Vision Operations ( USA ) Setup financials Books Define
Query for the existing one ( Ctrl + F11 and down arrow key )
91
Set of Books : Vision Operations (USA)
Copy the following into some notepad )
Chart of Accounts : Operations Accounting Flex
Retained Earnings : 01-000-3310-0000-000
Translation Adjustment : 01-000-3500-0000-000
92
Create new set books from the above
Company : 01
Department : 000
Account : 3310
Sub Account : 0000
Product : 000
Select OK
93
Similarly Translation Adjustment
Translation Adjustment : 01-000-3500-0000-000 Paste into respective fields as above
Select OK
Note : The above set of books information will be stored into the table called
GL_SETS_OF_BOOKS_V
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_V
Operating Unit :
Navigation
Inventory Vision Operations ( USA ) Setup Organizations Organizations New
Name : Test_29_APR_OU
Location : VIS_CORPORATE ( select from existing Ctrl + F11 )
94
Select Others ( link between Set Of Books, Legal Entity and operating unit )
Select : Operating Unit Information
Press Tab
Set of Books : Test_29_Apr_SOB ( supply the above created set of books ) OK and save
Legal Entity : Test_29_APR_LE
Set Of Books : Test_29_Apr_SOB ( auto )
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
95
For example
BUSINESS_GROUP_ID = 202
Step2 :
Get the ORGANIZATION_CODE form the above ( select any one as desired eg; M7 )
ORGANIZATION_CODE = M7
Step 3:
MASTER_ORGANIZATION_ID = 204
Step4 :
Sub Inventory :
INV
Raw Material Finished Goods Semi Finished Goods Damaged Goods Sub-INV
96
Creation of Sub Inventory :
Navigation
Inventory Vision Operations ( USA ) Setup Organizations Sub Inventories M1 ( Inv Org Name )
Name : REG10_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
Eg :
Navigation
Application : Inventory FlexField Title : Stock Locators ( use down arrow key to get )
Select Segments
98
In the Required only Row, Rack and Bin. Hence disable the ( Displayed and Enabled for remaining )
Make Value set as empty for Row, Rack, Bin
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 )
99
Select New
Locator ( Click here ) : Row :1 Rack : A Bin: 1
Locator : 1.A.1
Status : Active
Status : Active
Subinventory : VIS_SIN
100
Again go to Sub inventory ( query for VIS_SINV )
101
Inventory :
Dell Computers
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
102
Creating of an Item
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.
103
Creation of UOM ( Unit Of Measure ):
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
104
Setup of the template :
Navigation :
Setup Items Templates
Creating an Item :
Template basis
105
In the above Master Item form enter only Item and description
Tools Copy From :
Template : Purchased Item ( template basis )
Apply and Done
Unit of Measure :
Primary : Each
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
106
select * from MTL_SYSTEM_ITEMS_B where trunc(creation_date) = trunc(sysdate)
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
Tools Organization Assignment ( if not saved it will be disabled )
Select V1, M1, M2 and save it .
107
Create item for Mother Board
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.
-----------
108
Categorizing the items :
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.
109
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
110
The above information will be stored into the tables called :
MTL_CATEGORIES and MTL_CATEGORIES_KFV
111
Assigning item to Category
Navigation : Inventory Vision Operations ( USA ) Items Master Item
Item : Query for ( VIS_Monitor : which was created earlier )
Tools Categories
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
112
Costing is at the organization level
Item Cost is only for Purchased Item not for Manufacturing and Sales Items
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
114
take either of the follwing
SHORT_NAME :Vision Operations
NAME : Vision Operations (USA)
Get the
Calendar Name = Accounting ( copy into note pad )
Get the period
Go to Inventory Vision Operations ( USA ) Setup Financials Accounting Calendar Accounting
115
Get the name :
Eg : Jan-09, feb-09, mar-09
Inventory Vision Operations ( USA ) Accounting Close Cycle Inventory Accounting Period
116
Creation of a Transaction :
Inventory Vision Operations ( USA ) Transactions Miscellaneous Transactions ( M1 )
Select Find
118
Steps in the purchasing of Goods (Purchase Order )
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 )
119
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
120
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.
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
121
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 Purchase :
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
122
User Must be Employee of the company and Must be a buyer
123
Creation of Employee :
Human Resources, Vision Enterprises People Enter and Maintain
Select New
Select Assignments :
124
Organization : Vision Corporation
Job : MM100_Manager
Grade : 500.2.west
Location : HR – Newark
Status : Active Assignment
Assignment Number : 1315 ( will be generated automatically )
Save the above
Suppliers :
Supplier Supplier
Sites
Address1 Address2 Address3
125
Creation of a Supplier :
Navigation
Purchasing Vision Operations (USA ) Supplier Base Supplier
Classification ( tab )
Type : Government
Control ( tab )
Invoice Match Options : Purchase Order
Payment ( tab )
Terms : 45 Net
Purchasing ( tab )
Ship To Location: M1- Seattle
Bill To Location: V1- New York City
126
Save the above
General ( tab)
Pay ( Disable/Un Checked) Purchasing ( Checked/enable )
Communication
Code Number
127
Voice : 040 6656321
Fax : 040 6656321
Contacts ( tab )
Last Name: MNRAO
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…..
The above demand sheet will be forwarded to Requisition Dept, where demand sheet will be converted into
Requisition .
Requisition :
Lines ( tab )
129
1 Goods Hyd CD Drive MISC.MISC Each 10 2100 30-MAY-2011
00:00:00
Note :
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.
130
select *from PO_REQUISITION_HEADERS_ALL where trunc ( creation_date) = trunc(sysdate)
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$
131
Field : ORG_ID
Value : 204 ( this value will be populated automatically )
BEGIN
FND_CLIENT_INFO.SET_CURRENCY_CONTEXT( '204');
END;
132
In the above enter the Requisition Number : 5632 ( which was generated earlier )
And Select Find(B)
133
The above Total purchase value in a particular request ( eg Number : 5634 )
Select lines and distributions to see the more details
134
The above RFQ will be sent to Suppliers.
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.
135
Select Find
For Manual
Select Manual
Supplier : VIS_SUPP
Supplier Site : VIS_PURCHASE
136
Close the above
137
Fro multiple shipments select Shipments
138
For Multiple Distributions select Distributions
139
It shows status as Approved
IMP Note :
RFQ Details :
1) Headers
2) Line
3) Distributions
Headers PO_REQUISITION_HEADERS_ALL
Lines PO_REQUISITION_LINES_ALL
Distributions PO_REQ_DISTRIBUTIONS_ALL
1) Headers
2) Lines
140
3) Shipments
4) Distribution
Headers PO_HEADERS_ALL
select *from PO_HEADERS_ALL where trunc ( creation_date) = trunc(sysdate)
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
141
Purchase order creation with out REQ:
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.
142
Select Shipments
It can be single shipments or Multiple Shipments
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
Blanket will not have these Two dates Promised and Need By Date
143
Enter the above details as shown in the below form.
Select Price Breaks for Discounts enter details as shown below ( as desired )
144
Save the above ( take Purchase order No (4423 ) into note pad before approval )
Select Approve and Check the Submit for Approval OK
Status Converts into Approved
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
145
Select Agreement for terms and Conditions
RFQ ( Requisition )
146
Creation of Receiving :
Enter the Purchase Order No : 4422 ( was created in the previous step : Standard purchase )
147
Go to Back end
select * from HR_LOCATIONS where LOCATION_CODE = 'M1- Seattle'
Navigation :
Inventory Vision Operations (USA) Setup Financial Books Define
148
Get the Calendar
Name : Accounting as shown below
149
Go to Calendar and check for status of period open or not
150
Shows the following
In the above if period is not available then create new period by using new ( green Colour )
151
Go to Change Status to Open ( May -11 5 2100 )
Find : %period%
152
Select Find
Again ( Ctrl + L )
Find : %period%
Select Open and Close Periods for GL
154
Go to SRS window and check for Request status
View Request
UPDATE gl_period_statuses
SET closing_status ='O'
WHERE Period_Name ='Jun-11';
1) 2 – Way method :-
2) 3-Way Method :-
3) 4 – Way Method :-
155
Creation of a Receipt :-
Purchasing Vision Operations ( USA ) Receiving Receipts
156
In the above we can select New Receipt / Add to receipt
Lines ( Tab )
Quantity
Check 75
Select Headers
Save it
It generates the receipt Number : 9609
157
Counting Items:
Lines ( tab )
Quantity
Check 75
Check 25
As shown below
158
Save the above
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 :
160
Pre-Req : Calendar Period Should be Open
Creating Invoice :
Purchase Order
Num : 4422
161
Select Find
Check for the Match as shown below
Select Distribution
162
Check Match and Enter the following
Quantity Invoiced : 3 Match Amount : 15,000 ( auto )
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
163
Checking for status :
Initially Status : Never Validate
Select Actions
164
Status : Validated ( shows after Validate Checked )
165
Accounting Entries in a tables
AP_ACCOUNTING_EVENTS_ALL
AP_AE_HEADERS_ALL
AP_AE_LINES_ALL
Paying Amount :
Go to Actions
Check Pay in full OK
167
It shows following
168
Go to Tools View Accounting ( it will be disable mode )
Select Actions
Check Create Accounting OK
169
Close the above
Cash Management Vision Operations ( USA ) Bank Statements Bank Statements and Reconciliation
170
Select New
171
Enter Account name : Bofa ( Remaining Details will be populated automatically )
Date : 11-JUN-2011 Statement Number : 11-JUN-2011 ( auto )
GL Date : 11-JUN-2011 ( auto )
Save the above
Select Lines
172
Type Number ( Check Num ) Transaction Date ( auto ) Amount
Payment 2472 12-JUN-2011 15000
173
In the above Enter
Account Name : BofA
Select Find
174
In the Query for the Check Number
175
Check Type ( payment
Enter the Check Number and Query for it ( It will not show any details i.e it was cleared )
176
Bill Of Material :
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
177
--------------
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 +
Fixing Dept Maintenance Cost + Soldering Maintenance Dept Cost + Assembly Dept Cost
1) Items
2) Resources
3) Routing
4) BOM ( child components )
Creation of Resources :
Navigations :
We can either of the following responsibilities
1) Bill OF Material
2) Manufacturing and Distribution Manager.
178
If not available add the above to OPERATIONS user.
(or )
Manufacturing and Distribution Manager Bill Of Material Routing Resources M1
Resource : FIX_RSRC1
Desc : Fixing Resources One ( as desired )
Type : person UOM : HR
Charge Type : WIP Move
179
Select Rates
Cost Type : Pending Desc : Pending Standard Cost Type Unit Cost : 125.00 ( Rate per hr)
(or )
Manufacturing and Distribution Manager Bill Of Material Routing Department M1( if not
showing go to change Organization and Change to M1 )
Select Resources
181
Save the above
Borrowed barrowed from the other dept or from the out side.
When un checked available for 24 hours, then Shifts ( tab ) will be enabled
Save the above
Select Rates
182
Cost Type :pending
Over Head : Indirect Basis : Item
Save the above
Dept master information is available in the table called : BOM_DEPARTMENTS
select * from BOM_DEPARTMENTS where trunc(creation_date)=trunc(sysdate)
Routing :
It is a sequence of Manufacturing.
183
Item : Hyd_CPU
Main (tab)
Place the cursor on the Dept filed then select Operation Resources
184
Seq Resources UOM Basis Usage Inverse (auto ) Units Schedule
1 FIX_RSRC2 HR Item 4 .25 1 Yes
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)
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
185
Creation of BOM :
Navigation:
Supply Type : Assembly Pull ( Purchase from Third party Sub Inventory
Operational Pull ( Internal Purchase ) stores
186
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
Navigation :
Oracle Pricing Manager Price List Price List Setup
187
Go to List Lines ( tab ) and create New
Application Method
Unit Price
1) Qualifiers 2) Modifiers
188
To define Qualifier and Modifier Customer is required.
Creation of a Customer :
To create a customer profile should defined
Profile contains
1) Payment Terms 2) Collector 3) Statement ( installments )
189
Name : IMMEDIATE ( instead of creating take existing )
If Name : IMMEDIATE
If Name : 2 Net
Amount : 100 or can be changed
Due Date : 2 days
**************
190
2% discount earned if paid within 10 days. Payment terms can include a discount % for early payment and
you can assign multiple discounts to each payment term line.
If Name : 3/10,2/30,Net60
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 :
191
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
192
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
193
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)
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)
O – 2 – C Cycle :
Pre-Requisite for O – 2 – C Cycle Customer must exist
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
194
Site use
Contacts 1) Ship To Location2) Bill To Location
Person, Mobile, FAX, E-Mail.
Site
Creation of a Customer :
TCA ( Trading Community Architecture ) is a Customer Module in 11i
Navigation :
Receivable Vision Operations ( USA ) Customers Standard
Customer
Name : HYD_CUST
195
Select Find Select New to create new customer
196
Skip the Address (tab)
Classification (Tab)
Profile Class : HYD_PROF_CLASS Type : external
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
197
Contacts ( tab )
Last : xxPerson and details Active ( 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 )
198
Save the above
Bill to and Ship to Location : ( 9204 and 9206 will be generated automatically )
199
Entering into O – 2 – C Cycle
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
200
Navigation to create Order Entry ( sales order )
Order Management Super User, Vision Operations ( USA ) Orders, Returns Sales Orders
Others ( tab ) ( will populated automatically, need not enter any one )
Payment Terms : IMMEDIATE
Where House : M1 ( inventory location ) FOB ( fright on board ) : Standard ( Returning Damaged goods to Destination)
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 )
201
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
203
From Order Number : 56703
Select Find
204
Line Status : Ready to release
Select Lines/LPNs
IMP NOTE : Launch pick release will run the following three Concurrent Programs
205
Operations Header Level Status Line Level Status
Shipping Confirmation :
Navigation :
Order Management Super User, Vision Operations ( USA ) Shipping Transactions
206
Enter the From Order Number : 56703
Select Find
207
Place the Cursor on Deliveries ( tab )
Select Action : Ship Confirm ( as shown above )
Select GO OK delivery was successfully confirmed OK
When click on GO Ship Confirm request will call all the above five programs
WSH_DELIVERIES
WSH_NEW_DELIVERIES
WSH_DELIVERY_DETAILS
WSH_DELIVERY_ASSIGNMENTS
1) WSH_TRIPS
2) WSH_TRIP_STOPS
208
To check the status after shipping
Order Management Super User, Vision Operations ( USA ) Orders, Returns Sales Orders
Once Delivered to the Customer. Acknowledgement ( consignment ) will taken from the customer.
Acknowledgement ( consignment ) means taking the customer signature stating that, received the so and so goods
on so and so date
Once Acknowledgement ( consignment ) has been taken from the customer, Inventory should be updated.
Updating Inventory :
209
Process Differed : Yes
Process Timeout : No
Click OK Submit
Workflow Background Process in turn will run the 1) Autoinvoice Master Program and 2) Autoinvoice Import
Program.
Request Id (2727521 , 2727522, 2727523, 2727524 ) in the following screen.
Note : Autoinvoice Master Program is the parent of Autoinvoice Import Program. It showing in the following screen.
210
Autoinvoice 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
Autoinvoice Import Program It will transfer the data from RA Interface tables to AR Base tables.
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
211
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.
212
Select Find
It shows Customer Bill to and Ship To Addresses
It shows Customer Number : 3845 and party Number : 31197
Query ( F11 )
213
Reference : 56703 ( Enter the Sales Order Number ) and Query for it ( CTRL + F11 )
214
Take the Invoice Number : 10020677 into a Notepad
Go to Number and Select JSP page ( Right side ) it shows the Invoice as below
215
Select Lines Item for lines information.
216
Receivable / Customer Invoice Master information will be stored in a table : RA_CUSTOMER_TRX_ALL
Create the receipt and collect the money from the customer
Creation of a receipt :
217
Payment Method : Manual Remittance
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
218
Receipt details will be stored into the table : AR_CASH_RECEIPTS_ALL
219
Enter the Receipt Number as shown above and Click on OK
Take the Batch number : 1050 ( into the Notepad ) it can be from the output / remittance frame
220
Select Approve for Collecting and depositing into bank
Select Yes
View Request find (Automatic Remittances Creation Program)
221
Select Receipt History
222
Check the Bank statement :
Cash Management Vision Operations (USA) Bank Statements Bank Statements and reconciliation
Account Number : 10271-17621-619 ( get from the notepad and paste here )
Remaining details will be populated automatically.
223
Date : 06-JUL-2011
Receipts : 12000 ( enter the receipt amount )
224
Line Type Number ( receipt number ) Amount
1 Receipt 12345 12000
Clearing Transactions :
Cash Management Vision Operations ( USA ) Bank Statements Manual clearing
225
Enter the Account Number : 10271-17621-619
Select Find
Query ( F11)
226
Enter Receipt Number : 12345 and Query
227
Check Transaction
Receipt Status :
Receivable Vision Operations ( USA ) Receipts Receipts
Query with receipt Number : 12345
228
Status : Cleared
229
Invoice Status :
Number : 10020677 ( Enter the Invoice Number and Query ) as shown below
230
It shows as below
231
To check the Payment History Click on JSP Page
232
See the payment and Outstanding Balance details in the above
To find table information of JSP Page Select About this Page and View Option
Discounts :
Oracle Pricing Module provides Qualifiers and Modifiers Concept for the Discount.
If discount is given Invoice amount will reduced. If Survice charge is applied on the Customer, then invoice amount will
be increased.
233
Defining a Qualifier :
Before going to define a Qualifier we should run program called : Build Attribute Mapping Rules
Oracle Pricing Manager
View Request Submit New Request Single Request OK
Name : Build Attribute Mapping Rules
Submit and refresh.
Navigation :
Oracle Pricing Manager Qualifier Setup
Name : REG10_QUALIFY_GROUP
Description : as desired
Context Attribute Operator Value From Start Date End Date
Customer Customer Name = REG10_CUST ( name of the customer ) 07-JUN-2011 07-JUL-2011
Start Date Must be before the End Date.
Save the above .
234
Qualifier Header information will be stored into the table called : QP_QUALIFIER_RULES
Qualifier Line information will be stored into the table called : QP_QUALIFIERS
Defining a Modifier :
Oracle Pricing Manager Modifiers Modifier Setup
235
Select OK OK
236
Modifier No Level Modifier Type Start Date End Date
Auto Generated Order ( i.e Header Level ) Discount 07-JUN-2011 07-JU-2011
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
237
Apps Reports Using some Functional Concepts :
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
Responsibility : Inventory Vision Operations ( USA )
Form : Item Master Item
238
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 :
239
Choose No Template ( as desired ) Finish
240
The above Report with Parameter
:P_ORG_CODE is a parameter .
241
Application name
Steps :
Application Developer Application Database Table
Query for Table : org_organization_definitions
if not getting the same is available in the table called : MTL_PARAMETERS
Get the Application Name : Inventory
Other Details can also be obtained
Creation of Table Value Set
Application Developer Application Validation Set
User Profiles
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:
242
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.
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 :
243
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 )
244
2) Application
3) Responsibility
4) User
5) Server
6) Organization
AP AR GL Application Level
Navigation :
System Administrator Profile System
245
Eg :
246
In the form change of default value of Primary filed as per the following requirement.
Level Value
Site Box
Application ( INV ) Dozen
Responsibility KG
User Each
Steps :
247
Query for the profile Profile Name ( F11 ) INV% ( ctrl + F11 )
Take the INV: Default Primary Unit of Measure into the notepad
1) Customization at Site level
248
Select Site
Profile = INV: Default Primary Unit of Measure ( paste, which was copied into the notepad )
249
Save and close the form
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
3) Responsibility level
250
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
251
Eg 2 :
Default of Item Status in the Master Item Form at different levels
Item Status
Level Value
Site Prod
Application ( INV ) Lease
Responsibility Engineer
User Active
1) fnd_profile_options
2) fnd_profile_values
Flex Fields :
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 :
VendorId VendorName Cdate TotalPO
Data Model
Query:
254
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:
Go to before report trigger and write the following code
function BeforeReport return boolean is
begin
srw.user_exit('FND SRWINIT' );
255
-- 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
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);
256
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
257
FND_FILE.PUT_LINE(Fnd_File.Output, 'Vendor name has been updated successfully '||
V_Name );
exception
when NO_DATA_FOUND then
FND_FILE.PUT_LINE(Fnd_File.Output, 'Vendor ID does not exits '|| V_Id );
when TOO_MANY_ROWS then
FND_FILE.PUT_LINE(Fnd_File.Output, 'Duplicate Vendor Found '|| V_Id );
when OTHERS then
FND_FILE.PUT_LINE(Fnd_File.Output, 'Other Errors ');
end;
5) create executable method as PL/SQL Stored Procedure
2) Create concurrent program as PL/SQL Stored Procedure
Out put format must be in text format only for PL/SQL Stored Procedure
Parameters
While supplying parameters Token is not necessary, as the parameters will be maintained in
sequential order by the stored procedures.
Input:
Vendor Id : 1
Vendor Name : DELL India Pvt. Ltd.
Important Questions
1) what is a profile
2) Which level most of the profile will be used
3) What are the important profiles
4) Tell some important profiles
5) How to get profiles from the back end.
Predefined User Profile Options
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.
258
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.
CUSTOMIZATION OF A FORM
Vendor Id
Vendor Name
Cdate
259
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 :
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
260
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
1 as desired optional SUPPFUNCT1 ( paste )
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 ( WIP : Work In Progress ) and create the table
2) Grants to APPS
3) Create Synonym
2) Register table
Using buil-in package AD_DD we can register the table
1) New Table
connect to Schema ( WIP : Work In Progress ) 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('WIP', 'ITEM_TEST', 'T');
Register the columns
SQL> EXEC AD_DD.REGISTER_COLUMN('WIP','ITEM_TEST','ITEM',1,'VARCHAR2',100,'N','Y');
SQL> EXEC AD_DD.REGISTER_COLUMN('WIP','ITEM_TEST','ITEM_DESC',2,'VARCHAR2',100,'N','Y');
SQL> EXEC AD_DD.REGISTER_COLUMN('WIP','ITEM_TEST','ITEM_DATE',3,'DATE',11,'N','Y');
SQL> EXEC AD_DD.REGISTER_COLUMN('WIP','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 :
266
Eg :
Table Name : ITEM_WIP
create table ITEM_WIP( item varchar2(100),
itemdesc varchar2(100),
itemcost number(9),
itemdate date,
po_item varchar2(1),
inv_item varchar2(1),
wip_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)
);
Requirement :
Item :
Item Desc :
Item Cost :
Item Date :
Fields Mapping
Item item
Item Desc itemdesc
Item Cost itemcost
Item Date itemdate
Inventory Item inv_item
Purchase Item po_item
267
All steps are same as previous example.
APP_STANDARD.EVENT('WHEN-NEW-FORM-INSTANCE');
fnd_flex.event('WHEN-NEW-ITEM-INSTANCE');
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 :
271
Properties Tab :
Form Tab :
272
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 ).
4) attach to menu
273
Call the function from following form
274
The read only report shows as below. Hence the records can not be modified
275
SUB MENU CREATION
In the following + symbol is sub menu and with out + symbol it is a form
276
Eg: creation of sub menus in the following menu form
277
Application developer Application menu
VENFUN1
SITESFUN1
Copy the user menu name value (FUNCTIONS) and attach to main menu as submenu
278
Attaching System Administrator menu as sub menu of the above
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
279
Hiding a form :
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 )
CUSTOMIZATION OF A FORM
280
There are two ways to customize the form
1) Using Custom.pll used till 11.5.8 version
2) Forms personalization 11.5.9, 11.5.10.2, R12 - 12.0.0, 12.1.1, 12.1.1, 12.1.2 ( since last 6 years )
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
Eg1:
Order Management Super User, Vision Operations ( USA ) Orders, Returns Sales Orders
281
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
282
Seq : 1
Description : Changing label Order Number to Claim Number
Level : Function
Check Enabled
Target Event : WHEN-NEW-FORM-INSTANCE
Processing Mode : Both
Level : Responsibility
Value : Order Management Super User, Vision Operations (USA)
Actions ( Tab )
Seq : 1
Type : property
Language : All
Object Type : Item
Target Object : ORDER.ORDER_NUMBER ( Block Name . Column Name )
283
Property Name : PROMPT_TEXT
Value : Claim Number ( It is new Label, which would like to set )
Select Validate
Select Apply Now
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
284
Seq : 1
Description : Hiding the description field
Conditions :
Trigger Event : WHEN-NEW-FROM-INSTANCE
Processing Mode : Both
( Only in Enter Query Mode i.e F11 )
( Not in Enter Query Mode )
Level : Responsibility
Actions :
285
Seq : 1
Type : Property
Language : All ( Check ) Enabled
Object Type : item
Target Object : PO_HEADERS.COMMENTS ( name column in the database table, it can be obtained by examine )
Property Name : DISPLAYED
Value : false ( true : field will be enabled, false : disabled )
Select Apply Now
Save and call the form
To enable the same field
call the form
To remove the specific personalization
Help Diagnostics Custom Code Personalize deselect the Enable option ( check box )
To remove all personalizations on the form
Help Diagnostics Custom Code Off
To get back all personalizations
Help Diagnostics Custom Code Normal.
286
Requirement :
Making as Mandatory / Optional Fields
In the following form Source filed as Optional field
Block : LINES
Field : SOURCE_TYPE_DISP
Help Diagnostics Custom Code Personalize
287
Seq :1
Description : Making Source Field as Optional Field
Level : function
Target Instance : WHEN-NEW-FORM-INSTANCE
Processing Mode : Both
Level : Responsibility
Actions (tab)
Type : Property
Object Type : Item
Target Object : LINES.SOURCE_TYPE_DISP
Property Name : REQUIRED
Value : false
Requirement :
When the cursor enter to into lines block Description field enabled
Conditions :
288
Seq : 1
Description : Displaying the description field
Trigger Even : WHEN-NEW-BLOCK-INSTANCE
Target Object : PO_LINES
Action :
Seq : 1
Type : Property
Object type : item
Target Object : PO_HEADERS.COMMENTS
Property Name : displayed
Value : true
Save and call the from
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_NAEM
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 :
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;
289
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
Value : Order Management Super User, Vision Operations (USA)
Actions ( tab )
290
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
Requirement :
291
When the cursor entered into the Ship-To field, Bill–To field should become null.
Conditions :
Seq : 1
Description : Null values
Trigger Even : WHEN-NEW-ITEM-INSTANCE
Target Object : PO_HEADERS.SHIP_TO_LOCATION
Action :
Seq : 1
Type : Property
Object type : item
Target Object : PO_HEADERS.BILL_TO_LOCATION
Property Name : ENABLED
Value : false
Save and call the from
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
Special triggers:
Every menu option of Oracle Application forms, will have trigger
Special Triggers : Menu Options
Special1, Special2, Special3, …………………….. Special45.
Tools Menu : Special1, Special2, Special3, …………………….. Special15
Inquiry Menu / Reports Menu : Special16, Special17, …………………….. Special30.
292
Action Menu : Special41, Special17, …………………….. Special45.
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
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.
1) Form Name
2) Block Name
3) Field Name
4) What customization
5) When customization will be executed
Eg: When the form is opened : WHEN-NEW-FORM-INSTANCE
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.
295
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.
Execute
Custom ( package body )
Go to vent procedure and write the following code
fnd_function.execute(FUNCTION_NAME=>'PO_POXPOEPO',
OPEN_FLAG=>'Y',
SESSION_FLAG=>'Y' );
end if;
end if;
When we are working in the project all the Users will be connected to
296
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
INTERFACES
Interface is Connector or Bridge between two Applications.
It will be to transfer data from Legacy Applications to Oracle Application and vice-versa
Legacy Systems could be SAP, Main Frame, SIEBEL, JD Edwerds, BANN, People Soft
Interface is one of the Program which will be used to transfer the data from Oracle
database tables in to flat file (or)
Flat files into Database tables
1)Inbound Interface
2)Outbound Interface
Inbound Interface :
Inbound Interface will be 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 will be used to extract the data from oracle Database tables into
the flat files.
While developing the outbound Interface we will use UTL_File to Extract the data.
While Developing the Inbound interface we will use SQL * loader to import the data
into base taqbles.
UTL_FILE Package :
297
==================
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 working for file to table we will use SQl *Loader to transfer from table to file we have no alternative
we have to use UTL_FILE.
1)Develop the PL/SQL Program (Either Procedure or Package) with the following statements
INBOUND INTERFACE
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.
Requirement :
Loading Data From Flat File into EMP base table ( with validations )
Hierarchy
C:\ EMP-INTERFACE
+ DATA
<EMP_TEST.TXT>
<EMP_TEST.ctl>
+ CODE
<EMP_TEST.SQL>
===============================================================================
Contents of Data file (<EMP_TEST.TXT> )
==================================================================================
301
===================================================================================
Contents of Table Script <EMP_TEST.SQL>
302
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
Purpose of staging table if flat file structure is not similar to the base table, then we need create a table, which is
similar to the structure of the Flat File, called as staging table.
Eg :
Flat file with the following data
Empno, ename, deptno, joining date, sal
Table with the following columns
Empno, ename, deptno, joining date, sal, Comm, Tax, project
Here comm and tax columns may be conditional data columns
Eg : if sal < 2000 Comm = 250
if sal 2000 to 5000 Comm = 450
if sal 5000 to 10000 comm = 600
if sal > 10000 comm. = 800
=========================
if sal < 2000 Tax = NIL
if sal 2000 to 5000 Tax = 12% of Sal
if sal 5000 to 10000 Tax = 15% of Sal
if sal > 10000 Tax = 20% of Sal
The control file can not be developed with the controlling statement as above. Hence we can not use directly control file
to transfer data from Flat file to oracle applications base 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
303
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 builtin 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
3) Develop the PL/SQL procedure and register
4) Submit standard program
Steps in development of PL/SQL program
1) Declare a Cursor
2) Statements to validate the data
3) Insert Statement to insert data into the table
Flat File
XX_GL_TEMP
Error Tables PL/SQL Program ( Procedure / Package )
GL_INTERFACE
304
Error tables/ Columns/Reports Standard Program
GL_JE_HEADERS
GL_JE_LINES
GL_JE_BATCEHS
305
Develop the Program to Transfer Supplier Purchase orders datainto file
Supplier No from
Supplier No To
PoNumber,POtype,Amount,Cdate,No,Name,Site
Validations:
5) Interface will be used to load the current data. 5) Conversions are used to load old or historical data.
306
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
Request Group
SQL * LOADER
STANDARD PROGRAM
User
SRS
307
OM - AR - GL
Order Management ( OM ): Account Receivable ( AR )
PO – Transaction is a Supplier Invoice.
Sales Orders
Transactions
Entered ( customer Invoice )
Booked Receipts
Remittance
Pick Released ( Deposit in Bank )
Ship Confirm
Transaction to GL
Auto Invoice
General Ledger ( GL ) :
GL_INTERFACE
GL_JE_HEADERS
GL_JE_LINES
GL_JE_BATCEHS
308
GL_BALANCES
XML Publisher
Disadvantages of RDF Reports :
1) Look and Feel is very Poor
2) Complexity in Layout Designing
3) Multiple Outputs Can not be Generated
4) Sending Report as E-Mail is a Static.
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
309
1) Automatically 2) Manually
1) Automatically
Open MS-WORD
Check for the Template Builder ( when the XML Publisher is installed this Option will be Enabled
Automatically.
Check for the Template Builder Tool Bar
View Tools Bars Template Builder ( Enable )
When it is Enabled it shows the following Tools on the Tool Bar
Data Insert Preview Tools Help
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 fro loop Beg before the first loop and place for loop end after the last filed.
310
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
Note : To Display the labels on every Page Select the Header Row Rt. Click Table Properties Row
Select Repeat as Header Row at the top of Each page
Eg :
Total Users : 16
SELECT USER_ID,
USER_NAME,
311
CREATION_DATE
FROM FND_USER
8) Go to preview and select the required option such as HTML, PDF, EXCEL, RTF
Take formula column in the report at group level and set the following properties
Properties :
Value if Null : 0
PL/SQL Formula :
insert the S.No filed in the table cell inside the for loop.
Steps :
SELECT USER_ID,
312
USER_NAME,
CREATION_DATE
FROM FND_USER
Create Summary Column for Total Users;
Properties :
Function : count
Source : user_id
2) Develop the .rtf and save it.
Steps :
Select Apply
Select Template
Create Template
Type : RTF
Language : English
Territory : united states
Click on Apply
Result shows
Responsibility
SRS
313
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
Required tables
ORGNAME from the table : ORG_ORGANIZATION_DEFINITIONS
Column : ORGANIZATION_NAME
ITEMNAME from the table : MTL_SYSTEM_ITEMS_B
Column : SEGMENT1
314
DESCRIPTION from the table : MTL_SYSTEM_ITEMS_B
Column : DESCRIPTION
UOM from table : MTL_SYSTEM_ITEMS_B
Column : PRIMARY_UNIT_OF_MEASURE
:P_ORG_CODE is a parameter .
Manual Development :
Data Model :
Query as above
Save the above report :
Naming Conventions used in the Name of the Report :
CustomerName ApplicationShortName Purpose .rdf ( extension must be lower case )
Here :
MNRAOINVITEMDETAILS.rdf
Parameters :
P_CONC_REQUEST_ID ( not mandatory )
Type : Number
315
Defining ValuSet for the ORG_CODE Parameter
Using Valueset Name as Table values, to pass to above parameter.
Steps :
6) Get the table Name : org_organization_definitions
7) Column Name : ORGANIZATION_CODE
8) Column Type : VARCHAR2
9) Size of Column : 3
10) Application :
2, 3, and 4 can be obtained from TOAD
Application name
Steps :
Application Developer Application Database Table
Query for Table : org_organization_definitions
if not getting the same is available in the table called : MTL_PARAMETERS
Get the Application Name : Inventory
Other Details can also be obtained
Creation of Table Value Set
Application Developer Application Validation Set
Now Map the .rtf file and rdf report using XML Publisher.
Goto SRS window and run the Rquest.
316
Report with parameters :
Example :
( parameters )
From Vendor Id
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
Data Model
Query 1 ( Master ) :
Query 2 ( detailed )
318
Format Triggers : These are used with the layout of the reports. These triggers are used to hide / display the text
Fields. MS-Word does provide the triggers concept. Instead triggers of MS – WORD provides
conditional if statement to hide the fields.
Conditional if statement :
Syntax :
Total PO : CS_2
To hide entire record based on some condition place the end if statement after the last filed as shown below.
319
Difference between Apps 11i and R-12
PO_VENDORS AP_SUPPLIERS
PO_VENDOR_SITES_ALL AP_SUPPLIER_SITES_ALL
PO_VENDOR_CONTACTS AP_SUPPLIER_CONTACT
AP_INVOICES_ALL AP_INVOICES_ALL
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
Forms 6i Forms 10g
To generate fmx F60GEN FRMCRM
Interfaces Same
Same
OM-AR-GL
Banks
Suppliers
Customers
Employees
HZ_PARTIES
SQL * LOADER
321
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
SQL * LOADER rejects the records in the following scenario
1) Any Data Type mismatch, 2) No. of fields mismatched 3) Internal Errors, 3) Data file Format
problem . Extension of this file is ( .bad )
4)Discard File: It will be 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 )
Steps in loading the flat file data into the database table
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
322
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 )
4) Go to Command Prompt where the SQL * Loader is Installed. ( start run cmd )
D:Oracle\Proddb\8.1.7\bin\ SQLLDR Username/Password@PROD
Control = Control file Path.
Eg2: if data is available in the format ( empno, ename, deptno, salary, comm.)
323
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 )
324
-SKIP n -LOAD n to skip first n No.of records of flat file and load the next n No.of records of flat file into
the database table
D:\oracle\visdb\9.2.0\bin> SQLLDR scott/tiger@vis -SKIP n -LOAD n
-ROWS n for every n No.of records commit
FILLER to ignore the columns of the table ( it will be empty )
LOAD DATA
INFILE 'C:\MNRAO\emp.txt'
TRUNCATE INTO TABLE MyEmp1
FIELDS TERMINATED by ','
( empno, ename, salary, comm FILLER, deptno )
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),
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)
325
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
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.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 82752 bytes(64 rows)
Read buffer bytes: 1048576
328
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
329
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 )
Here name and father name are of same field but the filed terminator ( , ) presents in the data
Eg:
LOAD DATA
INFILE *
discardfile 'C:\MNRAO\test.dis'
TRUNCATE INTO TABLE ITEM_TEST
FIELDS TERMINATED by ',' OPTIONALLY ENCLOSED BY ' " '
TRAILING NULLCOLS
( Item_Code, Item_Name, Item_desc, Item_price )
begindata
ACD01, Key Board , “ Computer Peripherals, Input device”, 350
BFS03, Monitor, “Computer Peripherals, Output device”, 6500
CFG21, Chair, “ Front Office, Reception”, 2300
GHT2A, Table, “Office, Conference Hall”, 8500
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
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
331
Here token is not necessary, reason is that, these parameters will be considered sequentially, where as with oracle
reports there is no order for the parameters ( user parameters).
332