Wednesday, January 4, 2017

Oracle apps interview questions - 2

Oracle apps  interview questions - 2

1)    What is ERP? A packaged business software system that lets a company automate and integrate the majority of its business pro cesses; share common data and practices across the enterprise; [and] produce and access information in a real-time environment.



2)    Tell me some thing about SQL-LOADER? Sql * loader is a bulk loader utility used for moving data from external files into the oracle database.
Sql * loader supports various load formats, selective loading, and multi-tables loads.

Conventional: The conventional path loader essentially loads the data by using standard ‘insert’ statement.
Direct: The direct path loader (direct = true) by possess of logic involved with that, and loads directly in to the oracle data files.
EX:-
My data.csv file
                 1001, “scott tiger”,1000,40
                 1002,”oracleapps4u”,2345,50
Load data
Infile ‘c:\data\mydata.csv’
Into table emp
Fields terminated by “,” optionally enclosed by ‘”’
(empno, empname,sal,deptno)
>sqlldr scott/tiger@vis
control=loader.ctl  log= gvlog.log  bad=gvbad.bad  discard=gvdis.dsc .


3)    How to dump data from pl/sql block to flat files? Using utl_file package, we can dump data from pl/sql block to flat file.
PRE-REQUIREMENTS for UTL_FILE is specify the accessible directories for theUTL_FILE function in the initialization file (INIT.ORA) Using the UTL_FILE_DIR parameters.
       Ex: UTL_FILE_DIR = <Directory name>

EX:- remember to update INITSID.ORA, utl_file_dir = ‘c:\oradata’
Declare
Fp utl_file.file_type;
Begin
Fp := utl_file.fopen(c:\oradata’,tab1.txt’,’w’);
Utl_file.putf(fp,’%s %s \n ‘text field’, 55);
Utl_file.fclose(fp);
End;
4)    What is SET-OF-BOOKS? Collection of Chat of Accounts and Currency and Calendars is called SOB


5)    What is the interface Table? Interface Table is a table which is used as medium for transfer of data between two systems.


6)    What is invoice?  A request sent for payment


7)    What is INBOUND and OUT BOUND? (Different types of interfaces)
Inbound Interface:
For inbound interfaces, where these products are the destination, interface tables as well as supporting validation, processing, and maintenance programs are provided.
      Outbound Interface:
For outbound interfaces, where these products are the source, database views are provided and the destination application should provide the validation, processing, and maintenance programs.

8)    What are the Base tables in the AR? Check the following blog post for AR base tables: http://oracleapps4u.blogspot.com/2011/07/oracle-apps-account-receivable-tables.html 

9)    What are the interface tables of the customer conversion? Check the following blog post for interface tables in customer conversion:http://oracleapps4u.blogspot.com/2011/07/interfaces-and-conversions-in-oracle.html

10)  What is the procedure to develop an interface?           
·         First we will get the Requirement document.
·         We will create control file based on that plot file.
·         Then the control files which loads the data into staging tables.
·         Through pl/sql programs we will mapping and validate the data and then dump into the interface tables.
·         Through the standard programs we will push the data from interface tables to Base tables.
11)  What are the validations in customer interface?
·         customer name : The same customer reference can’t have different customer names          with in this table HZ_PARTIES.PARTY_NAME
·         customer numbermust be null if your r using automatic customer numbering, must exit if you are not using automatic customer numbering. This value much be unique with in HZ_PARTIES
·         customer status : must be ‘A’ for active or ‘I’ for inactive
                                                HZ_PARTIES_STATUS
·         bank account num or bank account currency code :
                             if the bank a/c already exist do not enter a value
                             if the bank a/c does not exist  you must enter a value
·         bank a/c name : it must exist in AP_BANK_ACCOUNTS or if it does not exist values must exist for BANK_A/C_CURRENCY_CODE
                                                                        BANK_A/C_NUM
                                                                        BANK_NAME
                                                                        BANK_BRANCH_NAME
                             Note : every interface table has two error msg
1)   Error code.
2)   Error msg.
12) How to submit a concurrent program from sql or pl/sql code?
              FND_REQUEST.SUBMIT_REQUEST (‘PO’,’EXECUTABLE NAME’,,,, PARAMETERS)
13)  List out some APIs?
FND_FILE.PUTLINE(FND_FILE.LOG)
FND_FILE.PUTLINE(FND_FILE.OUTPUT)
14) What are profile options?
It is some set of options based on which the Functional and Technical behavior of Oracle Applications depends.
             
EX: - I want to assign the user3 responsibility to p4 printer then
                         System Administrator > Profile àSystem
                                    (FND_PROFILE_OPTIONS) 
    15) What are the User PARAMETERS in the Reports?
·         P_CONC_REQUEST_ID
·         P_FLEX_VALUE
    16)  What are FND USER EXITS in oracle reports?
                   
Check the following blog post for user exits in oracle reports:
    17)  What are the two parameters that are mandatory for pl/sql type concurrent prog?         
          Procedure/Function (ERRBUF OUT, RETCODE OUT…)
    ERRBUF:    Used to write the error message to log or request file.
    RETCODE:  Populate log request file with program submission details info.
    18) What are different validation types in value sets?
