Friday, 2 October 2020
How to create an ESS Job in Oracle fusion for a BIP report
Thursday, 1 October 2020
Oracle SQL Query to get the Contract Attachments/Documents Details in Oracle fusion.
Here is the SQL Query to get the Contract Attachments/Documents details in Oracle fusion. This query can be modified accordingly as per the requirements.
These are the tables, refer here in this post. Oracle Tables for the Contract Attachment Documents
SELECT oha.contract_number,
oha.cognomen,
fad.document_id,
fdv.file_name
FROM fnd_attached_documents fad,
fnd_documents_vl fdv,
okc_k_headers_vl oha
WHERE fad.entity_name = 'OKC_SUPPORTING_DOCS'
AND fad.document_id = fdv.document_id
AND fad.pk1_value = oha.id
ORDER BY oha.contract_number
Tables for the Contract Documents/Attachments in Oracle fusion
Tuesday, 29 September 2020
IN and NVL Function in Oracle BIP Data model SQL Query.
Here is the sample query where you can use IN clause and NVL Function in the SQL Query - where clause in the Oracle BIP report.
Ex : Say you have an input parameter with the Comma separated values, and the report should pull all the required values as per the input parameter or it should pull all the records when no value is provided.
Input Parameter - :P_NAME
Properties - Comma separated values
Sample Query
SELECT * FROM <TABLE>
WHERE ( 1 = DECODE(:P_Name,null,1,0) OR name IN (:P_Name))
This way it will pull all the records if no input parameter is specified or if any input parameter is specified it will retrieve only those records.
Sample General Ledger ( GL ) Journal - SQL Query - Oracle Cloud Fusion.
Here is the sample SQL Query to fetch the basic General Ledger( GL ) - SQL Query in the Oracle Cloud fusion. This query may be modified accordingly as per the requirements.
SELECT src.user_je_source_name,
cat.user_je_category_name,
hdr.name,
batch.name,
hdr.date_created,
hdr.default_effective_date,
hdr.status,
hdr.currency_code,
line.je_line_num,
line.description,
line.entered_dr,
line.entered_cr,
line.accounted_dr,
line.accounted_cr,
line.currency_conversion_rate,
line.currency_conversion_type,
line.currency_conversion_date,
gcc.segment1,
gcc.segment2,
gcc.segment3,
gcc.segment4,
gcc.segment5,
gcc.segment6,
gcc.segment7,
gcc.segment8,
gcc.segment9,
gcc.segment10,
batch.name Reference_1,
batch.description Reference_2,
NULL Reference_3,
hdr.name Reference_4,
hdr.description Reference_5,
hdr.external_reference Reference_6,
hdr.accrual_rev_flag Reference_7,
hdr.accrual_rev_period_name Reference_8,
hdr.accrual_rev_change_sign_flag Reference_9,
line.description Reference_10,
ledger.name
gp.period_name
FROM gl_je_headers hdr,
gl_je_lines line,
gl_code_combinations gcc,
gl_ledgers ledger,
gl_je_sources src,
gl_je_categories cat,
gl_je_batches batch,
gl_periods gp
WHERE 1 = 1
AND hdr.je_header_id = line.je_header_id
AND line.code_combination_id = gcc.code_combination_id
AND hdr.ledger_id = ledger.ledger_id
AND line.ledger_id = ledger.ledger_id
AND hdr.je_source = src.je_source_name
AND hdr.je_category = cat.je_category_name
AND hdr.je_batch_id = batch.je_batch_id
AND hdr.period_name = gp.period_name
AND ledger.period_set_name = gp.period_set_name
Wednesday, 19 August 2020
SQL Query to get the Supplier Site Assignment - Oracle Fusion.
Here is the generic SQL Query to get the Supplier Site Assignment details as per the FBDI template in the Oracle Fusion.
select
psv.vendor_name,
pssv.vendor_site_code,
( select bu_name from fun_all_business_units_v where bu_id=pssam.prc_bu_id) procurement_bu,
( select bu_name from fun_all_business_units_v where bu_id=psaam.bu_id) client_bu,
( select bu_name from fun_all_business_units_v where bu_id=psaam.bill_to_bu_id) bill_tobu,
hla_ship.location_code,
hla_bill.location_code,
psaam.allow_awt_flag,
psaam.awt_group_id,
gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8 liability_distribution,
gcc2.segment1||'.'||gcc2.segment2||'.'||gcc2.segment3||'.'||gcc2.segment4||'.'||gcc2.segment5||'.'||gcc2.segment6||'.'||gcc2.segment7||'.'||gcc2.segment8 prepayment_distribution,
gcc1.segment1||'.'||gcc1.segment2||'.'||gcc1.segment3||'.'||gcc1.segment4||'.'||gcc1.segment5||'.'||gcc1.segment6||'.'||gcc1.segment7||'.'||gcc1.segment8 bill_payable_distribution,
psaam.inactive_date,
psaam.distribution_set_id distribution_name
from poz_suppliers_v psv,
poz_supplier_sites_v pssv,
poz_site_assignments_all_m psaam,
poz_supplier_sites_all_m pssam,
hr_locations hla_ship,
hr_locations hla_bill,
gl_code_combinations gcc,
gl_code_combinations gcc1,
gl_code_combinations gcc2,
fun_all_business_units_v fabuv
where psv.vendor_id = pssv.vendor_id
and psaam.vendor_site_id = pssv.vendor_site_id
and pssam.vendor_site_id = psaam.vendor_site_id
and hla_ship.location_id(+) = psaam.ship_to_location_id
and hla_bill.location_id (+) = psaam.bill_to_location_id
and gcc.code_combination_id(+) = psaam.accts_pay_code_combination_id
and gcc1.code_combination_id(+) = psaam.future_dated_payment_ccid
and gcc2.code_combination_id(+) = psaam.prepay_code_combination_id
and fabuv.bu_id = pssam.prc_bu_id
SQL Query to get the Supplier Contact Details - Oracle Fusion.
Here is the generic SQL Query to get the Supplier Contact details as per the FBDI template in Oracle fusion.
select
hpo.party_name supplier_name,
hpp.person_pre_name_adjunct,
hpp.person_first_name,
hpp.person_middle_name,
hpp.person_last_name,
hc.job_title,
hps.party_site_name,
hor.role_type,
email.email_address,
phone.phone_country_code,
phone.phone_area_code,
phone.phone_number,
phone.phone_extension,
fax.fax_country_code,
fax.fax_area_code,
fax.fax,
mobile.mobile_country_code,
mobile.mobile_area_code,
mobile.mobile,
poc.inactive_date
FROM
hz_parties hpo,
hz_relationships hzr,
hz_parties hpp,
hz_org_contacts hc,
hz_org_contact_roles hor,
poz_supplier_contacts poc,
hz_party_sites hps,
poz_suppliers ps,
(select email_address, owner_table_id from
hz_contact_points hcp
where
hcp.contact_point_type(+)='email'
and hcp.owner_table_name='hz_parties') email,
(select phone_country_code,phone_area_code,phone_number,phone_extension,owner_table_id from
hz_contact_points hcp
where
hcp.contact_point_type(+)='phone'
and hcp.owner_table_name='hz_parties'
and hcp.phone_line_type(+) = 'gen') phone,
(select phone_country_code fax_country_code,phone_area_code fax_area_code,phone_number fax,owner_table_id from
hz_contact_points hcp
where
hcp.contact_point_type(+)='phone'
and hcp.owner_table_name='hz_parties'
and hcp.phone_line_type(+) = 'fax') fax,
(select phone_country_code mobile_country_code,phone_area_code mobile_area_code, phone_number mobile,owner_table_id from
hz_contact_points hcp
where
hcp.contact_point_type(+)='phone'
and hcp.owner_table_name='hz_parties'
and hcp.phone_line_type(+) = 'mobile') mobile
where
hpo.party_type='organization'
and hzr.object_id=hpo.party_id
and hpp.party_type='person'
and hpp.party_id=hzr.subject_id
and hc.party_relationship_id=hzr.relationship_id
and hps.party_site_id(+) = poc.party_site_id
and hzr.relationship_id = poc.relationship_id(+)
and hor.org_contact_id(+) = hc.org_contact_id
and ps.party_id=hpo.party_id
and email.owner_table_id(+)=hpp.party_id
and phone.owner_table_id(+)=hpp.party_id
and fax.owner_table_id(+)=hpp.party_id
and mobile.owner_table_id(+)=hpp.party_id
and hzr.relationship_code = 'contact_of'
SQL Query to get the Supplier Address Details - Oracle Fusion.
SQL Query to get the Supplier Site Details - Oracle Fusion.
SQL Query to get the Suppliers Details - Oracle fusion.
Saturday, 7 March 2020
SQL Query to get the Supplier Basic info in Oracle fusion.
Use this query, modify by adding additional columns as required and extract the data.
SQL Query
SELECT psv.vendor_name supplierName
,pssam.vendor_site_code supplierSite
,hps.party_site_id HZ_Party_Site_ID
,pssam.vendor_site_id vendor_site_id
FROM poz_suppliers_v psv,
poz_supplier_sites_all_m pssam,
hz_party_sites HPS
WHERE pssam.vendor_id=psv.vendor_id
AND hps.party_site_id = pssam.party_site_id
SQL Query to get the Purchase Order(PO) FBDI Import Error details.
This is the sample query which can be used. Please use and modify accordingly for your convenience.
SQL Query
SELECT
POIE.BATCH_ID,
POIE.INTERFACE_TYPE,
PHI.DOCUMENT_NUM,
PLI.LINE_NUM,
PLLI.SHIPMENT_NUM,
PDI.DISTRIBUTION_NUM,
PHI.vendor_name,
phi.vendor_site_code,
phi.vendor_id,
phi.vendor_site_id,
PDI.PROJECT,
PDI.TASK,
PDI.EXPENDITURE,
pdi.PJC_EXPENDITURE_ITEM_DATE,
PDI.EXPENDITURE_ORGANIZATION,
POIE.COLUMN_NAME,
POIE.COLUMN_VALUE,
POIE.ERROR_MESSAGE,
POIE.ERROR_MESSAGE_NAME,
POIE.TABLE_NAME,
POIE.CREATED_BY,
poie.request_id
FROM
PO_INTERFACE_ERRORS POIE,
PO_HEADERS_INTERFACE PHI,
PO_LINES_INTERFACE PLI,
PO_LINE_LOCATIONS_INTERFACE PLLI,
PO_DISTRIBUTIONS_INTERFACE PDI
WHERE POIE.INTERFACE_HEADER_ID = PHI.INTERFACE_HEADER_ID(+)
AND POIE.INTERFACE_LINE_ID = PLI.INTERFACE_LINE_ID(+)
AND POIE.INTERFACE_LINE_LOCATION_ID = PLLI.INTERFACE_LINE_LOCATION_ID(+)
AND POIE.INTERFACE_DISTRIBUTION_ID = PDI.INTERFACE_DISTRIBUTION_ID(+)
SQL Query to get the Legal entity in Oracle fusion.
Here is the SQL Query to get the Legal entity in Oracle fusion.
SQL Query
SELECT *
FROM XLE_ENTITY_PROFILES
where TRUNC (SYSDATE) BETWEEN NVL ( EFFECTIVE_FROM,TRUNC (SYSDATE) - 1)
AND NVL (EFFECTIVE_TO,TRUNC (SYSDATE) + 1)
Import Program to import Purchase Orders in Oracle fusion.
1. Log in to the application and click on navigator icon and select Scheduled Process
2. Click on Schedule New Process. Search and select Load Interface File for Import Program.
3. Search and select the import process Import Orders. Upload the zipped FBDI data files.
4. Once the program is submitted, click on done and check the status of submitted process in Process window. Make sure the status or submitted process id must be completed along with all the child process.
5.Once the Load Interface File for Import Program is completed successfully, click on Schedule New Process. Search and select Import Orders program
Wednesday, 27 November 2019
Rest API to delete the UnProcessed Projects Costs.
The input for this Rest API is the Transaction Reference ID from the Projects Interface table "PJC_TXN_XFACE_ALL"
/fscmRestApi/resources/11.13.18.05/unprocessedProjectCosts/{UnprocessedTransactionReferenceId}
Also, Please do refer the latest Oracle documents for the same.
https://docs.oracle.com/en/cloud/saas/project-portfolio-management/19c/fapap/api-unprocessed-project-costs.html
TaxPayer ID - Supplier Profile database table to find the Tax Payer ID - Oracle fusion.
POZ_SUPPLIERS_PII.NCOME_TAX_ID ( TableName. ColumnName)
VAT Code and Tax Registration Number at the Supplier Site - Oracle Fusion FBDI
These two columns are dummy columns and are not uploaded through the Supplier Site FBDI.
Both Vat Code and Tax Registration Number are not supported functionality via the Supplier Site import process. Please see below the Doc ID provided
Thursday, 3 October 2019
Query to find the Supplier Site Tolerances configuration setups in Oracle fusion
Here is the query to find the Supplier Site Service Tolerance and Quantity Tolerances configuration setups in Oracle fusion.
SQL Query
SELECT *
FROM AP_TOLERANCE_TEMPLATES
Import program to Purge the PO Receipts interface table in Oracle fusion.
"Purge Receiving Interface"
These are the steps to be followed :
1. Go to Tools -> Scheduled Process
2. Click on Schedule New Process.
3. Search for : "Purge Receiving Interface"
4. Select OK from the Search results.
5. Select and provide the appropriate input parameters value for
a. Purge Data Before.
b. Status.
6. Click on Submit.