Friday 7 September 2012

Oracle Order Management Interview Questions


Oracle Applications
Oracle Order Management Interview Questions


1)      How many types of Purchase Order are there?
Ø  Standard Sales Orders.
Ø  RMA sales Order.
Ø  Back to Back Sales Orders.
Ø  Drop Ship.

2)      What happens when you enter an Order?
After you enter an order, the items on the order are validated in Oracle Inventory; a price is calculated for the items using the pricing engine; the availability of the items are checked and may be reserved; the items are then pick released and shipped to the customer

3)      Explain about Processing Constraints
Processing Constraints are a security framework where you can define rules in Oracle Order Management that validate back-end operations such as Create, Update, Delete and Cancel.
Examples:
You cannot change the Order Type in the order header once the order is Booked.
You cannot delete the line in an order once the Order Status is Closed (if the order is ship confirmed or invoice interfaced).

4)      What are Defaulting Rules?
Defaulting Rules enable you to speed up data entry by passing values in the window based on some key values you have entered.
Examples:
In the order header, Ship-To Address and Bill-To Address values default in the window once you enter the customer name or number.
If you enter an item number, the Unit of Measure and Item Description automatically default on the order line.

5)      When will you create a Drop Ship Order?
Drop shipments are used due to the following reasons:
·         Customer requires an item that is not normally stocked
·         Customer requires a large quantity of the item which is not available with you
·         It is more economical when the supplier ships directly to the customer

6)      What are Modifiers and Qualifiers?
Modifiers are discount, surcharge or special charge that may be applied to the base price and may alter the value of the item. It can be applied either at order level or at the line level.
A qualifier helps you define who is eligible for a price list or modifier. A qualifier can be a customer name, a customer class, an order type, or an order amount that can span orders.

7)      At which stage the item is moved from ware house to staging inventory?
During Pick Confirm

8)      What happens during Ship Confirm?
Ship Confirm indicate that the items are loaded onto the carrier from staging location.

9)      What is Auto invoice?
Auto Invoice is a concurrent program in Oracle Receivables that performs invoice processing at both the order and line levels. Once an order or line or set of lines is eligible for invoicing, the Invoice Interface workflow activity interfaces the data to Receivables. Oracle Order Management inserts records into the following interface tables: RA_INTERFACE_LINES and RA_INTERFACE_SALES_CREDITS.

10)  If the order or lines are On Hold, what happens during Invoice Interface?
The Invoice Interface workflow activity will complete with a status of On Hold and the order details will not be interfaced to Receivables.
11)  What are the Inventory Set ups required for Back to Back Order Processing?
Order Management Tab: Customer Orderable, Assemble to Order (ATO), Purchasing Tab: Purchasable, WIP Tab: Build in WIP, General Planning Tab: Buy

12)  What is a Pick Release?
Pick Release finds and releases eligible delivery lines that meet the release criteria, and creates move orders. You can pick release by order, trip, stop, container, delivery, warehouse, and customer, scheduled or requested dates, shipment priority, or combinations of the above criteria.

13)  What is a Pick Slip?
The Pick Slip Report prints all picking line details in a picking batch. This report is used by warehouse personnel to collect all items included in shipments.

14)  What is Ship Confirming?
Ship Confirming the item removes the existing reservations and performs the sales order issue transaction

15)  What is a trip?
A trip is an instance of a specific freight carrier departing from a particular location containing deliveries. A trip is a carrier specific and contains at least two stops, such as a stop to pick up goods and another stop to drop off goods and may include intermediate stops

16)  What is Bill of Lading?
The Bill of Lading prints all sales orders that have been confirmed from a selected delivery. This document lists the ship date, carrier, bill of lading number, delivery name, shipper, ship-to address, carrier name, waybill number, quantity and description of unpacked items, quantity and total of items packed in containers, total quantity of items, and weight/volume information defined in shipping. Any hipping notes you may have created are also printed.

17)  What are the possible reasons for Interface trip stop to complete with Error?
Few reasons may be Order is on Hold, Tax is not applied properly, On-Hand qty is not available in the Inventory, Inventory Period is not open,  Make sure Schedule Ship Date or Requested Date is within the range of order Date.

