Thursday 29 December 2011

How to know the Table name of OAF pages


Please Visit http://www.conacent.com/?page_id=218

How to know the Table name of OAF (Oracle Application Framework)

Step 1. Set the profile option "FND: Diagnostics" at UserLevel to "Yes".
Step 2. Go to the respective OAF form page.
Step 3. Click on "About this Page" link will appear on Left bottom corner of the OAF Page.
Step 4. Either View Object or Flexfield Name will contain the table name.

Monday 26 December 2011

LogFile Location in R12

Finding Oracle Concurrent Request Log Files:
Concurrent Requests Log And Out Files
$LOG_HOME/APPL/CONC/log
$LOG_HOME/APPL/CONC/out

Mid Tier Startup Scripts Log Files
$LOG_HOME/APPL/ADMIN

Startup/Shutdown error message text files
$INST_TOP/apps/$CONTEXT_NAME/logs/appl/admin/log



Finding Oracle Apache Log Files:
Apache Error and Access log files
$LOG_HOME/ora/10.1.3/apache

J2EE related log files
$LOG_HOME/ora/10.1.3/j2ee

OPMN related log files
$LOG_HOME/ora/10.1.3/opmn


Finding Forms & Reports Log Files:
Forms related log files
$LOG_HOME/ora/10.1.2/forms

Reports related log files
$LOG_HOME/ora/10.1.2/reports


Finding Oracle Alert Log Files:
$ORACLE_HOME/admin/$CONTEXT_NAME/diag/rdbms/$ORACLE_SID/$ORACLE_SID/trace

Finding Oracle Cloning Related Log Files:
These are pre-cloned log files in source instance
Database Tier
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/(STAGEDBTIER_MMDDHHMM.log)
Application Tier
$INST_TOP/apps/$CONTEXT_NAME/admin/log/(STAGEAPPSTIER_MMDDHHMM.log)

These are cloned log files in target instance
Database Tier
$ORACLE_HOME/appsutil/log/$CONTEXT_NAME/APPLDBTIER_ .log
Application Tier
$INST_TOP/apps/$CONTEXT_NAME/admin/log/APPLYAPPSTIER_ .log



find *.xml -mtime +100 -print -exec rm {} \;

Note that there are spaces between rm, {}, and \;
Explanation
  • The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.
  • The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.
  •  The third argument, -print, will print the file which are been deleted.
  • The fourth argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.

Monday 12 December 2011

How to Assign all the items from Item Master to a diffrent Organization

Prerequisite:- Organization Hierarchy need to setup

Need to run a request :- Item Organization Assignment from Inventory responsibility.
Parameter:- Source Organization as Item Master or any other organization(From where you want to assign)
Hierarchy Origin:- Destination Organization(Where you want to assign all the item)
Hierarchy:- Organization Hierarchy Name
Request Count:-1
Submit the request

HOW WE CAN USE DBLINK BETWEEN TWO ORACLE APPS INSTANCE

How we can get data from another oracle apps database/instance using DBLINK?

1) First we need to connect in TEST instance(192.168.1.2) as SYSTEM/password
2) select name from v$database;  Note the result, It will display TEST database Name
3) Run this command to connect the production instance where PROD is Production instance:-
CREATE PUBLIC DATABASE LINK "PROD" CONNECT TO apps IDENTIFIED BY apps
USING '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.1)(PORT = 1521))(CONNECT_DATA = (SID = PROD)))';
3) Now run command for testing and check the result :- select name from v$database@PROD ;
It will display PROD database Name
Now you will get the data from Production Server.

Friday 2 December 2011

Scope of Stand Alone Payable Invoice

Charge Service Tax in AP Standalone Invoice:

