Tuesday 26 September 2017

AOL SYLLABUS:

PREREQUISITE

SQL
PL/SQL
D2K

GENERAL INTRODUCTION

KNOW HOW OF ERP
Version of Oracle Apps 11i
Comparison of 10.7/11.0.3/11i Version
Modules of Oracle applications
Cycle of Oracle Financials
Profiles of ERP Consultants
Front End and Back End of Apps 11i
Introduction to Tnsnames.ora files.

AOL:

1. User Creation
·         Navigation Path
·         How to Create User in ERP
·         How to assign responsibility to the User
·         How to attached Buyer to the User
·         How to disable User
·         How to add and remove responsibility assign to User
·         Name of  table in which User Stored

2. Responsibility
·         Navigation Path
·         What is responsibility
·         What are the three Main Component of Responsibility
·         How to Exclude Menu and Function from responsibility
·         How to disable responsibility
·         Name of  table in which Responsibility Stored
·         Difference between FND_RESPONSIBILITY and FND_RESPONSIBILITY_TL

3. Data Group
·         Navigation Path
·         Overview of Data Group
·         Importance of Data Group
·         How to attach custom Application with Data Group
·         How to Create Custom data group
·         How to register new Schema.

4.WHO COLUMN
5.Applications and table Name
6.Schema Registrations
7.Responsibility
8.Menu Customizations
9.Request Group
10.How to Register Custom Application
11.Request Set (How to Create Request Set).
12.How to Share Paramater in Request Set
13.Stages of Request Set
14.SRS WINDOW
15.Value Set
16.Lookups
17.How to Get Name of table From Front End
18.How to Register Custom tables in Oracle Applications
19.Directory Structure of Oracle Apps
20.How to Attach Reports in Apps
21.Default Type in Reports
22. Token in Reports
A. Default Type in Reports
B. Token in Reports
c. How to call reports through APIs
23.How to Attach Forms in Apps
24.Executable
25.Concurrent Programs
26.Incompatibility in Concurrent Programs
27.Flex fields (Key and Descriptive Flex Fields)
28.How to Enable DFF in the Forms
29.Profile options
30.User Exit
31.Importance of P_CONC_REQUEST_ID Parameter in reports
32.Difference between D2k Reports and APPS reports
33.How to Register PL/SQL Procedure in apps
34.How to Register SQL*LOADER in Oracle Applications.
35.Telnet
36 VI Editor
   FTP
37.Concurrent Manager
38. Unix Command
39. AIM Standard for Documentations (MD50 , MD70)





AOL SYLLABUS:

AOL SYLLABUS:

PREREQUISITE

SQL
PL/SQL
D2K

GENERAL INTRODUCTION

KNOW HOW OF ERP
Version of Oracle Apps 11i
Comparison of 10.7/11.0.3/11i Version
Modules of Oracle applications
Cycle of Oracle Financials
Profiles of ERP Consultants
Front End and Back End of Apps 11i
Introduction to Tnsnames.ora files.

AOL:

1. User Creation
·         Navigation Path
·         How to Create User in ERP
·         How to assign responsibility to the User
·         How to attached Buyer to the User
·         How to disable User
·         How to add and remove responsibility assign to User
·         Name of  table in which User Stored

2. Responsibility
·         Navigation Path
·         What is responsibility
·         What are the three Main Component of Responsibility
·         How to Exclude Menu and Function from responsibility
·         How to disable responsibility
·         Name of  table in which Responsibility Stored
·         Difference between FND_RESPONSIBILITY and FND_RESPONSIBILITY_TL

3. Data Group
·         Navigation Path
·         Overview of Data Group
·         Importance of Data Group
·         How to attach custom Application with Data Group
·         How to Create Custom data group
·         How to register new Schema.