18)  Explain Internal Sales Order
Internal Sales Orders are used to transfer material from one inventory organization to other inventory or warehouse organization with the same company.
Flow of Internal Sales Order
Internal requisition in PO/INV à Requisition Approval à Run Create Internal Sales Order Concurrent Program à Run Order Import Concurrent Program in OM à Pick Item in INV thru OM à Ship Confirm à Receive Internal Order in INV / PO
Select Order Source as Internal while importing Orders. Shipping Network (Intransit or Direct) to be defined between two organizations (Source and Destination). Destination (requesting) Organization should be defined as Internal Customer with a Ship to address in Order Management. An Internal Sales Order does not generate Accounts Receivable Invoice

19)  When scheduling, the line got error "ATP Error Scheduling failed". How will you resolve?
This error may be due to Item setup in Inventory & Order Transaction Type Setup Order management. Ensure the Below Setups
Ø  Inventory à Items à Organization Items à Order Management à Check ATP should be none.
Ø  Order Management à Setup à Transaction Types à Define. In 'Shipping' sub-tab uncheck 'Auto Schedule' check box.
Ø  Profile Option 'OM: Auto Schedule' should be 'No'.

20)  What is ASN?
ASN stands for Advanced Shipment Notice. ASN is transmitted via Electronic Data Interchange (EDI) from a supplier to let the receiving organization know that a shipment is coming. The ASN contains details including shipment date, time, and identification number, packing slip data, freight information, and item detail including cumulative received quantities, purchase order number, and returnable container information.

Thursday 6 September 2012

Oralce D2K Questions and Answers


1.What is NOCOPY?
By default the IN parameter is passed by reference and the OUT and IN OUT parameters are passed by value.
NOCOPY:  is a compiles hint that can be used with OUT and IN OUT parameter to request to pass by reference. This improves the performance with OUT and INOUT parameters.
2.REPORT TYPES
A) Tabular Report                            B) Group Left Report
C) Group above Report                     D) Form like report
E) Matrix Report                              F) Multi Media Report
G) Mailing Label Report                     H) OLE Report.
3.ANCHOR
Anchors are used to determine the vertical and horizontal positioning of a child object relative to its parent object. The end of the anchor should be attached to the parent object.
A) Parent Object                              B) Child Object
Since the size of the some layout objects may change when the report runs (When the data is actually fetched), anchors need to be defined to make the appearance of the object
An Anchor defines the relative position of an object to the object to which if this anchored.
* Symbol is By pressing the shift key Anchor can be moved.
Anchor Properties:
A) Child Edge percent on child edge type        B) Child Object Name
C) Collapse Horizontally                              D) Collapse vertically
E) Comments                                           F) Name
* Two child objects can be related to one parent object by an Anchor.
4.User Exits :
A user exit is: - Program that can be written and linked into the report builder executable or user exit DLL files.
User exits are building when ever the control needs to be passed from the report builder to a program, which performs some function and then control returns to the Report Builder.
Types of user exits:-
·         Oracle Pre-Complier user exits.
·         OCI (Oracle Call Interface user exits)
·         Non – Oracle user exits.
User exits can perform the following tasks.
·         Perform complex data manipulation.
·         Pass data to report builder from OS text files.
·         Support PL/SQL blocks.
·         Control real time devices are printer or robot.
5.Types of Triggers in Reports :-
* Report Triggers                   * Data Triggers                  * Layout Triggers

v  Report Triggers:-

·         After Parameter form Trigger.
·         After Report Trigger
·         Before parameter form Trigger
·         Before Report Trigger.
·         Between Pages Trigger
+ Firing Sequence
Ø  Before Parameter form Trigger
Ø  A fire before the runtime parameter form is displayed.
Ø  The parameter values can be accessed and changed.
Ø             After Parameter form Trigger.
Ø  Fires after the runtime parameter form is displayed.
Ø  The parameters can be accessed and their values can be checked.
Ø  Before Report Trigger
Ø  Fires before the reports is executed but after the queries are passed and data is fetched.
Ø  Between Pages Trigger.
Ø  Fires between each page of the report are formatted, except the very first pages.
Ø  This is used for customized page formatting.
Ø  After Report Trigger
Ø  Fires after exiting from the run time premier or after report output is sent to a specified destination. (File, Printer, Mai lid etc….)
Ø  This is used to clean up any initial processing that was done such as deleting the tables.
Ø  This Trigger always fires irrespective of success or failure of the report.

