Thursday, 20 May 2021

How to find the Oracle Fusion Instance name from Backend using sql

 Table to find out the fusion Instance name: Fusion.ASK_DEPLOYED_DOMAINS


Query:-

SELECT
        external_virtual_host,
        SUBSTR (external_virtual_host, 1,instr(external_virtual_host,'.') -1)
FROM
        fusion.ask_deployed_domains ad
WHERE
        ad.deployed_domain_name='FADomain';


Saturday, 3 April 2021

Sequence in Oracle

 

SYNTAX:-


CREATE SEQUENCE SEQUENCE_NAME

START WITH 

INCREMENT BY 

NOCACHE

NOCYCLE;


EXAMPLE:-

Customers_Seq is Sequnce Name, It will start with 1000 and increment by 1 each time.

CREATE SEQUENCE customers_seq

START  WITH 1000

INCREMENT BY 1

NOCACHE

NOCYCLE;


NOCACHE /  CACHE:-

The cache option specifies how many sequence values will be stored in memory for faster access.

The downside of creating a sequence with cache is that if a system failure occurs, all the cache sequence values that have not been used will be lost.

This results a gap in t he assigned sequence values. When the system comes back, Oracle will cache new numbers from where it left off in the sequence, ignoring the so called "last  sequence values".

TIP: To recover the lost sequence values, you can always execute an ALTER SEQUENCE command to reset the counter to the correct value


NoCache means, that none of the values are stored in memory. This option may sacrifice some performance. However, you should not encounter a gap in the assigned sequence values.


NOCYCLE

Use NOCYCLE if you want the sequence to stop generating the next value when it reaches its limit. 

Tuesday, 30 March 2021

BI Publisher Bursting in Oracle Fusion



  • Bursting is the method of automatically splitting and submitting the report output via email or fax. 
  • Bursting aids in the output of the report. With the aid of Bursting, we can send the report output to our customer after running it through some logic. 
  • Bursting operates by splitting the report output according to our logic and then sending it to the customers or some email address. We have the Bursting Functionality in Reports framework in Oracle Cloud, just like EBS. 
I’ll go into the Bursting Configuration in Oracle Cloud BIP Files in depth below.

BIP Bursting Steps in Oracle Fusion
  1. Create a BIP Data Model based on SQL queries.
  2. From the SQL Data Model, create a BIP Report.
  3. Go to the Data Model for the BIP report that we want to burst.
  4. The report data model as seen below, and I’d like to build the bursting according to the vendor’s guidance. As an example, the report output can be divided and sent according to the supplier, so the important column of this report is VENDOR_ID, which we will use to split the report output for different suppliers.data model
  5. We need to go to Bursting Open in the report Data Model, as seen below.bursting
  6. To build the bursting Logic for this report, press the ‘+’ button.
  7. Oracle has designed Fusion BIP Bursting logic in two parts (1) Split by (2) Deliver by

Split By: By using split by method we can divide the output of the reports based on which column of the report we’re looking at. For example, we would use the Vendor_id column to split the report output by vendor, and if the report output has three vendors, Bursting will divide and split the report output into three parts based on Vendor_Id.

Deliver By: Deliver by method is used to submit the report output via email. We must also define the report column depending on which the report output should be delivered.

The parent column is ‘Split By‘ and the child column is ‘Deliver By‘ , Bursting email deliver logic is based on ‘Deliver By‘.

8. In the Split By and Deliver By LOV, I used the report’s common Vendor_ID column.

bursting

9. We’ll use the SQL Query below in the SQL Query block.

SELECT

               VENDOR_ID AS "KEY",

              'BIP_REPORT_RTF_NAME.rtf' TEMPLATE,

              'en-US' LOCALE,

               'PDF' OUTPUT_FORMAT,

               VENDOR_NAME OUTPUT_NAME,

                'EMAIL' DEL_CHANNEL,

                'To Email Address' PARAMETER1,

                'Cc Email Address' PARAMETER2,

                'TestEmail.email.com' PARAMETER3,

                'The Emails Subject' PARAMETER4,

                'Hi

                '||'The body of the email that will be reflected in the Bursting Email.

                '||'Thanks & Regards

                Person Name' PARAMETER5,

                'True' PARAMETER6,

                :p_from_email  PARAMETER7

FROM PO_VENDORS;


10. The final Bursting Logic written in the BIP report is shown below.

Fusion BIP Bursting SQL

How to create dependent LOV in Oracle Fusion BI Reports

 

