Multiple parametric Data Collection using createMultipleParametricData API
Dear Experts,
For the first time we are using the SAP ME PAPI functionality in SAP MII. As per the requirement we need to do the data collection against a SFC from SAP MII Transaction. We are successfully able to do the data collection for single parametric Measure using the SAP ME PAPI createParametricData. But now we need to do the data collection for multiple parametric measures in one call and for that we can see that the createMultipleParametricData API is available. The sample xml file from which we are getting the data for three parametric measures Temprature, Pressure and Volume is pasted below.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Rowsets CachedTime="" DateCreated="2014-02-10T06:52:01" EndDate="2014-02-10T06:52:01" StartDate="2014-02-10T05:52:01" Version="14.0 SP4 Patch 1 (Jan 8, 2014)">
<Rowset>
<Columns>
<Column Description="Temperature" MaxRange="1" MinRange="0" Name="Temperature" SQLDataType="-9" SourceColumn="Temperature"/>
<Column Description="Pressure" MaxRange="1" MinRange="0" Name="Pressure" SQLDataType="-9" SourceColumn="Pressure"/>
<Column Description="Volume" MaxRange="1" MinRange="0" Name="Volume" SQLDataType="-9" SourceColumn="Volume"/>
</Columns>
<Row>
<Temperature>32</Temperature>
<Pressure>30</Pressure>
<Volume>40</Volume>
</Row>
</Rowset>
</Rowsets>
This is the input source from which we need to extract tag names and values under node-Row and then do Data Collection against an SFC with the help of Public API createMultipleParametricData.
But we are not able to assign multiple parameters as request parameters to this API.
Can anybody help us with what input format is required to assign multiple parameters to this API or to assign multiple parameters at a time?
It would be great if you can paste the request xml stucture also.
Thanks in advance,
Sanjeev Sharma
If your input stream is coming into a 1D array, you might try using the
Decimate 1D array function in the array control group.
Pull down the control until it matches the 8 data sets... (or 9 if there is a framing character of some sort in the data stream)...then each set should come out a separate output of hte block.
You probably need to be careful that the serial stream always appears in the same order for this to work right.
Hope that helps.
The Hummer
Similar Messages
-
Sample XML request for Parametric Data Collection.
Hello Experts,
Can any one please post a Sample XML request for Parametric Data Collection.
Thanks in advance.
Rgds
Nityanand SinghStuart,
I have dealt with the issue you mentioned as a bug with DcGroupRef. In fact, it is not a bug but a misinterpretation of the WS. Those fields you mentioned are a part of Test Plan measurement collection (MeasureGroup and MeasureName fields in particular). However, if you check the database, Test Plan measurement values are collected to a separate table which is not processed by WS at all, however, the WS pushes the data to the table used by DC500. And within this context, DcGroupRef is the must.
I have rectified such situation at one customer by manually adding the values to the incomplete records. They used to collect the data in such way as of ME 5.0 or even earlier by means of Prod XML.
Implementation of WS in 5.2 and 6.0 are completely different, especially taking into account switching to usage of PAPI.
So, it is not a bug but a feature not implemented yet.
And with that, I'm taking over the ticket.
Regards,
Sergiy -
Due date update using GP APIs?
Hi all
I am working on the Due date update using GP APIs, I have done it at the "process" level. However I dont know how to trigger it at an activity level using GP APIs.
Please tell me how to gain access to the Activity (Action) instance of the next processor from the current one? I have set the Due date statically at the process and activity level. Now I wish to allow the user to change the due date dynamically using GP APIs at the <b>activity</b> level.
Ideas pls......
regards
LNVAn other one!! I have set the due date manually in the process yet I dont see it in the UWL. Any thoughts on this? Thanks again.
-
How can we get the value of the key field in a custom data model using governance API?
Dear Team,
How can we get the value of the key field in a custom data model, to be used for manipulation of the change request fields using governance API?
Any kind of help would be sincerely appreciated.
Thanks & Regards,
Tushar.Hi Michael,
Thanks for direction. Let me give more context on this as I'm interested to get more details..One of the issue was to read cross entity field values on UI based on user action and set other entity field behaviour...It is similar to what is being posted here.
For ex: Reading MTART from Basic Data UIBB in MM MDG UI and set the field properties in some other custom entities say ZZETEST. This cannot be done using UI BADI as it only supports single entity at a time and not cross entity. So alternatively we found a solution where we can enhance existing PLMB feederclass cl_mdg_bs_mat_feeder_form by reading the model and the entity as needed as it it proved that it supports cross entity UI field behaviours and so business requirements.
This is a workaround for now.
So the question is How do we achive it using governance API for cross entity field behiaviours.?or what is the right way doing this.
Can we do that using governance API and its' methods?
In the Governance API doc you provided below has referring to below external model as part of gevernance API.
The active or inactive data (before or during the derivation or the check) can be read
with the external data model interface IF_USMD_MODEL_EXT with the method READ_CHAR_VALUE and
the corresponding READ_MODE parameter. To avoid unnecessary flushes (derivations), the NO_FLUSH
parameter should b
e set to ‘X’.
Thanks
Praveen -
Hi,
may i know any one working in cognitive radio research and applying machine learning techniques using the spectrum data collected from NI usrp kitsCan't edit my message anymore, so for the tldr crowd (too long didn't read), here is a shorter version:
The good:
E4200 worked fine for about 15 hours with great throughput and link quality (with one brief disconnect in the middle - online gaming software shows brief disconnects that otherwise go totally unnoticed).
The bad:
Wireless on the E4200 stopped broadcasting entirely (to a Windows 7 laptop with a 802.11n 2.4 GHZ USB adapter).
I had switched between two adapters that use the same chipset, same driver and in fact show up as a single device in device manager) without rebooting the router but it worked (fine) for an hour after I swapped the adapters.
Right before I rebooted it, I checked and the E4200 was not hot to the touch and wired internet was still working after the wireless radio stopped working.
A reboot of the router cured it.
The open question as to the root cause:
Now I want to know whether this wireless radio ceasing to broadcast (requires a reboot of the E4200) will happen daily?
I.e. I want to know whether it it really is overheating (then again why would only some have that problem needing to reboot daily while others have gone weeks with the E4200 without a single reboot being needed and without any problems occurring) or whether it had to do with changing the adapters back and forth without rebooting the router. Keep in mind that the router worked fine for an hour or so after I stopped swapping the adapters.
Extra question:
Will getting a Cisco AE1000 USB adapter perhaps help? (I know this is a loaded question and their is no easy / sure answer, but even a "maybe" or reasons why it might help at this point would be better than nothing.
Any similar experiences (with the router needing to be rebooted to get wireless radio back on) would be appreciated as it may help myself and others experiencing these types of issues. -
Synchronous data collection using pci-6143's
I can set up synchronous data collection across the analog inputs of my three PCI-6143's using a separate task for each board and explicitly sharing the master timebase from board 1 (the one receiving the trigger to start data collection) to the other 2. Then I need 3 read channel VI's etc.
The DAQ Assistant will configure all the AI channels to work inside one task across the three boards, which is very convenient, but I lose the synchronicity. Specifically, the device triggering the data collection (board 1), leads the other two boards by a few microseconds. How can I use a single task for all three boards for analog input (voltages) while retaining completely synchronous data collection? Thanks!Hi Brian_g,
You should be able to synchronize your SMIO cards by including them in the same task this way. You will have to type in the names, ie "Dev1\ai0:7, Dev2\ai0:7, Dev3\ai0:7" and still specify the start trigger off of your master device. I would work from the "Cont Acq & Graph Int Clk.vi" example and add in the digital trigger.
Please post back if this does not resolve your issue or I didn't answer your question.
Cheers,
Andrew S.
National Instruments
Getting Started with NI-DAQmx
Measurement Fundamentals -
Featching Data From The Data Base Using DI API in Matrix
Hi
All of u i am shahid i faced a problem when i retrive
the selected data from the data base using matrix plz.
Healp me!.
Thanks
Mohd Shahid.
SAP Techinical Consultent
Option Strict Off
Option Explicit On
Friend Class UseMatrix
'// This parameter will use us to manipulate the
'// SAP Business One Application
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private oForm As SAPbouiCOM.Form
Private oMatrix As SAPbouiCOM.Matrix
Private oColumns As SAPbouiCOM.Columns
Private oColumn As SAPbouiCOM.Column
'// declareing a DB data source for all the Data binded columns
Private oDBDataSource As SAPbouiCOM.DBDataSource
'// declaring a User data source for the "Remarks" Column
Private oUserDataSource As SAPbouiCOM.UserDataSource
' This Function is called automatically when an instance
' of the class is created.
' Indise this function
Public Sub New()
MyBase.New()
'// set SBO_Application with an initialized application object
SetApplication()
'// Create the UI
CreateFormWithMatrix()
'// Add Data Sources to the Form
AddDataSourceToForm()
'// Bind the Form's items with the desired data source
BindDataToForm()
'// Load date to matrix
GetDataFromDataSource()
'// Make the form visible
oForm.Visible = True
End Sub
Private Sub SetApplication()
'// Use an SboGuiApi object to establish connection
'// with the SAP Business One application and return an
'// initialized appliction object
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
'// connect to a running SBO Application
Try ' If there's no active application the connection will fail
SboGuiApi.Connect(sConnectionString)
Catch ' Connection failed
System.Windows.Forms.MessageBox.Show("No SAP Business One Application was found")
End
End Try
'// get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
'SBO_Application.MessageBox("Hello World")
End Sub
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
Select Case EventType
Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
SBO_Application.MessageBox("A Shut Down Event has been caught" & _
Environment.NewLine() & "Terminating 'Add Menu Item' Add On...")
'// terminating the Add On
System.Windows.Forms.Application.Exit()
End Select
End Sub
Private Sub CreateFormWithMatrix()
'// Don't Forget:
'// it is much more efficient to load a form from xml.
'// use code only to create your form.
'// once you have created it save it as XML.
'// see "WorkingWithXML" sample project
'// we will use the following object to add items to our form
Dim oItem As SAPbouiCOM.Item
'// we will use the following objects to set
'// the specific values of every item
'// we add.
'// this is the best way to do so
Dim oButton As SAPbouiCOM.Button
Dim oStaticText As SAPbouiCOM.StaticText
Dim oEditText As SAPbouiCOM.EditText
'// The following object is needed to create our form
Dim creationPackage
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = "UidFrmMatrix14"
creationPackage.FormType = "TypeFrmMatrix14"
'// Add our form to the SBO application
oForm = SBO_Application.Forms.AddEx(creationPackage)
'// Set the form properties
oForm.Title = "Quality Check"
oForm.Left = 336
oForm.ClientWidth = 620
oForm.Top = 44
oForm.ClientHeight = 200
'// Adding Items to the form
'// and setting their properties
'// Adding an Ok button
'// We get automatic event handling for
'// the Ok and Cancel Buttons by setting
'// their UIDs to 1 and 2 respectively
oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 5
oItem.Width = 65
oItem.Top = 170
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Ok"
'// Adding a Cancel button
oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
oItem.Left = 75
oItem.Width = 65
oItem.Top = 170
oItem.Height = 19
oButton = oItem.Specific
oButton.Caption = "Cancel"
'// Adding a Text Edit item
'oItem = oForm.Items.Add("txtPhone", SAPbouiCOM.BoFormItemTypes.it_EDIT)
' oItem.Left = 265
'oItem.Width = 163
'oItem.Top = 172
'oItem.Height = 14
'// Adding an Add Phone prefix column button
' oItem = oForm.Items.Add("BtnPhone", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
' oItem.Left = 160
' oItem.Width = 100
' oItem.Top = 170
' oItem.Height = 19
' oButton = oItem.Specific
' oButton.Caption = "Add Phone prefix"
'// Add the matrix to the form
AddMatrixToForm()
End Sub
Private Sub AddMatrixToForm()
'// we will use the following object to add items to our form
Dim oItem As SAPbouiCOM.Item
'// we will use the following object to set a linked button
Dim oLink As SAPbouiCOM.LinkedButton
'// Adding a Matrix item
oItem = oForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
oItem.Left = 5
oItem.Width = 500
oItem.Top = 5
oItem.Height = 150
oMatrix = oItem.Specific
oColumns = oMatrix.Columns
'// Adding Culomn items to the matrix
oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "#"
oColumn.Width = 30
oColumn.Editable = False
'// Add a column for Item Code
oColumn = oColumns.Add("DSItemCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Item Code"
oColumn.Width = 40
oColumn.Editable = True
'// Link the column to the ITEM master data system form
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
oColumn = oColumns.Add("DSItemName", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Item Name"
oColumn.Width = 80
oColumn.Editable = True
'// Add a column for BP Card Phone
oColumn = oColumns.Add("DSWhs", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Ware House"
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for BP Card Phone
oColumn = oColumns.Add("DSQuantity", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Quantity"
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for Combo Box
oColumn = oColumns.Add("DSQuality", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oColumn.TitleObject.Caption = "Quality"
' oColumn.ValidValues.Add("OK", "")
'oColumn.ValidValues.Add("NOT OK", "")
oColumn.Width = 40
oColumn.Editable = True
oColumn = oColumns.Add("DSReport", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oColumn.TitleObject.Caption = "Remarks"
' oColumn.ValidValues.Add("OK", "")
'oColumn.ValidValues.Add("NOT OK", "")
oColumn.Width = 40
oColumn.Editable = True
'// Add a column for BP Card Phone
' oColumn = oColumns.Add("DSPhoneInt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
' oColumn.TitleObject.Caption = "Int. Phone"
'oColumn.Width = 40
'oColumn.Editable = True
End Sub
Public Sub AddDataSourceToForm()
'// every item must be binded to a Data Source
'// prior of binding the data we must add Data sources to the form
'// Add user data sources to the "International Phone" column in the matrix
' oUserDataSource = oForm.DataSources.UserDataSources.Add("IntPhone", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
'// Add DB data sources for the DB bound columns in the matrix
oDBDataSource = oForm.DataSources.DBDataSources.Add("OITW")
End Sub
Public Sub BindDataToForm()
'// getting the matrix column by the UID
oColumn = oColumns.Item("DSItemCode")
'oColumn.DataBind.SetBound(True, "", "DSCardCode")
oColumn.DataBind.SetBound(True, "OITW", "ItemCode")
'oColumn = oColumns.Item("DSItemName")
'oColumn.DataBind.SetBound(True, "OITW", "ItemName")
oColumn = oColumns.Item("DSWhs")
oColumn.DataBind.SetBound(True, "OITW", "WhsCode")
oColumn = oColumns.Item("DSQuantity")
oColumn.DataBind.SetBound(True, "OITW", "U_QCStock")
'// to Data Bind an item with a user Data source
'// the table name value should be an empty string
' oColumn = oColumns.Item("DSPhoneInt")
'oColumn.DataBind.SetBound(True, "", "IntPhone")
End Sub
Public Sub GetDataFromDataSource()
'// Ready Matrix to populate data
oMatrix.Clear()
oMatrix.AutoResizeColumns()
'// Querying the DB Data source
oDBDataSource.Query()
'// setting the user data source data
'oUserDataSource.Value = "Phone with prefix"
oMatrix.LoadFromDataSource()
End Sub
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If (pVal.FormUid = "UidFrmMatrix") Then
If ((pVal.itemUID = "BtnPhone") And _
(pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) And _
(pVal.Before_Action = False)) Then
AddPrefix()
End If
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And _
(pVal.Before_Action = False)) Then
SBO_Application.MessageBox("Form Unloaded, Addon will terminate")
System.Windows.Forms.Application.Exit()
End If
End If
End Sub
Public Sub AddPrefix()
Dim i As Integer
Dim PhoneExtCol As SAPbouiCOM.Column
Dim newPhone As String
Dim oItem As SAPbouiCOM.Item
Dim oEditTxt As SAPbouiCOM.EditText
'// Get the prefix edit text item
oItem = oForm.Items.Item("txtPhone")
oEditTxt = oItem.Specific
'// Flush user input into datasources
oMatrix.FlushToDataSource()
'// Get the DBdatasource we base the matrix on
oDBDataSource = oForm.DataSources.DBDataSources.Item("OCRD")
'// Iterate all the records and add a prefix to the phone
For i = 0 To oDBDataSource.Size - 1
newPhone = oDBDataSource.GetValue("phone1", i)
newPhone = newPhone.Trim(" ")
oDBDataSource.SetValue("phone1", i, oEditTxt.String + newPhone)
Next
'// Load data back to
oMatrix.LoadFromDataSource()
End Sub
End ClassHi Shahid,
I am not sure what your question is. The code you pasted looks like the MatrixAndDataSources example that comes with the SDK. What are you trying to do?
Thanks,
Adele -
How to filter CDO export on Date Modified using Bulk API
I'm using the Bulk API 1.0 and E10, and I'm trying to export custom data object (aka CDO, Data Card) records that have been modified recently. I can get it to work using another date field, but I can't figure out what the field name or ID is for the modified date. I've tried C_DateModified, but that returned an generic error message. I tried to query the custom object to get all fields, but that just returns the custom fields. Any ideas?
By the way, the filter I'm using is something like this: filter":{"filterRule":"valueGreaterThanOrEqualToComparisonValue","value":"{{CustomObject[53].Field[???]}}","comparisonValue":"2014-02-01 00:00:00"}
Thanks!Hello,
I was trying all the names in this post and kept getting the
constraint: "Must be a reference to an existing object."
error message. What exactly is the syntax to filter by modified date for customObjects in BulkAPI 2.0? I'm using E10
I tried both
"filter":"'{{CustomObject[5].Field(Date_Modified1)}}' >= '2014-09-20’"}
and
"filter":{"filterRule":"valueGreaterThanOrEqualToComparisonValue","value":"{{CustomObject[5].Field(Date_Modified1)}}","comparisonValue":"2014-09-01 00:00:00"} -
How to get or show multiple record data pagewise using JSPBean and HTML
Hi ,
I am using JSP bean for getting the data from database and html toe present the data.
The problem is when the user inputs data
in the search field and clicks on Search button ,i need to get all matching rows fromw the database ,which i am already getting.
Now if i have got suppose 100 rows i need to show 6 recrods on each page the rest should be shown when the user clicks NEXT or PREV buttons.
example
Name: input data here
Description: input data here
SEARCH Button
Show here the first 6 records
PREV 1 2 3 4 5..... NEXT
The page will look somewhat like this.
So the rows will be shown just below the search fields .If i am getting more than 6 record i should show PREV and NEXT with the number for each page holding 6 records.
Have anybody worked on such thing can you help me out .
ThanksHi This may help, Previous does not work properly, coz I didnt find much difficult to code so you can build on your own from Next option logic
Here is the code. Here and there couple of probs exist but they are solvable easily,
<HTML>
<%@ page language="java"
import="
java.util.* "
%>
<%!
Vector customers;
%>
<%!
void dummyMethod()
customers = new Vector();
for (int i=0;i<30;++i)
// Prints only one time when browser opened first time.
System.out.println("I:"+i);
customers.add(i+"");
%>
<body>
<script language=JavaScript>
function getNextRows(begin,end)
document.frmPage.begin.value = begin;
document.frmPage.end.value = end;
document.frmPage.which.value = "next";
document.frmPage.action = "getRows.jsp";
document.frmPage.method="post";
document.frmPage.submit();
function getPrevRows(begin,end)
document.frmPage.begin.value = begin;
document.frmPage.end.value = end;
document.frmPage.which.value = "prev";
document.frmPage.action = "getRows.jsp";
document.frmPage.method="post";
document.frmPage.submit();
</script>
</body>
<%! int x = 0; %>
<HEAD>
<TITLE>Customer Account Information</TITLE>
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>
<BODY BGCOLOR = "#FFFFFF" >
<form name=frmPage>
<input type=hidden name="begin" value="0">
<input type=hidden name="end" value="10">
<input type=hidden name="which" value="">
<H2 ALIGN="CENTER"><FONT COLOR="#000099">Customer Account Information</FONT></H2>
<H2><FONT COLOR="#000099"></FONT></H2>
<P>
<TABLE BORDER="1" cellpadding="0" cellspacing="0" WIDTH="80%" ALIGN="CENTER">
<TR>
<TD WIDTH="10%" BGCOLOR="#CCCCFF"><FONT FACE="Italic">Acct# </FONT> </TD>
</TR>
<%
int begin = Integer.parseInt((request.getParameter("begin")==null)?"0":request.getParameter("begin"));
int end = Integer.parseInt((request.getParameter("end")==null)?"10":request.getParameter("end"));
int max=0;
if (request.getSession(false).isNew() ||
request.getSession(false) == null)
dummyMethod();
max = customers.size();
String which = (request.getParameter("which")==null)?"next":request.getParameter("which");
if (which.equals("next"))
for (x = begin; x < max && x <= end; ++x)
out.println("<TR>"+
"<TD WIDTH='50%' BGCOLOR='#CCFFCC'>"+customers.elementAt(x)+"</TD>"+
"</TR>");
begin = end;
end +=10;
else
for (x=begin; x <max &&x <= end; --x)
out.println("<TR>"+
"<TD WIDTH='50%' BGCOLOR='#CCFFCC'>"+customers.elementAt(x)+"</TD>"+
"</TR>");
end = begin;
begin -=10;
%>
</TABLE>
<%
if (begin == max)
out.println("<tr><td>Next <a href='javascript:getPrevRows("+begin+","+end+")'>Previous </a></td></tr>");
else
out.println("<tr><td><a href='javascript:getNextRows("+begin+","+end+")'>Next </a></td></tr>");
%>
</BODY>
</HTML> -
Can I create new TeamProjectCollection and TeamProject on TFS using Tfs API programmatically
Hi,
I want to ask that is there is any way to create new TeamProjectCollection and then new TeamProject on that collection using tfs api programmatically ?
Thanks in advance.Hi Hassan,
There is no API to create a team project, but you can script it using devenv. You can check the links below for more information:
http://blogs.msdn.com/b/granth/archive/2009/09/25/scripting-team-project-creation-in-tfs2010.aspx
https://social.msdn.microsoft.com/Forums/vstudio/en-US/99184c0e-31b4-43aa-8f36-52545bb48e33/create-a-team-project-programatically?forum=tfsprocess
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
hi,
I am importing six month's Forecasts data's using Di-Api sap application hang. how to avoid this issue.
Thanks & Regards
B.Lakshmi NarayananHi,
You may try import them in every 3 months instead.
Thanks,
Gordon -
Help needed with Export Data Pump using API
Hi All,
Am trying to do an export data pump feature using the API.
while the export as well as import works fine from the command line, its failing with the API.
This is the command line program:
expdp pxperf/dba@APPN QUERY=dev_pool_data:\"WHERE TIME_NUM > 1204884480100\" DUMPFILE=EXP_DEV.dmp tables=PXPERF.dev_pool_data
Could you help me how should i achieve the same as above in Oracle Data Pump API
DECLARE
h1 NUMBER;
h1 := dbms_datapump.open('EXPORT','TABLE',NULL,'DP_EXAMPLE10','LATEST');
dbms_datapump.add_file(h1,'example3.dmp','DATA_PUMP_TEST',NULL,1);
dbms_datapump.add_file(h1,'example3_dump.log','DATA_PUMP_TEST',NULL,3);
dbms_datapump.metadata_filter(h1,'NAME_LIST','(''DEV_POOL_DATA'')');
END;
Also in the API i want to know how to export and import multiple tables (selective tables only) using one single criteria like "WHERE TIME_NUM > 1204884480100\"Yes, I have read the Oracle doc.
I was able to proceed as below: but it gives error.
============================================================
SQL> SET SERVEROUTPUT ON SIZE 1000000
SQL> DECLARE
2 l_dp_handle NUMBER;
3 l_last_job_state VARCHAR2(30) := 'UNDEFINED';
4 l_job_state VARCHAR2(30) := 'UNDEFINED';
5 l_sts KU$_STATUS;
6 BEGIN
7 l_dp_handle := DBMS_DATAPUMP.open(
8 operation => 'EXPORT',
9 job_mode => 'TABLE',
10 remote_link => NULL,
11 job_name => '1835_XP_EXPORT',
12 version => 'LATEST');
13
14 DBMS_DATAPUMP.add_file(
15 handle => l_dp_handle,
16 filename => 'x1835_XP_EXPORT.dmp',
17 directory => 'DATA_PUMP_DIR');
18
19 DBMS_DATAPUMP.add_file(
20 handle => l_dp_handle,
21 filename => 'x1835_XP_EXPORT.log',
22 directory => 'DATA_PUMP_DIR',
23 filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
24
25 DBMS_DATAPUMP.data_filter(
26 handle => l_dp_handle,
27 name => 'SUBQUERY',
28 value => '(where "XP_TIME_NUM > 1204884480100")',
29 table_name => 'ldev_perf_data',
30 schema_name => 'XPSLPERF'
31 );
32
33 DBMS_DATAPUMP.start_job(l_dp_handle);
34
35 DBMS_DATAPUMP.detach(l_dp_handle);
36 END;
37 /
DECLARE
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3043
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3688
ORA-06512: at line 25
============================================================
i have a table called LDEV_PERF_DATA and its in schema XPSLPERF.
value => '(where "XP_TIME_NUM > 1204884480100")',above is the condition i want to filter the data.
However, the below snippet works fine.
============================================================
SET SERVEROUTPUT ON SIZE 1000000
DECLARE
l_dp_handle NUMBER;
l_last_job_state VARCHAR2(30) := 'UNDEFINED';
l_job_state VARCHAR2(30) := 'UNDEFINED';
l_sts KU$_STATUS;
BEGIN
l_dp_handle := DBMS_DATAPUMP.open(
operation => 'EXPORT',
job_mode => 'SCHEMA',
remote_link => NULL,
job_name => 'ldev_may20',
version => 'LATEST');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'ldev_may20.dmp',
directory => 'DATA_PUMP_DIR');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'ldev_may20.log',
directory => 'DATA_PUMP_DIR',
filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
DBMS_DATAPUMP.start_job(l_dp_handle);
DBMS_DATAPUMP.detach(l_dp_handle);
END;
============================================================
I dont want to export all contents as the above, but want to export data based on some conditions and only on selective tables.
Any help is highly appreciated. -
Can we run parallel data collections to collect multiple source instance.
Hi,
We have a business requirement where we will have multiple Source(ERP) instance and single Destination(ASCP) instance. We would like to check if we will be able to run Data collections in parallel to collect multiple EPR instance in the same time window. This is to reduce the total planning process time duration as following data collections we will be required to run multiple plan runs.
Please help me with your expert comments
Rgds
SidYou may instead use Continuous collections to save on time so it can run collections from both instances periodically throughout the day thereby reducing a single timespan to collect all the data.
Thanks
Navneet Goel
Inspirage -
Standard API to get Data collected value at perticular operation
Hi Experts,
My Scenario is that at POD screen, I am at Operation_4, which Standard API can I use to get the Data Collected value at Operation_1 in the same Routing? The API would be used in a Actvity hook at POST_START. Or is there any other way to accomplish it?
Thanks in advance,
Eswaraiah.Hello Eswar,
use DataCollectionServiceInterface API 's findParametricByOperation() method -
Insert data into multiple entities at once using a view object
Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)?Hi,
I'm trying to insert data into multiple entities at once using a view object, but unfortunately it doesn't seem to work. The two entities have a 1:1 association. I created a view object which contains both entities and I made sure they aren't read-only. But like I said it doesn't work, I can't insert data in both entities at once... :(
Is this possible? And how (if it is)? Peter:
This is definitely supported and tested. Please send us the exception stack trace. You must running into other problems. A few things to note:
A) You have to mark the entities as both updateable (not read-only) and not reference-only.
B) If you're not seeing an exception stack, turn on diagnostic. Here is how:
To turn on diagnostic, go to the IDE,
1. Select the project.
2. Do right mouse click and select "Project Settings..."
3. On the Settings dialog, select Configurations/Runner.
4. In the righthand side pane, you should see a textbox for "Java
Options". Please add the following JVM switch:
-Djbo.debugoutput=console
Then, rerun. The run command should include
-Djbo.debugoutput=console as in
"D:\JDev9i\jdk\bin\javaw.exe" -Djbo.debugoutput=console -classpath ...
You should now see a lot more output on the IDE's message window. Here you should see the exception stack trace.
If you invoking your app directly from command prompt, just add "-Djbo.debugoutput=console" after your "java.exe".
Thanks.
Sung
Maybe you are looking for
-
MENU item selection does not display drop down in ITS enabled transaction
Hello, We are experiencing a strange behavior between two portal env. 1. DEV. For example we have transaction MM01 display in the Portal via ITS (integrated). The end user can select the Menu Tab and the System Tab and the drop downs appear as expect
-
How to delete more than one picture at one time in iMovie?
In the timeline, can I delete more than one picture at one time, or do I have to right click and choose delete entire clip for each picture? I tried to select one (so that there's a yellow bracket) and then shift and choose the last picture (so all a
-
Hi I am taking the XI developer certification C_TBIT44_04. Please send me any questions that you may have to [email protected] Thank you Deepthi
-
DWW: BI Content is empty
Hi all, after login on BI System, I can open Object types but when I "Select Object" under any object types, nothing is display instead of a "input help for Metadata" sub window. does anyone know the reason why? Thanks, Chuong Hoang
-
I have created an application that requires the flash combo box component but i dont know how to code it. Any help? I want each label to goto a certain frame when clicked. Jak. Cheers if you can help