Conditional formula help
Post Author: scd07
CA Forum: Formula
Hi, Crystal Reports novice here...
I have been asked to take out any lines in several reports with all "0s" in the columns. I have tried formatting each field to suppress Zeros and then right click on the Description column and click "suppress if blank". Didn't work. I then tried to write a conditional formula that I put under the description field (field 1), "common", "formula" and "suppress". The formula followed the following:
If = 0 and = 0 and = 0 then true else false
Unfortunately this also didn't work. I don't know if my formula is incorrect or if I am entering it in the wrong spot. Any help would be very much appreciated! Thank you!!
Post Author: Bandit07
CA Forum: Formula
Right click on what you want to suppress and click the x-2 button next to suppress. Put your formula in there.
= 0 and = 0 and = 0, If all of these conditions are true then it will suppress.
B
Similar Messages
-
Conditional formula in report painter.
Hello.
I create new CO-PA report in KE31 transaction which is based on a form.
In transaction KE35 I define the new form and in this form I want to create formula.
This formula should be conditional. How to define conditional formula in that kind of form.
I can also define key figure scheme in transaction KER1 but in this transaction I also don't see possibility to define
conditional formula.
Conditional formula means that some value fields should be summ and some value fields should be substract
depending on the value of characteristics.
How to solve this problem in R/3 4.6C?
I am waiting for help.
Best regards
BogdanHi,
I don't think that we can put the conditional formula. but we can do the calcualtion by row wise or column wise.
Thanks. -
Condition formula for alternative calculation type
Hi gurus,
we need to create some condition formulas to be applied in our pricing procedure.
Do you know where to program them in the system and what additional settings are required?
Thanks and best regards,
VLHi Victor,
For your query, you can create new alternative calculation or alternative condition base values in T-COde VOFM with the help of an ABAP.
Go to VOFM T-CODE
Then Click on Formulas then condition value or condition base value.
You need to take Acces key from basis team to create a new calculation type for that number should start from 900 to 999.
Tell you Abaper to take the values from internal table XKOMV, XKOMK, KONDI, XKONP there are many internal tables are there, from that you will get respective conditon type values.
In internal table KBETR field contains condition record value & KWERT contains the calculated value.
Read wrt condition tyep and calculate according that and pass the value.
Try this, which will help you in resolving your query.
If satisfied close the thread.
Regards,
Nagesh -
Hi,
I need to create some condition formulas for some pricing procedure. In these formulas we need to check some conditions and based on that we need to set some flags in VBAK and VBAP tables thru' condition formulas.
Is it possible to set flags in VBAK/VBAP?
If you have any document based on Condition formulas, please send it to me.
Thanks in advance.
Regards,
UmeshHi Umesh,
Please check the following links, which will give some good picture about VOFM.
<a href="http://www.saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf">PDF</a>
<a href="http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/38996#">LINK1</a>
<a href="http://www.sap-img.com/sap-sd/quantity-based-discounts-in-bulk-quantities.htm">LINK2</a>
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/a1/78268609e811d2956400a0c9306667/frameset.htm">LINK3</a>
Hope This Info Helps YOU.
<i>Reward Points If It Helps YOU.</i>
Regards,
Raghav -
Conditional formula to supress a section in the first page of the report
hi all,
how to programatically add a conditional formula to supress a section only on the first page of the report.
i am using CR XI R2 RAS server.
thanks in advance
Padmanaban VHi Padmanaban,
You can download samples from [here|https://www.sdn.sap.com/irj/boc/businessobjects-samples]
Regards,
Shweta -
Conditional Formula to supress page header in 1st page of the report
hi,
how to programatically add a conditional formula to supress a section only on the first page of the report.
i am using CR XI R2 RAS server.
thanks in advance
Padmanaban VTry it first in CR Designer, then when you get the formula collect you'll see how it's done. If you can't do it in the designer then you can't do it in code, same set of API's.
-
Create value condition formula on VFOM
Hi people,
I am with a little problem...
I have to create value condition formula on VFOM, so I go on VFOM, then formulas, then value condition ...
I go on botton of the list, set on edit mode, enter number 936 for the formula(witch doesnt exist)...
But when I double click on number, the program ask me for the acces key...
What should I do?
tksHi,
You have to get the access key from Service Market Place, without access key you cant create routines.
Thanks
Arbind -
API/RAS - is it possible to remove suppress condition formula from report Section?
I need to modify a report on the fly so that sometimes the 'Suppress (no drill down)' condition formula is completely removed from a report Section. Optionally I would like to just modify the formula to return FALSE so that the section appears.
It seems like the code below works when the section format 'EnableSuppress' option is TRUE, but does not seem to do anything when there is a suppress formula for the section.
Is this possible to do?
Thanks
Helen
private void RemoveSuppress(CrystalDecisions.ReportAppServer.Controllers.ReportSectionController ctlSec
, CrystalDecisions.ReportAppServer.ReportDefModel.Section sect)
CrystalDecisions.ReportAppServer.ReportDefModel.ISCRSectionFormat
secFmt = new CrystalDecisions.ReportAppServer.ReportDefModel.SectionFormat(); // also tried getting the current section format object
secFmt.EnableSuppress = false;
secFmt.ConditionFormulas.RemoveAll(); // *** Should ensure the condition formulas are removed correct?
ctlSec.SetProperty(sect, CrystalDecisions.ReportAppServer.Controllers.CrReportSectionPropertyEnum.crReportSectionPropertyFormat, secFmt);
private void doOutput(CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument oras)
CrystalDecisions.ReportAppServer.Controllers.ReportSectionController
sect = oras.ReportDefController.ReportDefinition.FindSectionByName("DetailSection1");
RemoveSuppress(oras.ReportDefController.ReportSectionController, sect);
CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray
boByteArray = oras.PrintOutputController.Export(RASDefModel.CrReportExportFormatEnum.crReportExportFormatPDF, 1);
boByteArray.Save(@"c:\temp\r.pdf", true);Hi Helen,
Not sure why or how I missed this one but see this post for more info:
http://scn.sap.com/thread/3712393
Don -
Is it possible in CrystalReports 8.5 to set conditional formula at runtime?
I program in C++.
Is it possible in CrystalReports 8.5 to set suppress formula (or any other conditional formula under "x+2" button) at runtime?
I know I can do a workaround, for example create a parameter field, type in (at design-time) a suppress formula with this parameter field and then set the value of the parameter field at runtime.
But... In our application crystal reports are modified at runtime. And in a section, which has its suppress formula, suppress property is changed at runtime, so the suppress formula disappears. But later (e.g. a user changed its mind) it would be very nice, if the suppress formula appeared again. How to do that?
(I tried to search and google, but answers I found was not those I wanted them to be.)
Thanks in advance.
Jacek.Hi Jacek,
That is a very good question. There are no sample app's any more for 8.5 which is 10 + years old now and I don't recall if that function was considered Report Creation which was only available for OEM Partner. Or the RDC had a few RCAPI's also. Typically you would add the formula in the Designer and then get that formula and alter the info.
But it's been so long now and you never say which engine you are using, not that it matters, I don't recall now if you can or not or how ....
Search the Header file if using CRPE32, or load up VB and the RDC , craxdrt.dll, and use the Object Browser to see if access is there... If you are using the OCX then it's the same as crpe32.h.
Good luck.
Don
PS - Time to upgrade to .NET and CR for .NET -
What is Condition formula/call type/routines for ECS and SECess
HI
what is Condition formula/call type/routines for ECS and SECess (SECONDARY HIGHER EDU CESS) to assign pricing procedure
JFACT.ECS reqt is 10 and a/c key os2
SECess reqt is 10 adn a/c key os3 -
I just bought a iPhone 4s from someone on-line, everything is working correctly however i cannot connect to any wifi, it says that it is unavailable, i know that it could be the wifi chip damaged but the phone is in almost perfect condition. Help please?
Help with what? If the WiFi radio is broken, there's nothing any of us on this forum can do help you. Either go to Apple and pay for an out of warranty replacement, or find a 3rd party repair shop and get the phone repaired.
-
Hi all,...
Can you pkeae help me with what i have to do with this requirement,.. Please give me the fields to update in the condition routine.
For a material i have to take the order quantity ( VBAP - KWMENG ) / Pallet Qty ( MARM -UMREZ ).,
Here is how it should work... I did not understand what field to update... What should i assign Order Qty / Pallet Qty ...
Heres an example of how it should work: If the pallet quantity is 25 and the order quantity is 55
Price for each unit is $2.00
Total price = 55 * 2.00 = $110.00
Total number of pallets = 2.2 (55/25)
The % discount from the condition record should be applied on only 2 pallet quantities for 50 units.
The condition value would be 50 * $2 = $100 and the % is applied on the $100. So if the % was 3.00
the condition value is $3.00. The net value of the line is at subtotal 2 or KZWI2.
Thank you all.. I ll surely reward points..Hi Soniya
Why don't you copy KP00- Pallet Discount and change in V/06 calculation type to A-Percentage instead of C-Quantity.
Now your concern is % is on Order Quantity and Not on Pallet Quantity???
Then you can have AltCBV as Order quantity and check
If it doesn't satisfy than AltCTY has to be created
Regards
Jitesh -
Formula help - Distinct Count with 3 conditions
I have a field named ID
I need to Dcount records where Dorder = 1,0 or null
I'm gonna need to perform similiar totals on other fields so I don't think I can use Record Select Expert (Is that right?)
Thanks
SteveSteve,
Do a search in CR's online help for DistinctCount. It should have what you are looking for.
Basically you'l want something like this...
DistinctCount({TableName.FieldToCount}, {TableName.Order} = 1)
DistinctCount({TableName.FieldToCount}, {TableName.Order} = 0)
DistinctCount({TableName.FieldToCount}, IsNull({TableName.Order}))
HTH,
Jason -
Pricing condition formula on IPC
Hi,
Here's the issue -
The freight for items is calculated using scale based rates for gross weight of the items.
For example, if the gross wt. for an item is 38 pounds, the rate is determined as $18 from the scale. However, if the quantity is increased to 2, a rate of say, $30 is taken from the scale corresponding to the gross wt. which is now 76 pounds.
However, the requirement is that the rate of $18 should be chosen and multiplied by the quantity for all quantities greater than 1. So the freight should have been $36 (18 x 2) instead.
The freight is calculated using a pricing formula in R/3 where the gross wt. is first divided by the quantity to get the base condition. Scale based rates are taken to calculate the freight condition value and multiplied by the quantity again.
AltCTy
modify xkomv.
read table xkomv with key kschl = 'ZABC'.
xkomv-kwert = xkomv-kbetr * komp-mgame.
modify xkomv.
xkwert = xkomv-kwert / 1000.
AltCBV
if komp-mgame ne space.
komp-brgew = komp-ntgew.
xkwert = ( komp-brgew / komp-mgame ) * 1000.
komp-brgew = ( komp-brgew / komp-mgame ) * 1000.
else.
komp-brgew = komp-ntgew.
xkwert = ( komp-brgew / komp-mglme ) * 1000.
komp-brgew = ( komp-brgew / komp-mglme ) * 1000.
endif.
The problem arises while implementing this formula in IPC. Unlike on the R/3 side, it is not possible to change the gross wt. of an item in IPC. Also, I couldn't find a way to explicitly specify the gross wt. to calculate the condition.
The other option was to implement a BADI to change the gross wt. of the items before calculating the conditions. I tried using the CRM_PRODUCT_I_BADI where it is possible to change the gross wt. when an item is entered, however, the quantity for the line item is not available in this BADI so as to divide it to get the appropriate gross wt. for an item.
Any help would be greatly appreciated.Hello,
If this badi is executed inside order creation you can try call function CRM_ORDER_READ to get the item quantity.
It might work if the item data is updated before this badi is called.
Instead of pass the header like in the example below, pass the item guid to the function.
INSERT gc_object_name-orderadm_i INTO TABLE lt_requested_objects.
INSERT gc_object_name-schedlin INTO TABLE lt_requested_objects.
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
it_header_guid = lt_header_guid
iv_mode = gc_mode-display
it_requested_objects = lt_requested_objects
IMPORTING
et_orderadm_i = lt_orderadm_i
et_schedlin = lt_schedlin
EXCEPTIONS
document_not_found = 1
error_occurred = 2
document_locked = 3
no_change_authority = 4
no_display_authority = 5
no_change_allowed = 6
OTHERS = 7.
IF sy-subrc <> 0.
MOVE sy-msgty TO ev_type.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 INTO ev_message.
EXIT.
ENDIF.
LOOP AT lt_orderadm_i INTO ls_orderadm_i.
MOVE ls_orderadm_i-number_int TO itens_vlr-numitem.
MOVE ls_orderadm_i-ordered_prod TO itens_vlr-produto.
MOVE ls_orderadm_i-description TO itens_vlr-descricao.
READ TABLE lt_schedlin INTO ls_schedlin
WITH KEY item_guid = ls_orderadm_i-guid.
IF sy-subrc = 0.
MOVE ls_schedlin-quantity TO itens_vlr-qtdprod.
ENDIF.
APPEND itens_vlr.
ENDLOOP.
Regards,
Mauricio -
How can I programatically perform a conditional formula in "Eval Formula Node"?
Okay, I'm stumped. I have an application where I need to evaluate a conditional programatically, and I can't do it with a Formula Node.
Basically, my user wants to be able to enter some formula which describes conditionals, such as "if this temperature goes above X degrees or this temp goes above Y degrees, then take a reading" kind of thing. Since the conditional will be saved in a file, the formula node needs to be dynamic.
I've used the "Eval Formula Node" before, which is built for this type of application...sort of. I tried it, but after trying in vain to get it to work properly, found out that it doesn't do boolean and conditionals in its parser, so it won't work.
Does anyone
have a good idea how to do this??Why do you even want to use the formula node at all? I don't think you "can take a reading" (i.e. interact with hardware) inside a formula node anyway.
The formula node allows conditionals, see e.g. the example in the online help (image attached).
You could also use a case structure with seperate formula node in each case.
I highly prefer to skip the formula node and use wires instead. It will be more efficient and also much easier to debug. A formula node is not "in the true spirit of LabVIEW" ;-)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
FormulaNode.gif 2 KB
Maybe you are looking for
-
How to remove frozen iCloud Tabs after iPad restore?
Hello, Recently I had to restore my iPad on iTunes and used a fresh iCloud backup. At that moment, there were 4 tabs opened in Safari. After restoring, my iPad has shown those tabs in iCloud Tabs without any opened tab on any device. Can anyone help
-
How to add column dynamically based on user input in oracle?
**how to add column dynamically based on user input in oracle?** I am generating monthly report based on from_date to to_date below is my requirement sample table EMPLOYEE_CODE| Name | CL_TAKEN_DATE | CL_BALANCE | 01-OCT-12 | 02-OCT-12 | 03-OCT-12 10
-
Any idea what happened in this crash and if my MacBook needs work?
A friend of mine suggested that I post the crash report here to see if anyone knows what happened and whether I need to do anything. I would go to a Genius Bar, but the nearest Apple Store to me is 3 hours away Here's what happened: I was working in
-
How to copy .gif files from one dir to another using runtime.exec
hello sir/madem, i want to copy some gif and jepg files from one directory to another dir using swing. when i tried with using runtime.exec(String[]) i am getting the following error. anybody please tell me what is the problem in my program java.io.I
-
I would like the ability to save a thumbnail preview for use by the OS on image export.
Hello, I have been using Lightroom for about three years and one of the many features I would like to see is the ability to save a thumbnail for the image while exporting an image. This is an option available in other leading software, and also hap