Formula for Balance...
Hello,
In my Query last colum calculation follows-
Example:
Debit amt ** Credit amt ** Balance amt.
100 ** 200 ** 200 = -100
200 ** 300 ** 100-300=-200
400 ** 400 ** (100+200)-400=-100
500 ** 600 ** (100200400)-600=100
700 ** 800 ** (100200400+500)-800=400
if i want to know 4 record bal amt so amount to be (100200400)-600
how to use formula in Balance amt column ,wat formula to used for above logic..
any suggestion ...?
thanks in advacnce
Hi,
Try this thing:
- Create a formula keyfigure(FVAR1), include Debit amt. And in Calculation Tab Check the Cumulated option (below Calculate single values As)
- Create one more formula keyfig. (FVAR2) with formula: FVAR1 - Debit amt.
- Now create final formula keyfig. Balance Amt with formula: Credit Amt - FVAR2.
Hope it might help you.
Thanks,
Jitender.
Similar Messages
-
Need SAP Crystal Report formula for Blance Quantity
Hi,
i really need a formula for SAP Crytal report my requirement is
i have group 2 Groups one on sale order and another one on Invoice
Example:
================================================================
Order No:100001
Order Quantity:1000
=================================================================
Detail Area invoice group
INV# INVQty CreditNoQty Balance
10002 100 0 900
10003 500 100 500
i need formula for balance quantity . the balance quantity subtract from order quantity and plus with credit note quantity.Try this:
1) Modify the code above to:
Whileprintingrecords;
Numbervar x := x +1;
If x = 1 then
Numbervar t := ({Order qty} - Invqty) + {Credit};
Else
t := ({Order qty} - t) + {credit}
2) Create a reset formula and place this on the group header 1:
Whileprintingrecords;
Numbervar x := 0;
Numbervar t := 0;
-Abhilash -
Can somebody give me the formula for the balance column in a check register please? I am setting the register up like the sample in iWork 09 but I seem to be missing something in the formula.
OM,
The way the checking account balance column works is to designate one cell for the starting balance, indicate income with positive figures and outgo with negative figures, summing the transactions and adding the sum to the starting figure.
The formula used, =$F$1+SUM(OFFSET(F3,3-ROW(),-1,ROW()-2)), is not too difficult to understand if you study the syntax for Offset. The author of this template didn't do us any favors because the expression could have been written more clearly, in my opinion. I'll explain how it's done in the template, and then how I would have written it. With the two approaches you may be able to see what it's all about.
$F$1 is the starting balance.
SUM requires a Range specification.
Offset provides the range specification. The syntax for Offset is as follows:
Base Cell. In this case it is F3, the cell the expression is written in.
Row Offset. In this case the author takes the current row number and subtracts the starting row from it. For the first balance the offset will be zero since the first balance is in row 3. For all the subsequent balances, the offset will be negative, meaning that the offset will point to a row above the current row.
Column Offset. In this case the column offset is 0. That means that it is pointing 1 column to the left, Column E.
Rows. This parameter sets the length of the range, in rows. Subtracting 2 from the current row number means that the range will be 1 for the first balance and will grow by 1 for each entry down the list.
Taking all this into account, the range for the Sum function will always be Column E from Row 2 to the current Row.
How I would have written the balance expression:
=F$1+SUM(OFFSET(E$3,0,0,ROW()-2))
I believe it's easier to follow.
The starting balance is still in F1, but only the row needs to be absolute - a fine point, I know.
In my expression the base cell for the Offset function is the first entry cell of the transactions, E3. The row needs to be absolute, there is no reason for the base cell to move about as it does in the author's version.
In my approach, both the row and column offsets are zero. We always start at E3.
In my approach, the number of rows in the range is the current row number minus 2, just as in the author's expression. That means we include all rows from Row 3 to the current row.
I'd be happy to answer any other questions about the specifics, but you need to be specific about what you don't get.
Jerry -
How to write formula for 0calweek from 0calmonth
Hi Friends,
I'm doing weekly report. my infocube, data coming from three sources, two sources are ODS. In ODS doesn't have 0calweek only have 0calmonth. When i see my report i can't view those ODS data in the report.
So i want write a formula. How do i write a formula for this.Pls give me the formula.
Thanks & Regards
SiriI got the solution by creating calweek formula based on Syster date.
Siri -
Formula for calculating Quarter value in current calendar Year
Hi All,
I have a requirement where in i need to display values for Q1 of Current Calendar Year, Q1 of Previous Calendar Year,Variance in Value and % Variance in Value...Similarly for Q2,Q3,Q4.
We have built the report directly from Bex Query from the SAP tab in Crystal Reports. The formula for Quarter1,Variances etc are defined in Bex Structures and i am unable to get 'em individually here rather i am getting them as a whole in a single object with the structure name. Now is there a way that i can define my own formula in Crystal Reports so that i can get the values for the constraints defined above???
If yes please give me the syntax or an example formula so that i can work around.
please Help,
Thanks & regards,
R.NWhat fields are you getting?
or what is the data you are working with is it
transID, date, value......
or is it
Q1, Year1, Value....... -
In VB Programming code -- How to access the formula for suppressing a field
In VB Programming code -- How to access the formula for suppressing a field
I am using Crystal Reports 2008 v1
Using VB code, I am attempting to modify a Crystal Report before exporting it into a PDF format and then displaying it on the Web.
My problem is that I am unable to access the formula used to dynamically suppress a field.
The following code is working:
mySections = rd.ReportDefinition.Sections
For Each mySection As CrystalDecisions.CrystalReports.Engine.Section In mySections
' myFieldToChange is a String set to the text of the field I need to adjust the Suppression
iloop = 0
For Each RecObj As CrystalDecisions.CrystalReports.Engine.ReportObject In mySection.ReportObjects
If mySection.ReportObjects.Item(iloop).Name.ToLower = myFieldToChange Then
myTextObject = CType(mySection.ReportObjects.Item(iloop), CrystalDecisions.CrystalReports.Engine.TextObject)
myTextObject.Text = "new field text goes here"
mySection.SectionFormat.EnableSuppress = True
' Here is where I want to change the formula for the Suppression
End if
iloop = iloop + 1
Next
Next
I can not find any reference to the actual suppression formula in the SDK help file.
Note, the EnableSuppress can be set to True for False, but if there is a formula for dynamic suppression, the True or False value is overwritten. The results of the formula determine the suppression.
Is there a way to reference this formula. I know that I can put on in using the Crystal Report Designer software, I need to modify this formula using VB code and the SDK.Hello, Mark;
If you are using the ReportDocument object you do not have access to the Conditional Suppression formula. You can get around it by using a formula field in the report for the supression and then using the FormulaField code to change it at runtime.
If you want to change the supression condition directly at runtime you need to use RAS and the ReportClientDocument.
Elaine -
PLEASE HELP: PDF Forms, creating average formula for text?
Hello,
I really hope somone can help. I cannot find any answers to my questions on the internet, google etc.
First time using Acrobat. Im pretty quick learning on compters however the formulas my boss has asked me to do I have no idea if they are possible.
We have a report form for exams and each section I need to calculate the average mark for that section.
There are 3 questions for the first section. There are dropdowns for distinction, Merit, Pass and Below pass to select for each questions.
Please see picture attached to show you what I mean.
I want to be able to calculate the most selected/average dropdowns selected and not count the N/A's into award1 field?
The fields must be text and cannot be numbers.
so for example, track 1 got a distinction, track 2 got a Merit, Track 3 got a distiction. all other fields left n/a
is there anyway to do this also is there any way to exactly the same as above as check boxes? - please see picture attached
I appriciate any help. I am working on a mac
Thanks
LaurenThank you so much reply
Yes on the dropdowns the distincion, merit, pass or below pass values are in the correct areas ready for selection. For example on the distiction row you can only drop down for distinction and so on for Merit row dropdowns etc
Check box is the way I rather do it as its quicker, however I created the dropdown option just incase check boxes average was not possible
On the check boxes if i select merit for rtack 1 I would just tick the box and leave the the rest of the colum blank with no ticks. So just by seeing the tick I know its in the merit section for Track 1. However I donts know if I can do an average formula for with check boxes.
If I check boxed/slected distinction for track 1, distnction for track 2 and merit for track 3 (obvisley any box could be ticked depeneding how the exam went so need then all in the script). I would like it to then calculate the avergae mark which would be distinction in the award1 field. While the none ticked boxes or N/A fields not affecting the average.
This is just the start to a huge form Im doing Im dreading the rest of formulas I have to do lol
sorry if im confusing you -
How to write a formula for display the value by group
Post Author: abadugu
CA Forum: Formula
Hi
Could any one please help me on writing the formula for the below senario.
I'm creating Crystal report Via using ClearQuest (IBM tool) since this tool is not supporting subreport function. I'm planning to write a formula.
I have grouped report by request_type field (request_type field contains Validation Defect, Production Defect, Known Defect etc..)
right now my report output is grouped by request_type
ex:
Validation Defect
SUMMARY COMMENTS
Production Defect
SUMMARY COMMENTS
my question was
If request_type = Production Defect display pm_number value field otherwise display null
ex
Production Defect
PM# SUMMARY COMMENTS
Validation Defect
SUMMARY COMMENTS
could you please help me writing a formula.
Thanks
AnandPost Author: abadugu
CA Forum: Formula
It worked Thank you and I appreciated your help
Thanks -
Error while Creating a formula for field AZNOR (T-Code : OP17)
Dear Experts,
i am facing a problem in Transaction OP17 while creating a formula for field AZNOR ( No of indivual capacity in work center) in work center (T-Code : CR02) .
It shows the error
The data object "F" has no component called "AZNOR''..
Please let me know the solution..
Thanks & Regards
Birendra KumarHi,
I have the same problem.
Could You tell me witch is the correct origin?
Thanks a lot!
Bye
Laura -
Error Message-- For Balancing field "Profit Center" is not filled
Hi All,
When I do Shipment Start get Error-Message for Balancing field "Profit Center" is not filled!
A PGI for the DNXXXXXXXX is not possible!
Can u please help me how to resolve this issue ?
WM BabyHi,
AS per configuration , there is prifit centre assignment .Enter the profit centre in the field of profit centre by the help opf F4.
Regards,
Andra -
Error in Fast Formula for Supplemental Earnings Elements
Hi,
I have an requirement in Supplement Earning Elements for US Localization. I need to define some Supplement Earning Elements that should comes in Payroll with the extension of existing Elements.
Here are the Steps for setups which i have done so far-
Step 1:Created new Elements with their values with effective dates for existing user Table name
Step 2:Done the setup for New Elements with classification as Supplemental and Category also attached the formula like "FLAT AMOUNT" formula for Calculation rule in Element Earning screen.
Step 3: when i tried to query for the element i have created, the value in Calculation Field is "Elementname_FLAT_AMOUNT_RWSI" which is not same for the existing elements.Existing Element which is of same classification and same category the Calculation rule field is "ElementName_FLAT_AMOUNT".
Step 4: After that i did setup for Element Description and Element Link.
Step 5: Then i have copied the Formula from Existing element(which is previously configured and working fine for the existing elements ), made the modifications for the newly created element. When Compiling the formula ,i am getting an Error "Incorrect Data type"
I have two queries -
1- The setup in Earnings Screen with Calculation Rule is correct or not. As the Calculation Field for newly elements and the existing elements are different (as mentioned in Step 3).
2- Compilation Error "Incorrect Data Types" in Fast Formula.(as mentioned in Step 5).
I m pasting the Fast Formula code here for ready reference
Default for TERMINATED_EMPLOYEE is 'N'
Default for RUN_TYPE is 'R'
Default for FINAL_PAY_PROCESSED is 'N'
default for PAYROLL_TERMINATION_TYPE is 'L'
default for BG_TERMINATION_TYPE is 'L'
default FOR LAST_STANDARD_PROCESS_DATE_PROCESSED IS 'N'
DEFAULT FOR ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD IS 0
DEFAULT FOR ELEMENT_NAME_ADDITIONAL_ASG_GRE_ITD IS 0
DEFAULT FOR ELEMENT_NAME_REPLACEMENT_ASG_GRE_ITD IS 0
DEFAULT FOR ELEMENT_NAME_ASG_GRE_YTD IS 0
DEFAULT FOR ELEMENT_NAME_ASG_GRE_RUN IS 0
Default for PAY_EARNED_START_DATE is '02-JAN-0001' (DATE)
Default for PAY_EARNED_END_DATE is '02-JAN-0001' (DATE)
Default for ASG_NUMBER is ' '
Default for ELEMENT_NAME_ASG_GRE_FYTD IS '0'
Default for CURRENT_ELEMENT_TYPE_ID is 0
Default for GROUP_KF_PAY_FREQUENCY is '0'
DEFAULT FOR Amount IS 0
INPUTS ARE Amount
IF ELEMENT_NAME_REPLACEMENT_ASG_GRE_ITD WAS DEFAULTED OR ELEMENT_NAME_REPLACEMENT_ASG_GRE_ITD = 0 THEN
pay_frequency = GROUP_KF_PAY_FREQUENCY
ELEMENT_TYPE_ID_PASSED = CURRENT_ELEMENT_TYPE_ID
annual_rate = HCS_GET_SUPPLEMENT_RATE(ELEMENT_TYPE_ID_PASSED, PAY_EARNED_END_DATE, 'General Rate')
annual_bal = ELEMENT_NAME_ASG_GRE_FYTD
IF annual_bal = annual_rate THEN
Amount = 0.00
mesg = 'Contract amount '||TO_CHAR(annual_rate)||' fully paid for '||ASG_NUMBER
ELSE
Amount = annual_rate / TO_NUMBER(pay_frequency)
If abs(annual_bal+amount-annual_rate) < 1 then
Amount = annual_rate-annual_bal
IF ELEMENT_NAME_ASG_GRE_RUN=0 THEN
flat_amount = Amount
+ ELEMENT_NAME_ADDITIONAL_ASG_GRE_ITD
+ ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD
ELSE
( flat_amount = Amount )
ELSE
(flat_amount = ELEMENT_NAME_REPLACEMENT_ASG_GRE_ITD + ELEMENT_NAME_ADDITIONAL_ASG_GRE_ITD
+ ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD
clear_repl_amt = -1 * ELEMENT_NAME_REPLACEMENT_ASG_GRE_ITD
IF ELEMENT_NAME_ASG_GRE_RUN = 0 THEN
IF ELEMENT_NAME_ADDITIONAL_ASG_GRE_ITD <> 0 THEN
clear_addl_amt = -1 * ELEMENT_NAME_ADDITIONAL_ASG_GRE_ITD
IF flat_amount < 0 THEN
(IF (PAYROLL_TERMINATION_TYPE WAS DEFAULTED AND
BG_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND
FINAL_PAY_PROCESSED = 'N') OR
(PAYROLL_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND
FINAL_PAY_PROCESSED = 'N') OR
(PAYROLL_TERMINATION_TYPE WAS DEFAULTED AND
BG_TERMINATION_TYPE = 'L' AND
TERMINATED_EMPLOYEE = 'Y' AND
LAST_STANDARD_PROCESS_DATE_PROCESSED = 'N') OR
(PAYROLL_TERMINATION_TYPE = 'L' And
TERMINATED_EMPLOYEE = 'Y' AND
LAST_STANDARD_PROCESS_DATE_PROCESSED = 'N') THEN
neg_earn = -1 * ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD
ELSEHuman Resource Management (HRMS)
(neg_earn = flat_amount - ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD
flat_amount = 0
ELSE
(IF ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD <> 0 THEN
neg_earn = -1 * ELEMENT_NAME_NEG_EARNINGS_ASG_GRE_ITD
IF (PAYROLL_TERMINATION_TYPE WAS DEFAULTED AND
BG_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND FINAL_PAY_PROCESSED = 'N') OR
( PAYROLL_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND FINAL_PAY_PROCESSED = 'N') OR
(PAYROLL_TERMINATION_TYPE WAS DEFAULTED AND
BG_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND FINAL_PAY_PROCESSED = 'Y'
AND RUN_TYPE != 'R') OR
( PAYROLL_TERMINATION_TYPE = 'A' AND
TERMINATED_EMPLOYEE = 'Y' AND FINAL_PAY_PROCESSED = 'Y' AND
RUN_TYPE != 'R') THEN
(STOP_ENTRY = 'Y'
mesg = ' ELEMENT_NAME earning has been stopped for this assignment.'
ln_calc_meth = SET_ALTRNT_FLAT_RATE_CALC_METH('NOT_APPLICABLE','NOT_APPLICABLE')
if (1 = 1) then (
soe_run = ELEMENT_NAME_ASG_GRE_RUN
soe_ytd = ELEMENT_NAME_ASG_GRE_YTD
RETURN flat_amount, clear_addl_amt, clear_repl_amt, neg_earn, STOP_ENTRY, mesg
Can anyone help me in solving this problem. Any kind of pointers would be helpful.
Thanks
Pradeep.Hi Pradeep,
Hope you created the new element using the 'Earnings Template' form. If it is created using the 'Earnings Template' form then the calculation rule
should be correct. You said you are modifying the new element formula by using the existing element formula code, have you checked if the
formula code to the old and new once have changed anything other than the element name and standard input elements reference. Try to use
the debug messages in formula and see if that give you any clue. You should find the document in metalink how to debug a formula.
Thanks,
Satin -
How do I get 2 decimal places when using a formula for a quotient? It only gives me whole integers. Most of the results will be less than 1 so I need 2 decimal places
the quotient function returns only whole number portion of the dividing two numbers. If you want the actual decimal value use the divide operator. you enter this as:
A/B
if the numerator is in A1 and the denominator is in B1 you can enter the formula like this:
=A1/B1 -
Function types for Balance Sheet Planning missing in SEM-BPS 6.0
Hi BPS experts,
After upgrading our BI-system from SEM 4.0 to SEM 6.0 (level 10) as part of the upgrade from BW 3.5 to BI 7.0 (level 15), the BPS function types for balance sheet planning are not available in the planning environment (Transaction code BPS0).
According to the SAP Library the balance sheet planning functions in SEM-BPS comprises of 6 standard function types - one of them is "Depreciation":
<a href="http://help.sap.com/saphelp_sem60/helpdata/en/0a/242537cedf2056e10000009b38f936/frameset.htm">help.sap.com -> Business Planning and Simulation (BW-BPS)</a>
Menu path: Business Planning Functions -> Functions for Balance Sheet Planning
In our existing SEM 4.0 we are using "Depreciation" and the functions based on this function type are of course short dumping when executed in our upgraded system (SEM 6.0) as the function type does not exist here.
Odd though - we do have the function type "Allocation" available in SEM 6.0, which should be delivered with SEM together with the Balance Sheet Planning function types (It is listed directly under "Business Planning Functions" in the SAP Library) .
I have tried to figure out whether we missed out on activating something during or after the system installation, but our basis consultant has not found anything in the installation guides related to this issue. Also I was wondering whether it could be a simple matter of activating some Business Content but without any luck.
Does anybody know why the Balance Sheet Function Types are not available in SEM-BPS 6.0?
Kind regards,
Lars
PS: Our system status is:
SAP_ABA 700 0013 SAPKA70013 Cross-Application Component
SAP_BASIS 700 0013 SAPKB70013 SAP Basis Component
PI_BASIS 2005_1_700 0013 SAPKIPYJ7D PI_BASIS 2005_1_700
ST-PI 2005_1_700 0005 SAPKITLQI5 SAP Solution Tools Plug-In
SAP_BW 700 0015 SAPKW70015 SAP NetWeaver BI 7.0
FINBASIS 600 0010 SAPK-60010INFINBASIS FINBASIS 600 : Add-On Supplement
SEM-BW 600 0010 SAPKGS6010 SEM-BW 600 : Add-On Supplement
BI_CONT 703 0007 SAPKIBIIP7 Business Intelligence Content
Message was edited by:
Lars B RasmussenHi Lars,
It seems not all the planning function from SEM BPS are available in BW BPS. Please check the links below: -
what is the difference between BW 3.5 BPS and SEM BPS 4.0
BW- BPS and SEM- BPS
SEM-BPS VS BW-BPS
BCS Doc
Regards,
SK -
BEST Practice for Balance sheet and Investment Planning
hi all
I need the Best Practice guides for Balance sheet and Investment Planning
where can i get it ?
if someone has them please could you mail them to [email protected]
also if someone has documentation regarding these please forward them also
Points assured
Thanks in advance
NidhiHi Nidhi,
Refer to the below link for the available scenarios
http://help.sap.com/bp_biv335/BI_EN/html/Bw.htm -
Profit center Document is not created for Balance sheet items
< MODERATOR: Message locked. Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. >
Dear all,
Profit center document is not created for balance sheet accounts , where i specified in 3KEH (default profit center for balance sheet a/c's) , i did n't do any changes , if i do any changes in dev , then i will transport to quality there is no pending requests
Same entry In quality environment profit center is updating and creating profit center document for balance sheet accounts . I compared with actual posting settings like Maintain Document Types and Define Number Ranges for Local Documents but it is same as development
regards
Govind
Edited by: Govind Yadav on Sep 24, 2008 8:33 PMIs any body find the solution of this problem
I am also facing the same problem Profit center document is not getting created from any MM document
3KEH configuration is there but still the system not generating the Profit center document for those materials where there is no profit center assigned in the material master data and in 3KEH i have configured that it should post to dummy if there is no profit center in the material master data
Please tell me if some one have the solution to this problem
Bilal
Maybe you are looking for
-
Pass Message not working properly
My pass message in the quiz manager should say - My company's name and number(next line)Thank you for your partipation (next line) Please click the "Email your evaluation" button. This is what it produces: My company's name - 205-9xx-xxxx
 Thank
-
Hello I have problems with Java Calendar class: Problem 1: I try to set Java calendar to specific date, but an exception is thrown. Problematic dates are 19210501 and 19420403 (yyyymmdd) at midnight (hour of day = 0, minutes = 0, seconds = 0, millise
-
My Fios converter box on one of our tv's stopped working at all!!! How do I reset it? I've tried the standard, unplug to reset to no avail. Any help is appreciated.
-
How to open a second browser window
I want to click on a button and have it open a second browser window. How?
-
Webdynpro development within BI
Hello, I have to provide some answer to my customer which needs some additional capabilities within BI He would like to developp webdynpro functionnalities in order to use data from BI, fill in other figures and perform some simulation which will be