1) None ------validation is minimal.
2) Independent  ------ input must exist on previously defined list of values
3) Dependent------ input is checked against a subset of values based on a
prior value.
3) Table ----- input is checked against values in an application table
4) Special ------values set uses a flex field itself.
5) Pair ------ two flex fields together specify a range of valid values.
6) Translatable independent ----- input must exist on previously defined list
Of values; translated values can be used.
7) Translatable dependent  ------ input is checked against a subset of values
Based on a prior values; translated value can be used. 
19) What is the sequence of execution of different clause in a select statement?                                                      Check out the following blog post for detailed explanation: http://oracleapps4u.blogspot.com/2011/08/sequence-of-sql-statement-processed.html
20)  Form development process?
1.      open template form
2.      Save as <your form>.fmb
3.      Change the form module name as form name.
4.      Delete the default blocks, window, and canvas
5.      Create a window.
6.      Assign the window property class to window
7.      Create a canvas   (subclass info)
8.      Assign canvas property class to the canvas
9.      assign the window to the canvas and canvas to the window
10.  Create a data block       
11.  Modify the form level properties. (sub class item à Text item)
12.  Modify the app_custom package in the program unit.
13.  Modify the pre-form trigger (form level)
14.  Modify the module level properties ((console window, First navigation
15.  Save and compile the form.
16.  Place the .fmx in the server directory.
17.  Register in the AOL
                                    APPLICATION -> FORM
                                    APPLICATION -> FUNCTION
                                    APPLICATION -> MENU
21)  How to customize the Reports?
·         Identify the Short name of the report and the module in which we have to place the customization
§         Ex: - if you want to customize in the AR module, path is
Appl top\ar\11.5.0\reports\US\ .rdf
·         FTP back the file to the local system in Binary mode
·         Open the .rdf file in Report builder and change the name of the module.
·         Open the data model and Layout mode, perform all the required changes.
·         Go to report wizard and select the newly created columns.
·         Compile it. Save it.
·         Then Register in the AOL          Concurrent > executable.
Concurrent > program.
·         Go to system administrator Security > Responsibility > request
·         Add and assign a concurrent program to a request group


22)  List some report names in oracle apps?
1)   OPEN-DEBIT MEMO REPORT?
This report shows all the open-debit memo transactions, based oncustomer number and dates.
                   Columns: type, customer_no, trx_no, amt_due, remaining.
                        Parameter: type, customer, from_date, to_date.
2)   GENERATING POSITIVE PAY FILE FOR BANK REPORT?
Basically this report generates a flat file of all the payments in order to send in to the bank.
3)   UPDATE POSITIVE PAY CHECKS REPORT?
This report which updates the data into the (AP) account payables system from the plot file, the file which is sent by bank
4)   UPDATE POSITIVEPAY OUT STANDING CHECKS?
This report which shows the out standing checks  
5)   CUSTOMER PAYMENT DETAILS REPORT?
This report shows each customer original amount, amount pay and due amount based on transaction type (books, pens)

Transaction types in AR
Credit memo transaction types
Invoice, debit memo, and charge back transaction types
Commitment transaction types

23)  HOW DO YOU RECTIFY THE ERRORS IN INTERFACE TABLES?
Depending on the naming convention used, errors appear in either alphabetical order or by error code number.


24) What are ‘WHO’ Columns in oracle apps tables?
        1) Created by
        2) Creation date
        3) Last _updated by
        4) last_update_date
        5) last_update_value
25) What are FLEX FIELDS?
            Flexfields are used to capture the additional business information.
                DFF
                    KFF
Additional
Unique Info, Mandatory
Captured in attribute prefixed columns
Segment prefixed
Not reported on standard reports
Is reported on standard reports
To provide expansion space on your form With the help of []. [] Represents descriptive Flex field.

FLEX FILED : DESCRIPTIVE : REGIGSTER
Used for entering and displaying key information
For example Oracle General uses a key Flex field called Accounting Flex field to
Uniquely identifies a general account.
FLEX FILED : KEY : REGIGSTER
  
Oracle Applications KEY FLEX FIELDS
1) GL: ACCOUNTING
2) AR: SALES TAX LOCATION, TERRITORY,
3) AP: BANK DETAILS, COST ALLOCATION, PEOPLE GROUP
Oracle Applications DESCRIPTIVE FLEX FIELDS (Partial)
1) GL: daily rates
2) AR: credit history, information
     3) PA: bank branch, payment terms, site address,  
26)  What are different concurrent requests?
 a) Single request:    this allows you to submit an individual request.
 b) Request set:       this allows you to submit a pre-defined set of requests.
27)  What are the activities in Sys Admin Module?
            a) Define Custom Users, b) Define Login Users, c) Register oracle DB users,
            d) Define Concurrent Programs, e) Register Concurrent Executable, 
            f) Setting Profile Option Values, g) Define Request Types.
28) What activities can be performed in AOL?
            a) Registering tables. b) Registering views c) Registering db sequences
            d) Registering profile options e) Registering lookups and lookup codes
            f) Registering forms g) Registering Form and Non-Form functions 
            i) Registering menus and sub-menus j) Registering DFF and KFF k) Libraries 
29) What are the type Models in the system parameters of the report?
     1) Bit map       2) Character mode
30) What is SRW Package?(Sql Report Writer): The Report builder Built in package know as SRW Package This package extends reports ,Control report execution, output message at runtime, Initialize layout fields, Perform  DDL statements  used to create or Drop  temporary table,  Call User Exist, to format width of the columns, to page break the column, to set the colors 


Ex: SRW.DO_SQL, It’s like DDL command, we can create table, views , etc.,
          SRW.SET_FIELD_NUM
SRW. SET_FILED_CHAR
          SRW. SET FILED _DATE
         
Check the blog post for more details on SRW Package:http://oracleapps4u.blogspot.com/search/label/SRW%20Package

   31)  Difference between Bind and Lexical parameters?
BIND VARIABLE:
-- are used to replace a single value in sql, pl/sql
-- Bind variable may be used to replace expressions in select, where, group, order
    by, having, connect by, start with cause of queries.
-- Bind reference may not be referenced in FROM clause (or) in place of
    reserved words or clauses.
LEXICAL REFERENCE:
-- You can use lexical reference to replace the clauses appearing AFTER select,
    from, group by, having, connect by, start with.
-- You can’t make lexical reference in a pl/sql statement.


32)  Matrix Report: Simple, Group above, Nested              
Simple Matrix Report : 4 groups
                            1. Cross Product Group
                            2. Row and Column Group
                            3. Cell Group
                            4. Cell column is the source of a cross product summary that
                           Becomes the cell content.
Frames:
1. Repeating frame for rows (down direction)
                    2. Repeating frame for columns (Across)
                    3. Matrix object the intersection of the two repeating frames

33)  What is Flex mode and Confine mode?                                                       
Confine mode:
On:  child objects cannot be moved outside their enclosing parent objects.
          Off:  child objects can be moved outside their enclosing parent objects.
Flex mode:
          On:  parent borders "stretch" when child objects are moved against them.
          Off:  parent borders remain fixed when child objects are moved against them.

