1.ERP Topics
1.ERP Topics
END LOOP;
utl_file.fclose(v_file);
dbms_output.put_line('count' || v_count);
END;
---------------------------------------
Syntax for SQL LOADER:
LOAD DATA
INFILE 'PO_TOP/12.0.0/in/file_name.csv'
INSERT INTO TABLE EBS
FIELD TERMINATED BY ','
(SNO,SNAME,COURSE,FEE)
-----------------------------------------------------------------------
-- Sample PLSQL Procedure with all validation to insert the data in
INTERFACE Table.
dbms_output.put_line('ITEM COUNT'||v_count);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(sqlcode||'-'||sqlerrm);
END;
BEGIN
SELECT COUNT(organization_id) INTO v_org_count FROM
mtl_system_items_b
WHERE organization_id = i.organization_id;
dbms_output.put_line('ORG COUNT'||v_org_count);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(sqlcode || '-' || sqlerrm);
END;
BEGIN
SELECT COUNT(template_id) INTO v_temp_count FROM
mtl_item_templates WHERE template_name = i.template_name;
dbms_output.put_line('TEMPLATE_COUNT' || v_temp_count);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line(sqlcode || '-' || sqlerrm);
END;
IF
v_count = 0 AND v_org_count ( 0 AND v_temp_count
(0
THEN
l_item_table(j).transaction_type := 'CREATE';
l_item_table(j).segment1 := i.item_number;
l_item_table(j).description := i.description;
l_item_table(j).template_name := i.template_name;
l_item_table(j).organization_id := i.organization_id;
ELSE
dbms_output.put_line('ALREADY EXISTS');
END IF;
END LOOP;
Select
PO_HEADER_ID,
SEGMENT1,
VENDOR_ID,
VENDOR_SITE_ID,
TERMS_ID,
APPROVED_FLAG
from PO_HEADERS_ALL;
Select
PO_HEADER_ID,
SEGMENT1,
VENDOR_ID,
VENDOR_SITE_ID,
TERMS_ID,
APPROVED_FLAG
from PO_HEADERS_ALL where SEGMENT1 between :from_po_no
and :to_po_no
Po Lines Query:
SELECT
PO_LINE_ID,
PO_HEADER_ID,
LINE_TYPE_ID,
ITEM_ID,
QUANTITY,
AMOUNT
FROM PO_LINES_ALL;
Master Group:
select
trx_number,
customer_trx_id cust_id
from ra_customer_trx_all;
Child Group:
select
customer_trx_line_id,
customer_trx_id,
line_number,
inventory_item_id
from ra_customer_trx_lines_all a where a.customer_trx_id=:cust_id;
12. Use of aggregate functions (count, sum, max, min, avg, first, last) in
bip report.
STEPS:
1. Create the Data Model.
Query:
SELECT
a.po_header_id Po_header,
b.po_header_id,
b.po_line_id,
b.item_id,
b.unit_price,
b.quantity,
b.base_unit_price
FROM
po_headers_all a,
po_lines_all b
WHERE
a.po_header_id = b.po_header_id
AND a.segment1 = '162352';
STEPS:
1. Create the Data set with Bind Parameter.
Query:
SELECT
a.po_header_id Po_header,
b.po_header_id,
b.po_line_id,
b.item_id,
b.unit_price,
b.quantity,
b.base_unit_price
FROM
po_headers_all a,
po_lines_all b
WHERE
a.po_header_id = b.po_header_id
AND a.segment1 = '162352'
19. Bursting in Oracle Fusion (Delivery Channel - EMAIL, FTP, SFTP &
FILE):
Following are the Methods(DELIVERY CHANNEL) to send invoice using
bursting program: EMAIL, FAX, FTP, SFTP, FILE, PRINT & WEBDEV.
select b.trx_number,
a.customer_trx_id,
b.term_id,
b.org_id,
b.batch_id,
b.status_trx,
b.application_id
FROM ra_customer_trx_lines_all a,
ra_customer_trx_all b
WHERE a.customer_trx_id= b.customer_trx_id
AND a.customer_trx_id in (1002,1)
4. Go to Bursting in left corner of data model screen, add new & give
required details.
SELECT
trx_number KEY, -- Split by
'Bursting_Layout' TEMPLATE, -- Catalog
:xdo_user_report_locale LOCALE, -- English (es)
'PDF' OUTPUT_FORMAT, -- PDF,HTML,CSV,RTF,EXCEL
'EMAIL' DEL_CHANNEL, --
EMAIL/FAX/FTP/FILE/SFTP/PRINT/WEBDAV
'AR INVOICE_'||trx_number OUTPUT_NAME, -- Output Name
’[email protected]’ parameter1, -- To
'[email protected]' parameter2, -- cc
‘[email protected]’ parameter3, -- From
‘Bursting Program testing’ parameter4, -- Subject
‘Dear Customer PFA Attachment’ parameter5, -- Body
‘true’ parameter6, -- Attachment
‘Reply-To’ parameter7, -- Reply to
‘[email protected]’ parameter8 -- Bcc
FROM (
select distinct b.trx_number
from ra_customer_trx_lines_all a,
ra_customer_trx_all b
where a.customer_trx_id= b.customer_trx_id
and a.customer_trx_id in (1002,1))
9. Run the report by using the scheduler or ESS job & get the output.
Notes:
1. General Split by field is equal to Deliver by field.
2. In schedule report -- diagnostic check all check boxes to get the log &
the SQL plan etc according to requirement.
3. According to the DELIVERY_CHANNEL(EMAIL,FTP,SFTP,etc) we have to
change the Parameters (parameter1,....).
8. Add the Font Mappings, give Target Font Type = True Type always.
2. Add the filter on Business group column for (US1 Business Group).
3. Add the filter on supplier and select 2 suppliers.
4. Changing the Compound layout name(Rename Compound layout field).
Click on edit at title level and change.
5. Working with titles and Logo.
Click on edit at title level and change.
2. Create Analysis (OTBI Report) with below columns & create compound
layout, bar chart & gauge. List of columns Business_Unit, Supplier_Type, Supplier,
Invoice_Amount, Invoice_Amount_Paid, Discount_Token.
27: Selection Steps in OTBI Part-2 (Add Group and or calculated items
on Attributes)
1. Here following two conditions we have to execute.
A. Add invoice type column & list out combined data for credit memo &
debit memo invoice types.
B. List out combined data for prepayment & Payment request invoice
types.
1.A:
I. Go to selection steps for column Invoice_Type_Name-- Add_Group or
CalculatedItem-- New_Group.
II. Select debit Memo, Credit Memo & test the results.
2. To get the sum of column select column - Show sub total (or Show row
level grand total)- After Values.
37: FBDI :
Based on the xml export, the names we need to given in excel template under
the Formulas Names Manager as above screenshot.
44: BIP Reports using Excel Template with Drill Down option
45: Securing (Access Permission) an ESS JOB
1. Create Data Model
2.
3. Go to security console Create role -> Give role name and ESS job name
and the users required to access that ESS job.
4. Run the job ‘Retrieve Latest LDAP Changes’ job . Once the job is
completed, the other user can access the ESS job.
In multi sheet template, as seen in the above screenshot, each sheet will be
generated for each POHeader Id.
48: Creation of SANDBOX & it's uses
- For doing customizations
- For logo change
- For structure change
- You can add a new page and links to it.
Go to ConfigurationsSandboxes ->Create new sandbox -> We can add lot of
options like Appearance, Structure.
Once changed we can publish it.
49: Create Multi Page Dashboard
- Create two OTBI analysis(payables transaction real time , supplier
transaction real time)
- Create dashboard- add the report
- Click on add dashboard page, give name and description
- On page 2 , add another report
- Run the report, we can see two pages.
Every action is linked with ESS job and their seeded reports.
For example, if we go to Receivable Invoices and click on view image, a invoice
pdf will be generated. It is happening based on the ESS job in screenshot. If we
want to change it, the report is present in the folder mentioned in screenshot. To
find the exact report location , we can go to the manage jobs , search for job
name and find their path details of report.
If we go to catalog page from fusion using browse catalog, the reports cannot be
customized.
So we need to login to https://fusioninstance url/xmplpserver
By clicking on above link, we will be navigated to BI publisher catalog. Here we
can customize the reports.
Once we go to the report path, click more and customize, a copy of the entire
report will be generated in Custom folder which then can be edited as per our
needs.
The change will then be reflected in invoice or any other modules.
53: Call fusion Application Forms thru OTBI Report Output (Drill Down
from OTBI)
- Create a OTBI report
- To create a hyperlink on a particular colum, go to column properties
Interaction Value- Action Links Add Link Text Click Navigate to a
WebPage Give url and parameters as in scrrenshot Define parameters
Add parameters Options( clik open new window).
- Once done, click the value of hyperlink column, it will navigate to the
oracle web page.
54: Creating OTBI Report without going into Browse Catalog Window
Instead of going into the browse catalog in Reports and Analytics page. There is a
dropdown button called ‘CREATE’ in Reports and Analytics Page. In that we have
a option to create Report and Analysis. When we click on the analysis, we can
create a OTBI analysis. Here we can select the subject area, sort and filter the
data. But we don’t have any advanced options. We can use it to create a draft
analysis and save it in any location. Then if we want to edit it further, we can do
it in catalog page.
55: Master Detail Drill Down Report & Summary Detail link report using
OTBI
- Create a master analysis
- Create a child analysis
- In the master detail analysis when we click the column, it should navigate
us to the child report.
- In order to do that, we need to go to column properties Interaction
Action link - Select the child report.
- Now we will have the option to click the column record to navigate to child
report, but if we click it will show us the entire child records, but we need
to show only the respective child records.
- In order to achieve it, open the child analysis, select the matching column
go to filter and select ‘Is prompted’. Now, only the respective child record
is shown when we click the record from parent report.
58: Create BIP Reports using Input Parameter with Comma Separated
Values
- It is same as creating the parameter in data model. But here we need to
select the datatype of the parameter as string and click the checkbox of
CSV as show in screenshot below. We can use this in ‘where clause IN’.
59: Create New User and Assign the Role to user
- Go the Tools Security Console We have option to create new roles and
also we have a option to create new users.
- After creating the user, we can assign necessary roles to the user.
- Once all are completed, we need to go to the ‘Scheduled processes’, and
trigger the job ‘Retrieve Latest LDAP Changes’, which will reflect the
changes immediately.
- The above job is scheduled daily in Fusion instance, but if we want the
changes to be reflected immediately, we need to run the job manually.
64: How to Schedule the ESS job and how to change Schedule for ESS
Job.
- Go into Scheduled processes, when you submit a job, there will be a
‘Advanced options’ where we can schedule a job.
- Once the job is scheduled we can track that by clicking Hierarchy in the
same screen.
- In hierarchy, we can see the number of jobs succeeded and the running
jobs.
- If we want to cancel or edit the schedule, we have Actions dropdown, from
there we can do the changes.
73: HCM Data Loader Part-1 (Prepare the Data File to Load)
- Go to My Client Groups Data Exchange HCM Data Loader
- View Business Objects Search for the job that we want to load.
- We have a option to download the .dat file.
- We need to edit the dat file as below screenshot.
- The first line should be the comment.
- The second line should be the METADATA i.e., the job name and the
Column name/parameters for that particular job should be mentioned.
- From the third line, we need to add MERGE and the data for the above
mentioned columns in METADATA.
74: HCM Data Loader Part-2 (Import & Load the Data)
- After preparing the dat file, zip it. The zip filename can be whatever we
want. But the dat file name should be same as we downloaded from
fusion.
- Click on Import and Load option We can import the job by selecting the
file and click on Submit. If the file has any error, it will fail or it will upload
in fusion. The error details can be seen in the Message Details.
- It can fail if the date format is wrong or the value provided for certain
column is not available in the lookup. In case of lookup issue, we can add
the value in lookup by going into Manage Common Lookup, or else we can
change the value in the dat file and reimport the same.
- We can check the data loaded in the screen by doing into global search
and search for the business object that we loaded.
-
-
-
-
-
-
-
- Global Flexfields will always appear.
- Contect flexfield will appear only when you select the context
- For example: You want to add flexfields for ‘Create Job’. Go to Manage
Descriptive Flexfields, select the Job Attributes. Global flexfields can be
created in the same page.
- For context fields, there will be a button called Manage Contexts and then
you can create those flexfields.
- The type of those flexfields can be any datatype or even value codes
which we created in previous chapter.
- Once changes are done, deploy those flexfields.
- Now when we try to create a job in fusion, those flexfields will be visible.