v  DATA TRIGGERS:

Ø  Ref Cursor Query.
Ø  This uses PL/SQL to fetch data for the report.
Ø  In this a PL/SQL function need to be specified to return a cursor value from a cursor variable.
Ø  Group Filter:
Ø  This is PL/SQL function that determines which records to be included in a group in the property is PL/SQL.
Ø  The function must return a BOOLEAN value.
True …….. Includes the current record in the report.
       False ……. Excludes the current record from the report.
Ø       Formula
Ø  These are Pl/SQL functions that populate formula or place holder columns
Ø  Validation Trigger 
Ø  These are also PL/SQL functions that are executed when parameter values are specified on the command line and when the runtime parameter form is accepted.
Ø  Are also used to validate the initial value property of the parameter.

v  Layout Triggers

Ø  Format Trigger.
Ø  These are PL/SQL functions executed before the object is formatted.
Ø  Used to dynamically change the formatting attributes of the object.
Ø  Action Trigger
Ø  These are Pl/SQL procedures executed when a button is selected in the run time previener.
Ø  This can be used to dynamically call another report or execute any other PL/SQL.
6.Formula Column
It performs a user-defined computation on another columns data, including Place-holder columns.
Formulas are PL/SQL functions that populate formula or place holder columns.
Cannot be used to populate parameter values.
7.Summary Column
·         Performs a computation on another columns data like sum, average, count, minimum, maximum, %, total.
Ø  For group reports, the report wizard and data wizard create ‘n’ summary fields in the data model for each summary column that is defined.
---à One at each group level above the column being summarized.
---à One at the report level.
8.Place Holder Column 
·         A Place holder column is a column for which, the data type and value can be set dynamically (Programmatically)
·         The value can be set for a place holder column in the following places.
·         Before report trigger if the place holder is a report level column.
·         Report level formula column, if the place holder is a report level column.
·         A formula in the place holders group below it (The value is set once for each record of the group)
9.Repeating Frame 
·         Repeating frame surrounds all of the fields that are created for a groups columns.
·         Repeating frame prints once for each record of the group.
·         For frames and repeating frames, the property elasticity defines whether the size of the frame or repeating frame should with the objects inside of it at runtime.
10. Frame
Surrounds the objects and protect them from being over written or pushed by other objects.
11. System Parameters in Reports
* Background                                * Copies                           * Currency
* Decimal                                     * Desformat                      * Desname
* Destype                                     * Mode                             * Orientation
* Print Job                                    * Thousands.
12. Data Link
·         Data links relate the results of multiple queries.
·         A data link (Parent – Child Relation Ship) causes the child query to be executed once for each instance of its parent group.
13. In which tables FF are stored?
A)               FND – ID – FLEXS
B)               FND-ID-FLEX-STRUCTURES
14. Advantages of stored functions and procedures
Ø  Applications can be modularized.
Ø           Easy maintenance.
·         Rowtines can be modified online without interfering other users.
·         One routine can be modified to effect multiple applications.
Ø  Improved data security and integrity.
·         Indirect access to database objects can be controlled from non privileged users with security privileges.
Ø  Improved performance.
·         Reparsing for multiple users can be avoided by exploiting the shared SQL area.
·         PL/SQL parsing at run-time can be avoided by pursing at compile time.
·         Number of calls to the database can be reduced and network traffic decreased by bundling commands.
Ø  Improved code clarity.
·         The clarity of code increases by using appropriate identifier names to describe the action of the routines which reduces the need for comments.
15. Difference between a function and a procedure
            Functions                                                       Procedures