34) What is Place holder Column?                                                  
A placeholder is a column is an empty container at design time. The placeholder can hold a value at run time has been calculated and placed in to It by pl/sql code from anther object. You can set the value of a placeholder column is in a Before Report trigger. Store a Temporary value for future reference. EX. Store the current max salary as records are retrieved.

35) What is Formula Column? A formula column performs a user-defined computation on another column(s) data, including placeholder columns.


36)  What is a Summary column?              
A summary column performs a computation on another column's data.  Using the Report Wizard or Data Wizard, you can create the following summaries:  sum, average, count, minimum, maximum, % total.  You can also create a summary column manually in the Data Model view, and use the Property Palette to create the following additional summaries:  first, last, standard deviation, variance.

37)  What is cursor?
A Cursor is a pointer, which works on active set, I.e. which points to only one row at a time in the context area’s ACTIVE SET. A cursor is a construct of pl/sql, used to process multiple rows using a pl/sql block.

38) Types of cursors?
1) Implicit: Declared for all DML and pl/sql statements. By default it selects one row only.
2) Explicit: Declared and named by the developer. Use explicit cursor to individually process each row returned by a multiple statements, is called ACTIVE SET.
Allows the programmer to manually control explicit cursor in the pl/sql block
·         Declare: create a named sql area
·         Open: identify the active set.
·         Fetch: load the current row in to variables.
·         Close: release the active set.

CURSOR ATTRIBUTES:
·         %is open: evaluates to true if the cursor is open.
·         %not found: evaluates to true if the most recent fetch does not return a row
·         %found: evaluates to true if the most recent fetch returns a row.
·         %row count: evaluates to the total number of rows returned to far.
         
EXAMPLE:
          Begin
              Open emp_cursor;
             Loop
                  Fetch when emp_cursor % rowcount >10 or
                                                                      Emp_curor % not found;
                 dbms_output_put_line(to_char(vno)||’ ‘|| vname);
             End loop;
           Close emp_cursor;
           End;

       CURSOR FOR LOOP
A)   cursor for loop is a short cut to process explicit cursors
B)   it has higher performance
C)   cursor for loop requires only the declaration of the cursor, remaining things like opening, fetching and close are automatically take by the cursor for loop
   
Example:
  1)     Declare
            Cursor emp_cursor is
                   Select empno,ename
                            From emp;
          Begin
            For emp_record in emp_cursor loop
              Dbms_output.putline(emp_record.empno);
               Dbms_output.putline(emp_record.ename) 
           End loop       
         End;

39) Can we create a cursor without declaring it? 
Yes – by using cursor for loop using subqueries.
BEGIN
  FOR emp_record IN ( SELECT empno, ename
                                    FROM   emp) LOOP
         -- implicit open and implicit fetch occur
    IF emp_record.empno = 7839 THEN
      ...
  END LOOP; -- implicit close occurs
END;


40) Attribute data types?
                   1) %type 2) %row type.

41) Exception Handling?
       Is a mechanism provided by pl/sql to detect runtime errors and process them with out halting the program abnormally
1)   pre-defined
2)   user-defined.
     PRE-DEFINED:
1)   cursor_already_open ------ attempted to open an already open cursor.
2)   Dup_val_on_index     ------ attempted to insert a duplicate values.
3)   Invalid_cursor          ------ illegal cursor operation occurred.
4)   Invalid_number        ------ conversion of character string to number fails.
5)   Login_denied           ------ loging on to oracle with an invalid user name
                                           and password.
6) program_error           ------ pl/sql has an internal problem.
7) storage_error            ------ pl/sql ran out of memory or memory is corrupted.
8) to_many_row            ------ single row select returned more than one row.
9) value_error               ------ arithmetic,conversion,truncation or size constraint error
10) zero_devided           ------ attempted to divided by zero.

     USER-DEFINED:
       Declare     : name the exception
       Raise         : explicitly raise the exception by using the raise statements
       Reference: exception handing section.

     The Raise_Application_Error_Procedure:
n      You can use this procedure to issue user-defined error messages from stored sub programs.
n      You can report errors to your applications and avoid returning unhandled exceptions.
      Raise_Application_Error(error_number,message[,{true/false}]
                 Error number è between -20000 to -20999

     pragma exception_init?
    It tells the compiler to associate an exception with an oracle error. To get an error message                                           of a specific oracle error.

       Ex: pragma exception_init(exception name, oracle error number)

     Example for Exceptions?
      1) Check the record is exist or not?
             Declare
                     E  emp% rowtype
             Begin 
                     e.empno := &empno;
                     select * into e from emp where empno =e.empno;
                     Dbms_output.putline(‘empno’ || e.empno);
            Exception
                    When no_data_found then
                    Dbms_output.putline(e.empno ||’doest exist’);
            End;

     2) User defined exceptions?
                   Define p_dept_desc =’Oracleapps4u’
                   Define p_dept_number =1236
                                              Declare
                           E_invalid_dept exception;
                      Begin
                          Update departments
                          Set dept_name=’&p_dept_desc’
                          Where dept_id =’&p_dept_number’;
                        If sql% not found then
                            Raise e_invalid_departments;
                        End if;
                        Commit;
                    Exception
                           When e_invalid_departments then
                           Dbms_output.putline(‘no such dept’);
                    End;                 
       
42)  Can u define exceptions twice in same block?
No
43)  Can you have two functions with the same name in a pl/sql block?
Yes
44) Can you have two stored functions with in the same name?
Yes 
45) Can function be overload?
Yes
46) What is the maximum number of statements that can be specified in a trigger statement?
One
47)  Can functions be overloaded ?
Yes
48) Can 2 functions have same name & input parameters but differ only by return data type
No
49)  What is a package? 
                   Group logically related pl/sql types, items and subprograms.
1)   Package specification
2)   Package body
Advantages of a package:
·        Modularity
·        Easier Application Design
·        Information Hiding
·        Overloading
           You cannot overload:
•Two subprograms if their formal parameters differ only in name or parameter mode. (datatype and their total number is same).
•Two subprograms if their formal parameters differ only in datatype and the different datatypes are in the same family (number and decimal belong to the same family)
•Two subprograms if their formal parameters differ only in subtype and the different subtypes are based on types in the same family (VARCHAR and STRING are subtypes of VARCHAR2)
•Two functions that differ only in return type, even if the types are in different families.

