EBS 11i Fulfillment Delay application using Endeca Information Discovery

October 21, 2013 · Oracle Ebusiness Suite

Open the Integrator application and create a new project

Create a new “CloverETL Project”

eid1

Double click on the “workspace.prm” file to add new parameters to the project

eid2

Add the following parameters  change the values as per the environment

#Additional Parameters

 

DEFAULT_LANGUAGE=en

ENDECA_SERVER_CONTEXT=endeca-server

ENDECA_SERVER_HOST=localhost

ENDECA_SERVER_PORT=7001

DATA_DOMAIN_NAME=FulfillDelay

MULTIASSIGN_DELIMITER=\u007F

eid3

 

Create a new graph, name it as “CreateDomain”

This will create the required data domain on the Weblogic server for the application, domain name will be read from the parameters file

eid4

Add two web service client components to the graph and name then as Delete Domain and Create Data Domain

eid5

Set the phase = 1 for the create data domain (right click -> set phase)

eid6

Double click on the Delete Domain component

In the WSDL URL enter: http://localhost:7001/endeca-server/ws/manage?wsdl

Click on the text box for Operation name and select “delete DataDomain”

eid7

In the Request Body Structure enter the following

<ns:deleteDataDomain xmlns:ns=”http://www.endeca.com/endeca-server/manage/1/0″>

<ns:name>${DATA_DOMAIN_NAME}</ns:name>

</ns:deleteDataDomain>

eid8

Similarly for create data domain, enter the same WSDL URL

Select Operation name as createData Domain

And in the request body paste the following

<ns:createDataDomain xmlns:ns=”http://www.endeca.com/endeca-server/manage/1/0″>

<ns:name>${DATA_DOMAIN_NAME}</ns:name>

<!–Optional:–>

<ns:ddProfileName>default</ns:ddProfileName>

<!–Optional:–>

<ns:enabled>true</ns:enabled>

</ns:createDataDomain>

 

Note: Please make sure the “<ns:enabled>true</ns:enabled>” has “true” value, by default this could be false.

eid9

 

 

Run the graph to create the data domain

eid10

Create a new graph for Load Data domain

Add two components

DB input table

eid11

And Bulk Add/Replace Records

eid12

eid13
Create a DB connection

In the “Outline” window under connections, add a new connection

eid14

 

Enter the appropriate  connection details and save

eid15

 

Double click on the DB Input table component

Select the DB connection

eid16

 

In the SQL Query enter the following

SELECT OOL.HEADER_ID,

OOL.LINE_ID,

TRUNC(OOL.FULFILLMENT_DATE)-TRUNC(PROMISE_DATE)  FUL_DELAY,

OOL.UNIT_SELLING_PRICE,

OOL.CREATION_DATE ORDERED_DATE,

OOL.REQUEST_DATE,

OOL.SCHEDULE_SHIP_DATE,

OOL.ACTUAL_SHIPMENT_DATE,

OOL.FULFILLMENT_DATE,

(select segment1

FROM MTL_SYSTEM_ITEMS_B MTL

WHERE MTL.INVENTORY_ITEM_ID = OOL.INVENTORY_ITEM_ID

AND MTL.ORGANIZATION_ID =204) PRODUCT,

(SELECT DESCRIPTION

FROM MTL_SYSTEM_ITEMS_B MTL

WHERE MTL.INVENTORY_ITEM_ID = OOL.INVENTORY_ITEM_ID

AND MTL.ORGANIZATION_ID =204) PRODUCT_DESCRIPTION,

(select party_name

FROM HZ_PARTIES HP

WHERE HP.PARTY_ID = (SELECT HC.PARTY_ID

FROM HZ_CUST_ACCOUNTS HC

WHERE HC.CUSt_ACCOUNT_ID = OOL.SOLD_to_ORG_ID)

) CUSTOMER,

(SELECT ood.ORGANIZATION_NAME

FROM ORG_ORGANIZATION_DEFINITIONS OOD

WHERE OOD.ORGANIZATION_ID = ool.sold_from_org_id) warehouse

FROM oe_order_lines_all ool

, wsh_delivery_Details wdd

, wsh_new_deliveries wnd

, wsh_delivery_assignments wda

WHERE 1=1

AND wdd.source_header_id = ool.header_id

AND wdd.source_line_id = ool.line_id

AND WDA.DELIVERY_DETAIL_ID = WDD.DELIVERY_DETAIL_ID

AND WDA.DELIVERY_ID = WND.DELIVERY_ID

AND TRUNC(PROMISE_DATE) != TRUNC(OOL.FULFILLMENT_DATE)

AND TO_CHAR(OOL.CREATION_DATE,’YYYY’) BETWEEN ‘2003’ AND ‘2013’

AND WDD.CURRENCY_CODE = ‘USD’

order by ool.line_id desc

eid17

 

Create an edge from DB Input table to the Bulk Add/Replace Records

eid18

Right click on the edge and select the existing meta data created (if not present, create a new metadata using the above query)

eid19

 

 

 

 

 

 

 

Double click on the Bulk Add/Replace Records component

 

In the Data Domain name enter “${DATA_DOMAIN_NAME}”

In Spec Attribute enter “HEADER_ID”

eid20

 

Save and run the graph to load the data into the application

eid21

 

In case you want to reset the data in the data domain to load new data, create a new graph to reset the data as shown below

Please note that this step is optional

eid22

 

eid23

Create a new graph and add the reset data domain component

Double click on the component

Enter the values for the host and domain name as appropriate

eid24

Save and run the graph for clearing the data in the data domain

 

 

Creating the Studio Application

 

Login as admin in the studio application

eid25

 

After login Navigate to control panel->Data sources

Create a new data source with the following connection string

{

“dataDomainName”: “FulfillDelay”,

“name”: “FulfillDelay”,

“port”: “7001”,

“server”: “localhost”

}

eid26

 

Create a new application and add the display components as shown below

 

Components for the left panel

  1. Search box
  2. BreadCrums
  3. Guide Navigation (Rename it as Range filters)
  4. Guide Navigation

Right Panel

  1. Tabbed component container
  2. Add three charts in the container panels
  3. Results table

 

Configure the column names as below

Navigate to Application Settings->View Manager

eid27

In the base view, rename the columns as per requirmenteid29

 

Configure the Range filer Guide navigation

eid30

 

Choose which attributes to display and change the type of values to “Range Filters” for the attributes to display

eid31

In a similar manner modify the other components to arrive at the UI design as shown below

 

eid32 eid33