4.WHO COLUMN
5.Applications and table Name
6.Schema Registrations
7.Responsibility
8.Menu Customizations
9.Request Group
10.How to Register Custom Application
11.Request Set (How to Create Request Set).
12.How to Share Paramater in Request Set
13.Stages of Request Set
14.SRS WINDOW
15.Value Set
16.Lookups
17.How to Get Name of table From Front End
18.How to Register Custom tables in Oracle Applications
19.Directory Structure of Oracle Apps
20.How to Attach Reports in Apps
21.Default Type in Reports
22. Token in Reports
A. Default Type in Reports
B. Token in Reports
c. How to call reports through APIs
23.How to Attach Forms in Apps
24.Executable
25.Concurrent Programs
26.Incompatibility in Concurrent Programs
27.Flex fields (Key and Descriptive Flex Fields)
28.How to Enable DFF in the Forms
29.Profile options
30.User Exit
31.Importance of P_CONC_REQUEST_ID Parameter in reports
32.Difference between D2k Reports and APPS reports
33.How to Register PL/SQL Procedure in apps
34.How to Register SQL*LOADER in Oracle Applications.
35.Telnet
36 VI Editor
   FTP
37.Concurrent Manager
38. Unix Command
39. AIM Standard for Documentations (MD50 , MD70)





Monday 18 September 2017

Oracle apps interview Question


Oracle apps/ Oracle Reports Interview question

                
1. 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 Significancy 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 Applcation 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 & Incompatibles. Here Incompatibles nothing but if we are submitting cc programs if anyone can be execute in those program , which programs are not imp yet this time we will  mention those programs in incompatibles 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 program by attach executable name in executable section. Then attach this CC program 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. 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?
 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?
 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?
 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?
 1. Dependent
2. Independent
3. None
4. Pair
5. Special
6. Table
7. Translate Independent
8. Translate Dependent


38. Incompatibility in report registration and Run Alone?
 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.

                Pl/Sql interview questions
                 
1. What are the various types of Exceptions?
 User defined and Predefined Exceptions.
2. Can we define exceptions twice in same block?
No.           
3. What is the difference between a procedure and a function?
Functions return a single variable by value whereas procedures do not return any variable by value. Rather they return multiple variables by passing variables by reference through their OUT parameter.
         
4. Can you have two functions with the same name in a PL/SQL block?
Yes.              
5. Can you have two stored functions with the same name?
  Yes.
              
6. Can you call a stored function in the constraint of a table?
No.
             
7. What are the various types of parameter modes in a procedure?
IN, OUT AND INOUT.
              
8. What is Over Loading and what are its restrictions?
Overloading means an object performing different functions depending upon the no. of parameters or the data type of the parameters passed to it.
             
9. Can functions be overloaded?
Yes.
10. Can 2 functions have same name & input parameters but differ only by return datatype
No.        



Oracle FND Message in oracle reports


Create Message in oracle apps as per below screen shot. 




Below is a small example to get the message text:

DECLARE
  msg VARCHAR2(2000);
BEGIN
  fnd_message.set_name ('XX', 'XX_VENDOR_REJECTED_CBT');
  msg := fnd_message.get;
  dbms_output.put_line(msg);
END; 

Where ‘XX’ is the application short name in which the message is defined and ‘XX_ VENDOR_REJECTED_CBT'’ the name of the message.

FND_MESSAGE.SET_NAME: this sets a message name in the global area without actually retrieving the message from Message Dictionary.

FND_MESSAGE.GET: Retrieves a translated and token-substituted message from the message stack and then clears that message from the message stack. GET returns upto 2000 bytes of message.

Tokens to change Message content dynamically


DECLARE
  l_VENDOR_name VARCHAR2(200);
  msg         VARCHAR2(2000);
BEGIN
  --
  SELECT description
  INTO l_user_name
  FROM fnd_user
  WHERE user_name = 'DEV_TEAM';
  --
  fnd_message.set_name ('XX', 'XX_ VENDOR_REJECTED_CBT');
  fnd_message.set_token('MSG_VENDOR_NAME', l_VENDOR_name);
  msg := fnd_message.get;
  dbms_output.put_line(msg);
END;


Wednesday 3 May 2017

Workflow tables in oracle apps

select * from wf_item_types where name = 'BWFINSER'

select * from wf_item_types_tl where name = 'BWFINSER'

select * from wf_items where item_type = 'BWFINSER'