50)  What is FORWARD DECLARATION in Packages?

PL/SQL allows for a special subprogram declaration called a forward declaration. It consists of the subprogram specification in the package body terminated by a semicolon. You can use forward declarations to do the following:
• Define subprograms in logical or alphabetical order.
• Define mutually recursive subprograms.(both calling each other).
• Group subprograms in a package

Example of forward Declaration:

CREATE OR REPLACE PACKAGE BODY forward_pack
IS
PROCEDURE calc_rating(. . .);              -- forward declaration 
PROCEDURE award_bonus(. . .)
IS                                                      -- subprograms defined
BEGIN                                               -- in alphabetical order
  calc_rating(. . .);      
. . .
END;

PROCEDURE calc_rating(. . .)
IS
BEGIN
  . . .
END;

END forward_pack;



.
 What is the Diff between APPS Schema and other Schemas?
Apps schema contains only Synonyms we can't create tables in apps schema, where as other schemas contains tables, & all the objects. Here only we will create the tables and giving grants on created tables. Almost all every time we will connect to apps schema only.
 
             
2.
 What is meant by Custom Top and what is the Purpose?
Custom Top is nothing but Customer Top, which is created for customer only. we can have multiple custom
tops based on client requirement. It is used to store developed & customized components. Whenever oracle corp applying patches it will over ride on all the modules except custom top. That’s why we will use custom top.
              
3.
 What is the Significance of US Folder?
It is nothing but language specification by default it is in american language. We can have multiple languages folders  based on installed languages. from backend we can get it from
FND_LANGUAGES --
 COL --INSTALLED_FLAG I,B,D

              I--INSTALLED,
              B--BASE,
              D--DISABLE
              select language_code,nls_language from fnd_languages where installed_flag like 'B'
4.
 Where did U find the Application short name and basepath names?
select basepath,application_short_name from fnd_application from the backend. From the from end we can get it Navigation Application Developer.-----> Application---->Register The application name we will get from FND_APPLICATION_TL
 
              
5.
 Where can U find the release version from backend?
SELECT release_name from FND_PRODUCT_GROUPS; ---11.5.10.2             .
6.
 What are the Folders we will find below the 11.5.0 Folder?
Reports,forms,sql,lib,log,out,bin,admin,html,xml,msg,def, etc              
7.
 Can we create Tables in the Apps Schema?
No.              
8.
 Can we have custom schema when it it required?
yes, we can have custom schema, when we want to create a new table we required custom schema.               
9.
 What is meant by concurrent Program?
It is nothing but Instance of the execution along with parameters & Incompatables. Here Incompatables nothing but if we  are submiting cc programs if any one can be execute in those program , which programs r not imp yet this time we will  mention those programs in incompatables tab.               
10.

What are the steps we will follow to register Reports as Concurrent Program?
 First develop the report & save it in local machine. upload into custom_top/11.5.0/reports/us/ go to system  administrator  open executable form create executable by mentioning executable method as reports ,executable  as report name which  was created. go to cc program form create ccprogram by attach executable name in executable section. then attach this  ccprogram to request group, Request group to Responsibility. Responsibility to User.                    
11.
 What is meant by Request group?
It is nothing but collection of cc programs.          
12.
 What is Application Top? What are the types and Purpose?
 A) When we connect to the server we will find the top called application top. Under application top we have 
 Product top.
 Custom top
 Product top is the default top built by the manufacturer. Custom top is used to select the Client for his business purposes. Customizations are done with the Custom top.
13.
 What is US folder in the Custom Top?
             It is a language specific folder used to store the G.U.I like reports and forms.
14.
 What are mandatory parameters of Procedures and what the use of those? 
 Errorbuf: It is used to returns the error messages and sent it to the log file.
 Retcode: It is used to show the status of the Procedure with 0, 1, and 2 0 for Completed Normal
 1 for Completed Warning
2 for Completed Error
15
 What is Apps Schema and Schema? 
 Schema: Schema is the location in database contains database objects like views, tables, and synonyms.
 Apps Schema: It is used to connect the all schemas to get the information from The database. 
16.
 What is Token?
            a) Use to transfer values to report builder and it is not case sensitive.
17.
 Difference between FORM, Function and Menu?
a) A menu is a hierarchical arrangement of functions and menus. Each responsibility has a menu assigned to it. A function is a part of an application that is registered under a unique name for the purpose of assigning it to be including it from a menu. 
18.
Tell me something about SQL-LOADER.
Sql * loader is a bulk loader utility used for moving data from external files into the oracle database.
Sql* loader supports various load formats, selective loading, and multi-tables loads.

1) Conventional --The conventional path loader essentially loads the data by using standard ‘insert’ statement.
2) Direct -- The direct path loader (direct = true) by possess of logic involved with that, and loads directly in to the oracle data files.
EX:- My data.csv file
1001, “scott tiger”,1000,40
 
1002,”gvreddy”,2345,50
 
Load data
Infile ‘c:\data\mydata.csv’

insert Into table emp Fields terminated by “,” optionally enclosed by‘”’
(empno, empname,sal,deptno)
>sqlldr scott/tiger@vis control=loader.ctl log= gvlog.log bad=gvbad.bad discard=gvdis.dsc .

19.
 What is SET-OF-BOOKS?
Collection of Chart of Accounts and Currency and Calendars is called SOB 
20.
 Tell me what r the Base tables in the AR?
hz_parties (party_id) (store info about org, groups and people)
HZ_PARTIES stores information about parties such as organizations,
people, and groups, including the identifying address information for the party.
hz_cust_accounts (cust_account_id)
HZ_CUST_ACCOUNTS stores information about customer relationships. If a
party becomes a customer, information about the customer account is stored in this table. You can establish multiplecustomer relationships with a single party, so each party can have multiple customer account records in this table.
hz_cust_acct_sites_all (cust_acct_site_id)
HZ_CUST_ACCT_SITES_ALL stores information about customer sites. One
customer account can have multiple sites. The address is maintained in HZ_LOCATIONS.
hz_cust_site_uses_all (site_use_id)
HZ_CUST_SITE_USES_ALL stores information about site uses or business
purposes. A single customer site can have multiple site uses, such as bill to or ship to, and each site use is stored as a record in this table.
hz_party_sites (party_site_id)
HZ_PARTY_SITES stores information about the relationship between Parties
and Locations. The same party can have multiple party sites. Physical addresses are stored in HZ_LOCATIONS.
hz_locations (location_id)
HZ_LOCATIONS stores information about physical locations.