Steps

  1. Create a Data Model with SQL query
  2. Create 2 list of values(LOV), pass parameter in dependent LOV query.
  3. Create 2 Parameters, select their respective list of value(LOV).
  4. Save the Data Model.
  5. Run BIP Report, Dependent LOV is changing based on Independent values.

  6. For Example: We are creating 2 parameters and when the independent LOV value changes, the dependent LOV changes as well.

    1. Header_ID : Independent Parameter
    2. Line_ID: Dependent Parameter

    (1) Create a Data Model

    Navigation:  Navigator > More > Report and Analytics > Browse Catalogue > New > Data Model

    Data Model SQL Query: 

    Select PO_Header_id, Type_lookup_code, segment1,Vendor_id

    From PO_Headers_all;

    (2) Create 2 list of values(LOV)

    Create 2 list of values, one is independent and another one will dependent, pass parameter in dependent list of value SQL query

    list of value

    Write SQL query for each list of Value(LOV)

    Pass parameter values in SQL query for dependent LOV

    po line id

    (3) Create 2 Parameters

    parameters

    Select highlighted options for both parameters

    parameter options

    (4) Save the BIP Report

    Click on Save icon from the right top of the window and choose the location where you want to save the data model.

    (5) Run BIP Report

    To run the BIP report click on View Data button from the right top window screen, choose any Header_ID from the first LOV and you will find second parameter Line_ID list of values are changing.

    view data

Monday, 22 February 2021

Concurrent Program assigned to Responsibility in oracle apps

SELECT  frt.responsibility_name, 

        frg.request_group_name,

       fcpt.user_concurrent_program_name

FROM fnd_Responsibility fr, 
     fnd_responsibility_tl frt,
     fnd_request_groups frg, 
     fnd_request_group_units frgu,
     fnd_concurrent_programs_tl fcpt
WHERE frt.responsibility_id = fr.responsibility_id
AND frg.request_group_id = fr.request_group_id
AND frgu.request_group_id = frg.request_group_id
AND fcpt.concurrent_program_id = frgu.request_unit_id
AND frt.LANGUAGE = USERENV('LANG')
AND fcpt.LANGUAGE = USERENV('LANG')
AND fcpt.user_concurrent_program_name = :conc_prg_name

Sunday, 17 January 2021

EBS: How to view Workflow processes and Notifications owned by all users

 

When I open the status monitor page from Workflow administrator, I am unable to view the workflow notifications from frontend.

Issue: Workflow owned by is showing my name "SDEVAKI" but I need to view all the workflows so that I can see the status of any workflow.





In order to view all the workflows, I need to change the settings of workflow administrator.

Login with SYSADMIN user.
Navigate to Workflow Administrator web applications responsibility and go to administration tab and change the below value from SYSADMIN to *.



Updated to below screenshot.



Now, Navigate to your login and see the value for workflow owned by is changed.







Tuesday, 5 January 2021

Oracle APPS Open Payable Summary Report

SELECT DISTINCT    invoice.org_name,    invoice.vendor_name,
    invoice.vendor_number,
    invoice.vendor_type_lookup_code,
    invoice.vendor_site_code,
    invoice.source,
    invoice.invoice_num,
    to_char(invoice.invoice_date, 'DD-MON-RRRR') invoice_date,
    to_char(invoice.due_date, 'DD-MON-RRRR') due_date,
    invoice.terms,
    invoice.supplier_site_terms,
    invoice.payment_method_code,
    invoice.invoice_currency_code,
    invoice.invoice_amount,
    holds.hold,
    invoice.check_date,
    ( to_date(invoice.check_date) - ( invoice.invoice_date ) ) days_to_pay,
    :p_recipient_email_address recipient_email_address
FROM
    (
        SELECT
            aip.org_id,
            hro.name      org_name,
            av.vendor_name,
            av.segment1   vendor_number,
            av.vendor_type_lookup_code,
            ass.vendor_site_code,
            aip.invoice_id,
            aip.invoice_num,
            aip.invoice_date,
            aip.source,
            aps.due_date,
            apt.name      terms,
            apts.name     supplier_site_terms,
            aip.payment_method_code,
            aip.invoice_currency_code,
            aip.invoice_amount,
--'31-MAR-16' Check_Date
            :p_check_date check_date 
        FROM
            ap.ap_invoices_all             aip,
            ap.ap_payment_schedules_all    aps,
            ap.ap_supplier_sites_all       ass,
            ap.ap_suppliers                av,
            ap.ap_terms_tl                 apt,
            ap.ap_terms_tl                 apts,
            hr.hr_all_organization_units   hro
        WHERE
            aip.invoice_id = aps.invoice_id
            AND ass.vendor_site_id = aip.vendor_site_id
            AND ass.vendor_id = av.vendor_id
            AND av.vendor_name = nvl(:p_vendor_name, av.vendor_name)
            AND apts.term_id = ass.terms_id
            AND aip.terms_id = apt.term_id
            AND aip.org_id = hro.organization_id
            AND hro.name = nvl(:p_organization, hro.name)
            AND aip.payment_status_flag = 'N'
            AND aip.cancelled_date IS NULL
            AND apt.language = 'US'
            AND aps.due_date <= :p_due_date_through
            AND --'31-MAR-2016' and
             aip.payment_method_code = nvl(:p_payment_method, aip.payment_method_code)
            AND aip.invoice_amount <> 0
    ) invoice,
    (
        SELECT DISTINCT
            ah.invoice_id,
            'Invoice_on_hold' hold
        FROM
            ap_holds_all ah
        WHERE
            ah.release_reason IS NULL
    ) holds
WHERE
    invoice.invoice_id = holds.invoice_id (+)
ORDER BY
    invoice.org_name

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 ...