select * from wf_item_attributes  where item_type = 'BWFINSER'

select * from wf_item_attributes_tl where item_type = 'BWFINSER'

select * from wf_activities where item_type = 'BWFINSER'

select * from wf_activities_tl

select * from wf_activity_attributes

select * from wf_activity_attributes_tl

select * from wf_activity_attr_values

select * from wf_messages

select * from wf_notifications where message_type = 'BWFINSER'

select * from wf_notification_Attributes

select * from wf_messages_tl

select * from wf_message_Attributes

select * from wf_message_Attributes_tl

select * from wf_process_Activities

select * from wf_lookup_types_tl

select * from wf_lookups_tl 

Open & Close Period in R12

General Ledger Periods

1. Navigate to General Ledger Super User->Setup->Open/Close, then the Ledger and click find.


2. Now open the required periods by clicking “Open Periods” button,select the required period as Target Period and click Open button.





Payables Period


1. Navigate to Payables Super User or Payable Manager->Accounting->Control Payables Periods , then open the periods by changing the Period Status and click on Save button.



Purchasing Periods

1. Navigate to Purchasing SuperUser->Setup->Financials->Accounting->Control Purchasing Periods , then enter the Fiscal year and click Go button.

(If it prompts for selecting Operating Unit,select it and click Go button.)


2. Then open the periods by changing the Period Status and click on Save button.




Inventory period

1. Navigate to Inventory SuperUser->Accounting Close Cycle->Inventory Accounting Periods and select the Inventory Org from LOV.


2. Select the period to be opened and click on Change Status button.


Tuesday 2 May 2017

Register custom table in oracle application R12

Register Table 
procedure register_table
(p_appl_short_name in varchar2, –Custom Application Short Name
p_table_name in varchar2, –Table Name
p_table_type in varchar2, –Table type,Use ’T’ if it is a transaction table & ’S’ for a ”seed data” table
p_next_extent in number default 512,
p_pct_free in number default 10, –Percentage of space in each of the table’s blocks reserved for future updates to the table (1–99)
p_pct_used in number default 70); –Minimum percentage of used space in each data block of the table (1–99)
–The sum of p_pct_free and p_pct_used must be less than 100

Register Column 
procedure register_column
(p_appl_short_name in varchar2, –Custom Application Short Name
p_table_name in varchar2, –Table Name
p_column_name in varchar2, –Column Name
p_column_seq in number, –Sequence number of Column in table
p_column_type in varchar2, –Column Type (’NUMBER’, ’VARCHAR2’, ’DATE’, etc.).
p_column_width in number, –Colum Size,Can use 9 for DATE columns, 38 for NUMBER columns
p_nullable in varchar2, –Use ’N’ if the column is mandatory or ’Y’ if the column allows null values
p_translate in varchar2, –’N’ if the values are not translated (most application columns)
p_precision in number default null, –Number of digits in a number
p_scale in number default null); –Number of digits to the right of the decimal point in a number

Example

create table XXTEST_TEST_TABLE
(
unique_id number,
NAme varchar2(100),
Creation_Date date,
created_by number
)

API for register table 
Begin
ad_dd.REGISTER_TABLE('XXTEST','XXTEST_TEST_TABLE','T',1,10,0);
End;

Commit;

API for register column

EXECUTE ad_dd.REGISTER_COLUMN('XXTEST','XXTEST_TEST_TABLE','UNIQUE_ID',1,'NUMBER',38,'Y','N');

EXECUTE ad_dd.REGISTER_COLUMN('XXTEST','XXTEST_TEST_TABLE','NAME',2,'VARCHAR2',20,'Y','N')

EXECUTE ad_dd.REGISTER_COLUMN('XXTEST','XXTEST_TEST_TABLE','CREATION_DATE',3,'DATE',20,'Y','N')

EXECUTE ad_dd.REGISTER_COLUMN('XXTEST','XXTEST_TEST_TABLE','CREATED_BY',4,'NUMBER',38,'Y','N')

Commit;

Register Primary key in oracle application

