How to retrieve Timesheet Approver by query
Hi,
I'm retrieving timesheet manager name from ResourceTimesheetManagerUID field in MSP_EpmResource_UserView view. But, If a user change timesheet manager while submitting time sheet I'm unable to access it. I tried searching in reporting DB
documentation but did not find anything over there. Can someone let me know the field where this info is stored?
Thanks
Indu
Hi Indu,
I ran some tests and I can see that the LastStatusChangeResourceNameUID column is not populated. According to the documentation this shold have been populated with:
GUID of the resource who last changed the timesheet status.
So this should have been the timesheet manager (or whoever approved/rejected/amended the timesheet)
I can see that someone raised a similar question for the 2010 version:
https://social.msdn.microsoft.com/Forums/en-US/35844049-a970-4b7f-bfe7-c0565e397acc/query-to-find-historical-timesheet-approver-in-project-server-2010?forum=project2010custprog
I would suggest you take that with Microsoft. Unless, you want to adventure yourself and look into the published schema, MSP_Timesheet_Actions table. However, please note that querying directly the pub/draft/ver schemas is not supported
Hope this helps
Paul
Similar Messages
-
How to retrieve multiple columns using "returning" in the Insert query.
hi,
wanted to know how to retrieve multiple columns using "returning" in the Insert Query.
For retrieving one column we write the query as follows:
Insert into TABLE values(1,2,3,4) returning COLUMN1 into PARAMETER
But can we retrive multiple columns in the same query?
am using oracle 10g and coding in .NETHi,
You can definetely get multiple values from a single query using the 'returning' clause.
Eg : insert into emp (empno, ename, job, deptno) values (7324,'ADAM','MARKETING',30) returning ename, deptno into var1, var2; PN : var1 & var2 to be declared as varchar2 & number respectively.
More insight into the 'RETURNING' clause in this link.
http://www.samoratech.com/PLSQL/swArtPLSQLReturn.htm
Regards,
Bhanu. -
How to retrieve dynamic filter value submitted from control query to broadcast query.....
I'm trying to change the hierarchy version determined by a userexit variable in the broadcast query.
The Hierarchy Version should be dependent on the input filter delivered by the bursting query.
But how do I catch the dynamic filter value which has been submitted by the bursting query,
with other words: where does the bursting query store it's out put while sequentially starting the broadcast query value by value?
BTW: the filter value from the bursting query appears under "dynamic filter values" in the information of the broadcast query...
Any thoughts are welcome!
Edited by: Heinrich Krupp on Jun 24, 2009 1:25 PMFurther information,
Report is used via webi only, not Xcelsius or Dashboard.
Report is consuming BI Web Services.
Although we can pass in prompt values to BI Services, I couldn't find if we could pass a variable or dimension object into this field. Anyone knows? -
How to retrieve Task Lists from All Subsites to the Parent Site and display in Grid view using CAML Query + object model
do u just want task list or items under task list for all subsites
for items use spsitedataquery ref
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx use recursive to get it from alll subsite under site collection
for tasklist only u can a simply use a for loop to find in all subsite
Manish Sati -
How to control the timesheet approval
Hi ,
I am new to HCM and not quite familiar with HCM configuration. I am trying to figure out how we configure the timesheet approval. For example, for certain group of employees (salaried), I don't want any approval for timesheet. But for the other group of employess (hourly paid), I want to set up the approval for timesheet. What do I need to set up to do that? Where is the directory in the IMG?
Thanks,
Tinghi,
if you are using CATS classic, the same data entry profile would serve the purpose.
in the node>timesheet>specific settings for CATS classic>setup data entry profile, you can notice a radio button named
'approval procedure for exceptions' in th Approval section.
You can specify a group against whose details you can check out using the F1 help.
For approval details you can navigate to the node timesheet-->general settings for all interfaces->Approval procedure and customise accordingly.
But i am afraid that the approval decsion cannot be made against employee group and subgroup .
You can make decision only on company code, payscale area, payscale type,etc.,
You can check out the feature CATEX and decide accordingly.
If you are using CATS regular, then you will have create 2 profiles and assign one of them to the approval view accordingly.
thank you,
Jose -
SAP Query - how to retrieve data within another program / FM
Hi,
I need to retrieve data from SAP Query, but when I used SUBMIT ..., the program results dump, because it is called within open custor loop.
Is there any another way, some FM or sth else?
thanks
JurajI already tried it, but I always get dump with CX_SY_OPEN_SQL_DB exception.
The problem is, that I tried to execute the query within open custor loop and this exception is caused by calling commit work somewhere in query report.
therefore I try to find another way
thanks
Juraj -
How to retrieve multiple data from table and represent it in jsp page
Hi
The below JavaScript code is used to add row in the table when I want to add multiple row data into table for single entry no field.
<html> function addRow()
i++;
var newRow = document.all("tblGrid").insertRow();
var oCell = newRow.insertCell();
oCell.innerHTML = "<input name='srno"+i+"' type='text' id='srno"+i+"' size=10>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='itmcd"+i+"' type='text' id='itmcd"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='itmnm"+i+"' type='text' id='itmnm"+i+"' size='15'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='indentqty"+i+"' type='text' id='indentqty"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='uom"+i+"' type='text' id='uom"+i+"' size='10'><input type='hidden' name='mcode"+i+"'id='mcode"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='packqty"+i+"' type='text' id='packqty"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='packuom"+i+"' type='text' id='packuom"+i+"' size='10'><input type='hidden' name='pack"+i+"' id='pack"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='rate"+i+"' type='text' id='rate"+i+"' size='10'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='dor"+i+"' type='text' id='dor"+i+"' size='0' onClick='"+putdate(this.name)+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='bccode"+i+"' type='text' id='bccode"+i+"' size='10'></td><input type='hidden' name='bcc"+i+"' id='bcc"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='cccode"+i+"' type='text' id='cccode"+i+"' size='10'></td><input type='hidden' name='ccc"+i+"' id='ccc"+i+"'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input name='remark2"+i+"' type='text' id='remark2"+i+"' size='20'>";
oCell = newRow.insertCell();
oCell.innerHTML = "<input type='button' value='Delete' onclick='removeRow(this);' />";
// oCell = newRow.insertCell();
// oCell.innerHTML = "<input type='button' value='Clear' onclick='clearRow(this);' />";
}<html> Then this data are send to the next Servlet for adding into two table.
My header portion data are added into one table which added only one row in table. while footer section data are added into the no of rows in another table dependent on No. of
Rows added into jsp page.
Here is an code for that logic.
<html>
ArrayList<String> mucode = new ArrayList<String>();
ArrayList<Integer> serials = new ArrayList<Integer>();
ArrayList<Integer> apxrate = new ArrayList<Integer>();
ArrayList<Integer> srname = new ArrayList<Integer>();
ArrayList<String> itcode = new ArrayList<String>();
ArrayList<String> itname = new ArrayList<String>();
ArrayList<Integer> iqnty = new ArrayList<Integer>();
ArrayList<String> iuom = new ArrayList<String>();
ArrayList<Integer> pqnty = new ArrayList<Integer>();
ArrayList<String> puom1 = new ArrayList<String>();
ArrayList<Integer> arate = new ArrayList<Integer>();
ArrayList<String> rdate = new ArrayList<String>();
ArrayList<String> bcs = new ArrayList<String>();
ArrayList<String> ccs = new ArrayList<String>();
ArrayList<String> remarkss = new ArrayList<String>();
//ArrayList<Integer> qtyrecs = new ArrayList<Integer>();
//ArrayList<String> dors = new ArrayList<String>();
//ArrayList<String> remarks = new ArrayList<String>();
String entryn = request.getParameter("entryno");
String rows = request.getParameter("rows");
out.println(rows);
//String Entryno = request.getParameter("entryno");
// out.println(Entryno);
int entryno = 0,reqqty = 0,srno = 0,deprequest = 0,rowcount = 0;
if(!Entryno.equals("")){
entryno = Integer.valueOf(Entryno);
if(!rows.equals("")){
rowcount = Integer.valueOf(rows);
for(int i=1;i<=rowcount;i++){
if(request.getParameter("srno"+i)!=null){
serials.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
out.println(serials.size());
for(int i=1;i<=rowcount;i++){
if(request.getParameter("srno"+i)!=null){
srname.add(Integer.valueOf(request.getParameter("srno"+i).trim()));
out.println(srname.get(0));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("itmcd"+i)!=null){
itcode.add(request.getParameter("itmcd"+i).trim());
} //out.println(itcode.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("itmnm"+i)!=null){
itname.add(request.getParameter("itmnm"+i).trim());
}//out.println(itname.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("indentqty"+i)!=null){
iqnty.add(Integer.valueOf(request.getParameter("indentqty"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("uom"+i)!=null){
iuom.add(request.getParameter("uom"+i).trim());
}//out.println(iuom.get(i));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("mcode"+i)!=null){
mucode.add(request.getParameter("mcode"+i).trim());
for(int i=1;i<=rowcount;i++){
if(request.getParameter("packqty"+i).equals("")){
pqnty.add(0);
}else
pqnty.add(Integer.valueOf(request.getParameter("packqty"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("pack"+i)!=null){
puom1.add(request.getParameter("pack"+i).trim());
}else
puom1.add("");
for(int i=1;i<=rowcount;i++){
if(request.getParameter("rate"+i).equals("")){
arate.add(0);
}else
arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
/* for(int i=1;i<=rowcount;i++){
if(request.getParameter("rate"+i)!=null){
arate.add(Integer.valueOf(request.getParameter("rate"+i).trim()));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("dor"+i)!=null){
try{
rdate.add(dashdate.format(slashdate.parse(request.getParameter("dor"+i).trim())));
}catch(ParseException p){p.printStackTrace();}
}else
{ rdate.add("");}
for(int i=1;i<=rowcount;i++){
if(request.getParameter("bcc"+i)!=null){
bcs.add(request.getParameter("bcc"+i).trim());
}out.println(bcs.get(0));
for(int i=1;i<=rowcount;i++){
if(request.getParameter("ccc"+i)!=null){
ccs.add(request.getParameter("ccc"+i).trim());
}out.println(ccs.get(0));
for(int i=1;i<=rowcount;i++){
out.println("remark2");
if(request.getParameter("remark2"+i)!=null){
remarkss.add(request.getParameter("remark2"+i).trim());
}out.println(remarkss.get(0));
ArrayList<String> Idate = new ArrayList<String>();
for(int i=1;i<=rowcount;i++){
if(request.getParameter("dateindent"+i)!=null){
try{
Idate.add(dashdate.format(dashdate.parse(request.getParameter("dateindent"+i).trim())));
}catch(ParseException p){p.printStackTrace();}
String Rdate = dashdate.format(new java.util.Date());
String tdate = dashdate.format(new java.util.Date());
// String Indentdate = dashdate.format(new java.util.Date());
// String ApprovedT1 = dashdate.format(new java.util.Date());
// String ApprovedT2 = dashdate.format(new java.util.Date());
// String ApprovedT1=" ";
//String ApprovedT2="";*/
String ApprovedT1= dashdate.format(new java.util.Date());
out.println (ApprovedT1);
String ApprovedT2=dashdate.format(new java.util.Date());
out.println(ApprovedT2);
String Indentdate=(dashdate.format(slashdate.parse(request.getParameter("dateindent").trim())));
out.println(Indentdate);
String Cocode ="BML001";
out.println(Cocode);
String Deptcode = request.getParameter("dept1");
out.println(Deptcode);
String Empcode = request.getParameter("emp");
out.println(Empcode);
String Refno =request.getParameter("rtype");
out.println(Refno);
String Divcode = request.getParameter("todiv1");
out.println(Divcode);
String Usercode = "CIRIUS";
String Whcode = request.getParameter("stor");
out.println(Whcode);
// String Itemgroupcode = request.getParameter("");
String Itemgroupcode ="120000";
out.println(Itemgroupcode);
String Supplytypecode = request.getParameter("stype");
out.println(Supplytypecode);
String Delcode = request.getParameter("deliverycode");
out.println(Delcode);
String Itemclass="WS";
out.println(Itemclass);
// String Itemclass = request.getParameter("iclass");
// out.println(Itemclass);
String unitcode = request.getParameter("uni");
out.println(unitcode);
String Todivcode = request.getParameter("todiv1");
out.println(Todivcode);
String Appxrate = request.getParameter("rate");
out.println(Appxrate);
String Srno = request.getParameter("srno");
out.println(Srno);
/* String Indqty = request.getParameter("indentqty");
out.println(Indqty);*/
String Itemcode = request.getParameter("itmcd");
out.println(Itemcode);
String Othersp = request.getParameter("remark1");
out.println(Othersp);
String Reqdt = request.getParameter("dor");
out.println(Reqdt);
String Munitcode = request.getParameter("mcode");
out.println(Munitcode);
String Packqty = request.getParameter("packqty");
out.println(Packqty);
String Packuom = request.getParameter("pack");
out.println(Packuom);
String Remark2 = request.getParameter("remark2");
out.println(Remark2);
String BC = request.getParameter("bcc");
out.println(BC);
String CC = request.getParameter("ccc");
out.println(CC);
try{
st=connection.createStatement();
connection.setAutoCommit(false);
String sql="INSERT INTO PTXNINDHDR(COCODE,DEPTCODE,EMPCODE,APPROVEDT1,APPROVEDT2,INDDT,ENTRYNO,REFNO,REMARKS,DIVCODE,USERCODE,WHCODE,ITEMGROUPCODE,SUPTYPECODE,DELCODE,UNITCODE,TODIVCODE,ITEMCLASS)VALUES('"+Cocode+"','"+Deptcode+"','"+Empcode+"','"+ApprovedT1+"','"+ApprovedT2+"','"+Indentdate+"',"+Entryno+",'"+Refno+"','"+Othersp+"','"+Divcode+"','"+Usercode+"','"+Whcode+"','"+Itemgroupcode+"','"+Supplytypecode+"','"+Delcode+"','"+unitcode+"','"+Todivcode+"','"+Itemclass+"')";
out.println(sql);
st.addBatch(sql);
for(int i=0;i<serials.size();i++){
out.println("Inside the Statement");
String query3="test query for u";
out.println(query3);
String queryx="Insert into PTXNINDDTL(APXRATE,ENTRYNO,BRKNO,INDQTY,ITEMCODE,OTHERSPFCS,MUNITCODE,PACKQTY,PACKUOM,REMARKS,DIMSUBGRPCODE,DIMCODE,REQDT)VALUES("+arate.get(i)+","+entryno+","+srname.get(i)+","+iqnty.get(i)+","+itcode.get(i)+",'"+Othersp+"','"+mucode.get(i)+"',"+pqnty.get(i)+",'"+puom1.get(i)+"','"+remarkss.get(i)+"','"+bcs.get(i)+"','"+ccs.get(i)+"','"+rdate.get(i)+"')";
out.println(queryx);
st.addBatch(queryx);
int[] result=st.executeBatch();
connection.commit();
for(int k=0;k<result.length;k++)
out.println("rows updated by "+(k+1)+"insert sta:"+result[k]+"");
catch(BatchUpdateException bue)
out.println("error1;"+bue+"");
catch(SQLException sql)
out.println("error2;"+sql+"");
catch(Exception l)
out.println("error3;"+l+"");
</html>
Now I looking for to retrieve this footer section data available in multiple rows from footer table and present it in jsp page .
I am finding difficulties in how to show this multiple row data for dynamic no of rows .i.e. variable no. of rows.
I have able to show the data in Header portions of page in this ways
here i am adding the part of code which shows the data from header part of table i.e from Header table
<html>
<h2 align="center"><b>Indent Preparation</b></h2>
<div align="left">
<table width="849" border="0" cellspacing="3" cellpadding="3" align="center">
<tr>
<td ><div align="left"><b>Indent No.</b></div></td>
<td ><label>
<input name="indentno" type="text" id="indentno" size="15" value="" /><input type="hidden" name="no" id="no">
</label></td>
<td ><div align="center"><strong>Indent Date</strong></div></td>
<td ><label>
<div align="center">
<input name="dateindent" type="text" id="dateindent"value="<%=date1%>"/><input type="hidden" name="no" id="no">
</div>
</label></td>
<td> </td>
<td><div align="right"><strong>Entry No.</strong></div></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrcode.get(3)%>" size="10"></td>
<%}else{%>
<td><input type="text" name="entryno" id="entryno" value="<%=entryNo%>"/></td>
<%}%>
<div align="right"></div>
</tr>
<tr>
<td><b>Division</b></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(9)%>" size="20"</td>
<td><input type="hidden" name="div1" id="div1" value='<%=hdrcode.get(10)%>'></td>
<%}else{%>
<td><input type="text" name="div" id="div" /></td>
<td><input type="hidden" name="div1" id="div1" /> </td>
<%}%>
<td> </td>
<td> </td>
<td><div align="right"><strong>Unit</strong></div></td>
<%if(oper!=null && oper.equals("view") && hdrcode!=null && hdrdetails!=null){%>
<td><input type="text" value="<%=hdrdetails.get(14)%>" size="20"</td>
<td><input type="hidden" name="uni" id="uni" value='<%=hdrcode.get(12)%>'></td>
<%}else{%>
<td><input type="text" name="unit" id="unit" /></td>
<td><input type="hidden" name="uni" id="uni" /> </td>
<%}%>
</tr>
<tr>
</html>
Any suggestion on any above works is highly appreciated.
Thanks and regards
harshalToo much code. It's also not well intented nor formatted. I don't see a question either or it got lost in that heap of unformatted code.
I will only answer the question in the thread's subject:
How to retrieve multiple data from table and represent it in jsp pageTo retrieve, make use of HttpServletRequest#getParameterValues() and/or #getParameter().
To display, make use of JSTL's c:forEach. -
How to Retrieve a Crystal Report's Unmanaged Destination Filename
Hi all,
I have looked very closely at Robert Twigg's response to the post "[Destination Path and name of a scheduled Report|http://forums.sdn.sap.com/thread.jspa?messageID=9588160#9588160]" dated 9/1/10 and while it does retrieve the unmanaged destination path, the filename retrieved is the managed filename. How does one go about retrieving an instance's unmanaged filename?
When I look at a Crystal Report instance details, it definitely knows what the unmanaged filename that was populated, here is a sample instance detail:
External Destination: File copy the instance with the filename: "ALOG_Deferred_Clearing_RPT_2011-12-13-11-43-09.pdf" to the folder: "/apps/efs_bobj/IMPL/XX" .
As you can clearly see, the filename consists of report name, date, and time that was specified as "%SI_NAME%_%SI_STARTTIME%.%EXT%" in the destination filename.
Here's the snippet to retrieve the managed filename:
IInfoObject report = (IInfoObject) reports.get(0);
// Get the file name from the instance.
IFiles files = (IFiles) report.getFiles();
IFile file = (IFile) files.get(0);
Any insight on how to retrieve an instance's unmanaged filename would be highly appreciated.
Thanks in advance,
Hart Penn
Edited by: hartpenn on Dec 14, 2011 2:14 PM
Edited by: hartpenn on Dec 14, 2011 2:15 PM
Edited by: hartpenn on Dec 14, 2011 2:19 PMThank you for your response. I am querying for the report instances using the query below:
IInfoObjects iRptObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS " +
"Where SI_KIND='Pdf' AND " +
"SI_INSTANCE>0 ");
Collection<IInfoObject> iRptObjs = iRptObjects;
for (IInfoObject iRptObj : iRptObjs) {
ISchedulingInfo iSchedInfo = iRptObj.getSchedulingInfo();
IEvents triggerEvents = iSchedInfo.getDependants();
if (triggerEvents.size() > 0) {
for (int j=0; j < triggerEvents.size(); j++) {
IInfoObjects events = (IInfoObjects)infoStore.query("SELECT * FROM CI_SYSTEMOBJECTS " +
"Where SI_KIND='Event' AND " +
"SI_ID=" + (Integer) triggerEvents.get(j));
if (events.size() > 0) {
IEvent curEvent = (IEvent)events.get(0);
IDestinationPlugin destPlugin =
(IDestinationPlugin) infoStore.query("Select Top 1* from CI_SYSTEMOBJECTS " +
"Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'").get(0);
IDestinations dests = iSchedInfo.getDestinations();
Collection<IDestination> destObjs = dests;
if (dests.size() > 0) {
// we have a dest set up
for (IDestination destObj : destObjs) {
if (destObj.getName().compareTo("CrystalEnterprise.DiskUnmanaged") == 0) {
// Copy the destination properties to the destination plugin.
destObj.copyToPlugin(destPlugin);
// Get the scheduling options for the unmanaged disk.
IDiskUnmanagedOptions diskUnmanagedOptions =
(IDiskUnmanagedOptions) destPlugin.getScheduleOptions();
// Get the destination files
List destFiles = diskUnmanagedOptions.getDestinationFiles();
String pathName = (String)destFiles.get(0);
IFiles iFiles = (IFiles) iRptObj.getFiles();
IFile myFile = (IFile) iFiles.get(0);
logger.debug("Object: " + iRptObj.getTitle() +
", ID: " + iRptObj.getID() +
", Kind: " + iRptObj.getKind() +
", Trigger Event: " + curEvent.getEventName());
logger.debug("Dest: " + pathName);
logger.debug("Filename: " + myFile.getName());
while this is not efficient, it does retrieve the instances. However, the file name returned is not what was specified in the destination filename. Here is some info returned and displayed:
Object: ALOG_Deferred_Clearing_RPT, ID: 128776, Kind: Pdf, Trigger Event: EVT_121311_114308
Dest: /apps/efs_bobj/IMPL/XX/%SI_NAME%_%SI_STARTTIME%.%EXT%
FileName: ~ce46086dd492ac788.pdf
As you can see, the filename is clearly the managed filename.
Edited by: hartpenn on Dec 14, 2011 3:43 PM
Edited by: hartpenn on Dec 14, 2011 4:02 PM
Edited by: hartpenn on Dec 14, 2011 4:03 PM
Edited by: hartpenn on Dec 14, 2011 4:17 PM
Edited by: hartpenn on Dec 14, 2011 4:26 PM
Edited by: hartpenn on Dec 14, 2011 4:27 PM
Edited by: hartpenn on Dec 14, 2011 4:28 PM -
Hi,
Read the note 733287.1 and notice that the table HR_API_TRANSACTON_VALUES has been removed in R12. And the transaction data is keep in column TRANSACTION_DOCUMENT of HR_API_TRANSACTIONS table.
We have several package that retrieve the PER_ABSENCE_ATTENDACE_TYPE from HR_API_TRANSACTION_VALUES tables. However, we are not able to query the info in R12 now. This is applicable for leave application via the Self Service Module.
Would like to seek advise whether how to retrieve the absence attendance type in the Self Service Module in R12?
Thanks in advance.
Regards,
SCHi,
Yes, the tansaction data is stored in transaction_doucment column of table hr_api_transactions in R12 as XML data
You can get the ABSENCE_ATTENDACE_TYPE details from the follwoing tables:
1> HR.per_absence_attendance_types
2>per_abs_attendance_types_tl
Thanks,
Kumar -
How to retrieve the data from SAP database.
Hi Pals,
How to retrieve data from SAP R/3 System to my third party software. I will make my query little bit more clear. There is a list of assets entered and stored in the SAP system. For example 3 mobile phones.
1) Mobile 1- Nokia
2) Mobile 2 - Samsung
3) Mobile 3 u2013 Sony
Now think I do not know what all assets is there. I have to retrieve the data and get it on my third party software. Just display the list of assets. Lets say SAP XI is also there. Now how will I map it and get the details.
Please give me step by step method.
N.B: Just to read the data from SAP database.
Please make the flow clear step by step.
Thanking you
AKHi,
You can use RFC or ABAP Proxy to make synchronous call with SAP.
Under RFC or ABAP Proxy Program you can get the data from SAP tables. Direct access to SAP Database is not preferrable even if its possible.
The better way to go for RFC or PROXY.
You will send the request from Third party system and the it will be as input parameters from RFC/ Proxy it will response based on it.
This got it all..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
/people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
HTTP to RFC - A Starter Kit
/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
Refer
Thanks
Swarup
Edited by: Swarup Sawant on Jun 4, 2008 9:32 AM -
Hi All,
I was wondering how to pass text in MDX query.
Below mentioned is my sample query and it is working fine.
SELECT
{[Measures].members} ON AXIS(0),
NON EMPTY [0MATERIAL].[LEVEL01].MEMBERS
*[0DOC_NUMBER].[LEVEL01].MEMBERS ON AXIS(1)"
FROM [$ZTEST]"
WHERE {[0MATERIAL].[000012345]} ";
But in data base 000012345 consists of material name as Pepsi
Now based on Pepsi I want to fetch results? Is it possible?
Thanks in advance.Srinivas,
So you are using JAVA, if you consult the developer's guide there is a section specifically addressing your question the ResultSet API should handle this via the formatted
<b>Retrieving Result Sets
ResultSet API</b>
Note that the concept allows for more than two axes, however a two-dimensional, table-like data set makes the
example easy to illustrate. On the columns axis, two members (Store Cost and Store Sales) of the measures
dimension have been selected; on the rows axis, three members (Berlin, Hamburg, and Munich) of the City level
of a geographical hierarchy. The dataset has six cells:
Cells provide four mandatory properties:
Value supports all common column types, for example:
o numeric types
o dates
o time values
o strings
o null
Data type int value describing the data-type (see java.sql.Types)
Status state of the cell (for example, error or null)
<b> Formatted value a string representation of value</b>
You can retrieve text in this manner.
Do you want to be able to pass text as if it were a value as well?
Cheers,
Scott -
HELP! How te retrieve the last row in MYSQL database using Servlet!
Hi ,
I am new servlets. I am trying to retireve the last row id inserted using the servlet.
Could someone show me a working sample code on how to retrieve the last record inserted?
Thanks
MY CODE
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class demo_gr extends HttpServlet {
//***** Servlet access to data base
public void doPost (HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
String url = "jdbc:mysql://sql2.njit.edu/ki3_proj";
String param1 = req.getParameter("param1");
PrintWriter out = resp.getWriter();
resp.setContentType("text/html");
String semail, sfname, slname, rfname, rlname, remail, message;
int cardType;
sfname = req.getParameter("sfname");
slname = req.getParameter("slname");
rfname = req.getParameter("rfname");
rlname = req.getParameter("rlname");
semail = req.getParameter("semail");
remail = req.getParameter("remail");
message = req.getParameter("message");
//cardType = req.getParameter("cardType");
cardType = Integer.parseInt(req.getParameter("cardType"));
out.println(" param1 " + param1 + "\n");
String query = "SELECT * FROM greeting_db "
+ "WHERE id =" + param1 + "";
String query2 ="INSERT INTO greeting_db (sfname, slname ,semail , rfname , rlname , remail , message , cardType ,sentdate ,vieweddate) values('";
query2 = query2 + sfname +"','"+ slname + "','"+ semail + "','"+ rfname + "','"+ rlname + "','"+ remail + "','"+ message + "','"+ cardType + "',NOW(),NOW())";
//out.println(" query2 " + query2 + "\n");
if (semail.equals("") || sfname.equals("") ||
slname.equals("") || rfname.equals("") ||
rlname.equals("") || remail.equals("") ||
message.equals(""))
out.println("<h3> Please Click the back button and fill in <b>all</b> fields</h3>");
out.close();
return;
String title = "Your Card Has Been Sent";
out.println("<BODY>\n" +
"<H1 ALIGN=CENTER>" + title + "</H1>\n" );
out.println("\n" +
"\n" +
" From " + sfname + ", " + slname + "\n <br> To "
+ rfname + ", " + rlname + "\n <br>Receiver Email " + remail + "\n<br> Your Message "
+ message + "\n<br> <br> :");
if (cardType ==1)
out.println("<IMG SRC=/WEB-INF/images/bentley.jpg>");
else if(cardType ==2) {
out.println("<IMG SRC=/WEB-INF/images/Bugatti.jpg>");
else if(cardType ==3) {
out.println(" <IMG SRC=/WEB-INF/images/castle.jpg>");
else if(cardType ==4) {
out.println(" <IMG SRC=/WEB-INF/images/motocross.jpg>");
else if(cardType ==5) {
out.println(" <IMG SRC=/WEB-INF/images/Mustang.jpg>");
else if(cardType ==6) {
out.println("<IMG SRC=/WEB-INF/images/Mustang.jpg>");
out.println("</BODY></HTML>");
try {
Class.forName ("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection
( url, "*****", "******" );
Statement stmt = con.createStatement ();
stmt.execute (query2);
//String query3 = "SELECT LAST_INSERT_ID()";
//ResultSet rs = stmt.executeQuery (query3);
//int questionID = rs.getInt(1);
System.out.println("Total rows:"+questionID);
stmt.close();
con.close();
} // end try
catch (SQLException ex) {
//PrintWriter out = resp.getWriter();
resp.setContentType("text/html");
while (ex != null) {
out.println ("SQL Exception: " + ex.getMessage ());
ex = ex.getNextException ();
} // end while
} // end catch SQLException
catch (java.lang.Exception ex) {
//PrintWriter out = resp.getWriter();
resp.setContentType("text/html");
out.println ("Exception: " + ex.getMessage ());
} // end doGet
private void printResultSet ( HttpServletResponse resp, ResultSet rs )
throws SQLException {
try {
PrintWriter out = resp.getWriter();
out.println("<html>");
out.println("<head><title>jbs jdbc/mysql servlet</title></head>");
out.println("<body>");
out.println("<center><font color=AA0000>");
out.println("<table border='1'>");
int numCols = rs.getMetaData().getColumnCount ();
while ( rs.next() ) {
out.println("<tr>");
for (int i=1; i<=numCols; i++) {
out.print("<td>" + rs.getString(i) + "</td>" );
} // end for
out.println("</tr>");
} // end while
out.println("</table>");
out.println("</font></center>");
out.println("</body>");
out.println("</html>");
out.close();
} // end try
catch ( IOException except) {
} // end catch
} // end returnHTML
} // end jbsJDBCServletI dont know what table names and fields you have but
say you have a table called XYZ which has a primary
key field called keyID.
So in order to get the last row inserted, you could
do something like
Select *
from XYZ
where keyID = (Select MAX(keyID) from XYZ);
Good Luckwhat gubloo said is correct ...But this is all in MS SQL Server I don't know the syntax and key words in MYSQL
This works fine if the emp_id is incremental and of type integer
Query:
select *
from employee e, (select max(emp_id) as emp_id from employee) z
where e.emp_id = z.emp_id
or
select top 1 * from employee order by emp_id descUday -
How to retrieve updated payload information from completed HumanTask
after initiating the HumanTask , updating the payload object from java client api
payload information set into task object.
taskService.updateTaskOutcome(workflowContext, task, outcome) ;
after this call the HumanTask will be Completed.
Now i tried to get the Payload which was updated in earlier step.
Task task=taskQueryService.getTaskDetailsByNumber(workflowContext, taskNumber);
XMLElement payload =(XMLElement)task.getPayloadAsElement();
in the payload, it only contains payload which was at the time of humanTask initiation .
Can any one help me, how to retrieve the payload information after completing the HumanTask ?
Thanks in AdvanceI think the below code can be used to update the payload in the HumanTask
IWorkflowServiceClient wfSvc=WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
//instantiate the TaskQueryService Object
ITaskQueryService taskQuerySvc=wfSvc.getTaskQueryService();
//instantiate the TaskService Object. it has the UpdateOutcome method
ITaskService taskSvc=wfSvc.getTaskService();
final String password="jcooper";
final int taskNumber=123;
try {
//get WorkflowContext
IWorkflowContext context=taskQuerySvc.authenticate("jcooper",password.toCharArray(), "jazn");
Task task=taskQuerySvc.getTaskDetailsByNumber(context, taskNumber);
Element element=task.getPayloadAsElement();
Element payloadNew=element.getOwnerDocument().createElementNS("http://xmlns.oracle.com/bpel/workflow/task", "payload");
JAXBContext jaxbContext=JAXBContext.newInstance("object.path");
Marshaller marshaller=jaxbContext.createMarshaller();
//new Object() is your Object which you want to update in Process payload
marshaller.marshal(new Object(), payloadNew);
task.setPayloadAsElement(payloadNew);
//update task payload
taskSvc.updateTaskOutcome(context, task, "APPROVE");
} catch (WorkflowException e) {
e.printStackTrace();
} catch (JAXBException e) {
e.printStackTrace();
} catch (StaleObjectException e) {
e.printStackTrace();
Edited by: user12267906 on Nov 28, 2009 7:43 AM -
How to retrieve Page name?
I have a select:
select
step_id Page
, count(step_id) Hits
from
wwv_flow_user_activity_log
where
flow_id = &APP_ID.
and (time_stamp >= (sysdate - 7))
group by
step_id
order by
count(step_id) DESC
Where I show most frequent pages. How to retrieve Page name and link to that page...muist be SQL based and somehow joind with wwv_flow_user_activity_log view.
THX!<br>Guys,
<br>this thread is somehow quiet but I have more questions...To retrieve page_name you have to query FLOWS_020000.WWV_FLOW_STEPS (or FLOWS_020100.WWV_FLOW_STEPS in XE).
<br>to be able to select data yo uneed to grant GRANT SELECT ON FLOWS_020000.WWV_FLOW_STEPS TO "schema";
<br>As you can see here is one mistery...schema owner on different platform...! Is there any way to make unique approach to this if data are develped on HTMLDB 2.0 on 10gR2 and the production is on XE?
<br>THX! -
How to retrieve the Foreign key information in Oracle
I want to know how to retrieve the Foreign Key information in Oracle while using SQL Statement?
I have use three SQL statement to retrieve such information, but the performance is very bad.
The three SQL Statements are:
Select constraint_name, r_constraint_name from all_constraints where constraint_type = 'R' and table_name = table1;
Select column_name from all_cons_columns where constraint_name = cons1;
Select table_name, column_name from all_cons_columns where constraint_name = r_ccons1;
Do anyone know another method to retrieve the Foreign Key information which has better performance?These sql-statements don't seem very performance intensive. My guess is something is wrong with your database (unless you have millions of constraints). How many constraints do you have? how many concurrent users? What is your dictionary cach hitratio? (other hitratio?) memory problems? other tasks of the computer? is this query the only one being slow? etc.
Maybe you are looking for
-
I tunes has deleted all the songs from my HDD literally as I watched??!!
HELP!!!!!!!!!!!! I Thought my PC was protected from this kind of invasion?????? All my music/videos and Purchases have literally dissapeared from itunes folder and hard drive. It was there half an hour ago and all that happened is: I forgot my passwo
-
Images saved in Photoshop CS6 as PNG or jpeg won't open on Windows computers
I recently saved an image on Photoshop CS6 as a PNG file so I could send it as an attachment to a client (who uses a Windows computer). They told me the file wouldn't open and instead showed as an "Unknown File". I tried opening the file on my Window
-
Hello everyone, I have the following code that I run inside a button clicked event in order to compare the username and password given by the user. public static bool isAuthenticated(string Username, string Password) //Open a connection with the data
-
Facing speed issue in my iphone 4, 16gb
Hi Guys I am facing speed issue in my iphone 4, 16gb. may after updating ios 7, currenly i am using 7.0.4 update. please help me if anyone have soltion. Regards Parveen
-
Hi - I just got my new Apple TV setup - when I order a movie for $4.99 - I get charged $14.99, and instead of only staying for 24 hours, it now stays for 30 days - how do I change the setting so i'm only getting an overnight movie rental instead of