hz_Person_Profiles (person_profile_id)
HZ_PERSON_PROFILES stores detail information about people.
hz_Organization_Profiles (organization_profile_id)
HZ_ORGANIZATION_PROFILES stores credit rating, financial statistics,
socioeconomic and corporate linkage information for business sites. The primary key for this table is ORGANIZATION_PROFILE_ID.
21.
 FND USER EXITS:-
FND SRWINIT sets your profile option values, multiple organizations and allows
Oracle Application Object Library user exits to detect that they have been called by an Oracle Reports program.
FND SRWEXIT ensures that all the memory allocated for AOL user exits have been freed up properly.
FND FLEXIDVAL are used to display flex field information like prompt, value etc
FND FLEXSQL these user exits allow you to use flex fields in your reports
FND FORMAT_CURRENCY is used to print currency in various formats by using formula column
22.
 What is Value Set?
The value set is a collection (or) container of values.
Whenever the value set associated with any report parameters. It provides list of values  to the end user to accept one of the values as report parameter value.

If the list of values needed to be dynamic and ever changing and define a table
based values set.

12) What are the validation types?

1) None -------- validation is minimal.
2) Independent ------input must exist on previously defined list of values
3) Dependent ------input is checked against a subset of values based on a
Prior value.
3) Table ----- input is checked against values in an application table
4) Special ------values set uses a flex field itself.
5) Pair ------ two flex fields together specify a range of valid values.
6) Translatable independent ----- input must exist on previously defined list
of values; translated values can be used.
7) Translatable dependent ------- input is checked against a subset of values
based on a prior values; translated value can be used.
23.
 Form development process?
