Creating Formula colums
Hi All,
I want to create formula column in apex as in Oracle Forms.
I would like to know how (which properties to be set or processes or any thing else) to use the formula and where.
For example:
Suppose I have two Text Items: As soon as value is entered in either of the two columns its sum should be displayed in a third Display only text Item.
Hoping for a quick response.
Thanks in Advance.
Arif Khadas
Thanks for your replies andy.
Run the page and do View, Source from the menu (View, Page Source in FireFox). Search for id="P264_SAL", then id="P264_COMM" and then id="P264_TOTAL". I have found all this in the source code. I am copying it and making it bold for your reference. Is there any problem with it.
<td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6233313766736725" /><input type="text" name="p_t11" size="30" maxlength="2000" value="" id="P264_SAL" onChange="javascript:calculateTotal();" /></td></tr><tr><td nowrap="nowrap" align="right"><label for="P264_COMM"><a class="t13OptionalLabelwithHelp" href="javascript:popupFieldHelp('6234124848739895','4050738722309497','')" tabindex="999">Comm</a></label></td>
<td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6234124848739895" /><input type="text" name="p_t12" size="30" maxlength="2000" value="" *id="P264_COMM"* onChange="javascript:calculateTotal();" /></td></tr><tr><td nowrap="nowrap" align="right"><label for="P264_TOTAL"><a class="t13OptionalLabelwithHelp" href="javascript:popupFieldHelp('6234901084742553','4050738722309497','')" tabindex="999">Total</a></label></td>
<td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6234901084742553" /><input type="text" name="p_t13" size="30" maxlength="2000" value="" *id="P264_TOTAL"* /></td></tr>
Also following are the initial part of the source where there is error on Line 17 char 2.
<html lang="en-us" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com">
<head>
<script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
<script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
/*Global JS Variables*/
var htmldb_Img_Dir = "/i/";
//-->
</script>
<link rel="stylesheet" href="/i/css/core_V22.css" type="text/css" />
<!--[if IE]><link rel="stylesheet" href="/i/css/core_ie_V22.css" type="text/css" /><![endif]-->
<script type="text/javascript">
function calculateTotal()
var v1 = $v('P264_SAL');
var v2 = $v('P264_COMM');
$x('P264_TOTAL').value = parseFloat('0' + v1) + parseFloat('0' + v2);
</script>
Thanks once again.
Similar Messages
-
Error in creating Formula Variable
Hi All:
I'm having problems in creating formula variable. Trying to create FV on a characteristic using replacement path with attribute value , but the wierd part is it's not giving me any attributes it's just blank. Any help would be appreciated....
Thanks,
Manasa.Right click on the FM, create -> Characteristic -> attribute value -> but the attribute are not showing up. This happens if the attribute is of key figure type. I was able to do this in another system (ASIA DEV) but now trying in Europe Dev.
-
How to create Formula based value field in COPA
Hi,
I want to know how to create formula based value field in COPA
My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
factor.
anybody give some light on the same topic or requirement ?
Thanks
Nilesh RThe key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
Now click the "check formuar"-button. Then save.
Before you can use the key figure in assessment, execute TC KEUG.
Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
I hope this made it clearer.
Regards
Nikolas -
How to create Formulas in the hierarchy structure
Hi,
Is it possible to create formula with in the hierarchy structure, so that the both hierarchy drill down and the created formulas can be displayed at the query output. Please give the valued suggestions.
Thanks
VEERU.Hello
You have in this case to create a structure and select the node concerned in your hierarchy.
Then create a new formula based on your previous selection for example.
Rgds -
How to Create formulas for LIS
Hi all,
I want to create formula for LIS.
i've created formula using MC1D and assigned to update rules but it didnt stop if i put break-point in that routine. I even executed generation program (RV80HGEN).
Do i need to execute any other generation program or is there any thing else do i need to take care.
helpful replys will be rewarded.
Thanks in Advance.Hi Sam,
Please check this PDF document on how to define formula for LIS.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLIS/LOLIS.pdf
Hope this will help.
Regards,
Ferry Lianto -
How to create formula variable on system date.
i want to calculate inventory age as on today. i have create formula variable on inventory creation date. i want to create <b>formula variable on system date.</b>
simply create a formula variable and set the processing to "by user exit"
in the user exit assign sy-datum to the variable -
Function module to create formula profile : Device Management/ EDM
Hi experts!
We create Formula profile against register 2 of the bi-directional device using transaction EEDM06.
We create profile header by using function module "ISU_S_PROFHEAD_CREATE" but this function module doesn't have input parameter that need to passed specifically creating Formula profile like-
Formula Prof. Calc = ZNET (fixed)
Status Group = (i.e., value valid, est man, changed/entered, from date) fixed
Profile = Profile1 as allocated to RG-002. (always)
After saving this Formula profile header, allocate the profile to Device is also couldn't be done using function module ISU_S_PROFHEAD_CREATE .
Please help me is there specific function module to create Formula profile. If you need any clarification, please suggest.
Thanks,
Rohityou could also create a master data template in EPRODCUST for MD Template Category INSTALLATION & EDM_PROFHEAD if you need to create the profile header.
We've wrapped some in function module interfaces for easy automation.
ISU_S_LPASSLIST_MAINTAIN is an internal function, so I dont recommend building anything on it. -
For Mayank Guptha : how to create formula variable in IP
Hi,
How to create formula variable, such that it will appear in the variable screen.Hi,
the variables you create in formula function are local to the function.
Ex., DATA CST_ELMNT TYPE 0COSTELMNT.
DATA QTY TYPE 0QUANTITY.
To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics. -
Issue in creating formula using atributes
Hi All,
I have issues in creating formula using attributes of characteristic. I need to create a formula using attributes of charactertic customer & key figure.
Ex. Formula
Key figure / attribute of char customer
Please suggest.
Thanks,
MamataHi Mamta,
I do not think we have any option of creating RKF based on Display attribute. Rather you create RKF based on Navigation attribute.
Regards,
Kams -
Create formula profile programmatically
Hello All,
I want to create formula profiles through a program. The bottleneck is to assign the formula and then assigning the input profiles.
The standard FM ISU_S_PROFHEAD_CREATE doesnt have the options. Could anyone please share some code or a standard FM/class/program to create one?
Thanks and Regards
D Chandra SekharSee my reply a while ago to a [similar question|Re: EEDM06: Formula Profile]
Best for me was to ley a programmer have a look at the sample program and work this into a function module. -
Hi ,
I have to create formula columns in my report . I have created group on ff_code
other fields are
lastname, firstname, ssn,
APPOINTMENT_DATE, ASSESSMENT_DATE,
INFORMATION_RECIEVED_DATE, START_DATE
formulas Columns
Asses to Staff -- not to display on report
Info to staff -- not to display on report
Timetaken -- Display on report
the formulas are
ASSESSMNET
(APPOINTMENT_DATE) - (ASSESSMENT_DATE)
I tried creating formula column for this
but when I run the report it gives REp-1517: "column names" incompatible frequency
SAFFING
(APPOINTMENT_DATE) - (INFORMATION_RECIEVED_DATE)
TimeTAKEN
if (@aSSESSMNET) > (@sTAFFING) then (@sTAFFING) else(@aSSESSMNET)
hOW DO I DO THIS PLEASE HELP
Thank in advance
KKlooks like you are trying to display your formula column value in a frame different from the one which is used by the basic values (i.e. apointment_date and assessment_date).
Anyway, I found it much easier to do these calculation already in the query part, so I don't have to bother much less with those formulas, placeholders, etc.
hope your shift key recovered. -
Creating formulas in Numbers - quick key to reference cells
Former Excel person, moving over to Numbers -- very simple question on how I can use keystrokes to reference cells when creating a formula, rather than typing in the cell or using the mouse. In Excel would just type "=", then could use the arrows keys to move around and go into the first cell for the formula, type "+", then arrow around to the second cell and hit Enter.
As Yvan has pointed out, Numbers offers an alternative to large spreadsheets, that being multiple tables & sheets. As you point out, moving around a large spreadsheet is not fast, even when using cursor keys (which I am assuming are the same thing as arrow keys, there being just the one set on my keyboard).
Assuming you can break your large spreadsheets down into smaller ones, you may find that navigation is remarkably quick because you can click on any table in any sheet to immediately jump to another one (even when creating cell or range references) rather than having to transverse large areas of a single spreadsheet one cell at a time.
If you are interested in exploring this approach, you may find my comments in the thread Generating values for grades useful as a description of how this can be applied when creating cell references in Numbers.
It may not be the right approach for your needs, but unless you know about it, you can't compare it to other approaches, right? -
How to create formulas in an SQL statement
Hello,
I am trying to create a formula in an sql statement without creating a external function.
Here is my example :
select (x + y) as a,
(x + y) + 2
from dual
As you can see the formula “(X + Y)” is repeated.
I would be glad to write a select statement like that :
select (x + y) as a,
a + 2
from dual
any ideas?
ThanksI have a nasty feeling there is in XQuery expressions, but I'm not going there. ;-)
michaels> WITH t AS
(SELECT 1 ID, 1 x, 2 y FROM DUAL UNION ALL
SELECT 2, 3, 4 FROM DUAL UNION ALL
SELECT 3, 5, 6 FROM DUAL)
SELECT *
FROM XMLTable('declare function local:a($a,$b)
($a + $b)
}; (: eof :)
for $i in /ROWSET/ROW
return <ROW>
<ID>{$i/ID}</ID>
<X>{$i/X}</X>
<Y>{$i/Y}</Y>
<A>{local:a($i/X,$i/Y)}</A>
<B>{local:a($i/X,$i/Y) + 2}</B>
</ROW>' PASSING XMLTYPE(CURSOR(SELECT * FROM t))
COLUMNS ID NUMBER PATH 'ID',
X NUMBER PATH 'X',
Y NUMBER PATH 'Y',
A NUMBER PATH 'A',
B NUMBER PATH 'B'
ID X Y A B
1 1 2 3 5
2 3 4 7 9
3 5 6 11 13 -
Creating Formula Key Figure in BEx 3.5 Query
Hello,
I'm trying to create a formula key figures that gives me the Absolute Value of the Difference of two quantities. The calculation needs to happen at each plant/material level. It works great as long as you drill down by plant/material. The users, however, would like to see the results only by plant.
Is this possible in the query?
Any Help Would Be Greatly Appreciated!
Thanks!
TinaHello,
Please try the following steps:
In the query go to Hierarchieparameter and select expand till level and select secound level and check the results.
Thanks.
With regards,
Anand Kumar -
I want to create a spreadsheet that divides time by intervals within a track. For example, I want the top row to display times and the first column to display distance by 200 meter intervals. Is there a formula for that?
If a track runner wanted to run at a 6:00 pace, what would the time break down be for each 200 meter interval? What type of formula could I use for that. Of course 6:00 is easily divisible but not as much for me once we get into 6:13 pace, etc...Betsy,
If the 6 minute pace is for a mile (I'm just guessing) then that defines how far a runner runs any fixed distance.
Here is a way to do this:
B5 contains the distance over which you want to get the check points and
B6 contains the duration over which a runner needs to cover the distance (duration means enter as "6m 0s" for 6 minutes 0 seconds)
row 1 contains checkpoints numbers 0 through 8
B2=B1×$B$5÷MAX(1:1)
this is shorthand for select cell B2 then type (or copy and paste from here) the formula:
=B1×$B$5÷MAX(1:1)
select cell B2, copy, select cells B2 thru J2, paste
B3=B2÷($B$5÷DUR2SECONDS($B$6))
select cell B2, copy
select cells B2 thru J3, paste
the results in row three are in seconds
Maybe you are looking for
-
This problem developed two weeks ago. I can still use Google Chrome for email OK but have used Firefox since your first release and want to continue to use the best browser. I removed Firefox, downloaded a new copy today, and re-installed. Same resul
-
When MRP run through background process in MDBT open PR and PO not comming?
Hi, When MRP run through backgroung process in MDBT open PR and PO not coming in MDBT result. Pls advise accordingaly. Regards rk
-
Saving Croatian characters in XML file
Hi, I'm trying to save Croatian characters into an XML file by using the windows-1250 encoding. For some reason, that doesn't work. Only the � and � characters (in upper and lower case) are OK. All other characters turn into ? signs, if you open the
-
I made a video series on one time line and now want to copy paste sections into other tiemlines so I can separate the series into distinct videos to upload. How do I get new timelines? When I go to new event it asks for import footage.
-
Itunes music download statistics
Working on a project. How can I get the itunes music download statistics by year and genre, etc?