execute ad_dd.register_primary_key('XXTEST', 'UNIQE_ID_PK', 'XXTEST_TEST_TABLE','UNIQE_ID_PK', 'S', 'Y','Y');

Commit;

Register Primary key column in oracle application

execute ad_dd.register_primary_key_column('XXTEST', 'UNIQE_ID_PK','XXTEST_TEST_TABLE', 'UNIQUE_ID', 1);

Commit;

How to check table registered in oracle application

Goto-->

Application Developer--> application-->Database-->Table

Search Table by Table name and detail will be shown

API for De-register table from oracle apps

EXECUTE ad_dd.DELETE_TABLE('BTVL', 'BTVL_TEST_TABLE');

COMMIT;

DROP TABLE BTVL_TEST_TABLE

Friday 21 April 2017

API for initialize environment from backend in oracle R12

Pass parameter value user_id, resp_id and resp_appl_id

Begin
fnd_global.APPS_INITIALIZE(fnd_profile.value('USER_ID'),fnd_profile.value('RESP_ID'),fnd_profile.value('RESP_APPL_ID'))
End;

Invoice Payment detail report Query R12

SELECT  aba.batch_name invoice_batch,
        aia.source invoice_source,
        aia.org_id,
        hou.name OU_Name,
        pca.checkrun_name,
        pca.check_date,
        pca.check_number document_number,
        (select user_name from fnd_user where user_id = pca.created_by) checkrun_createdby,
        pca.attribute5 void_rsn,
        pca.attribute7 utr_no,
        pca.attribute8 txn_type,
        pca.bank_Account_num remit_to,
        pca.bank_account_name,
        pca.void_date,
        aia.invoice_num,
        aia.batch_id,
        aia.invoice_id,
        aia.doc_sequence_value voucher_num,
        REPLACE(REPLACE(aia.description,CHR(10),''),CHR(13),'') description,
        aia.invoice_currency_code,
        aia.payment_currency_code,
        aia.invoice_date,
        aia.invoice_amount,
        aia.amount_paid,
        aia.gl_date,
        aipa.payment_num,
        aipa.amount payment_amount,
        aipa.accounting_date payment_date,
        REPLACE(REPLACE(asi.vendor_name,CHR(10),''),CHR(13),'') vendor_name,
        REPLACE(REPLACE(asi.vendor_name_alt,CHR(10),''),CHR(13),'') vendor_name_alt,
        asi.segment1 vendor_number,
        aia.pay_group_lookup_code pay_group,
        REPLACE(REPLACE(assa.vendor_site_code,CHR(10),''),CHR(13),'') vendor_site_code,
        REPLACE(REPLACE(assa.vendor_site_code_alt,CHR(10),''),CHR(13),'') vendor_site_code_alt,
        flv_vendortype.meaning vendor_type,
        flv_invoicetype.meaning invoice_type,
        flv_paytype.meaning payment_type,
        flv_paystatus.meaning payment_status,
        (SELECT gross_amount
                   FROM  AP_PAYMENT_SCHEDULES_ALL
                   WHERE INVOICE_ID  = aia.invoice_id
                   AND   PAYMENT_NUM = aipa.payment_num
                   AND   ROWNUM=1) schedule_amount,
         (SELECT due_Date
                   FROM  AP_PAYMENT_SCHEDULES_ALL
                   WHERE INVOICE_ID  = aia.invoice_id
                   AND   PAYMENT_NUM = aipa.payment_num
                   AND   ROWNUM=1) due_date,
        aia.accts_pay_code_combination_id,
        DECODE(pca.void_date,NULL,'Negotiable','Void') inv_status,
        pca.check_id
FROM    ap_checks_all pca,
        ap_invoice_payments_all aipa,
        ap_invoices_all aia,
        hr_operating_units hou,
        ap_suppliers asi,
        ap_supplier_sites_all assa,
        ap_batches_all aba,
        fnd_lookup_values flv_vendortype,
        fnd_lookup_values flv_invoicetype,
        fnd_lookup_values flv_paytype,
        fnd_lookup_values flv_paystatus