ü  Invoke as a part of an expression.       Execute as a PL/SQL statement.
ü  Must contain a RETURN clause             Do not contain a RETURN Clause.
in the header                                        in the header
ü  Must return a single value.                   Can return none, one or many values.
ü  Must contain at fast one RETURN          Can contain a RETURN Statement.      Statement.
ü  Do not contain OUT and INOUT             Can contain IN, Out and IN OUT
IN OUT parameters.                                        Parameters.
16. About Cursors
Ø  Oracle server uses some private work areas to execute SQL statements and to store processing information.
Ø  By using PL/SQL cursors these private SQL areas can be named and the stored information can be accessed.
Two Types:
v  Implicit Cursors
·         Implicit cursors are declared by PL/SQL implicitly for all DML and PL/SQL select statements, including queries that return only one row.
·         Oracle Server implicitly opens a cursor to process each SQL statement not associated with on explicitly declared cursor.
·         The most recent implicit cursor can be returned as the SQL cursor.
v  Explicit Cursors
·         For queries that return more than one row, explicit cursors are declared and named by the programmes and manipulated through specific statements in the block’s executable actions.
·         Explicit cursors are used to individually process each row returned by a multiple-row SELECT statement.
·         The set of rows returned by a multiple – row query is called as active set.
Declare       Open        Fetch            Empty?         Close

 

Cursor Attributes:-

Attribute             Type                                    Description
% is open           Boolean      Evaluates to TRUE if the cursor is open.
% not found        Boolean      Evaluates to TRUE if the most recent fetch
                                                  doesn’t return a row.
% found                      Boolean      Evaluate to TRUE if the most recent fetch
returns a row. Complement of % not found.
% Row Count     Number      Evaluates the total number of rows returned so far.

Parameterized Cursors:-

·         Parameters can be passed to the cursor in a cursor for loop.
·         It allow to open and close an explicit cursor several times in a block, returning a different active set on each occasion for each execution, the previous cursor is closed and reopened with a new set of parameters.
·         Sizes should not be mentioned for the data types of parameters the parameters names are for references in the query expression of the cursor.
17. Confined Mode:-
·         If it is on, child objects cannot be moved outside their enclosing parent objects.
·         If it is off child objects can be moved out sides their enclosing parent objects.

Flex Mode:-

·         If it is on, parent borders stretch when child objects are moved against them.
·         If it is off, parent borders remain fixed when child objects are moved against them.
18. Parameters
·         A parameter is a variable whose value can be set at runtime (from the run time parameter      of the command line).
·         User parameters are created by the user and system parameters are created by Report Builder.
·         System parameters cannot be renamed or deleted.
Bind Parameters (Variables)
·         Bind references (or Variables) are used to replace a single value in SQL or PL/SQL, such as a character string, number or date.
·         Bind references may be used to replace expressions in SELECT, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY and  START WITH clauses of queries.
·         Bind references cannot be referenced in FROM clauses.
·         Bind variables can be referenced by entering a colon (:) followed immediately by the column or parameter name.
·         If the parameter / column is not created before making a bind reference, report builder will create a parameter.
Lexical Parameters (Variables)
·         Lexical references are place holders for text that is embedded in a SELECT statement.
·         Lexical Variables can replace the clauses appearing after SLECT, FROM, WHERE, GROUP BY, ORDER BY, HAVING, CONNECT BY, and  START WITH.
19. What is % Row type
·         % Row types is used to declare a record based on a collection of columns in a database table or view.
·         The fields in the record take their names and data types from the columns of the table or view.
·         The record can also store an entire row of data fetched from a cursor or cursor variable.
·         % Row type should be prefixed with the database table.
Ex: Declare
·         Emp_record   employee 5%  row type.
·         Then emp_record will have a structure consisting of all the fields each representing a column in the employees table.
20. What is a Ref Cursor?
·         Oracle server uses unnamed memory spaces to store data used in implicit cursors.
·         Ref cursors are used to define a cursor variable, which will point to that memory space and can be used like pointers in SQL ‘S’.

Script to update salespersons customer site wise in oracle apps R12

SELECT * FROM HZ_PARTIES WHERE PARTY_NAME LIKE 'DEENA VISION%'; SELECT * FROM HZ_CUST_ACCOUNTS_ALL WHERE PARTY_ID =94043 ; SE...