Thursday, 3 September 2020

Solution for OAF Error oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not find the specified responsibility.

 Solution for OAF Error oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not find the specified responsibility.


ERROR:-

oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not find the specified responsibility.

at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(Unknown Source)

at oracle.apps.fnd.framework.CreateIcxSession.createSession(Unknown Source)

at _runregion._jspService(_runregion.java:132)


Reason For Error:-

This issue occurred because the user didn't assign the below responsibilities.

 Solution:-


Add the above responsibilities to the user and retest the issue.


Wednesday, 26 August 2020

Dynamic SQL - Real time scenario (Execute Immediate)

 Execute Immediate - Real time scenario.


I want to delete AR Invoice. I have the AR Invoice Number.

Here if we want to delete the AR Invoice, we have to delete first from the below tables.

Sequence to be followed

1. Distributions table.

delete from ra_cust_trx_line_gl_dist_all where customer_trx_id = '2127173';

2. Invoice Lines table

delete from ra_customer_trx_lines_all where customer_trx_id = '2127173';

3. Invoice table

delete from ra_customer_trx_all where trx_number = 'PREBILL-4579' ;


When I run this command, it is getting error due to some trigger issue on distributions table.
I tried to Alter the trigger to Disable, execute the commands and then Enable the trigger.

Anonymous Block:

begin

ALTER TRIGGER RA_CUST_TRX_LINE_GL_DIST_BRI DISABLE;


delete from ra_cust_trx_line_gl_dist_all where customer_trx_id = '2127173';

delete from ra_customer_trx_lines_all where customer_trx_id = '2127173';

delete from ra_customer_trx_all where trx_number = 'PREBILL-4579' ;


ALTER TRIGGER RA_CUST_TRX_LINE_GL_DIST_BRI ENABLE;

COMMIT;

end;

Error Message

Encountered the symbol "ALTER" when expecting one of the following:

   begin case declare exit for goto if loop mod null pragma
   raise return select update while with <an identifier>
   <a double-quoted delimited-identifier> <a bind variable> <<
   close current delete fetch lock insert open rollback
   savepoint set sql execute commit forall merge pipe.
Solution
You cannot issue DDL as static Sql in a PL/SQl Block. If you want to put these commands in a
Pl/sql block, you need Dynamic SQL.
begin 
 EXECUTE IMMEDIATE 'ALTER TRIGGER RA_CUST_TRX_LINE_GL_DIST_BRI DISABLE';
delete from ra_cust_trx_line_gl_dist_all where customer_trx_id = '2127173'; 
delete from ra_customer_trx_lines_all where customer_trx_id = '2127173'; 
 delete from ra_customer_trx_all where trx_number = 'PREBILL-4579' ; 
EXECUTE IMMEDIATE 'ALTER TRIGGER RA_CUST_TRX_LINE_GL_DIST_BRI ENABLE'; 
COMMIT; 
 end;

Tuesday, 14 July 2020

Setup to approve workflow email notification in Oracle Apps


Setup:

Workflow mailer setup in R12 is similar to 11i.

Here we need to understand that workflow mailer has two kinds of notifications.
1. One for Outbound Processing
2. Other for Inbound Processing.

For outbound notification, the concurrent manager node should be able to connect the SMTP server. (Simple Mail Transfer Protocol).

For Inbound notification, the concurrent Manager should be able to connect the IMAP server. (Internet Message Access protocol) Server.


Navigation:
Login to Oracle Apps R12 Instance with Sysadmin user. Go to Workflow Administrator responsibility. Click on workflow manager.




when you click on the Workflow Manager, OAF page will be opened showing the Workflow System.
Here we will have 
1. Notification Mailers
2. Background Engines
3. Agent Listeners
4. Purge
5. Service Components
6. Control Queue Cleanup.

Click on Notification Mailers.
Now another page will be opened showing the Service Components. Click on Edit button.

Now we can Edit Workflow Mailer basic configuration.

Outbound Email Account (SMTP)

Give here Server name, user name and password. There will be a check box Outbound SSL enabled.

Inbound Email Account (IMAP)
Give here server name, username, password and reply to address. Click on Inbound SSL enabled button.

IMAP server should be configured with a valid username and password in which the user have Inbox, Processed and Discarded folders.

Friday, 3 April 2020

How to remove special characters in a string using Oracle Sql Query



How to remove special characters in a string using Oracle Sql Query?

SELECT     REGEXP_REPLACE('Th♥is∞ is a dem☻o of REGEXP_♫REPLACE function','[^a-z_A-Z ]') FROM     dual;

The following is the output result.

This is a demo of REGEXP_REPLACE function.
This query is useful mainly for data cleaning purpose.


How to remove redundant spaces in a string using Oracle SQL Query?



SELECT
  regexp_replace(
  'This line    contains    more      than one   spacing      between      words'
  , '( ){2,}', ' ' ) regexp_replace
FROM
  dual;

Output:

This line contains more than one spacing between words

Tuesday, 23 August 2016

Invoice Status Showing as "Needs Revalidation"


First check the Invoice distributions, whether all the lines are accounted or not.
 If all the lines are accounted, then do the below step, otherwise never try this.

 update ap_invoice_distributions_all
set MATCH_STATUS_FLAG ='A'
where invoice_id = :invoice_id
and MATCH_STATUS_FLAG is null


Wednesday, 2 September 2015

Oracle Finance Technical Questions

Technical Interview Questions – Oracle Financials Consultant

Structured from the following three dimensions – Technology, People and Processes

Technology

General Ledger

Accounts Payable

Accounts Receivable

Fixed Assets

Cash Management

All Modules


People



Process




In how many ways we can link the requisition to purchase order in oracle ebs

 In Oracle E-Business Suite (EBS) R12 / R12.2, a Purchase Requisition can be joined to a Purchase Order across 4 primary levels , depending ...