Standalone AP Invoices will be raised for non-item based expense or service activities. As Item information is not available for such invoices, regimes like Excise, Customs and VAT that are Item-based tax regimes will not be associated with Standalone AP Invoices. Similarly other tax types such as Octroi, Insurance, and Entry Tax etc. are all Item movement related and hence not applicable to Standalone AP Invoices. Hence the only Indirect Tax regime applicable on Stand-alone invoices will be the Service Tax Regime (Direct Tax regimes such as Tax Deduction at Source shall continue to be supported with the existing Global Flex field basis approach for standalone invoices also).

Value Added Tax (VAT) recovery requirements of India Localization VAT recovery process is currently linked to receipt of goods and also on Item attributes. As AP Standalone Invoice does not carry the Item information, VAT recovery is kept out of scope of this project. User should use the VAT Manual recovery entry mechanism for handling exceptional scenarios where a stand-alone invoice is carrying recoverable VAT taxes.

Check the Balance of India Service Tax Credit Register Report

1. Create a Standalone Payable Invoice
2. Attach the Service Tax Category
3. Validate, Approve, Account the Invoice
4. Pay and Account the Payment
5. Run the India Service Tax processing Concurrent.
6. Check the India Service Tax Credit Register Report

Friday 25 November 2011

Setting up default currency rule for the customer

Steps:-

(1)Create a package named, APPS.OE_DEFAULT_TEST_PKG and a function named, Get_CUST_PROFILE_CURRENCY(p_database_object_name IN VARCHAR2,

p_attribute_code IN VARCHAR2) RETURN VARCHAR2;

(2)description of the function,

FUNCTION Get_CUST_PROFILE_CURRENCY

(p_database_object_name IN VARCHAR2

,p_attribute_code IN VARCHAR2)

RETURN VARCHAR2

IS

l_cust_org_id NUMBER;

l_cust_account_profile_id NUMBER;

l_currency_code VARCHAR2(3) := NULL;

l_debug_level CONSTANT NUMBER := oe_debug_pub.g_debug_level;

BEGIN

IF ONT_HEADER_DEF_HDLR.g_record.sold_to_org_id IS NOT NULL

AND ONT_HEADER_DEF_HDLR.g_record.sold_to_org_id <> FND_API.G_MISS_NUM

THEN

l_cust_org_id := ONT_HEADER_DEF_HDLR.g_record.sold_to_org_id;

BEGIN

SELECT CUST_ACCOUNT_PROFILE_ID

INTO l_cust_account_profile_id

from HZ_CUSTOMER_PROFILES

where CUST_ACCOUNT_ID = l_cust_org_id

and site_use_id is null;

SELECT CURRENCY_CODE

INTO l_currency_code

FROM

(SELECT CURRENCY_CODE

FROM HZ_CUST_PROFILE_AMTS

WHERE site_use_id is null and (CUST_ACCOUNT_ID= l_cust_org_id)

and (CUST_ACCOUNT_PROFILE_ID=l_cust_account_profile_id)

ORDER BY currency_code)

WHERE rownum = 1;

EXCEPTION

WHEN NO_DATA_FOUND THEN

RETURN NULL;

END;

END IF;

RETURN l_currency_code;

EXCEPTION

WHEN OTHERS THEN

IF l_debug_level > 0 THEN

oe_debug_pub.add('Error in Get_CUST_PROFILE_CURRENCY') ;

oe_debug_pub.add('Error :'||substr(sqlerrm,1,200)) ;

END IF;

RETURN NULL;

END Get_CUST_PROFILE_CURRENCY;

(3)Go to ,Order Management responsibility > setup > Rules > Defaulting

(4)Make query.It will show the results.

(5)Select,

Application-Order Management

Entity - Order Header

Nextly select the attribute "currency" and press the "Defaulting Rules.." tab.

(6)This will open the Attribute Defaulting Rule window.

(7)Disable the seeded defaulting rule and add the customize rule in default condition section.

Nextly create the default sourcing rule,

(I)Source type - Related Record , Default Source value-Price List(Related Object).Currency(Related Attribute).

(II) Source Type -PL/SQL API , Default Source value -OE_DEFAULT_TEST_PKG(Related Object), Get_CUST_PROFILE_CURRENCY(Related Attribute).

