Query for Purchase Order Line Attachment

 

Hi,


Please use the following query to fetch purchase order lines attachment


SELECT 

FDV.*


FROM 

FND_ATTACHED_DOCUMENTS FAD,

FND_DOCUMENTS_VL         FDV,

PO_LINES_ALL                 PLA,

PO_VERSIONS                                             PV


WHERE 

FAD.ENTITY_NAME =       'PO_LINES'

AND FAD.DOCUMENT_ID =       FDV.DOCUMENT_ID

AND PLA.PO_LINE_ID =       FAD.PK1_VALUE

AND FAD.CATEGORY_NAME           =                   'TO_SUPPLIER'

AND PK2_VALUE                                =                    PV.VERSION_ID

AND PLA.PO_HEADER_ID                =                    PV.PO_HEADER_ID

 AND NVL(PV.CO_NUM,0)                 =                    NVL(:PARAM_CO_NUM, 0)


How to fetch Attachment content in BI Report in Oracle Fusion

 Hello Everyone,


In this post let's us see how to fetch attachment content in BI Reports from UCM server

Let us consider fetching Attachment details of AP Invoices

Step1: In data model, Click on "New Data Set"


Select "SQL Query"

Step 2: Use the following query and click "ok"

select 
fdv.* 

from
fnd_attached_documents fad,
fnd_documents_vl       fdv,
AP_INVOICES_ALL        ap_invoices

where
             fad.document_id = fdv.document_id 
AND    fad.entity_name         = 'AP_INVOICES_ALL'
AND    fad.pk1_value                            = ap_invoices.invoice_id


The above query fetches attached document related details like id, version..

Step 3: Fetching document data from UCM server

Click on "New Data Set" and select "Content Server"

Step 4: Enter following data:

Name                : Specify data set name
Data Source     :  let it be "FA_UCM_PROVISIONED"
Parent Group   :  Choose the other data set group , for example I have choose G_1 which contains query from step 2
Document ID  :  Choose DM_VERSION_NUMBER
Content Type  : Text

Click "ok"

Step 5: This is how it looks



Goto results and check data, document content can be seen in the column "Document"












 

Multi Sheet Excel output using RTF Template

 Hello Everyone,


Today let us see how to place multi sheets in Excel.

In the rtf document, enter required data to be shown in the First Sheet



Now in the Microsoft word, goto Layout tab

Select Breaks 



Select Page


This will place your cursor in a new page which will be like a new sheet in the excel.


Enter Second sheet info now


Insert your xml and run it. Output Format: Excel



Checking output



Hope this works..

How to show Parameter along with its description but link data set with only parameter in Fusion

 Hi

In this post let us see how to link parameters and BIP report data set when we want to show both field and description in parameter but in data set only field is present.


Go to your datamodel and edit LOV

Sample Query: Select field||'-'||description, field from table1

This query shows the corresponding field along with description in parameter selection part but internally it returns field to the data set.

Example: P_Item: select item_number||'-'||item_description, item_number from items_table

How it is shown in parameters

Item Number : Item1-Test Item

Internally value passed will be "Item1"


Hope this helps...




Query to fetch COA Account Fields

 Hi All, A short post to get COA Account Segment related fields. select  fvvv.value, FVVV.DESCRIPTION, fvvv.ENABLED_FLAG  Enabled, fvvv.STAR...