WHERE   1=1
AND     flv_paystatus.lookup_code       = aia.payment_status_flag
AND     flv_paytype.lookup_code         = pca.payment_type_flag
AND     flv_invoicetype.lookup_code     = aia.invoice_type_lookup_code
AND     flv_vendortype.lookup_code      = asi.vendor_type_lookup_code
AND     aba.batch_id(+)                 = aia.batch_id
AND     assa.org_id                     = aipa.org_id
AND     assa.vendor_site_id             = aia.vendor_site_id
AND     asi.vendor_id                   = aia.vendor_id
AND     aipa.org_id                     = hou.organization_id
AND     hou.set_of_books_id             = aipa.set_of_books_id
AND     aia.invoice_id                  = aipa.invoice_id
and     pca.org_id                      = aipa.org_id
AND     pca.check_id                    = aipa.check_id
AND     flv_invoicetype.language        = 'US'
AND     flv_vendortype.language         = 'US'
AND     flv_paytype.language            = 'US'
AND     flv_paystatus.language          = 'US'
AND     NVL(flv_paystatus.end_date_active,SYSDATE+1) > SYSDATE
AND     NVL(flv_invoicetype.end_date_active,SYSDATE+1) > SYSDATE
AND     NVL(flv_vendortype.end_date_active,SYSDATE+1) > SYSDATE
AND     NVL(flv_paytype.end_date_active,SYSDATE+1) > SYSDATE
AND     flv_invoicetype.lookup_type     = 'INVOICE TYPE'
AND     flv_vendortype.lookup_type      = 'VENDOR TYPE'
AND     flv_paytype.lookup_type         = 'PAYMENT TYPE'
AND     flv_paystatus.lookup_type       = 'INVOICE PAYMENT STATUS'
AND     aipa.set_of_books_id            = FND_PROFILE.VALUE('GL_SET_OF_BKS_ID')
AND     TRUNC(NVL(aipa.accounting_date,SYSDATE))   BETWEEN NVL (TRUNC (TO_DATE (p_txndate_from,
                                                                                'YYYY/MM/DD HH24:MI:SS')),
                                                                TRUNC (NVL (aipa.accounting_date, SYSDATE)))
                                                   AND NVL (p_txndate_to,
                                                                TRUNC (NVL (aipa.accounting_date, SYSDATE)))
AND     asi.vendor_id                = NVL(p_vendorid,asi.vendor_id)
AND     aia.org_id                   = NVL(p_ou_id, aia.org_id)
AND     asi.vendor_type_lookup_code  = NVL(p_vendortype, asi.vendor_type_lookup_code)                                                            
ORDER BY invoice_num
        ,aipa.payment_num
        ,accounting_date;

How to make Reject comments mandatory in oracle workflow

Use Below Code

PROCEDURE btvl_reject_commnet_mandate (
      p_item_type   IN              VARCHAR2,
      p_item_key    IN              VARCHAR2,
      actid         IN              VARCHAR2,
      funmode       IN              VARCHAR2,
      resultout     OUT NOCOPY      VARCHAR2
   )
   IS
      v_response         VARCHAR2 (2000);
      l_user_comment     VARCHAR2 (2000);
      approval_comment   EXCEPTION;
   BEGIN
/*===================================================================================
This will derive the button by looking at the response from the notification. the WF_ENGINE.CONTEXT_NID variable will tell you the notification ID that is being responded to, and we can derive the response from there.
====================================================================================*/
      v_response :=
                wf_notification.getattrtext (wf_engine.context_nid, 'RESULT');
/*===================================================================================
This will retrieve the value which is stored in the Approval Comments field by the approver when the reject button is pressed.
====================================================================================*/
      l_user_comment :=
         wf_notification.getattrtext (wf_engine.context_nid,
                                      'COMMENTS'
                                     );

