Wednesday, May 16, 2012

APP-SQLAP-10000 ORA-01403:no data found occured in w/ parameter (term_id = sequence_id=1) when making a payment

Symptoms: APP-SQLAP-10000 ORA-01403:no data found occured in w/ parameter (term_id = sequence_id=1) when making a payment



Solution: Assign payment terms to the withholding tax authorities supplier, it will solve the problem.



Navigation is as follow:
Goto Payables Responsibility>Supplier>Inquiry
 




Now search for the relevant supplier and click on update

 Now click on INVOICE MANAGEMENT and then on TERMS tab and define term here.



Your feedback/comment is quite important for improving this blog so feel free to leave your comments & suggestions

Tuesday, May 15, 2012

ORA 20001 Gather Schema Statistics fails

ORA 20001



Following solution is extracted from article id 781813.1.


Cause

There are two reasons for that error message:

1 ) There are duplicate rows on FND_HISTOGRAM_COLS table for JE_BE_LINE_TYPE_MAP table.
Because of this problem, FND_STATS tries to gather histogram information using wrong command and
it fails with ora-20001 errors.

Following SQL should have returned one row , not two.

SQL> select column_name, nvl(hsize,254) hsize
from FND_HISTOGRAM_COLS
where table_name = 'JE_BE_LINE_TYPE_MAP'
order by column_name;

COLUMN_NAME HSIZE
------------------------------ ----------
SOURCE 254
SOURCE 254


Since there are two rows in histograms table, FND_STATS creates following command to gather statistics on table 'JE_BE_LINE_TYPE_MAP' :
 dbms_Stats.gather_table_stats(OWNNAME => 'GL', TABNAME
=>'JE_BE_LINE_TYPE_MAP',METHOD_OPT=>'FOR ALL COLUMNS SIZE 1 FOR COLUMNS SOURCE SIZE 254 FOR
COLUMNS SOURCE SIZE 254');

 Above command will work on 9i and 10G databases but it will fail with ora-20001 errors on 11G.

2) Column does not exist on the table but still listed in FND_HISTOGRAMS_COL table.

You can use following SQL to identify. SQL will prompt for table name, use table name from the errors. In above examples you can use FII_FIN_ITEM_HIERARCHIES.
select hc.table_name, hc.column_name
from FND_HISTOGRAM_COLS hc , dba_tab_columns tc
where hc.table_name ='&TABLE_NAME'
and hc.table_name= tc.table_name (+)
and hc.column_name = tc.column_name (+)
and tc.column_name is null]

Solution

Find out all duplicates and/or obsolete rows in FND_HISTOGRAM_COLS and delete one of them.
Remember to take backup of the FND_HISTOGRAM_COLS table before deleting any data.
-- identify duplicate rows

select table_name, column_name, count(*)
from FND_HISTOGRAM_COLS
group by table_name, column_name
having count(*) > 1;

-- Use above results on the following SQL to delete duplicates

delete from FND_HISTOGRAM_COLS
where table_name = '&TABLE_NAME'
and  column_name = '&COLUMN_NAME'
and rownum=1;

-- Use following SQL to delete obsoleted rows

delete from FND_HISTOGRAM_COLS
where (table_name, column_name) in
  (
   select hc.table_name, hc.column_name
   from FND_HISTOGRAM_COLS hc , dba_tab_columns tc
   where hc.table_name  ='&TABLE_NAME'
   and hc.table_name= tc.table_name (+)
   and hc.column_name = tc.column_name (+)
   and tc.column_name is null
  );


Monday, May 14, 2012

Disable Descriptive Flex Fields

Freeze / Disable a Descriptive Flex Fields (DFF) through Forms Personalization


Following Metalink notes explains why it is not possible to Freeze / Disable a Descriptive Flex Fields (DFF) through Forms Personalization.

1- How To Make A DFF Read Only Through Form Personalisations? [ID 1289789.1]
2- How To Set Flexfield To Be Required By Form Personalization [ID 735423.1]

Personalizing the flexfield segments is not possible through forms personalization due to below reason:

A Flexfield is a single field in a Form but then when you click into it and it opens up the flexfields window,
the multiple fields you see is actually a user exit with multi segment values, not form fields.
No Form Personalization events are passed to flexfield windows (user exits).
No Form Personalization events are passed to segments inside the flexfield window (user exit).

If you want to disabled the segments, you can disable the segment
in flexfield definition form(Uncheck the enabled checkbox).


The flex developer has stated this would involve a major re-write of the flex code for APPCORE
to process forms personalization rules and actions pertaining to flexfields.
One need to understand that flexfields are not assigned to a canvas,
the flexfield UIs in forms are not native form fields but built on the fly with user exits.


Defaulting, populating, and or manipulating hidden fields for descriptive
flexfield attributes should not, and are not supported by flexfields to be
done through forms personalizations. Only Flexfields will support through
the flexfield setup and definition.

How to make Stage Area to install Oracle EBS R12

Oracle EBS Installation



1. login to the ROOT user and insert the start here DVD (wait till it is shown up)

2. goto the location
$ cd /mnt -- make your own mount point here
$ mkdir cdrom
$ df -h   -- to see the default mount point in the last line (suppose it is /media/r12Start)

$ umount /media/r12Start

$ mount /dev/cdrom /mnt/cdrom

3. From local user (i.e oracle)
$ cd /mnt/cdrom/Disk1/rapidwiz
$ perl adautostage.pl
    give the stage directory path
    enter n for auto mount
    entter default value for mount point
    enter default value for umount

After start here dvd is completed

$ umount /mnt/cdrom
$ eject   -- to eject the cd
$ df -h   -- to confirm

4. un mount the cd rom from its default mount point

$ df -h to see the default mount point in the last line
$ umount /media/orardb

$ df -h -- to confirm it is un mounted

6.Insert next DVD, now mount to your own mount point

$ mount /dev/cdrom /mnt/cdrom
(continue with this loop from 4 to 6 from root user)

Failed to connect form server

Disable XSS filter


Symptoms: Facing issue Failed to connect form server using Internet Explorer and all packages are also installed ? This is pure an Internet Explorer issue.

Solution: 
Step- 1 Go to Interne Explore –> Tool –> Internet Options –> Security –> Internet –> Custom level –> (3rd last Option) Enable XSS filter (disable this option)

Step- 2 Go to Interne Explore –> Tool –> Internet Options –> Security –> Local Intranet –> Custom level –> (3rd last Option) Enable XSS filter (disable this option)

How to Show Calendar for a Date Input Field in Oracle Forms

How to Show Calendar for a Date Input Field in Oracle Forms



1.The data item against which calendar is to be attached as date input is used.

2. In the property palette of that data item; in the LOVs section of the pallete. Make the following changes:
    List of Values: ENABLE_LIST_LAMP
    validate from List: NO

3.Save the changes.

4.Introduce a trigger named as KEY-LISTVAL against that data item to which calendar is to be attached.

5.in the editor of the trigger write the following statement:
        calendar.show;
6. Compile it and save.

Increase number of Running Concurrent Requests in R12

Increase number of Running Concurrent Requests in R12


Step-1 Log in to system, switch responsibility to System Administrator.
Step-2 Go to Concurrent > Manager > Define
Step-3 Query 'Standard Manager' there, press Work Shifts button.
Step- 4 Increase the Processes column to required number. (In following case 5 Concurrent Requests can run at once.).

Increase number of Running Concurrent Requests in R12
Increase number of Running Concurrent Requests in R12