Copying the negative value from 1 base entity to another base entity
I am trying to copy the negative value from 1 entity to another base entity in rules.
I am not sure if this can be done
Example Paris has netinc of 100 dollars I want the other entity ParisNeg to receive the negative value or netinc -100
If pov_scenario = "Actual" then
'If pov_entity = "ParisNeg" Then
If pov_year > "2012" Then
If pov_Value = "<Entity Currency>" or pov_Value = "<Entity Curr Adjs>" Then
For Each Acc In HS.Account.List("","(Base)")
HS.EXP "E#Paris" ="E#ParisNeg"
End If 'default_currency
End If 'Year
'End If 'Entity
End If 'pov_Scenario
This might work:
If pov_scenario = "Actual" then
If pov_year > "2012" Then
If pov_Value = "<Entity Currency>" or pov_Value = "<Entity Curr Adjs>" Then
If right(pov_entity, 3) = "Neg" Then
HS.EXP "A#ALL = -E#" & Left(pov_entity, Len(pov_entity)-3) & ".A#ALL"
End If 'pov_entity
End If 'default_currency
End If 'Year
End If 'pov_Scenario
*Did not test this. You might need a member list or loop to roll through the accounts instead of all. Another thing to consider would be changing the consolidation percent to -100% or something.
Similar Messages
-
Sales order should not copy the net value from contract
Hi,
When we are creating the sales order,Where we can maintain that sales order should not copy the net value from contract.
Regards
PrabudhHi,
When I am creating the sales order with reference to contract,it's copying the net value and quantity from the contract.
But I want that sales order should not copy the net value and quantity from the contract and user can take new required quantity at the time creating the sales order.
Regards
Prabudh -
Copy a metadata value from one field to another
Hi
I'm trying to write a rule to copy the value of custom metadata field xdocument and to ddoctile field.
Can anyone point in the right direction. I'm created a rule with rule activation checking selected and checkin new then use the derived value and this does not work
Thank you
CjYou should be able to trace what's being sent from the screen, and what command is to be performed by the database.
Turn on system tracing ( http://docs.oracle.com/cd/E21764_01/doc.1111/e10792/c02_processes.htm#CSMSP535 ) for requestaudit and systemdatabase
If you confirm that the value for dDocTitle is indeed blank, check your script again (there can be a typo, or anything). I'd go with Boris's other recommendation and add a constant suffix, so that you can get rid of the constraint violation error and then fine tune everything else.
P.S. actually, it's not a constraint violation, but a feature - see here http://ora-01400.ora-code.com/
Edited by: jiri.machotka on Feb 3, 2012 3:04 PM -
How to copy the attribute values of one instance into another instance.
Say I have 3 instances and two attributes name ,id.
inst1 : id:1 ,name:abc
inst2: id:2 ,name:bcd
inst3: id:3 ,name:efg
now I want
inst: id:1 ,name:abc
bcd
efg
i.e is need to abort instance inst2 & inst3 before that copy the names bcd & efg to inst1.
Please let me know how to do this its very urgent.Hi,
The tricky part of this is to provide your third instance a way to find the other two instances. Finding instances in a process is a bit like finding rows in a database. When doing a SELECT statement in a database, you have a primary key that will guarantee you that you'll only retrieve one row. In Oracle BPM there are a couple ways to do this. One way is to use the instance's id (the predefined variable id.id) to search for the two instances. Another is to use a "correlation" to find the instances.
This example assumes you'd like to look at instances based on a search filter. This filter assumes that you have a customerId variable that both of the instances share. It only returns those instances currently inside the process (the SearchScope logic below being set to "StatusScope.ONLY_INPROCESS" in the logic below). The only incoming variable it needs is the "customerId" variable that has already been set to some value in the other instance. Note that this uses the Fuego.Papi.ClientBusinessProcess object. This logic creates a search filter and only returns instances that meet a certain criteria (the two instances in the process). Once you get the instance, the "getVar()" method retrieves the "name" instance variable. This assumes that you have an instance variable "customerNames" defined as a String array that you are using to store the names retrieved from the two instances. The "abort()" method aborts the two instances it finds in the search.
cbp as ClientBusinessProcess = ClientBusinessProcess()
connectTo(cbp, processId : "/NameOfYourProcessHere")
instF as InstanceFilter = InstanceFilter()
create(instF, processService : cbp.processService, viewId : "TypeSearch")
instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL,
statusScope : StatusScope.ONLY_INPROCESS)
logMessage "Customer Id is: " + customerId using severity = DEBUG
addAttributeTo(instF, variable : "customerId",
comparator : IS, value : customerId)
for each inst in getInstancesByFilter(cbp, filter : instF) do
// get the value of the order's amount for the instance
instanceVarValue as Object = getVar(inst, var : "name")
customerNames[] = String(instanceVarValue)
logMessage "Customer name is: " + String(instanceVarValue)
using severity = DEBUG
// aborts the instance in the process
inst.abort()
endHope this helps,
Dan -
Copying the screen image from one slide to another
Captivate automatically switched to full motion video
recording mode while a web page was loading in my demo. I don't
need to show the page building, and I certainly don't want the huge
file size required to show it, so I want to delete the video of the
page building and replace it with a static screenshot of the web
page. It doesn't want to let me do this seemingly simple task; when
I select Copy Background from the static web page slide and switch
to the live video slide, I am unable to paste the background
in.> If you are wanting the same background as the previous
slide, you would just select its name.
That does nothing but display a preview of the slide
background in the Preview pane.
> Or, you could drag the image from the Library panel to
the slide, then merge into background to set it.
That worked. Only thing is, after I deleted the full motion
video object from the page, the slide still has a video camera icon
on it in the Storyboard.
Is there any way to see the file size of a slide without
having to use the Bandwidth Analysis window? It's great and all,
but it takes a really long time to come up with a large
project. -
Can one 'copy' Shadow\Stroke settings from one graphic to another?
I'm always juggling hundreds of stills. I'd love to be able to just copy the Shadow settings from one still to another. Or to be able to 'lock' the setting so that they are all they same when applied to a set of stills.
Is something possible here?
BenBen Low wrote:
I'm always juggling hundreds of stills. I'd love to be able to just copy the Shadow settings from one still to another. Or to be able to 'lock' the setting so that they are all they same when applied to a set of stills.
Is something possible here?
Yes:
- select your shape you want to use as a "style model"
- <pre>Format > Copy Graphic Style</pre>
- select all the shapes you want to apply the same graphical style to
- <pre>Format > Paste Graphic Style</pre>
You can also adopt it as a default graphical style forever:
- select your shape you want to use as a "style model"
- <pre>Format > Advanced > Define Default Shape Style</pre>
dan -
How to copy value from one field to another in a Apex Form
Hello guys,
There are 2 addresses one is shipping and other is billing. I do not want the customer to re-enter all the details if it is the same address. So based upon an action, it should take the live values from one address field and populate the other address field. I know in JS you can do it, but how to implement that in Apex?
I guess using Dynamic Actions to achieve this in Version 4 but do not know how. Read quite some info but no luck.
Thanks in advance!Hi,
I have assumed that you have your shipping address at the top of the page, and then further down the page you have your billing address that you want to enable the users to copy (if this is in reverese, you will need to switch the js variables in the code following).
I would create a Select List item above the 'Billing Address' details, called PX_SAME_ADDRESSThis select list would be static, with the options Null.
I also assume you would have pairs of address page items such as:
PX_SHIPPING_ADDRESS_L1
PX_BILLING_ADDRESS_L1
PX_SHIPPING_ADDRESS_L2
PX_BILLING_ADDRESS_L2
PX_SHIPPING_POST_CODE
PX_BILLING_POST_CODEThen copy the following code into the HTML Header of the page definition:
<script language="JavaScript" type="text/javascript">
function copyAddress()
if( $x('PX_SAME_ADDRESS').value == 'YES')
$x('PX_BILLING_ADDRESS_L1').value = $x('PX_SHIPPING_ADDRESS_L1').value;
$x('PX_BILLING_ADDRESS_L2').value = $x('PX_SHIPPING_ADDRESS_L2').value;
$x('PX_BILLING_POST_CODE').value = $x('PX_SHIPPING_POST_CODE').value;
else //Clear Address Fields
$x('PX_BILLING_ADDRESS_L1').value = " ";
$x('PX_BILLING_ADDRESS_L2').value = " ";
$x('PX_BILLING_POST_CODE').value = " ";
</script>Then, in your PX_SAME_ADDRESS item, copy the code below into the Element > HTML Form Element Attributes field.
onChange="copyAddress();"Hopefully this works for you too, and should give you some basis to play around with.
Amanda. -
Copy values from a filed to another in different blocks in same table
Hi All,
How to copy value from a filed to another field in different blocks in same form ?
example if i change value in Field A of block 1 it should reflect in Field B block 2 and again if i change in Field B block 2 it should reflect in Field A of block 1.
values will change twice or thrice then it will not change. It is happening like that.
how to do this ?
RegardsSame table / different blocks
I guess, both blocks will be marked for update, and when your user presses commit, the same table will be updated twice!
Are you sure that this is what you want to do? Is the same record current in both blocks? If so, you better use 1 block (it can be spread over several canvases and windows) and synchronize the items with the "synchronize item" property.
Anyway: If you can't apply the synchronize-property bcos the items are in different blocks, you can synchronize with 2 when-validate-item triggers.
Wolfram -
Copying value from one cursor to another
Hi,
I have a problem while copying values from one cursor to another cursor.
The code looks like below.
PROCEDURE XYZ
TransactionResultSet OUT NOCOPY types.ref_cursor,
IS
temp_cursor types.ref_cursor;
wip_rec types.ref_cursor;
BEGIN
DECLARE
CURSOR temp_cursor IS
SELECT ...........
END;
BEGIN
FOR wip_rec IN temp_cursor
LOOP
update tinsagr set something
where {the condition}
IF SQL%ROWCOUNT = 0 THEN
dbms_output.put_line('this is test ');
Fetch wip_rec into TransactionResultSet;
END IF;
END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
How do i achieve it?
while saving i am getting
(1): PLS-00456: item 'WIP_REC' is not a cursor.
Do any one has any idea what to do in such scenario?There are options like....
SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
2 /
Type created.
SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
2 /
Type created.
SQL> set serverou on
SP2-0158: unknown SET option "serverou"
SQL> set serverout on
SQL> DECLARE
2 rc sys_refcursor;
3 v_ename emp.ename%TYPE;
4 v_dept emp.deptno%TYPE;
5 ---End Of Local Varriable Declaration
6 --Procedire declaration !
7 PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
8 emp_rec emp_tbl;
9 BEGIN
10 /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
11 with some simple modification, Here I have used implicit cursor! */
12 SELECT emp_obj(ename, deptno) --Casting as the object
13 BULK COLLECT
14 INTO emp_rec
15 FROM emp
16 WHERE deptno = 10;
17
18 dbms_output.put_line('Records selected are:');
19 FOR i in 1 .. emp_rec.COUNT LOOP
20 dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
21 END LOOP;
22 --Now we are filtering the record and may be doing some operation with each record.
23 FOR i in 1 .. emp_rec.COUNT LOOP
24 IF emp_rec(i).ename = 'KING' THEN
25 --You can change this IF according to your need.
26 emp_rec.DELETE(i);
27 END IF;
28 END LOOP;
29 OPEN pi_out_ref_cur FOR
30 SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
31 END TEST_CUR;
32 /* Main execution or procedure calling section*/
33 BEGIN
34 --Actual calling
35 TEST_CUR(rc);
36 dbms_output.new_line;
37 dbms_output.put_line('Now in Ref Cursor');
38 dbms_output.put_line('****************');
39 LOOP
40 FETCH rc
41 INTO v_ename, v_dept;
42 dbms_output.put_line(v_ename || '--' || v_dept);
43 EXIT WHEN rc%NOTFOUND;
44 END LOOP;
45
46 END;
47 /
Records selected are:
CLARK--10
KING--10
MILLER--10
Now in Ref Cursor
CLARK--10
MILLER--10
MILLER--10
PL/SQL procedure successfully completed.
SQL> -
Copy fixed text values from shopping cart to PO in SRMSERVER 5.5
Hi,
We use SRMSERVER 5.5 and want to use text schemas with fixed values to allow the user to in the shopping cart select specific predefined texts that should be visible on the output of the PO.
When looking at the IMG documentation for standard text schemas, there is one line saying "Note: The system can only copy the long texts for text types for which no fixed values have been defined in Customizing for the source text schema or for the text type in the follow-on document."
Do you have any idea how we can copy the fixed values to the PO from the shopping cart? I have taken a look at BADI BBP_LONGTEXT_BADI but I am not sure how this badi coudl help for the transfer of fixed values.
Thanks for any help,
Christine HammerströHi
<b>Please go through this -></b>
<u>SRM - SPRO Settings -></u>
Text Types Menu Path : SPRO -> SAP Implementation Guide → Supplier Relationship Management → SRM Server → Cross- Application Basic Settings -> Text Schema -> Define Text Types
Text Schema: Menu Path : SPRO -> SAP Implementation Guide → Supplier Relationship Management → SRM Server → Cross- Application Basic Settings -> Text Schema -> Define Text Schema
Fixed Values: Menu Path : SPRO ->SAP Implementation Guide → Supplier Relationship Management → SRM Server → Cross- Application Basic Settings -> Text Schema -> Define Fixed Values for Texts
<u>Please read note 425117 and 581594.</u>
<b>Related links -></b>
Re: Reason code required for movement type 122
Re: Changing properties of long text box
Hope this will help. Do let me know.
Regards
- Atul -
Copy the Frieght/AdditionalExpenses from SO to Delivery document
Hi,
I want to copy the Frieght/AdditionalExpenses from SO to Delivery document. I'm using the following code.
When I'm adding DL document, I get internal error -5002.
Please help me.
Thank you.
Dim objBaseDoc As SAPbobsCOM.Documents
objBaseDoc = objSBOAPI.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
If objBaseDoc.GetByKey(strFirstDocEntry) = True Then
Call AddExpensesFromBaseDoc(objDLDoc, objBaseDoc.Expenses)
Private Function AddExpensesFromBaseDoc(ByRef objDLDoc As SAPbobsCOM.Documents, ByRef objExpenses As SAPbobsCOM.DocumentsAdditionalExpenses)
Try
Dim i As Integer, ncnt As Integer, nIndexToStart As Integer
nIndexToStart = objDLDoc.Expenses.Count
Try
objDLDoc.Expenses.SetCurrentLine(nIndexToStart)
Catch ex As Exception
objDLDoc.Expenses.Add()
End Try
ncnt = objExpenses.Count
For i = 0 To ncnt - 1
objExpenses.SetCurrentLine(i)
objDLDoc.Expenses.SetCurrentLine(nIndexToStart + i)
objDLDoc.Expenses.ExpenseCode = objExpenses.ExpenseCode
objDLDoc.Expenses.LineTotal = objExpenses.LineTotal
'objDLDoc.Expenses.TaxCode = objExpenses.TaxCode
If (i + 1) < ncnt Then
objDLDoc.Expenses.Add()
End If
Next
Catch ex As Exception
Call objSBOAPI.SBO_Appln.MessageBox("AddExpensesFromBaseDoc " & ex.Message)
End Try
End FunctionHi Geetha,
The most likely reason for that error message is that there's a blank expenses line in the delivery. If you put a break point just before you try and add the delivery, check to see if every expenses line in the delivery has an expense code.
I suspect the problem is that the document object will automatically have a Expenses.Count value of 1, even if no expenses have been added. Therefore, if you've just created a new instance of a delivery document your following code will add a new expenses line but leave the first line empty:
nIndexToStart = objDLDoc.Expenses.Count
Try
objDLDoc.Expenses.SetCurrentLine(nIndexToStart)
Catch ex As Exception
objDLDoc.Expenses.Add()
End Try
You need to add logic to this, if Count is 1, then check to see if an expenses code has been set for this line. If not, then you need to overwrite the values in the first expenses line. If the count is 1 and there is an expenses code set on this line then you need to add a new expenses line.
Kind Regards,
Owen -
BO XI Desk-I graph The negative values are rising form the lowest value up
The negative values are rising form the lowest value up. Instead of dropping from the Zero-line. Where is the problem originating? BO FP2.3.
The positives values are also rising from the lowest value up.
The problem only occurs withing Desk-I. Within Web-I this problem does not occur.
Edited by: A. SMULDERS on Sep 7, 2010 10:35 AMHi
Try with the following symbol in the field
&ITAB-NETWR(>)& - will write the sign as (100.00-)
&ITAB-NETWR(<)& - will write the sign as (-100.00)
and based on some field in the program write like
If itab-shkzg = 'H'.
itab-netwr = itab-netwe * -1.
endif.
and try to print this field in the form.
<b>Reward points for useful Answers</b>
Regards
Anji -
How can i get the all values from the Property file to Hashtable?
how can i get the all values from the Property file to Hashtable?
ok,consider my property file name is pro.PROPERTIES
and it contain
8326=sun developer
4306=sun java developer
3943=java developer
how can i get the all keys & values from the pro.PROPERTIES to hashtable
plz help guys..............The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
InputStream is = new FileInputStream("tivoli.properties");
props.load(is); -
Need help Take out the null values from the ResultSet and Create a XML file
hi,
I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
null values to XML File. When i run the program it works alright and adds the null and not null values to
the file. But when i pass the boolean value to take out the null values it would not take it out and adds
the null and not null values.
Please look at the code i am posing. I am showing step by step where its not adding the null values.
Any help is always appreciated.
Thanks in advance.
============================================================================
Frame1 Class
============
public class Frame1 extends JFrame{
private JPanel contentPane;
private XQuery xQuery1 = new XQuery();
private XYLayout xYLayout1 = new XYLayout();
public Document doc;
private JButton jButton2 = new JButton();
private Connection con;
private Statement stmt;
private ResultSetToXML rstx;
//Construct the frame
public Frame1() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
//setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
contentPane = (JPanel) this.getContentPane();
xQuery1.setSql("");
xQuery1.setUrl("jdbc:odbc:SCANODBC");
xQuery1.setUserName("SYSDBA");
xQuery1.setPassword("masterkey");
xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
contentPane.setLayout(xYLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("Frame Title");
xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
jButton2.setText("Get XML from DB");
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(java.lang.ClassNotFoundException ex) {
System.err.print("ClassNotFoundException: ");
System.err.println(ex.getMessage());
try {
con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
stmt = con.createStatement();
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton2_actionPerformed(e);
contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
void jButton2_actionPerformed(ActionEvent e) {
try{
OutputStream out;
XMLOutputter outputter;
Element root;
org.jdom.Document doc;
root = new Element("PINFO");
String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
ResultSet rs = stmt.executeQuery(query);
/*===========This is where i am passing the ResultSet and boolean=======
===========value to either add the null or not null values in the file======*/
rstx = new ResultSetToXML(rs,true);
} //end of try
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
======================================================================================
ResultSetToXML class
====================
public class ResultSetToXML {
private OutputStream out;
private Element root;
private XMLOutputter outputter;
private Document doc;
// Constructor
public ResultSetToXML(ResultSet rs, boolean checkifnull){
try{
String tagname="";
String tagvalue="";
root = new Element("pinfo");
while (rs.next()){
Element users = new Element("Record");
for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
tagname= rs.getMetaData().getColumnName(i);
tagvalue=rs.getString(i);
System.out.println(tagname);
System.out.println(tagvalue);
/*============if the boolean value is false it adds the null and not
null value to the file =====================*/
/*============else it checks if the value is null or the length is
less than 0 and does the else clause in the if(checkifnull)===*/
if(checkifnull){
if((tagvalue == null) || tagvalue.length() < 0 ){
users.addContent((new Element(tagname).setText(tagvalue)));
else{
users.addContent((new Element(tagname).setText(tagvalue)));
else{
users.addContent((new Element(tagname).setText(tagvalue)));
root.addContent(users);
out=new FileOutputStream("c:/XMLFile.xml");
doc = new Document(root);
outputter = new XMLOutputter();
outputter.output(doc,out);
catch(IOException ioe){
System.out.println(ioe);
catch(SQLException sqle){Can someone please help me with this problem
Thanks. -
How we can get the values from one screen to another screen?
hi guru's.
how we can get the values from one screen to another screen?
we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
regards.
satheesh.Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).
Maybe you are looking for
-
At windows start up it tells me that this copy of window is not genuine and as get into window a message pops up telling that fine the solution qlick here and this tells me is firefox and the steps I need to take. But nothing works even taking the cu
-
Problem in Running the Oracle Installer Remotely
Hi, I installed the Oracle 10g on Enterprise Linux 4.5. The installer runs fine on the linux host successfully. And install the oracle software. Now I want to run Oracle installer remotely from my windows xp workstation but It is failing. Also I want
-
I am writing a program that needs to detect keystrokes and mouseclicks globally. Right now I am using KeyListener and MouseListener to keep track of all keystrokes and mouseclicks, but that only handles keystrokes and mouseclicks in the window of my
-
Error after upgrading to oraOLEDB 9.2.0.1
After upgrading from oraOLEDB.oracle 9.0.1.0 to 9.2.0.1 I receive the following message. Error number -2147168246 Message: New transaction cannot enlist in the specified transaction coordinator. Number: 8004D00A Description: New transaction cannot en
-
FIREFOX START BUT IT DOSN'T OPEN ANY SIGHT "UNABLE TO CONNECT"
when I start firefox , it start but it dos'nt work and even not make any search or open any site , screen shots of both screens send you for clarification. I "remove" firefox from add/ remove programme, del directory from "programme file " and downlo