/*===================================================================================
This block will be fired when the user has pressed the 'Reject' Button and the comments is null and then it will raise the user defined error. And the workflow will not continue untill the user enters value in the comments field for rejection.
===================================================================================*/
      BEGIN
         IF (    funmode = 'RESPOND'
             AND v_response = 'REJECTED'
             AND l_user_comment IS NULL
            )
         THEN
            RAISE approval_comment;
         END IF;
      EXCEPTION
         WHEN approval_comment
         THEN
            raise_application_error
               (-20010,
                'Approval Comment Field cannot be Null. Please enter reason for rejection and click reject.'
               );
            RAISE;
      END;
   END;

After compiling above procedure then call this procedure to notification 





Thursday 20 April 2017

Query for user responsibility name

SELECT fu.user_name                "User Name",
       frt.responsibility_name     "Responsibility Name",
       frt.RESPONSIBILITY_ID,
       furg.start_date             "Start Date",
       furg.end_date               "End Date",    
       fr.responsibility_key       "Responsibility Key",
       fa.application_short_name   "Application Short Name"
  FROM fnd_user_resp_groups_direct        furg,
       applsys.fnd_user                   fu,
       applsys.fnd_responsibility_tl      frt,
       applsys.fnd_responsibility         fr,
       applsys.fnd_application_tl         fat,
       applsys.fnd_application            fa
 WHERE furg.user_id             =  fu.user_id
   AND furg.responsibility_id   =  frt.responsibility_id
   AND fr.responsibility_id     =  frt.responsibility_id
   AND fa.application_id        =  fat.application_id
   AND fr.application_id        =  fat.application_id
   AND frt.language             =  USERENV('LANG')
   AND UPPER(fu.user_name)      =  UPPER('DEV_TEAM')  -- <change it>
   -- AND (furg.end_date IS NULL OR furg.end_date >= TRUNC(SYSDATE))
   AND fa.application_short_name =  'WIP'
 ORDER BY frt.responsibility_name;

Friday 14 April 2017

Oracle Payable important tables in r12

select * from ap_batches_all

select * from ap_invoices_All

select * from ap_invoice_lines_all

select * from ap_holds_all

select * from ap_invoice_distributions_all

select * from ap_payment_Schedules_all

select * from ap_payment_history_all

select * from ap_checks_All

select * from ap_invoice_payments_all

select * from ce_bank_accounts

select * from ce_payment_documents

select * from iby_external_payees_all

select * from iby_pmt_instr_uses_All




AP Invoice interface table

AP interface tables 

select * from ap_invoices_interface

select * from ap_invoice_line_interface


AP interface error tables

select * from ap_interface_rejections

select * from ap_interface_controls

AP interface sequence for invoice id 

select ap_invoices_interface_s.nextval from dual

Concurrent program for import invoice from interface table to base tables

Payables open interface import

Run above mention program by passing mandatory parameter and check the output of program with error/success status.  

Thursday 13 April 2017

Move order header different status and their meaning

select lookup_code, substr(meaning, 1, 60) "Meaning"
from mfg_lookups
where lookup_type = 'MTL_TXN_REQUEST_STATUS'
order by lookup_code

1 = Incomplete
2 = Pending Approval
3 = Approved
4 = Not Approved
5 = Closed
6 = Cancelled
7 = Pre-Approved
8 = Partially Approved
9 = Cancelled by Source

Move order important tables

select * from mtl_txn_request_headers

select * from mtl_txn_request_lines

select * from mtl_system_items_b

select * from mtl_item_locations

1. Create move order:
Quantity: 10
Quantity Delivered: NULL
Quantity Detailed: NULL
Quantity Required: NULL
Line Status: 1 (Incomplete)

2. Approve move order:
Quantity: 10
Quantity Delivered: NULL
Quantity Detailed: NULL
Quantity Required: NULL
Line Status: 3 (Approved)

3. Allocate move order for full quantity:
Quantity: 10
Quantity Delivered: NULL
Quantity Detailed: 10
Quantity Required: NULL
Line Status: 3 (Approved)

4. Transact move order:
Quantity: 10
Quantity Delivered: 10
Quantity Detailed: 10
Quantity Required: NULL
Line Status: 5 (Closed)

