Oracle Report as data source in XMLP data template?
I use XML Publisher 5.6.3 in EBS 11.5.10
Is it possible to make an xml data template with an oracle report (rdf) as one of the sources of data? (I'm not saying create a Data Def with no Data Template attached... rather point the Data Template to an rdf, or it's xml output.)
I converted RAXINV.rdf (Invoice) to a data template and layout template. I had to replicate the data template portion of the oracle report and add our own fields to the queries because we have custom fields we want on the invoice report. I didn't want to modify the original rdf.
I am wondering if I could have avoided converting the entire data template portion of the rdf. My thought is that if I could make a data template that combines A) the xml output of the original rdf, together with B) our custom sql, I could eliminate the "rdf-to-data template" conversion step. This would have been a significant time savings, because making the converted data template actually work was no small task.
Any and all thoughts are welcome.
You need the source-data as XML for BIP.
You can use
1. RDF to generate xml.
2. datatemplate to generate xml.
The ultimate aim is to get xml out of it, so consider both are same.
If you are comfortable in using RDF, then go ahead and use that.
Similar Messages
-
Using a SQL data source and XML data source in the same template
I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
Thanks for any help or suggestions you may have.
RhondaHi Pablo
Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
1. You have to have R12 and
2. You'll need to wait for the patch
On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
Regards, Tim -
Power view couldn't load the model or data source because the data source type is not supported
Hi,
I have SQL 2012 standard edition in my local. I have developed SSAS & deployed in local. I have been asked to develop power view report in excel 2013 using this SSAS. But when I tried to do in Excel 2013 professional Plus, I am getting below error:
Power view couldn't load the model or data source because the data source type is not supported.
Does power view is supported in standard edition of SQL or it requires Business/Enterprise edition of SQL server?
Thanks in advanceWhat type of SSAS install are you using?
PowerView in Excel 2013 currently only supports Tabular data sources.
Only PowerView in Sharepoint 2013 supports both Tabular and Multi-Dim data sources. (provided you have the required Sharepoint and SQL updates installed)
http://darren.gosbell.com - please mark correct answers -
Error while creating Data Source for master data attributes
Hi BI Experts,
Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as ,
and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is MAT_NUMBER and MAT_NAME (with say 100 data in the file)
same is the result when I am trying to load the text data too columns maintained are
(LANGUAGE MAT_NUMBER Short Description)(same 100 data).
now i used to rsa1old transaction to upload the file using 3.5 version.i created info source for master data/text/hierarchies for IOSP_Mat
now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
When I monitored ,I figured the data has not been even uploaded to the PSA level.
Can you BI experts tell me the answer for this.
Thanks,
Srijithapologies to all of you for late response,
was busy with some other activities.
I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
Thanks again for your quick response.
Once again sorry to all of you for my late response
Thanks,
Sri -
Data Type field read only in Data source for transaction data (PC_FILE)
Hi folks,
I need to change Data Type for some of the fields in "Field" tab in data source for transactional data. It became read only after I activate the data source. Need help in making it editable. All fields now have Data type=CHAR.
ThanksNevermind folks. I got it.
-
How to create XML data source/ and load data from a web service to BI
All,
I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
I appreciate any help.Hi Mike,
Two more for you:----
/thread/111488 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
Regards,
Suman -
Problem in data sources for transaction data through flat file
Hello Friends,
While creating the data sources for transaction data through flat file, I am getting the following error "Error 'The argument '1519,05' cannot be interpreted as anumber' while assigning character to application structure" Message no. RSDS016
If any one come across this issue, please provide me the solution.
Thanks in Advance.
Regards
RaviHallo,
just for information.
I had the same problem.
Have changed the field type from CURR to DEC and have set external instead of internal.
Then, the import with flatfile worked fine.
Thank you. -
Data source for this data connection isn't registered for Power BI
Hi, I am getting this error when I set Schedule Data Refresh to refresh data from db. How do I register my connection to the data source? Is this a fix on SQL server or Power BI?
FAILURE INFORMATION
Failure
Correlation ID: c5132b7a-3c54-4f12-a048-3ddcf0b95f26
Data connection Status
SqlServer twcperfsql1 OfficePerf OnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Tell your Power BI admin the admin needs to register this connection to this on-premises data source.
Thanks for your help.I'm running into the same issue, I did configure the Gateway and then the data source in Power Bi.
When I go to the Power BI Admin Center and click on "Test Connection" it seems to be working. But when I refresh the data from Power BI it doesn't work. Now if I edit the spreadsheet in excel and refresh the data in PowerPivot then it works. So
not sure why the solution doesn't refresh from the automated service in Power BI without this useless error.
Thanks
Fabian
In case it helps this is the actual error:
Failure Correlation ID: ecc73a16-7264-45b2-9baf-e3448f007211
Power Query - dbo_TableAOnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI admin to register the data source in the Power BI admin center.
Also further information I have found so far is that the Gateway is receiving the requests for the refresh and it shows the message below, so the data source is found and communication seems to be happening from server to client and back, not sure why server
doesn't seem to like the data the Gateway is sending back to server.
The feed 'dbo_TableA' was successfully accessed at 7/15/2014 4:23:26 PM.
The request took 00:00:00.0000105 seconds.
Activity ID: e8464e5d-3f0a-49c2-b10b-450fec3e5940 -
Data Source for BSEG Data base table
Hi Every one,
I need to create a data source for the data base table BSEG (Function Module Extraction).
I have followed below steps.
I have created extarct structure which contains all the fields of BSEG Data base table.If I save the data source I am getting error.
If I remove all the currecy fields from extract structure, I am able to activate the data sorce.
So Could you please explain me how to extract currency fields.Hi,
Firstly, can you explain why you need a generic extractor for BSEG? There are already 2 datasources for BSEG, they are:
0FI_GL_4
http://help.sap.com/saphelp_nw70/helpdata/en/0c/b4973c115a6f3ae10000000a114084/frameset.htm
0FI_GL_14
http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm
To use 0FI_GL_14, you should use the new GL in ECC side.
On the other hand, for your problem, your problem may occur if you did not give the reference unit field of your currency field in your extraction structure. when you double click the the currency field, you will see the ref. field, give the reference unit field in this area.
Regards. -
How to make a Infocube as data source and upload data? urgent
Hi all,
I have 2 same InfoCubes, and I want to make the test InfoCube(ZCO_1T) as data source and upload data to another Cube(ZCO_1), Now I has Generated Export DataSource on ZCO_1T and create a update rule between ZCO_1T and ZCO_1. what will I do the next step? Thanks.hi delve,
once u generate datasource from test cube it acts as an data source for further upload.
now u choose update target3.x in additional functions in context menu of the test cube.
u will get an infopackage pop up with data target to the cube ZCO_1,processing to datatarget only.
selection criterion can bve selected from the first tab.
under schedule tab you can start extraction.
reward points if helpful. -
Help Me "Data Source - Not User Data Source"
Hi All!
I have written an addon in Service Call Form To add new Matrix in this form with code as follows:
Dim oLink As SAPbouiCOM.LinkedButton
oFormServiceCall = SBO_Application.Forms.GetFormByTypeAndCount(60110, 1)
oItem = oFormServiceCall.Items.Item("159")
oNewItem = oFormServiceCall.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
oNewItem.Left = oItem.Left
oNewItem.Width = oItem.Width
oNewItem.Top = oItem.Top
oNewItem.Height = oItem.Height
oNewItem.FromPane = 8
oNewItem.ToPane = 8
oMatrix = oNewItem.Specific
oColumns = oMatrix.Columns
oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn.Width = 20
oColumn.Editable = False
'// Add a column for BP Card Code
oColumn = oColumns.Add("callID", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Call ID"
oColumn.Width = 20
oColumn.Editable = True
oColumn = oColumns.Add("subject", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Subject"
oColumn.Width = 120
oColumn.Editable = True
oColumn = oColumns.Add("customer", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Cust.Code"
oColumn.Width = 30
oColumn.Editable = True
'// Link the column to the BP master data system form
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
oColumn = oColumns.Add("custmrName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Cust.Name"
oColumn.Width = 120
oColumn.Editable = True
oColumn = oColumns.Add("itemCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Item Code"
oColumn.Width = 30
oColumn.Editable = True
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
oColumn = oColumns.Add("itemName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Item Name"
oColumn.Width = 100
oColumn.Editable = True
And code to bind data to matrix
oDBDataSource = oFormServiceCall.DataSources.DBDataSources.Add("OSCL")
'oUserDataSource = oFormServiceCall.DataSources.UserDataSources.Add("OSCL", SAPbouiCOM.BoDataType.dt_LONG_TEXT)
oColumn = oColumns.Item("callID")
oColumn.DataBind.SetBound(True, "OSCL", "callID")
oColumn = oColumns.Item("subject")
oColumn.DataBind.SetBound(True, "OSCL", "subject")
oColumn = oColumns.Item("customer")
oColumn.DataBind.SetBound(True, "OSCL", "customer")
oColumn = oColumns.Item("custmrName")
oColumn.DataBind.SetBound(True, "OSCL", "custmrName")
oColumn = oColumns.Item("itemCode")
oColumn.DataBind.SetBound(True, "OSCL", "itemCode")
oColumn = oColumns.Item("itemName")
oColumn.DataBind.SetBound(True, "OSCL", "itemName")
But It's error when Run at the row is bold. This error:
oColumn.DataBind.SetBound(True, "OSCL", "callID") Run-time exception thrown : System.Runtime.InteropServices.COMException - Data Source - Not User Data Source
Please help me fix problem.
Thanks
Edited by: Tao lao on Mar 5, 2008 3:10 AMI think, u can't bind the system table system columns to the column of the matrix in the form which is bound to the same table.(though, m not sure on this.) service call is by default bound to OSCL. If u try creating a user defined column in OSCL and then bind it, it works. but, if CallId is already bound on form, and u r bnding it one more time, it will give you error.
-
Can Discoverer be used as an XML Data source for XMLP ?
I am wondering if Discoverer can generate an XML Data Source for XMPL.
I have heard that Discoverer Viewer can have XML as an output. Is there a way of using this XML output with XMLP and, if yes, how to batch both steps ?Hi
My understanding is that Discoverer does not generate XML data as an ouput that XMLP can consume. The XML is does generate is actually an XML RDF for Oracle Reports.
XMLP is integrated thou, when you export your Disco report to PDF thats XMLP doing the conversion to PDF for you.
Regards, Tim -
Using Oracle Stored Proc as Data Source for PowerBuilder Data Window Object
Hi,
I'm trying to use an Oracle stored procedure as the data source for a PowerBuilder data window object. I'm using the following (which is a variation of an example given on Sybase's web site, with the appropriate database/column name changes and use of %TYPE):
======================
CREATE OR REPLACE PACKAGE pkg_dw_sp_example
AS
TYPE typ_example_rec1 IS RECORD(
v_comcodsa st_sa.comcodsa%TYPE,
v_comnamsa st_sa.comnamsa%TYPE,
v_cocitysa st_sa.cocitysa%TYPE);
TYPE cur_example_cur1 IS REF CURSOR;
RETURN typ_example_rec1;
END;
======================
CREATE OR REPLACE PROCEDURE sp_dw_example1
(arg_teamid IN st_sa.comcodsa%TYPE,
cur_team IN OUT pkg_dw_sp_example.cur_example_cur1)
AS
BEGIN
OPEN cur_team FOR
SELECT comcodsa,
comnamsa,
cocitysa
FROM st_sa
WHERE st_sa.comcodha = arg_teamid;
END sp_dw_example1;
======================
The package is created okay, but the procedure is saved with compilation errors. Unfortunately, Oracle does not indicate what the errors are (great product), so I have no idea what it is complaining about.
Questions:
1) Can anyone point me to/or provide a better example?
2) The examples in books I have seen all would have declared the procedure in the package specification - is the above valid?
3) This is a PowerBuilder specific question, but if the package does not show up in the stored procedure list when creating a data window object, how does one use it as a data source?
Oracle 8.1.7
PowerBuilder 8.0.1
Thanks,
Ed Holloman1) Everything looks fine with your code. You did not mention the environment you are compiling your code in, but if it is SQL*Plus, you can type 'show errors' after the compile and it will list the errors and line numbers for you.
2) You can include the procedure in the package - in which case you would have a procedure declaration in the spec and the actual procedure in the body. You would no longer include the 'create or replace' - the declaration and procedure would just start with 'procedure'. The spec would look include:
PROCEDURE sp_dw_example1
(arg_teamid IN st_sa.comcodsa%TYPE,
cur_team OUT cur_example_cur1);Note the removal of the package reference (since we are now IN the package) and the second parameter is just OUT instead of IN OUT.
3) Not much, but I know that in PB8, our developers have said they have visibility now to the package when creating a DW - something they didn't have in PB7. Previously, we had to create a dummy standalone procedure that they would select and they would later modify the code to include the package prefix.
Hope this helps a bit. -
Using Excel & ODBC data source to get data
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.user11307988 wrote:
I've been using MS Excel to extract MS SQL Server data from our ERP system for years but we are now moving to Oracle 12i. What are my options in the Oracle world? Can it be configured much the same way; that is by configuring an ODBC data source and connecting directly to the database???
Thanks in advance.Adding to sb92075's brief but accurate statement, from one of my recent presentations (note - no need for an ODBC connection):
'Need to add a reference to Microsoft ActiveX Data Objects 2.8 Library before starting
'*** This section might be in the top portion of the user form, worksheet code, or module:
'Declare a connection object in the general section to hold the connection to the database
Dim dbVMFG As ADODB.Connection
'Declare a set of variables to hold the username and password for the database
Dim strUserName As String
Dim strPassword As String
Dim strDatabase As String
Dim i as Integer
Dim intResult As Integer
Dim strSQL as String
Dim lngRow as Long
On Error Resume Next
strDatabase = "MyDB"
strUserName = "MyUser"
strPassword = "MyPassword"
'Connect to the database
'Oracle connection string
Set dbVMFG = New ADODB.Connection
dbVMFG.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=" & strDatabase & ";User ID=" & strUserName & ";Password=" & strPassword & ";ChunkSize=1000;FetchSize=100;"
dbVMFG.ConnectionTimeout = 40
dbVMFG.CursorLocation = adUseClient
dbVMFG.Open
If (dbVMFG.State <> 1) Or (Err <> 0) Then
intResult = MsgBox("Could not connect to the database. Check your user name and password." & vbCrLf & Error(Err), 16, "Excel Demo")
Else
strSQL = "SELECT" & VBCrLf
strSQL = strSQL & " ID AS RESOURCE_ID," & VBCrLf
strSQL = strSQL & " DESCRIPTION" & VBCrLf
strSQL = strSQL & "FROM" & VBCrLf
strSQL = strSQL & " MY_TABLE" & VBCrLf
strSQL = strSQL & "WHERE" & VBCrLf
strSQL = strSQL & " DESCRIPTION LIKE '%10%'" & VBCrLf
strSQL = strSQL & "ORDER BY" & VBCrLf
strSQL = strSQL & " ID"
'Add a new worksheet to the new workbook, add after the last sheet
ActiveWorkbook.Sheets.Add
ActiveWorkbook.ActiveSheet.Name = "JustATest"
snpData.Open strSQL, dbVMFG
If snpData.State = 1 Then
'Slow Method------------------------------------
lngRow = 0
'Header Row
For i = 0 To snpData.Fields.Count – 1
lngRow = lngRow + 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i).Name
ActiveSheet.Cells(lngRow, i + 1).Font.Bold = True
Next i
'Detail Rows
Do While Not snpData.EOF
lngRow = lngRow + 1
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(lngRow, i + 1).Value = snpData.Fields(i)
Next i
snpData.MoveNext
Loop
'End Slow Method------------------------------------
'Fast Method----------------------------------------
'Do not use this and the slow method!
For i = 0 To snpData.Fields.Count - 1
ActiveSheet.Cells(1, i + 1).Value = snpData.Fields(i).Name
Next i
ActiveSheet.Range(ActiveSheet.Cells(1, 1), ActiveSheet.Cells(1, snpData.Fields.Count)).Font.Bold = True
ActiveSheet.Range("A2").CopyFromRecordset snpData
'Auto-fit up to 26 columns
ActiveSheet.Columns("A:" & Chr(64 + snpData.Fields.Count)).AutoFit
'End Fast Method----------------------------------------
snpData.Close
End If
End IfA couple of notes:
1. Do not repeatedly connect to the database, execute a SQL statement, and disconnect from the database - connect once and stay connected.
2. Use bind variables where possible in SQL statements for constants (literals) which might change from one execution to the next - let me know if you need s code example showing bind variable usage in Excel.
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc. -
How to use container's data source as mapviewer data source?
Hi,
I want to take advantage of connection pooling and hence was trying to create a mapviewer datasource from J2EE container.
When I use the J2EE ds as the Mapviewer datasource in the Mapviewer admin page, it wouldn't work.
Rest of the applications deployed on the OC4J container which makes use of the same J2EE ds works fine.
I referred to the article below to configure the datasource(not the permanent stuff), but it didnt work.
http://www.oracle.com/technology/products/mapviewer/htdocs/faq_1012/mvfaq_1012.html#oc4jds
Any help is much appreciated.
Cheers,
SumanthI am running mapviewer application with my dynamic datasource created out of JDBC URL. All the shipped-in demos and my own mapviewer application works fine with this.
The trouble is when my application runs it creates too many database connections (my observation is a connection each for a theme).
There are about 16 themes and the application opens up 16 connections (I have monitored the statements for each of these connections and they are for the individual themes). Although we could increase the max connections of our database, ideally we would like to make use of less connections.
An efficient way of solving this would be to create the dynamic datasource out of J2EE data source rather than JDBC URL.
So, when I define a dynamic datasource through the mapviewer admin page from an existing J2EE data source, it creates a datasource with JDBC URL as "thin:@:1521:" and schema user as "scott", both of which are incorrect. Referred to the article below to solve this but with no luck
http://www.oracle.com/technology/products/mapviewer/htdocs/faq_1012/mvfaq_1012.html#oc4jds
Sorry if I sound stupid with this elementary question. Would appreciate any help.
Cheers,
Sumanth
Maybe you are looking for
-
To send data from a Recordset (DI) to a matrix(grid) of UI.
Hello to all, I am creating a demo, a SQL execute with a Recordset, any problem until the moment, when I want to pass the data to one you GRID (matrix) I don't eat to make it. it grid it it is an object of UI and the recordset of DI as I can supple
-
Rounding Time to nearest 30 minutes
Good day, I'm looking for a way to round the time portion of a date value. My query needs to return the time of day, rounded to the nearest 30 minutes - top of the hour or bottom of the hour. If sysdate is: 12/28/2009 11:08:19 AM I need to see: 12/28
-
Master Data CONTACT Contact Person
Hi, Is there any Program/BAPI available for loading the customer contact person info (VAP1) into SAP from lagacy system through LSMW. Thanks, Dhareppa
-
SRW.SET_PDF_ACTION reference to directory Names with spaces
Hello, I'm trying to create a hyperlink that will spawn a new browser from a PDF report by using the SRW.SET_PDF_ACTION function; however this is not working when my directory structure has spaces in the names SRW.SET_PDF_ACTION('C:\"Program Files"\"
-
Advice wanted,needed and appreciated concerning mb.+cpu combinations. Here is what I am looking at. Mb.- 865pe Neo2 pfisr. CPU - $397 - Pentium 4 3.4GHz 800MHz $279 - Pentium 4 3.2GHz Prescott $265 - Pentium 4 3.2GHz 800MHz $209 - Pentium 4