BAPI_PO_CHANGE taking default values for zaro value Condition update
Hi,
I am using std BAPI_PO_CHANGE for line item condition type value update.
I want to update the condition value with zero, however it is picking some default value 10 $.
I want to know from where it is picking that value.
wa_item-po_item = ls_po_detail-line_item_number.
wa_item-final_inv = c_x.
APPEND wa_item TO lt_item.
wa_itemx-po_item = ls_po_detail-line_item_number.
wa_itemx-po_itemx = c_x.
wa_itemx-final_inv = c_x.
APPEND wa_itemx TO lt_itemx.
wa_cond-itm_number = ls_po_detail-line_item_number.
wa_cond-cond_type = ls_po_detail-condition_type.
wa_cond-cond_value = ls_po_detail-unit_price .
wa_cond-currency = c_curr.
wa_cond-change_id = c_insert.
APPEND wa_cond TO lt_cond.
wa_condx-itm_number = ls_po_detail-line_item_number.
wa_condx-itm_numberx = c_x.
wa_condx-cond_type = c_x.
wa_condx-cond_value = c_x.
wa_condx-currency = c_x.
wa_condx-change_id = c_x.
APPEND wa_condx TO lt_condx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = wa_po_no-ebeln
TABLES
return = lt_return
poitem = lt_item
poitemx = lt_itemx
pocond = lt_cond
pocondx = lt_condx.
Hi,
Did you check what is there in ls_po_detail-unit_price ??
Check this links might help you.
Re: BAPI_PO_CHANGE not updating Condition Price
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
Regards and Best wishes.
Similar Messages
-
I have created a form that contains fields with default text for a user to update/personalize. Is there a way to style the text so I can quickly identify changes to default text in a field?
George - Thanks you so much! Actually, i'd love for the text color to be red font color. Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
thanks again!
Seth -
What are the valid values for CPU in conditional disable structure config?
After diggin' around for some time (but to no avail)...
Does somebody know the valid values for the CPU (symbol) in the conditional disable structure configuration or where I can find this information?
Best regards,
HorstNot sure but you can try this:
http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/app_apptarget_cpu/
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies -
Multiple values for a Like condition
How can I make a like condition for multiple value options,
for example
select b.segment1, b.segment2, b.description, c.cross_reference, c.cross_reference_type
from inv.mtl_system_items_b b, inv.mtl_cross_references_b c
where b.inventory_item_id = c.inventory_item_id and
b.ORGANIZATION_ID = 136 and
c.cross_reference like (
'1267801228%',
'1267801230%',
'1500005030%',
'1745%',
'1874106005%',
'2004%',
'2004%',
'232003000000%',
'303681020128%',
'3426441351%',
'489122853014%',
'4894230110%',
'5383800117%',
'5422810701%',
'5422810711%',
'5422810711%',
'70986205105%',
'70986205112%',
'70986205122%',
'70986205131%',
'70986205131%',
'70986205131%',
'70986205142%')Edited by: user8986013 on 28-oct-2010 8:19One way could be to sort the String for length and then use SUBSTR with an IN-List:
select b.segment1, b.segment2, b.description, c.cross_reference, c.cross_reference_type
from inv.mtl_system_items_b b, inv.mtl_cross_references_b c
where b.inventory_item_id = c.inventory_item_id and
b.ORGANIZATION_ID = 136 and
(substr(c.cross_reference,1,12) in (
'232003000000',
'303681020128',
'489122853014')
or
substr(c.cross_reference,1,11) in (
'70986205105',
'70986205112',
'70986205122',
'70986205131',
'70986205142')
or
substr(c.cross_reference,1,10) in (
'4894230110',
'5383800117',
'5422810701',
'5422810711',
'3426441351',
'1267801228',
'1267801230',
'1500005030',
'1874106005')
or
substr(c.cross_reference,1,4) in (
'1745',
'2004')
);By the way: I removed some duplicates.
Edited by: hm on 28.10.2010 09:29 -
Finding value for a specific condition
Hi All,
I have a several Employee Numbers in my Database Table. Each Employee is having different set of Profile Numbers.
For eg. the Table Emp_Profile contains the following
Emp No ProfileNo Salary Red_Amount
1000 11 1200 430
1000 12 100 55
1000 13 120 7
1000 14 430 8
1000 15 300 40
1000 43 200 20
1000 56 100 232
1010 11 1000 300
1010 14 110 700
1010 19 200 500
1010 12 410 545
1010 13 300 54
If the Employee contains 19,45,67,89,99,24 as ProfileNo then For Each Employee reduce the Salary value for 11 ProfileNo by the Corresponding Red_Amount
Ie the Output Should be
For
EmpNo Salary
1000 1200
1010 500 (as it has 19 ProfileNo)
Please help me in doing this task.
Regards,
GitaI used simple case.
And I used searched case.
create table empTable(EmpNo,ProfileNo,Salary,Red_Amount) as
select 1000,11,1200,430 from dual union
select 1000,12, 100, 55 from dual union
select 1000,13, 120, 7 from dual union
select 1000,14, 430, 8 from dual union
select 1000,15, 300, 40 from dual union
select 1000,43, 200, 20 from dual union
select 1000,56, 100,232 from dual union
select 1010,11,1000,300 from dual union
select 1010,14, 110,700 from dual union
select 1010,19, 200,500 from dual union
select 1010,12, 410,545 from dual union
select 1010,13, 300, 54 from dual;
select EmpNo,
case max(case when ProfileNo in(19,45,67,89,99,24)
then 1 else 0 end)
when 1 then max(decode(ProfileNo,19,Red_Amount))
else max(Salary) end as Salary
from empTable
group by EmpNo;
EmpNo Salary
1000 1200
1010 500 -
Getting wrong values for decimal value in Bex report
Hi,
I am getting some problem in Bexreport decimal values.
In ODS i am able to look the values for this key figure
(Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00.
Here one calculation is going with these above values
% Used = 'Total PO Release Val' / 'Target Value' * 100
as per ODS value calculation it is correct = 140.692/1000 * 100 =14.692
as per Bex it is coming like this = 140,692.00/1000 *100 = 142.692.
in Bex report Percentage valus is not considering value is taking as 140,692.00 rather than 140.692.I mean to say decemal values are ignoring while calculation in Bexreport.can you any please advice me how to comeout of this problem.Appreciate your help.
Regards
Ramesh<i> "(Total PO Release Val)= 140.692,00,the same value in Bex report looks like this $ 140,692.00."
</i>
How do you check the ODS value? The amount will only have two decimal places after it, so you can't have a value like 140.692,00. It seems to be an issue of user's decimal notation (where decimal is represented by comma, and thousand seperator by '.'). Go to user profile, change this setting (in default tab) to correct one (ie decimal being represented by '.') and login again and check it. The value that you see in ODS is 'one hundred forty thousand six hundred ninety two, the same that you get in Bex, only the representation is different). -
CR2008 and SAP BW - Technical Values for variable values not displayable ?
Hello Experts,
we have the following constellation / problem:
- SAP Query BW 7.0 with variables
- a report built upon this query with Crystal Reports 2008
- now if we execute the report and try to fill in the parameters (= SAP BW variables), only the (SAP) description of each value is displayed
Since it is common for the business users to communicate with the key instead of the description (e.g. Project 50010001 instead of Project 'something etc something'), it is necessary for us to give them the opportunity from a list that contains the key (maybe as well as the description) instead of only the description. Is there a possibility in SAP BW or Crystal Reports 2008 to make that possible ?
I tried to do it in the infoobject, in the query, in the 'options'-section of Crystal Reports and in the properties of the parameter field itself, but to no avail.
Many thanks for your help in advance !
FrankHello Experts,
I facing a problem.
I have a crystal report based on a BW Query. It has one parameter called Country.
Eg:
Until now, in BW query country variable has the following values.
USA
JAPAN
GERMANY
Now, from this fiscal year we have the following values for country variable
USA
JAPAN
INDIA
GERMANY
UK
I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
Can any one Please help.!!
Regards
NMU -
The value for The value for the useBean invalid?
I get following error when I try to test application in iexplorer.
org.apache.jasper.JasperException: /guestBookLogin.jsp(12,0) The value for the useBean class attribute com.deitel.jhtp6.jsp.beans.GuestBean is invalid.
I got this code from a case study and I was testing it. I get
org.apache.jasper.JasperException: /guestBookLogin.jsp(12,0) The value for the useBean class attribute com.deitel.jhtp6.jsp.beans.GuestBean is invalid.
error
I believe this is becaus of version difference but here is my code
guestBookLogin.jsp
<!- <?xml version = "1.0"?> -->
<!- DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" -->
<!-- Fig. 27.22: guestBookLogin.jsp -->
<%-- page settings --%>
<%@ page errorPage = "guestBookErrorPage.jsp" %>
<%-- beans used in this JSP --%>
<jsp:useBean id = "guest" scope = "page"
class = "com.deitel.jhtp6.jsp.beans.GuestBean" />
<jsp:useBean id = "guestData" scope = "request"
class = "com.deitel.jhtp6.jsp.beans.GuestDataBean" />
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Guest Book Login</title>
<style type = "text/css">
body
font-family: tahoma, helvetica, arial, sans-serif;
table, tr, td
font-size: .9em;
border: 3px groove;
padding: 5px;
background-color: #dddddd;
}`
</style>
</head>
<body>
<jsp:setProperty name = "guest" property = "*" />
<% // start scriptlet
if ( guest.getFirstName() == null ||
guest.getLastName() == null ||
guest.getEmail() == null )
%> <%-- end scriptlet to insert fixed template data --%>
<form method = "post" action = "guestBookLogin.jsp">
<p>Enter your first name, last name and email
address to register in our guest book.</p>
<table>
<tr>
<td>First name</td>
<td>
<input type = "text" name = "firstName" />
</td>
</tr>
<tr>
<td>Last name</td>
<td>
<input type = "text" name = "lastName" />
</td>
</tr>
<tr>
<td>Email</td>
<td>
<input type = "text" name = "email" />
</td>
</tr>
<tr>
<td colspan = "2">
<input type = "submit" value = "Submit" />
</td>
</tr>
</table>
</form>
<% // continue scriptlet
} // end if
else
guestData.addGuest( guest );
%> <%-- end scriptlet to insert jsp:forward action --%>
<%-- forward to display guest book contents --%>
<jsp:forward page = "guestBookView.jsp" />
<% // continue scriptlet
} // end else
%> <%-- end scriptlet --%>
</body>
</html>GuestBean.java
* @(#)GuestBean.java
* @author:
* @Description: JavaBean to store data for a guest in the guest book.
* @version 1.00 2008/7/18
// JavaBean to store data for a guest in the guest book.
package com.deitel.jhtp6.jsp.beans;
public class GuestBean
private String firstName;
private String lastName;
private String email;
//Constructors
public GuestBean(){
public GuestBean(String firstname, String lastname, String email){
this.firstName=firstname;
this.lastName=lastName;
this.email=email;
// set the guest's first name
public void setFirstName( String name )
firstName = name;
} // end method setFirstName
// get the guest's first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set the guest's last name
public void setLastName( String name )
lastName = name;
} // end method setLastName
// get the guest's last name
public String getLastName()
return lastName;
} // end method getLastName
// set the guest's email address
public void setEmail( String address )
email = address;
} // end method setEmail
// get the guest's email address
public String getEmail()
return email;
} // end method getEmail
} // end class GuestBeanGuestBeanData.java
* @(#)GuestDataBean.java
* @author
* @version 1.00 2008/7/18
// Fig. 27.21: GuestDataBean.java
// Class GuestDataBean makes a database connection and supports
// inserting and retrieving data from the database.
package com.deitel.jhtp6.jsp.beans;
import java.sql.SQLException;
import javax.sql.rowset.CachedRowSet;
import java.util.ArrayList;
import com.sun.rowset.CachedRowSetImpl; // CachedRowSet implementation
public class GuestDataBean
private CachedRowSet rowSet;
// construct TitlesBean object
public GuestDataBean() throws Exception
// load the MySQL driver
Class.forName( "com.mysql.jdbc.Driver" );
// specify properties of CachedRowSet
rowSet = new CachedRowSetImpl();
rowSet.setUrl( "jdbc:mysql://localhost/VirsarMedia" );
rowSet.setUsername( "root" );
rowSet.setPassword( "" );
// obtain list of titles
rowSet.setCommand(
"SELECT firstName, lastName, email FROM guest" );
rowSet.execute();
} // end GuestDataBean constructor
// return an ArrayList of GuestBeans
public ArrayList< GuestBean > getGuestList() throws SQLException
ArrayList< GuestBean > guestList = new ArrayList< GuestBean >();
rowSet.beforeFirst(); // move cursor before the first row
// get row data
while ( rowSet.next() )
GuestBean guest = new GuestBean();
guest.setFirstName( rowSet.getString( 1 ) );
guest.setLastName( rowSet.getString( 2 ) );
guest.setEmail( rowSet.getString( 3 ) );
guestList.add( guest );
} // end while
return guestList;
} // end method getGuestList
// insert a guest in guestbook database
public void addGuest( GuestBean guest ) throws SQLException
rowSet.moveToInsertRow(); // move cursor to the insert row
// update the three columns of the insert row
rowSet.updateString( 1, guest.getFirstName() );
rowSet.updateString( 2, guest.getLastName() );
rowSet.updateString( 3, guest.getEmail() );
rowSet.insertRow(); // insert row to rowSet
rowSet.moveToCurrentRow(); // move cursor to the current row
rowSet.acceptChanges(); // propagate changes to database
} // end method addGuest
} // end class GuestDataBeanguestBookErrorPage.jsp
<!-- <?xml version = "1.0"?> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Fig. 27.24: guestBookErrorPage.jsp -->
<%-- page settings --%>
<%@ page isErrorPage = "true" %>
<%@ page import = "java.util.*" %>
<%@ page import = "java.sql.*" %>
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Error!</title>
<style type = "text/css">
.bigRed
font-size: 2em;
color: red;
font-weight: bold;
</style>
</head>
<body>
<p class = "bigRed">
<% // scriptlet to determine exception type
// and output beginning of error message
if ( exception instanceof SQLException )
%>
A SQLException
<%
} // end if
else if ( exception instanceof ClassNotFoundException )
%>
A ClassNotFoundException
<%
} // end else if
else
%>
An exception
<%
} // end else
%>
<%-- end scriptlet to insert fixed template data --%>
<%-- continue error message output --%>
occurred while interacting with the guestbook database.
</p>
<p class = "bigRed">
The error message was:<br />
<%= exception.getMessage() %>
</p>
<p class = "bigRed">Please try again later</p>
</body>
</html>
guestBookView.jsp
<!-- <?xml version = "1.0"?> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Fig. 27.23: guestBookView.jsp -->
<%-- page settings --%>
<%@ page errorPage = "guestBookErrorPage.jsp" %>
<%@ page import = "java.util.*" %>
<%@ page import = "com.deitel.jhtp6.jsp.beans.*" %>
<%-- GuestDataBean to obtain guest list --%>
<jsp:useBean id = "guestData" scope = "request"
class = "com.deitel.jhtp6.jsp.beans.GuestDataBean" />
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<title>Guest List</title>
<style type = "text/css">
body
font-family: tahoma, helvetica, arial, sans-serif;
table, tr, td, th
text-align: center;
font-size: .9em;
border: 3px groove;
padding: 5px;
background-color: #dddddd;
</style>
</head>
<body>
<p style = "font-size: 2em;">Guest List</p>
<table>
<thead>
<tr>
<th style = "width: 100px;">Last name</th>
<th style = "width: 100px;">First name</th>
<th style = "width: 200px;">Email</th>
</tr>
</thead>
<tbody>
<% // start scriptlet
List guestList = guestData.getGuestList();
Iterator guestListIterator = guestList.iterator();
GuestBean guest;
while ( guestListIterator.hasNext() )
guest = ( GuestBean ) guestListIterator.next();
%> <%-- end scriptlet; insert fixed template data --%>
<tr>
<td><%= guest.getLastName() %></td>
<td><%= guest.getFirstName() %></td>
<td>
<a href = "mailto:<%= guest.getEmail() %>">
<%= guest.getEmail() %></a>
</td>
</tr>
<% // continue scriptlet
} // end while
%> <%-- end scriptlet --%>
</tbody>
</table>
</body>
</html>Edited by: Areeba on Jul 19, 2008 10:34 PMThanks I got it working. The problem was my mistake (ofcourse) I had my class in this folder WEB_INF/com/..... I did had classes folder under WE-INF . I'll get rest working soon. Thanks for the help.
Edited by: Areeba on Jul 21, 2008 5:02 PM
=====================
I get this eror
javax.servlet.ServletException: Can't call commit when autocommit=true
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.guestBookLogin_jsp._jspService(org.apache.jsp.guestBookLogin_jsp:172)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
javax.sql.rowset.spi.SyncProviderException: Can't call commit when autocommit=true
com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.java:886)
com.deitel.jhtp6.jsp.beans.GuestDataBean.addGuest(GuestDataBean.java:75)
org.apache.jsp.guestBookLogin_jsp._jspService(org.apache.jsp.guestBookLogin_jsp:145)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)on here
rowSet.acceptChanges(); // propagate changes to databaseit updated the database but with error.
Edited by: Areeba on Jul 21, 2008 5:23 PM
Edited by: Areeba on Jul 21, 2008 5:57 PM -
Puzzle why query returned wrong value for last record in update.
Hi all,
10.2.0.4, Windows 32 bit.
Apply 15% dis.count to related 5 items ( total amount 522 ) sorted by lowest amount first (amount = 1).
Last record ( amount = 200 ) will be the total dis.count amount ( 78.3 ) less applied accumulated dis.count amount ( 48.50 ).
Query runs fine without update clause but wrong result for last record with update.
CREATE TABLE "T1"
"ID" NUMBER NOT NULL ENABLE,
"ITEM_ID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"AMOUNT" NUMBER(10,2) NOT NULL ENABLE,
"dizcount" NUMBER(10,2)
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '101', 1, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '102', 1, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '201', 200, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '215', 155, NULL ) ;
INSERT INTO T1 ( ID, ITEM_ID, AMOUNT, dizcount ) VALUES ( 65, '111', 165, NULL ) ;
UPDATE t1 a
SET a.dizcount =
(SELECT
CASE
WHEN rec_count = row_count
THEN (78.3 - NVL(lag(temp_total,1) over ( order by rec_count) ,0))-- 78.3 is total dizcount amount from 522 * .15
ELSE disc_amt
END amt
FROM
(SELECT id,
item_id,
disc_amt,
rec_count,
row_count,
CASE
WHEN rec_count != row_count -- accumulate dizcount amount except for last record
THEN SUM(disc_amt) over (order by rec_count)
ELSE 0
END temp_total
FROM
(SELECT ID ,
item_id,
amount amt,
ROUND(amount * .15,1) disc_amt, -- dizcount is 15%
row_number () over (order by amount) rec_count,
COUNT ( *) over () row_count
FROM t1
WHERE ID = 65
GROUP BY id,
item_id,
disc_amt,
rec_count,
row_count
)b
WHERE a.item_id = b.item_id
);Regards
Zack
Edited by: Zack.L on Jul 26, 2010 1:26 AMZack.L wrote:
Query runs fine without update clause but wrong result for last record with update.Not sure why but looks like another case in favour of MERGE.
MERGE INTO T1
using (SELECT id, item_id,
CASE
WHEN rec_count = row_count
THEN (78.3 - NVL(lag(temp_total,1) over ( order by rec_count) ,0))-- 78.3 is total dizcount amount from 522 * .15
ELSE disc_amt
END amt
FROM
(SELECT id,
item_id,
disc_amt,
rec_count,
row_count,
CASE
WHEN rec_count != row_count -- accumulate dizcount amount except for last record
THEN SUM(disc_amt) over (order by rec_count)
ELSE 0
END temp_total
FROM
(SELECT ID ,
item_id,
amount amt,
ROUND(amount * .15,1) disc_amt, -- dizcount is 15%
row_number () over (order by amount) rec_count,
COUNT ( *) over () row_count
FROM t1
WHERE ID = 65
GROUP BY id,
item_id,
disc_amt,
rec_count,
row_count
))b
on (t1.id = b.id and t1.item_id = b.item_id)
when matched then update set dizcount = b.amt ;This worked for me. I tested on 11.2 but should work on 10.2.0.4
SQL> select * from t1 order by amount ;
ID ITEM_ID AMOUNT DIZCOUNT
65 101 1 .2
65 102 1 .2
65 215 155 23.3
65 111 165 24.8
65 201 200 29.8p.s. BTW, not sure if you want the column names in different cases, but your script, as it is, gave me an error (on 11.2) -
Need PL/SQL Command for to check all rows value for child record and update
Hi All,
i want to update one field following by
one to many relationship for example
in child applet status field is value is "Closed" for all child record then parent value also should update to closed
Note: if one child record field status is "Open" don't do the update operationYou can do it in single UPDATE operation.
Here is sample & Result:
create table PA (id varchar2(3), name varchar2(12), STATUS varchar2(12));
insert into pa values('001','Cary','Open');
insert into pa values('002','TOM','Open');
create table boy (par_id varchar2(3), id varchar2(4), name varchar2(12), status varchar2(12));
insert into boy values('001','ABC1','Cary','Open');
insert into boy values('001','ABC2','Mac','Closed');
insert into boy values('001','ABC3','Ray','Closed');
insert into boy values('001','ABC4','NALLY','Open');
insert into boy values('002','ABC5','ME','Closed');
insert into boy values('002','ABC6','SHE','Closed');
UPDATE PA
SET STATUS='Closed'
WHERE NOT EXISTS
(SELECT 1
FROM BOY
WHERE BOY.PAR_ID=PA.id
GROUP BY BOY.PAR_ID,
BOY.STATUS
HAVING SUM(DECODE(BOY.STATUS,'Open',1,'Closed',0,0))>0
select * from pa;
001 Cary Open
002 TOM Closed -
Making IE 11 as default browser for windows 8.1 Update
Hi,
We are performing bulk deployments for Windows 8.1 Update using Config manager 2012 R2. Its x64 OS deployment.
I am looking for a way to make windows 8.1 Update IE browser as a default browser for all users.
Any local group policy or batch file or any script that would do this, would be great.
Can anyone pls. some script\pointers on how to achieve this? Thanks
Regards,prior to Win8, you could set file-type associations and protocol associations a few ways.
e.g.:
http://www.grouppolicy.biz/2011/09/how-to-use-group-policy-to-change-open-with-file-associations/
Since Win8, there are extra thing to deal with, e.g.:
http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
How to use two values for a constant in update rule..
Hi,
I have to make a update rule for Fiscal year variant. and I have to assign two values Z4 and FW as constant to it.
Please suggest me any idea. As I think at a time we can give only one constant value to a update rule...
Thanking you..
Saurabh Tiwari
[email protected]Hi:
If you want to give either Z4 or FW depending on a Logic, you can use ABAP or Formula Builder.
Ofcourse you cannot give FiscVariant = 'Z4FW' because thats not a valid value.
Ram C. -
Predict / fill in values for missing values
Hi,
We have some readings taken for each patient for every month for the complete year. If there are any points missing for a patient for certain month, is there any function or something that Oracle provides to fill in for this point. We know that SAS has such function. Could you please let me know if Oracle has such facility? Thanks,
LakshmiHi Lakshmi,
Oracle offers a number of linear regression methods. (I think as of version 9i)
Maybe you should have a look at them :
REGR_SLOPE returns the slope of the line. The return value is a number and can be null. After the elimination of null (expr1, expr2) pairs, it makes the following computation:
COVAR_POP(expr1, expr2) / VAR_POP(expr2)
REGR_INTERCEPT returns the y-intercept of the regression line. The return value is a number and can be null. After the elimination of null (expr1, expr2) pairs, it makes the following computation:
AVG(expr1) - REGR_SLOPE(expr1, expr2) * AVG(expr2)
REGR_COUNT returns an integer that is the number of non-null number pairs used to fit the regression line.
REGR_R2 returns the coefficient of determination (also called "R-squared" or "goodness of fit") for the regression. The return value is a number and can be null.
REGR_AVGX evaluates the average of the independent variable (expr2) of the regression line. It makes the following computation after the elimination of null (expr1, expr2) pairs:
AVG(expr2)
REGR_AVGY evaluates the average of the dependent variable (expr1) of the regression line. It makes the following computation after the elimination of null (expr1, expr2) pairs:
AVG(expr1)
REGR_SXX makes the following computation after the elimination of null (expr1, expr2) pairs:
REGR_COUNT(expr1, expr2) * VAR_POP(expr2)
REGR_SYY makes the following computation after the elimination of null (expr1, expr2) pairs:
REGR_COUNT(expr1, expr2) * VAR_POP(expr1)
REGR_SXY makes the following computation after the elimination of null (expr1, expr2) pairs:
REGR_COUNT(expr1, expr2) * COVAR_POP(expr1, expr2)
REGR_SXY, REGR_SXX, REGR_SYY are auxiliary functions that are used to compute various diagnostic statistics.
Best Regards,
Kris -
HT1222 What is taking so long for my ipad to update?
The newest update has been going for at lest two days and is not finished.
It shouldn;t take that long. Something has happened.
You can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
Try again to see if the problem persists. -
Check for null values in conditional formatting when no rows returned.
I have a report that is showing facts for different months.
For some months there is no row in the facts table.
But in the report, I have to show a * when there is no data.
If there is a row in the facts table with null value for data, the conditional formatting successfully shows a * when data is null.
But when no row is present in the facts for a particular month , conditional formatting is unable to detect any null, as none exist.
How we can check that no rews returned for a particular month and then show *?
thanksHi,
which obiee version r u using?
My Blog ref:
http://obieeelegant.blogspot.com/2011/06/replacing-null-as-0-in-obiee.html
in obiee10g its working fine.expect obiee11g
also see the bug reference
How to replace null as 0 in obiee11g pivot table view?
obiee11.1.1.6.0 also have the same issues.
Thanks
Deva
Maybe you are looking for
-
my macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?
-
Can I use my back drive from my PC with my new Macbook Air and Time Machine? Or do I need to get a whole new back up external hard drive?
-
Error when using Toplink Ant tasks - Several [3] SessionLoaderExceptions
Hi, I'm trying to integrate toplink's session exports with my build process (Apache Ant). I've been working from the example here: http://download.oracle.com/docs/cd/E14571_01/web.1111/b32441/mw.htm My Ant init target and the session validation targe
-
I planned to buy Adobe CS6 Master collection ( Students and Teachers Version ) but i have a some confusions. 1) If i bought the software with an adobe reseller ( a boxed product of adobe master collection CS6 - students and teachers edition ) and obt
-
Widget Browser -- nothing new since jANUARY, 2012???
Has the widget Browser been discontinued? I don't see any new entries since January 2012...