a) Open template form
b) Save as <your form>.fmb
c) Change the form module name as form name.
d) Delete the default blocks, window, and canvas
e) Create a window.
f) Assign the window property class to window
g) Create a canvas (subclass info)
h) Assign canvas property class to the canvas
I) assign the window to the canvas and canvas to the window
j) Create a data block
k) Modify the form level properties. (sub class item Text item)
l) Modify the app_custom package. In the program unit.
m) Modify the pre-form trigger (form level)
n) Modify the module level properties ((console window, First navigation
p) Save and compile the form.
Place the .fmx in the server directory.
24.
 How does u customize the Reports?
a. Identify the Short name of the standard report in which module we have
to customize
Ex: - if u wants to customize in the AR module path is
Appl top\ar\11.5.0\reports\US\ .rdf
b. Open the .rdf file in Report builder and change the name of the module.
c. Open the data module and modify the query (what is client requirements)
assign the columns to the attributes.
d. Go to report wizard and select, what r the newly created columns.
e. Then Compile it. Then u will get a .rep file in the specified module. If it is
not in the specified directory then we have to put in the server directory.
f. Then Register in the AOL Concurrent Executable and 
Concurrent Program.
g. Go to system administrator Security àResponsibility àrequest.
h. Add and assign a concurrent program to a request group
25.
 FLEX FIELDS?
Used to capture the additional business information.
DFF
KFF
 Additional
Unique Info, Mandatory
 Captured in attribute prefixed columns
Segment prefixed
 Not reported on standard reports
Is reported on standard reports
 To provide expansion space on your form With  the  help of []. 
 [] Represents descriptive Flex field.
 FLEX
 FILED : DESCRIPTIVE : REGISTER
Used for entering and displaying key information
For example Oracle General uses a key Flex field called Accounting Flex field to uniquely identify a general account.
FLEX
 FILED : KEY : REGISTER
26.
 Difference between Bind and Lexical parameters?
BIND VARIABLE:
are used to replace a single value in sql, pl/sql
bind variable may be used to replace expressions in select, where, group, order
by, having, connect by, start with cause of queries.
bind reference may not be referenced in FROM clause (or) in place of
reserved words or clauses.

LEXICAL REFERENCE:
You can use lexical reference to replace the clauses appearing AFTER select,
from, group by, having, connect by, start with.
You can’t make lexical reference in pl/sql statements.
27.
 what is Flex mode and Confine mode?
Confine mode:

On: child objects cannot be moved outside their enclosing parent objects.
Off: child objects can be moved outside their enclosing parent objects.

Flex mode:

On: parent borders "stretch" when child objects are moved against them.
Off: parent borders remain fixed when child objects are moved against
them.
28.
 What is Place holder Columns?
A placeholder is a column is an empty container at design time. The placeholder can hold a value at run time has been calculated and placed in to It by pl/sql code from anther object.
You can set the value of a placeholder column is in a Before Report trigger.
Store a Temporary value for future reference. EX. Store the current max salary as records are retrieved.
29.
 What is Formula Column?
A formula column performs a user-defined computation on another column(s) data, including placeholder columns.
30.
 What is Summary columns?
A summary column performs a computation on another column's data. Using the Report Wizard or Data Wizard, you can create the following summaries: sum, average, count, minimum, maximum, % total. You can also create a summary column manually in the Data Model view, and use the Property Palette to create the following additional
summaries: first, last, standard deviation, variance.
31.
 What is TCA (Trading Community Architecture)?
Ans. Oracle Trading Community Architecture (TCA) is a data model that allows you to manage complex information about the parties, or customers, who belong to your commercial community, including organizations, locations, and the network of hierarchical relationships among them. This information is maintained in the TCA Registry, which is the single source of trading community information for Oracle E-Business Suite applications.
32.
 Difference between Application Developer and System Administrator?
Ans.
Role of Technical Consultant:

a. Designing New Forms, Programs and Reports
b. Forms and Reports customization
c. Developing Interfaces
d. Developing PL/SQL stored procedures
e. Workflow automations
Role of System Administrator:
a. Define Logon Users
b. Define New/Custom Responsibility
c. Define Data Groups
d. Define Concurrent Managers
e. Define Printers
f. Test Network Preferences
g. Define/Add new Modules
Role of an Apps DBA:
a. Installing of Application
b. up gradation
c. Migration
d. Patches
e. Routing maintenance of QA
f. Cloning of OA
33.
 What are Flex fields?
Ans.
Ans. A Flex field is a customizable field that opens in a window from a regular Oracle Applications window. Defining flex fields enables you to tailor Oracle Applications to your own business needs. By using flex fields, you can:
(a) Structure certain identifiers required by oracle applications according to your own business environment.
(b) Collect and display additional information for your business as needed.
Key Flex fields: You use key flex fields to define your own structure for many of the identifiers required by Oracle Applications. Profile – ‘Flexfields:Open Key Window’ (FND_ID_FLEXS)

Descriptive Flex field: You use descriptive flex fields to gather additional information about your business entities beyond the information required by Oracle Applications. Profile – Flex fields: Open Descr Window’ (FND_DESCRIPTIVE_FLEXS)
34.
 Report registration process?
Ans.
1. Create the report using the report builder.
2. Place the report definition file in the module specific reports directory.
3. Create an executable for the report definition file.
4. Create a concurrent program to that executable.
5. Associate the concurrent program to a request group.
35.
 Define Request Group?
Ans.
A request security group is the collection of requests, request sets, and concurrent programs that a user, operating under a given responsibility, can select from the Submit Requests window.
36.
 Value Sets?
Ans.
Oracle Application Object Library uses values, value sets and validation tables as important components of key flex fields, descriptive flex fields, Flex Builder, and Standard Request Submission.
When you first define your flex fields, you choose how many segments you want to use and what order you want them to appear. You also choose how you want to validate each of your segments. The decisions you make affect how you define your value sets and your values.
You define your value sets first, either before or while you define your flex field
segment structures. You typically define your individual values only after your flex field has been completely defined (and frozen and compiled). Depending on what type of value set you use, you may not need to predefine individual values at all before you can use your flex field.
You can share value sets among segments in different flex fields, segments in
different structures of the same flex field, and even segments within the same flex field structure. You can share value sets across key and descriptive flex fields. You can also use value sets for report parameters for your reports that use the Standard Report Submission feature.
Navigation Path:
Login – Application Developer -> Application -> Validation -> Set
37.
 Value Validation Types?
Ans.
1. Dependant
2. Independent
3. None
4. Pair
5.
 Special
6. Table
7. Translate Independent
8. Translate Dependent
38.
 Incompatibility in report registration and Run Alone?
Ans.
Identify programs that should not run simultaneously with your concurrent program because they might interfere with its execution. You can specify your program as being incompatible with itself.
Application: Although the default for this field is the application of your concurrent program, you can enter any valid application name.
Name: The program name and application you specify must uniquely identify a
concurrent program. Your list displays the user-friendly name of the program, the short name, and the description of the program.
Scope: Enter Set or Program Only to specify whether your concurrent program is zincompatible with this program and all its child requests (Set) or only with this program (Program Only).
Run Alone: Indicate whether your program should run alone relative to all other programs in the same logical database. If the execution of your program interferes with the execution of all other programs in the same logical database (in other words, if your program is incompatible with all programs in its logical database, including itself), it should run alone.


Oracle apps Interview questions - 4



1.             Q: How do you make your own query when you are in forms query mode? 
A: You can use a placeholder to achieve this. If you enter a single colon ( : ) in one of your query fields during the Enter Query mode, Oracle Forms Run Query will prompt you to enter the text of SQL Where clause.

2.             Q: What is concurrent processing? 
A: Concurrent processing is a process that simultaneously runs programs in the background (usually on the server rather than your workstation) while working online.

3.             Q: What is a Concurrent Manager? 
A: A Concurrent Manager is a component of concurrent processing that monitors and runs requests while you work online. Once the user submits a request to run the job, the information is stored in the request table. A concurrent manager gets the information from the request table and executes the specified concurrent job.

4.             Q: What is a request set? 
A request set is a collection of reports or programs grouped together. Once you submit a request set job, it executes all the programs in a report set sequentially or in a parallel manner as defined in the request set.

5.             Q: What are the four phases of a concurrent request?
 The four phases are as follows: inactive, pending, running, and completed.

6.             Q: How would you identify the results of the request in the Concurrent View Requests window?
 Whenever a concurrent job is submitted, Applications creates a Request ID. You can use this Request ID to view the results.

7.             Q: What are the profile options? How many levels of profile options are available? 
Profile options are set to determine how the applications look and feel. There are four levels of profile options available: site level, application level, responsibility level, and user level. You can have various categories of profile options, such as personal options, system options, auditing profile options, currency options, Flexfield options, online reporting options, personal output viewer options, and user profile options.

8.             Q: What is a document sequence? 
A document sequence assigns unique numbers to the documents (transactions) generated by Oracle Applications. For example, each invoice has its own unique invoice number and each purchasing document has its own unique purchase order (PO) number.

10.          Q: How do you register a printer? 
To add a new printer, go to Install Printer Register.

11.          Q: What is a Flexfield? How many types of Flexfields exist?
A Flexfield is a field made up of segments. Each segment has an assigned name and a list of valid values. Two types of Flexfields exist: Key Flexfields and Descriptive Flexfields (DFFs).

12.          Q: What is a Key Flexfield? 
A Key Flexfield is a unique identifier that is made up of meaningful segments to identify GL account numbers and item numbers. Key Flexfields are usually stored in SEGMENT1...SEGMENTn database columns.
Some examples would be Item No 34H-AFR-223-112.G and GL Account No:
100-00-1000-324-11100.
For an example GL Account, segments could be identified as Organization, CostCenter, Account, Product, Product Line.

13.          Q: What are the Key Flexfields in Oracle Applications? 
The following table lists some of the Key Flexfields available in Oracle Applications.
Key Flexfields
Using Applications
Accounting
General Ledger
Asset Key
Fixed Assets
Location
Fixed Assets
Category
Fixed Assets
Account Aliases
Inventory
Item Catalogs
Inventory
Item Categories
Inventory
System Iitems
Inventory
Stock Locators
Inventory
Sales Orders
Inventory
Sales Tax Location
Receivables
Territory
Receivables
Job
Human Resources
Grade
Human Resources
Position
Human Resources
Soft Coded Key
Human Resources


14.          Q: What is a Descriptive Flex Field? 
A DFF lets you define the custom fields into Oracle Application forms without customizing the program code. DFFs in forms are represented by a "beer mug" field (a single space field enclosed by brackets) that looks like the following symbol: [ ]. They are usually stored in ATTRIBUTE1...ATTRIBUTEn database columns. DFFs can also be used to accept report parameters.

15.          Q: What types of segments can be set up for DFFs? 
Global or context-sensitive.

16.          Q: What is a value set? 
A value set is a list of values validated against segments. You can create a value set and assign it to a Flexfield segment.

17.          Q: How many validation types are there? 
Six validation types exist:none, dependent, independent, table, special, and pair.

18.          Q: What are the required and optional steps for setting up Flexfields? 
The required steps are as follows: define the value sets, define the structures, and define the values, if needed. The optional steps are as follows: define the security rules, define the cross-validation rules, and define the shorthand aliases, if necessary.

19.          Q: Can you define cross-validation rules for DFFs? 
No, you cannot. You can only define them for Key Flexfields.

20.          Q: Can a value set be shared between Flexfields?
 Yes, value sets can be shared between Flexfields.

21.          Q: Can a value set be shared within a Flexfield structure? 
No, value sets cannot be shared between segments within a Flexfield as long as they do not carry the same type of information. For example, date information can be shared between segments within a Flexfield.

22.          Q: What are the advanced validation options? 
Three types of advanced validation options are available. $PROFILES$, which references the current value of a profile option. An example would be $PROFILES$.profile_option_name. Block.field, which references the block field. $FLEX$, which refers to the current value of a previously used value set. An example would be $FLEX$.value_set_name (cascading dependencies).

23.          Q: What is the next step after defining the segments for Flexfields?
 Freezing and compiling the structure.

24.          Q: What are the steps required to set up value security rules? 
Make sure security is enabled, define rules for the value set, and assign rules to the user's responsibility.

25.          Q: What is Oracle Alert? 
Oracle Alert is an exception reporting system. It keeps you informed on an as-needed basis. It also communicates with other users through e-mail regarding exception messages.


26.          Q: How many types of alerts are there?
 Two types of alerts exist: Periodic Alerts and Event Alerts. Periodic Alerts fire at a time interval, and Event Alerts are fired by database table changes.

27.          Q: What are Quick Codes? 
Quick Codes, also known as Quickpicks, are standard sets of user-defined values. Lookup is a combination of a code and a description. The lookup tables are generally populated by the scripts located in /install/odf directory

.
28.          Q: What is an Open Interface in Oracle Applications? 
Open Interface, also known as the Application Programmer Interface (API), is a process whereby the Oracle Applications are linked with external or legacy systems. Open Interface works as a temporary staging area to load the external information into Oracle Applications tables. Once the data is validated, it sends the information to the permanent tables. Rejected transactions can be corrected and resubmitted.

29.          Q: Which schema has complete access to the Oracle Applications data model? 
The APPS schema. AutoInstall automatically sets the FNDNAM environment variable to the name of the APPS schema.

30.          Q: What is the top directory in Oracle Applications? 
$APPL_TOP.

31.          Q: What is a product top directory? 
It starts with the product shortname and is suffixed with TOP, such as TOP. For example, General Ledger's top directory is GL_TOP.

32.          Q: What are the log and output directory names for a product group? 
The product group environment file sets the APPLLOG variable to log and APPLOUT to out. For example, the output directory for General Ledger is $GL_TOP/$APPLOUT. For log, it is $GL_TOP/_$APPLLOG.

33.          Q: What data dictionary tables do you use to obtain detailed information regarding? 
You can write a query by joining the FND_TABLE and FND__COLUMNS tables. FND_INDEXES and FND_INDEX_COLUMNS tables are part of the data dictionary. All the FND_ table names are self-explanatory.

34.          Q: What are the primary underlying tables for concurrent processing? 
FND_CONCURRENT_PROGRAMS, FND_CONCURRENT__REQUESTS, FND_CONCURRENT_PROCESSES, and FND_CONCURRENT_QUEUES tables.


35.          Q: What are the primary underlying tables for Flexfields? 
FND_DESCR_FLEX_CONTEXTS,
 FND_FLEX_VALIDATION__RULES,
 FND_FLEX_VALUE_SETS,
 FND_ID_FLEXS,
 FND_ID__FLEX_SEGMENTS, and
 FND_ID_FLEX_STRUCTURES tables.

36.          Q: What is the primary underlying table for AOL QuickCodes? 
FND_LOOKUPS table.

37.          Q: What is the application dummy table used by a form block? 
FND_DUAL table.

38.          Q: What is the main underlying table for Profile Options? 
FND_PROFILE_OPTIONS table.

39.          Q: What are the main prerequisites for creating a custom application or responsibility? 
Set up a directory structure for a custom application, and define an environment variable that translates to your application base path.

40.          Q: What are the WHO columns? 
WHO columns are used to track the changes to your data in the application tables. WHO columns exist in all Oracle Applications standard tables. The following five are considered WHO columns:
Column Name
CREATED_BY
CREATION_DATE
LAST_UPDATED_BY
LAST_UPDATE_DATE
LAST_UPDATE_LOGIN

41.          Q: Do I need to have WHO column information in custom forms? 
Yes. It is strongly recommended to add WHO columns to the custom tables and call standard API, FND_STANDARD.SET_WHO in PRE-INSERT, and PRE-UPDATE triggers in each block of the form. Also, specify these fields as hidden in each block of the form.


42.          Q: What are the additional WHO columns used for concurrent programs?
 Concurrent programs use all the following WHO inncluding the following four.
Column Name
PROGRAM_APPLICATION_ID
PROGRAM_ID
PROGRAM_UPDATE_DATE

43.          Q: Can you disable the WHO columns' information in a form block?
 Yes. You can disable HELP -> ABOUT THIS RECORD information within a block. Call the following procedures in a block level WHEN-NEW-BLOCK-INSTANCE
Trigger:app_standard.event('WHEN-NEW-BLOCK-INSTANCE');
app_standard.enable('ABOUT','PROPERTY_OFF');

44.          Q: How do you register your custom tables in PL/SQL? 
You can use AD_DD package to register custom tables in PL/SQL.

45.          Q: How do you define the passing arguments in SQL/PLUS and PL/SQL concurrent programs? 
You must name your passing arguments as &1, &2, &3 and so on.

46.          Q: How do you call your custom reports from a form? 
You can call your custom Oracle reports in a form using the FND_REQUEST.SUBMIT_REQUEST procedure.

47.          Q: What is a template form?
 A template form is a starting point for the development of custom forms. Copy the Template.fmb file from $AU_TOP/forms/US directory to your local directory and rename it.


48.          Q: Which libraries are attached to the template form? 
The following main libraries are directly attached to the template form. APPCORE contains packages and procedures for standard menus, toolbars, and so on. APPDAYPK contains a calendar package. FNDSQF contains packages and procedures for Flexfields, concurrent processing, profiles, and a message dictionary.

49.          Q: What is a calendar?
 A calendar is an object that lets you select the date and time. It is automatically included in the template form. A Calendar package example would be calendar.show.

50.          Q: Which template form triggers require some modifications? 
The ACCEPT, FOLDER_RETURN_ACTION, KEY-DUPREC, KEY-MENU, KEYCLRFRM, ON-ERROR, KEY-LISTVAL, POST-FORM, PRE-FORM, QUERY_FIND, WHEN-NEW-FORM-INSTANCE, WHEN-NEW-BLOCK-INSTANCE, WHEN-NEWRECORD-INSTANCE, and WHEN-NEW-ITEM-INSTANCE triggers.

51.          Q: Which template form triggers cannot be modified? 
The CLOSE_WINDOW, EXPORT, FOLDER_ACTION, KEY-COMMIT, KEY-EDIT, KEY-EXIT, KEY-HELP, LASTRECORD, WHEN-WINDOW-CLOSED, WHENFORM-NAVIGATE, and ZOOMtriggers.

52.          Q: What are the main template files for Pro*C concurrent programs? The main template files are EXMAIN.c and EXPROG.c .

53.          Q: What is the Oracle-recommended application short name for extensions?
 Oracle recommends an application short name begin with XX. As an example, extensions to Oracle Purchasing would be XXPO.

54.          Q: Where do you maintain the list of your custom programs? All custom programs should be listed in the applcust.txt file. This file is located in the $APPL_TOP/admin directory. When you apply the patches, Oracle Applications uses this file for informational purposes.

55.          Q: What are the steps involved in modifying an existing form? 
First, you identify the existing file and then you copy the file to a custom application directory, making sure to rename it. You then make the necessary modifications, generate the form, and document it in the custom program list using applcust.txt file.


56.          Q: Where do you maintain database customizations? You can maintain all your table changes by creating a new schema. You can use your custom application short name (such as XXPO) as your Oracle schema name for easy identification. The new schema must be registered in the Oracle AOL.

57.          Q: Can you create extensions to Oracle Applications without modifying the standard form code? Yes. This can be done using the CUSTOM library, which is an Oracle Forms PL/SQL library. You can integrate your custom code directly with Oracle Applications without making changes to your Oracle Applications forms code. The CUSTOM library is located in the $AU_TOP/res/plsql directory. Once you write the code, you compile and generate the CUSTOM procedures to make your changes.

58.          Q: When do you use the CUSTOM library? You can use the CUSTOM library in a variety of cases. You can use it to incorporate Zoom logic, logic for generic events, logic for product-specific events, and to add entries for the special menu.




How to submit the concurrent request from PLSQL?

FND_REQUEST.SUBMIT_REQUEST buit-ins used for submit the concurrent request from PLSQL.

We first need to initialise oracle applications session (FND_GLOBAL.APPS_INITIALIZE) then only we can call this "FND_REQUEST.SUBMIT_REQUEST".

Syntax

DECLARE
vn_resp_appl_id NUMBER;
vn_resp_id NUMBER;
vn_user_id NUMBER;
vn_request_id NUMBER;
BEGIN

/* Getting Profile option values */
vn_resp_appl_id := apps.fnd_profile.VALUE ('RESP_APPL_ID');
vn_resp_id := apps.fnd_profile.VALUE ('RESP_ID');
vn_user_id := apps.fnd_profile.VALUE ('USER_ID');

/* Application Initialisation */
apps.fnd_global.apps_initialize (n_user_id, n_resp_id, n_resp_appl_id);

/* Concurrent request submission */
vn_request_id := apps.fnd_request.submit_request (
application IN VARCHAR2 DEFAULT NULL,
program IN VARCHAR2 DEFAULT NULL,
description IN VARCHAR2 DEFAULT NULL,
start_time IN VARCHAR2 DEFAULT NULL,
sub_request IN BOOLEAN DEFAULT FALSE,
argument1 IN VARCHAR2 DEFAULT CHR (0),
argument2 IN VARCHAR2 DEFAULT CHR (0),
argument3 IN VARCHAR2 DEFAULT CHR (0),
----- argument4 to argument99 -------------
argument100 IN VARCHAR2 DEFAULT CHR (0)
);

/* Commit */
COMMIT;
END;

FND_REQUEST.SUBMIT_REQUEST {Description}

application : Short name of application under which the program is registered.
program : concurrent program name for which the request has to be submitted.
description : [Optional] Will be displayed along with user concurrent program name.
start_time : [Optional] Time at which the request has to start running.
sub_request : [Optional] Set to TRUE if the request is submitted from another running request and has to be treated as a sub request. Default is FALSE
argument1..100 : [Optional] Arguments {parameters} for the concurrent request.

 

Setting Organization Context in Oracle R12 and 11i

Release 12

BEGIN
apps.mo_global.set_policy_context ('S', org_id_value);
END;

11i Releases

BEGIN
DBMS_APPLICATION_INFO.set_client_info (client_info => 'org_id_value');
END;
--------------- or----------
BEGIN
fnd_global.initialize (NAME => 'ORG_ID', VALUE => 'org_id_value');
END;

No comments:

Post a Comment

Types of animations

Animation is a diverse and creative field with a variety of styles that artists and filmmakers use to bring their visions to life. Here are ...