(8)Save the work.



Friday 11 November 2011

Steps to create a dependent value set in Oracle Apps

In order to create a valueset which is dependent on another valueset do the following steps:
1. Create a valueset which is the parent valueset.
2. Create a child valueset whose value is fetched after selecting a value of the parent valueset.

A complete example of the dependent valueset creation is done as follows:

1. Create a parent valueset.
Value Set Name: MJIL_ORGANIZATION_ID
Validation Type: Table
Maximum Size: 5


Edit Information:-
Table Application: Human Resources
Table Name: HR_ALL_ORGANIZATION_UNITS_TL
Table Columns Value: ORGANIZATION_ID
Type: Char
Size: 5
Table Columns Meaning: Name
Type: VarChar2
Size: 240




2. Create another valueset which is dependent on the previous valueset.
Value Set Name: MJIL_CUST_INVOICE_DEP_ORG_ID
Validation Type: Table
Maximum Size: 20





Edit Information:-
Table Application: Receivables
Table Name: RA_CUSTOMER_TRX_ALL
Table Columns Value: TRX_NUMBER
Type: Char
Size: 20

Where/Order By
WHERE INTERFACE_HEADER_ATTRIBUTE10=:$FLEX$.MJIL_ORGANIZATION_ID
ORDER BY TRX_NUMBER DESC

Friday 30 September 2011

Pre-requisites to create Descriptive Flexfield (DFF) in JSP page in R12

Enable 5 basic system profile values (Yes) to enable personalization
link in JSP pages.

Create Seeded Personalizations
FND: Personalization Region Link Enabled
FND: Personalization Seeding Mode
HR: Enable User Personalization
Personalize Self-Service Defn

Go to a JSP page; click on ‘About this page’ on below left side of the
page, then Flexfield References will appear.

Query the Application (i.e. ‘AP’ or ‘AR’) from the JSP page on below
navigated form to have the application name

Application Developer-Application-
Register. (Query in ‘Short name’ block)

Query the Flexfield name from the JSP page to below navigated form for
getting the title.

Application Developer-Flexfield-Descriptive-Register. Query
Application in Application block and Flexfield name in Name block.

Now you will be having the Titel of the DFF as well as Application.

Now go to Application Developer-Flexfield-Descriptive-Segment…and
Query with the Application and DFF Titel.

Now you can create a DFF and view it in required Page.

Thursday 29 September 2011

How to change the prompt of a particular field

How To Change The Prompt Of A Particular Field.

Step 1. Change This """Customer """" Prompt.




Then See Customer Field And Block Name.










Then Open : Help>Diagnostics>Custom Code >Personalize

















Then Press ""Get Value""









Then Change Customer Name As "BRIJESH."






Then Apply Now








Then """"""""""""Validate """"" And Save .


Then Open New Sales Order From And Promt Name Will be Change.















***













How to make a field Mandatory in JSP Page

How To Make A Field Mandatory In Jsp Page
Step 1: Change The (Registry ID) Field As Manadatory.























Then Open """""Personalization Stock Layouts""""""""



































Then open ""Registry id ""field .
















































The Required Field "'"YES""






















Then Apply .

Monday 19 September 2011

PO Tax Sub Query

Select Poh.SEGMENT1 Purchase_Order_Number,Pol.QUANTITY, Pol.UNIT_PRICE,

jpt.TAX_RATE, Jpt.TAX_TYPE,Jpt.TAX_AMOUNT, Jct.TAX_DESCR
FROM
JAI_PO_TAXES jpt

, JAI_CMN_TAXES_ALL jct
, Po_Headers_All Poh

, Po_lines_All Pol

WHERE

Jpt
.po_header_id = Poh.PO_HEADER_ID
And
Jpt.PO_LINE_ID = POl.PO_LINE_ID
And
Poh.PO_HEADER_ID = Pol.PO_HEADER_ID
And
Jpt.TAX_ID = Jct.TAX_ID