NOTE: When a move order is allocated, a corresponding record is inserted into the pending table (MTL_MATERIAL_TRANSACTIONS_TEMP as well as lot/serial tables if required).
When the move order is transacted, the record moves from the pending table to the history table (MTL_MATERIAL_TRANSACTIONS).




Wednesday 12 April 2017

Delete XMl template in oracle apps

Delete command for deleting xml template from oracle apps

delete   from XDO_TEMPLATES_B        where template_code    = 'template_code'

delete   from XDO_TEMPLATES_TL       where template_code    = 'template_code'

delete   from xdo_lobs               where lob_code         = 'template_code'

delete   from XDO_DS_DEFINITIONS_TL  where data_source_code = 'template_code'

delete   from XDO_DS_DEFINITIONS_b   where data_source_code = 'template_code'

Important tables in oracle property manager

For property details
select * from pn_properties_All

For companies details
SELECT * FROM PN_COMPANIES_ALL

For building details
select * from pn_buildings_v

For the detail of floors in a building
select * from pn_floors_v

For the detail of offices in a single floor
select * from pn_offices_v


For Lease details
SELECT * FROM PN_LEASES_ALL

For payment details
select * from pn_payment_terms_all

For Tenant details
select * from pn_tenancies_all

For Payment schedules
select * from pn_payment_schedules_all

For location details
select * from pn_locations_All 

Tuesday 11 April 2017

Oracle Property manager : Property, Location, Lease, AP Invoice

Oracle Property Manager:-
Oracle Property Manager is part of the Oracle Real Estate Management solution. You can use Oracle Property Manager to manage your properties. Oracle Property Manager provides you with tools to organize the information you use to manage major real estate tasks.
Oracle Property Manager includes the following scenarios to organize the information you use to manage major real estate tasks:

  • Lease Management
  • Space Management
  • Workflow Automation
  • Integration
  • Reporting
  • Inquiry


Integration: - Oracle Property Manager is integrated with other Oracle applications, including:
  • Oracle General Ledger
  • Oracle Sub ledger Accounting
  • Oracle Payables
  • Oracle Receivables
  • Oracle E-Business Tax
  • Oracle Human Resources
  • Oracle Enterprise Asset Management
  • Oracle Alert
  • Oracle Workflow
  • Oracle Projects


This integration enables you to use your Oracle Property Manager records as the source of payments and billings, and to use your Human Resources records as a source for employee information in Oracle Property Manager.

Lease Management

Lease management is at the center of the real estate management function. With Oracle, you can control and oversee a variety of lease management tasks such as:
Abstracting basic lease information from lease documents
  • Modifying and amending leases
  • Calculating lease amounts
  • Creating invoice schedules
  • Exporting invoices to Oracle Payables and Oracle Receivables

Type of lease
Three types of lease as follow:- 

  • Expense
  • Revenue
  • Sublease 


Steps for Building creation, location and lease:
Buildings Setup

Goto, "Property Manager" responsibility 

Property Definitions --> Property --> New 



Property Creation


Building Creation 


Buildings Setup – Features


Buildings Setup – Contacts


Floors Setup

Offices Setup – Main Floor

Offices Setup – Second Floor

Lease Setup


Lease Setup – cont


Lease – Details

Lease – Contacts



Lease – Locations

Lease – Insurance

Lease – Rights


Lease – Obligations

Lease – Options

Lease – Payments


Lease – Payments cont

Lease – Term Details

Lease – Notes

Lease – Status

Lease – Payment Schedule    

Lease – Payment Schedule Request



Lease – Payment Schedule Report

Authorize Payment

Payment manager responsibility --> Lease and document --> Payments-->Authorize  

Payment Status – Approved

View Payment Schedule Details


Payment Export to Payables
Payment manager responsibility --> Lease and document --> Payments-->Export to payable 


Payment Export – Request


Run Below program 

Payables Interface Request

Check Report "Payable Import Report" and invoice number also mention in report. 

Check invoice number in payable. 





AOL SYLLABUS: PREREQUISITE SQL PL/SQL D2K GENERAL INTRODUCTION KNOW HOW OF ERP Version of Oracle Apps 11i Comparison of 10.7/11...