Calculation.
Hi Experts
Can you please help me to find a way to do this.
In Siebel Answers,we have a report where we are displaying some product information and $ spend amount.Now, while running this report we want to enter a Discount% value as prompt value and this Discount% needs to be included in calculation for "$ spend amount" field that is already present on report. Means,we want to calculate "$ spend Amount" based on Discount% that is entered at report runtime.
Thanks
Hi Chino,
Try to create a dashboard prompt for the discount% column with an 'edit box' as control and set the variable to presentation variable. Use this value in your calculation.
You would probably have to create a (empty) column discount% as placeholder in your Business Model. You do not filter on this column, but just use the entered value.
Hope this helps,
Good Luck,
Daan Bakboord
Similar Messages
-
Hi
We have a requirement where the client wants only VAT to be posted in GL accounts and not the price.For this I tried free goods condition type R100 with AltCBV 28.But the VAT value is also coming zero. I want the VAT to be calculated on Pricing condition and then give 100% discount.
Apart from this I also tried to make pricing condition statistical and calculate VAT on it but then also system gives zero value for VAT.
Also wondering if the scenario can be addressed with Free of Change Dellivery.Hi
Normally in scenario where you are dealing with samples , there are cases you have to charge only TAXES / EXCISE part.
Here my SUGGESTION is you can handle this through a simple sales order process, where you have to configure a new pricing procedure.
1. Create a new document type to handle samples.
2. Create a New pricing procedure where you can keep the basic price condtion as Statistical and rest all same as wht is is there your main pricing procedure. Just juggle with the TO-FROM to capture the TAX part in the total.
3. Doc pricing procedure will help you to pick the new Pricing procedure
4. Now Process this as a normal sales order
5. This new document type will help you to have a proper reporting.
The only constraint here is USER has to punch a fresh order seperately for such scenario. He cannot give a free good in the same sales order which is used as standard.
The other way is you can configure a FREE GOOD Determination procedure as suggested where you need to then have your Single pricing procedure accomodating the same scenario.
Thanks
RB -
Hi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
NormanHi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
Norman -
If statement in Custom Calculation Script
I have 16 fields and if even one of them ="1" I have to list it in another field. I do not want to count or sum. If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
Please help.
Thank you in advance~mjcYou need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
Do you know how to write JavaScript?
Do you know how to enter JavaScript calculations into a form field?
For custom calculation of the text field I could write something like:
// define an array of the field names to check
var aNames = new Array("Text1", "Text2", "Text3", "Text4",
"Text5", "Text6", "Text7", "Text8",
"Text9", "Text10", "Text11", "Text12",
"Text13", "Text14", "Text15", "Text16");
// define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
var bMatch = false;
// value for text field
var TextValue = 0;
// logical value of field being equal to 1 test
var FieldIs1 = false;
// loop through all the fields and test the fields value
for(i = 0; i < aNames.length; i++) {
// logically OR the result of field i value equal to true with bMatch
// get the value of field
TextValue = this.getField( aNames[i] ).value;
// test the value of the field
FieldIs1 = Number(TextValue) == 1
// logically OR the 2 values
bMatch = FieldIs1 | bMatch;
} // end field processing
// set the field value
if(bMatch == true) {
event.value = "Y";
} else {
event.value = "N";
You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names. -
If statement in calculated batch characteristic (dependencies)
I have a little problem with calculating a certain batch characteristic.
The situation is the following:
I have batch char A, batch char B and batch char C. Batch char C is the result of the sommation of char A and B. The problem I have now is that batch char C only should be calculated when batch char A and B are different from 0.
I have a custom build interface that imports QM data to the batch chars. Default, all my batch chars are set to 0 so if I just say $self.charC = $self.charA + $self.charB, I always get a value.
Is it possible to some sort of IF statement to check if the value is different from 0?Dear,
You need to try with variant table
take all the combination and enter in a variant table and see the result...it works
example
A B C
0 0 space
0 1 sapce
1 1 space
I hope you got it -
Pension not calculated when EE is hired mid-month
Hi All
Please suggest for the following....
When an Employee is hired in the middle of the month, the system doesn't calculate Pension Contribution.
Like if an EE is hired on 10th April. The system will calculate all payments & deductions, but it is not calculating the Pension Contributions.
I am maintaining IT 169, 171 for Pension Contribution.
The problem I found behind this is.....(WIth the help of an ABAPer)
-: System checks the Payroll Period Start Date with the Org. Assignment start date. When it doesnu2019t match, the system does not calculate the Pension Contribution.
For the time being I solved this through the following action -: In debugging, I canceled this condition (skipped this check). Then it calculated the Pension Contribution.
But, this is not the right solution for achieving that as we are changing standard SAP coding.
Please suggest any solution for the same.
Thanks & RegardsIf your schema has p0169 with BEG that will happen, try put below Param1 which fits your requirement.
BEG
Infotype records are evaluated on the payroll period begin date.
No changes within the current payroll period are taken into
consideration.
No proration of contributions takes place, even if the record ends
within the current payroll period.
END
Infotype records are evaluated on the payroll period end date.
No changes within the current payroll period are taken into
consideration.
No proration of contributions takes place, even if the record begins
within the current payroll period.
CHK
Infotype records are evaluated on the payroll check date (the pay date),
regardless of whether the check date falls into the payroll period
itself.
A record whose validity starts after the end date of the current payroll
period is still evaluated if the check date (which lies in the future)
falls within the validity period of the infotype.
FRST
Infotype records are evaluated if there is any intersection of plan
infotype and payroll period. The first intersection is taken to
determine the full period deduction amount which is stored without
proration.
LAST
Infotype records are evaluated if there is any intersection of plan
infotype and payroll period. The last intersection is taken to determine
the full period deduction amount which is stored without proration. -
I am bringing a fixed asset system online in SAP and during the legacy conversion it was realized that the test system is not calculating the depreciation using a mid month convention. That being said looking at the configuration the company code was setup in 2005 and is in production and is productive (since 2005). So it appears that this setting is global and SAP will not allow me to change these settings to allow mid month calculations. Is this correct? anyone ran across the same issue.
Hi
please read the note 2993 and 39416!
Best Regards,
Blaz -
Mid month action_Pension (/3f4) calculation wrong
Hi All,
I get one problem , when payroll run for employee, whose action run in the mid of the month. for ex. 15.05.2010(Transfer action)
In that case the pension amount (/3f4) is calculating double or more than 541...which is wrong.
Kindly provde the input to resolve the same....
Regards,
Mahesh
Edited by: Mahesh Shewale on Sep 1, 2010 1:08 PM
Edited by: Mahesh Shewale on Sep 2, 2010 7:18 AMHi Mahesh,
Please make changes in User exit provided as per your requirement and then check the results
There are 2 user exit
EXIT_HINCALC0_002 for pension basis.
EXIT_HINCALC0_007 -
''Prepare interest on arrear calculation''
Dear Sap Gurus,
Under Prepard interest on arrears calculation there are 4 options available 1. open and all cleared items, 2.open items and items cleared with payment, 3.no open items -all cleard items, 4.no open items -only items cleared with a payment. My doubt is When and where we have to use these options. Could you explain with examples.
Thanks in advance
Thanks&Regards,
Periasamy.MUsuallu we select Open and All Cleared Items
Remaining options purely based on the client interest calculation requirements. -
Hi
I hv configured the interest calculation as shown below
1.Define interest calculation type (item interest calculation)
2.Define number ranges for interest forms(for xxxx company code)
3.Prepare Interest on Arrears Calculation(selected open and all cleared items, calender type F)
4.Define reference interest rates
5.Define Time-Based Terms
6.Enter Interest Values
7.Assign Forms for Interest Indicators
i have made postings in customer both open and cleared items for testing
but i got message"list contains no data"
do i need to make any other config.
useful answers would be rewarded with points
Regards
PrasadHi Prasad
PLease check whether Customer master records are assigned with correct "Interest Indicator" at company code data.
Best reagards,
S. Habib Pasha. -
Interest calculation on Open items and cleared items
Dear Experts
I am trying to do needful configuration for interest indicator on which interest can be calculated for open items and cleared items as well. But, system is calculating interest for open items properly, but not calculating interest on cleared items with same interest indicator, I am repeatedly getting error "interest calculation indicator is not compatible with this type of interest calculation"
Is it possible to use same interest indicator for open line items and cleared line items of customer?
If possible, request you share the needful config steps to do same.
points will be awarded for usful reply.
Best regards,
S. Habib Pasha.Hello Habib,
depending on the requests you can setup a item interest calculation or a balance interest calculation "Define calculation types".
IIC: check settings (item selection, all cleared items, only items with payment, no cleared items) "Prepare item interest calculation"
I guess you have setup the item interest calculation - maybe you have mixed some entries with BAIC.
Check in "Prepare account balance interest calculation" whether you have entries with the indicator you want to use.
At least check your entries in "Define time-based Terms" If you have entries with Balance account interest calculation the system gives even an error.
Hope this is helpfull.
Best regards
Horst -
Hi All,
When I checked table MHND, the dunning interest is calculated in such a way that it doesn't consider the previous dunned date.
Meaning :
Dunning ran on 12-01-09 interest calculated is 500.00 ( 2 docuemnst considerded from bsid as seen from table MHND )
Dunning ran on 15-01.09 interest calculated is 500.00 ( same as above)
Ideally for Dunning ran on 15-01.09 , it should not calculate interest since on 12th it is done..!!
Now queries:
1. Where can i see these interest calculated during dunning run ( any report ? ) other than table..? In std SAP, is this interest
calculated and shown only in the dunning letter ..? Does it have any other financial impact on outstanding..?
2. when I try to run the single dunn. notice, and see sample print out it gives message as
Account D 0004298846 is blocked by dunning run 20090319 MDUN1
why is it so and how to resolve..?
thanks,
Nehacan some one provide some advice on this..?
thanks,
Neha -
Opening Stock and Closing Stock Calculation
Hi,
My report requirement is to display the material, opening stock for the lower date, closing stock for the higher date and the in between all stock operations..how to fetch the opening stock and closing stock for a particular material ???.. what are the tables and fields for calculating them??..
Thanks,
Sri
Edited by: Sri on Feb 13, 2009 8:33 AMHi
We have done a similar reports. One showing opening stock/Closing stock and another one showing all the transactions for a particular day. What we did was we developed a program to fetch data from MARD table for unrestricted, blocked & Qulaity stock(Our requirement talks only about these 3 stocks). And we scheduled the program exactly at system time 00.00 hrs with A class job.(today's closing day stock is nothing but tomorrow's opening stock)
And for the second report which needs to pick all the transaction for a particular day, we picked it from MB51 entries. It is nothing but query between MKPF and MSEG.
I hope this helps. -
I have the book 'Creating Dynamic Forms with Adobe LiveCycle Designer, but none of the javascript or formcalc script is working. Can someone tell me step-by-step how to go about adding this to the existing dynamic form?
I added a small table on the existing subform, with the other 2 tables already in the form. This looked like a straight forward project. But, I have not any experience in java script other than googling for script and adding it to Adobe Acrobat fillable forms. So, I am sure I am going at this wrong.
RespectfullyHi,
can you provide the script you have tried and what exactly you want to do. What is the calculation you are trying to do? -
How to generate a Yearly report based on a calculation at the Month level
Have the need to create a report as follows. Any ideas on how this can be accomplished in OBI is appreciated. I have already tried different ways but non worked for me.
The data is stored in a table at day level as follows:
Day Amount_A Amouont_B
1/1/2008 100 100
1/15/2008 200 100
2/1/2008 100 400
2/15/2008 300 200
1/1/2009 100 300
1/15/2009 100 200
2/1/2009 200 100
2/15/2009 400 300
The report should be displayed at Year level. Amount_A is just the summation of Amount_A from the table at daily level rolled up to the Year level in the Time dimension. The same thing for Amount_B.
The formula for Absolute_Error is Absolute(Amount_A - Amount_B). But the problem is that it has to be calculated at the Month level instead of Day Level. So following is the logic for Absolute_Error:
Month Amount_A Amount_B Absolute_Error
Jan-2008 300 200 100
Feb-2008 400 600 200
Jan-2009 200 500 300
Feb-2009 600 400 200
The report should be displayed as follows:
Year Amount_A Amount_B Absolute_Error
2008 700 800 300
2009 800 900 500
Note that the calculation of Absolute_Error results in a different value if it is calculated at the Month level and summed up to Year than if it were calculated at the Day level and then summed up to Year. It is required to be based on Month level for this report.
Is there a way to do this without having to build an aggregated fact table at the Month level?Hi.
Do this:
1. Create Amount_A and Amount_B in BMM without SUM as default aggregation rule.
2. Now, just go to Answers and make report with three columns:
YEAR -- EXPRESSION 1 -- EXPRESSION 2
EXPRESSION 1 is:
sum(Amount_A) - sum(Amount_B)
EXPRESSION 2 is:
sum
abs
sum(Amount_A by MONTH)
sum(Amount_B by MONTH)
My example in Answers:
TIMES.CALENDAR_YEAR
sum(SALES.QUANTITY_SOLD_NORMAL) - sum(SALES.AMOUNT_SOLD_NORMAL)
sum( abs(sum(SALES.QUANTITY_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) - sum(SALES.AMOUNT_SOLD_NORMAL by TIMES.CALENDAR_MONTH_DESC) ) )
This will first summarize amount A and amount B on a month level and then do a difference, after that ABS and then sum on the year level.
This is workaround to avoid larger RPD changes.
Regards,
Goran O
http://108obiee.blogspot.com/ -
Month calculations: DATE() vs EDATE()
In a recent topic (Challenge to get a date correctly), I mentioned using the DATE function to calculate a date that is (for example) one month later than a given one. Specifically, if cell A1 contains the given date, then I suggested using this formula for a date one month later:
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
Yvan Koenig suggested instead using the simpler EDATE formula, here equivalent to:
EDATE(A1,1)
There is, as it turns out, more than simplicity in favor of Yvan's approach. While one might expect the two formulas always to produce the same results, they do not! This is easily seen by constructing the following three column table with a column header:
1. In cell A2, enter the last day of the first month of this year (January 31, 2008 in the U.S. system, for example). In the cell below it, enter the last day of the second month of this year (Feburary 29, 2008, for example).
2. Next, select both cells & use the circular fill handle, drawing down to fill the column with a year or so of last-day-of month values.
3. Select cell B1 (a header cell) & enter in the formula bar & press return:
=DATE(YEAR(A),MONTH(A)+1,DAY(A))
4. Likewise, in cell C1 enter:
=EDATE(A,1)
Note that the B & C column values are sometimes the same, sometimes not. The same results occur if the "1" in both formulas is replaced with another number of months.
What seems to be happening is the 'MONTH(A)+n' expression uses the number of days in the month of the "A" cell value as the basis for the 'n months later' calculation, which is not the convention usually used for such things as billing cycles. The EDATE formula follows the normal convention, & is thus the preferred choice for almost all uses imaginable ... unless perhaps you are the one being billed.
This also applies to 'YEAR(A) + n' calculations.
So, it would seem that any calculation involving the DATE(year, month, day) form with an arithmetic operator in the year or month element should be used only with great care, if at all.
BTW, the comments about the month unit of calendar time having "no real purpose today" in http://www.cl.cam.ac.uk/~mgk25/iso-time.html may be of interest.I'm aware of the blue warning triangle appearing in these "overflow" situations; however, even when it does not, the results may be different -- for example, with a starting date of January 31st, adding one month in my long formula produces a month argument that is in bounds but (for 2008) yields a date 2 days later than with the EDATE method.
I don't view this so much a bug as a consequence of the vague nature of the "n months later" or of the "month offset" concept. As the cited scholarly article points out, the concept of the months of the year are of somewhat obscure mystic origins, & there lengths were arbitrarily set, often for reasons more political than practical. Between the 1st & 28th day of any month, the concept is unambiguous -- it is the same numbered day in the other month, but for the 29th through 31st day of the month it is not, depending on the starting month.
From what little I have been able to discover from casual research, the EDATE results are the standard more by custom than by any well-defined rule: what we mean by the offset references the first, last, or some near-the-end-of-the-month day number, whichever seems the most suitable at the time.
I do not have Excel on my Macs, but since the functions are similar, I would be interested in learning how that application behaves with this table.
Maybe you are looking for
-
I have an IMac desktop -- IMac 11.2 with this software version 10.6.8 I also have an IPhone 4S and an IPad Air, and I want to link all three. My IMac desktop was purchased before ICloud, so ICloud was not pre-installed. How do I install ICloud on the
-
Hi I had text frames with rollover states placed into the trigger area of lightbox display composition widgets The rollover on the text worked fine, and then when clicked the lightbox composition widget opened However this morning I updated Muse to t
-
How do I keep Notes out of my inbox? I just want them on the iPhone Notes
and on the computer under On My Mac.
-
How do I rate tracks on my iPod touch?
Dear friends, Help me out here, will ya ? New to iPod Touch, me How do I rate songs on the iPod Touch ? Probably a "stoopid" question and answered over and over but here I go ...
-
Aperture Library Error There was an error opening the database for the library
Date/Time: 2012-11-28 21:23:09 -0800 OS Version: 10.8.2 (Build 12C60) Architecture: x86_64 Report Version: 11 Command: Aperture Path: /Applications/Aperture.app/Contents/MacOS/Aperture Version: 3.4.3 (3.4.3)