Types of Formulas

Hi All,
Can I have the details of Formulas to be used in BEx & Query Designer.
The type of formulas to be used and can somebody give some examples also with the formulas.
Regards
Arun

Hi......
You can try this:
create a structure in columns.
create 3 selections, in each of them put the 0plant restricted by ZV, ND and PD accordingly and a KF that you want to play with. Hide all of them.
The selections will not equal to zero for values conforming the restrictions.
Create a new formula. Here you can use a formula like
(Selection1 0)* (Calculation1) + (NOT (Selection1 0)* (Calculation2))
Check this link :
http://help.sap.com/search/highlightContent.jsp
Hope this helps you....
Regards.,
Debjani..........

Similar Messages

  • Pricing on PO - Condition type with formula

    Dear friends,
    I've one condition type with calculation type (KRECH) set as Formula.
    For the calcutation of this condition I need to set this formula: Value = (Gross Price + Freight) * 0,0035
    Can you please tell me how can I se this condition as required?
    Thanks in advance,
    Afonso Pereira

    Hi
    I have never tried this calculation type - G formula,
    But in the pricing procedure config, there is a field Caclulation type whcih is used as Alternate calculation type.
    You can createa new routine ( nothing but a logic based formula) for caclutaion and assign that to the new condition type.
    This will ensure that if your gross price condition and freight are present then this condition type gets automatically calculated and get populated in the PO conditions.
    For routine creation you need to take help of Abaper.
    Routines are craeted in transaction VOFM
    Thanks & Regards
    Kishore

  • Transport BRF expressions of expression type SAP Formula Interpreter

    Hi Experts,
    How can i copy BRF expressions of expression type SAP Formula Interpreter to one request for transport to another client?
    When we copy using tcode FKKBRFTRANS, the formula appear empty on the new client.
    Best regards,
    Renato Tasso

    Hi Renato,
    So I'm guessing that's really BRF then and not BRF+ ? Most of the forum participants in this space are BRF+ or BRM users, and most of us keep very clear of BRF itself...
    You might need to search on that Tcode and see if there's a functional forum that's aware of it or else report it via SAP Message.
    Rgds,
    Jocelyn

  • PO condition type calculation formula.

    Dear there,
          Hallo, i going to develop a customize create Purchase order screen (same like ME21n), and i facing a problem in the condition type calculation part, because i dun know how to get the formula of each condition type calculation so i cannot calculate the price for the PO ,
         Is there any menthod we can get the formula for each condition type ? or any standard function we  can use to calculate the price instand of using coding to calculate it?
    THanks

    Hi,
    Hope this link will help you. Condition Type Formula--G

  • Pricing Condition type controls- Formula and condition records

    Hello experts
    I have one question in pricing.
    Is it possible to determine the value of a single condition type by means of the maintained condition records vs a formula depending on the scenario?
    Eg- In my case for the requirement is:-
    If in my sales order the item category is X or Y then i need to use the condition records to determine the value of the condition type  say ZCON but if the item category is Z then i need to use a custom formula?
    Can this scenario be achieved using only one condition type with the appropriate formula or do i have to maintain separate condition types to achieve it?
    Thanks for your inputs.

    I believe it can be achieved with the single condition type. Since the routine assigned in the Requirement in pricing procedure controls the system's access to condition records...create a new VOFM routine which should check the item category and if satisfied, the condition records will be accessed.
    If the requirement fails and a value is not determined, the routine in the alternate calculation type should handle the calculation (based on PR00 value etc.,) and determining the value for this condition type. If not possible this way, should be able to handle this requirement through a userexit.
    Your condition type should be configured allowing both automatic and manual entries.
    This is just a wild guess.

  • Is there a way to type out formulas in document programs or a download?

    I take a lot of science and math classes and I'd like to type my notes and other stuff for class but it is very time consuming to type out the formulas (either mathematical or chemical, which are different but still with the superscripts and subscripts take forever) or maybe there is a download that someone knows about? or another program that lets you cut and paste? Anyway thanks.

    Hello,
    for simple formulas You can use "Grapher" which is included in the Mac Os X installation (look in Applications->Utilitities). From Grapher You can copy/paste formulas/equations to other Applications like Textedit or Pages.
    Commercial equation editors:
    MathType (http://www.dessci.com/en/products/mathtype_mac/default.htm)
    MathMagic (http://www.mathmagic.com/)
    Of course, there is LaTeX too (TeX installation is required):
    LaTeXiT (http://www.macupdate.com/info.php/id/17889)
    LaTeX Equation Editor (http://evolve.lse.ac.uk/software/EquationEditor/)
    Message was edited by: cm752004

  • Changing Output type in Formula Node?

    I looked at some other posts on how to set a formula node output as an array, and am unsure why it is not an array. Here is the text in my node: ("out", "in1", and "in2" are all supposed to be 2D arrays; i is an int)
    int32 out [50][50];
    if (i==0)
    out = in1;
    else
    out = in2;

    Hi,
    you must use something like
    int32 out[50][50];
    int32 j, k;
    if (i==0)
    for (j=0; j<50; j++)
    for(k=0; k<50; k++)
    out[j][k]=in1[j][k];
    else
    for (j=0; j<50; j++)
    for(k=0; k<50; k++)
    out[j][k]=in2[j][k];
    I think this is because formula node must be precompiled before execution of your VI. In your case it doesn't know how to address different array elements of "in1" and "in2" because it doesn't know its sizes before you start your VI. In my example I specify the adresses of array elements by using indecies [j][k].
    In any case it looks like you can't make direct assignment of arrays like "arr1=arr2". You always must assign its elements in a loop like "arr1[i]=arr2[i]".
    Good luck.
    Oleg Chutko.

  • XML Publisher and the type formula

    Hi,
    I am trying to develop an XML Publisher template for the Ebusiness Suit's Accounts Receivable RAXINV report. I have noticed that in the XML I generated running the report as type XML. It generates the XML tags but they contain no data for the column type formula. Can anyone recommend a way of getting around this?
    Regards,
    Mark

    Hi Tim,
    Thanks for you reply. Yes the XML Tags had been set for the formula columns.
    Could you tell me in Oracle Report in the Data Model, if a column of type of formula has a PL/SQL formula that returns a result will that result be displayed when the report is exported as XML?
    Thanks,
    Mark

  • How assign formula to condition type??

    I have a condition type with calculation type G (Formula).  I know that formula is calculated in VOFM, however, how to assign this formula to Condition Type??.
    Thanks in advance.

    hi,
    you have to create one additional cond type for the result. let say ZZZZ,
    then go to VOFM ->formula-> condition value-> create new routine
    this the code,
    DATA: xkomv_ZCSA TYPE komv_index, A TYPE WMTO_S-AMOUNT,
    xkomv_Z001 TYPE komv_index,
    xkomv_Z002 TYPE komv_index,
    xkomv_Z003 TYPE komv_index,
    xkomv_ZZZZ TYPE komv_index,
    xkomv_old TYPE komv_index.
    CLEAR: xkomv_Z001, xkomv_Z002, xkomv_Z003, xkomv_ZZZZ, xkomv_old.
    xkomv_old = xkomv.
    READ TABLE xkomv WITH KEY kschl = 'Z001.
    IF sy-subrc EQ 0.
    xkomv_Z001 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'Z002'.
    IF sy-subrc EQ 0.
    xkomv_Z002 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'Z003'.
    IF sy-subrc EQ 0.
    xkomv_Z003 = xkomv.
    ENDIF.
    READ TABLE xkomv WITH KEY kschl = 'ZZZZ'.
    IF sy-subrc EQ 0.
    xkomv_ZZZZ = xkomv.
    ENDIF.
    CLEAR : XKWERT.
    A = ( XKOMV_Z001-KWERT + XKOMV_Z002-KWERT +  XKOMV_Z003-KWERT ) / 3.
    A = A * 100.
    CALL FUNCTION 'CURRENCY_AMOUNT_DISPLAY_TO_SAP'
      EXPORTING
        CURRENCY = XKOMV-WAERS
        AMOUNT_DISPLAY = A
      IMPORTING
        AMOUNT_INTERNAL = A.
    MOVE A TO XKWERT.
    xkomv = xkomv_old.
    AFTER THAT activate this routine, the put this routine in pricing procedure for condition type ZZZZ.
    it'll works
    point if it's helpful
    Best Regard,
    Hendry

  • Powerpivot - Can't insert formula that combines two or more different columns and keep getting message "unhandled exception has occurred in a component in your application...

    I am using powerpivot v2 with excel 2010.
    When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
    "unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
    ************** Exception Text **************
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    Does anybody know how to fix this ?

    Mark,
    I used the Fix It found here:
    http://support.microsoft.com/kb/2739501
    I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013.  We used Control Panel to uninstall Office 2013, in order to install Office
    2010.  I installed PowerPivot add-in and used it successfully with no issues for several months.  After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
    and used the Fix It to attempt to remove all remaining traces of Office 2013.  While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
    of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
    My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear.  For example, when I first click into the formula
    bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message.  Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
    again, I get the same error message again (see details below).
    At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window.  I can't get that to appear again, as it now only says "PowerPivot for Excel".  Based on this, I had attempted
    to see if I could repair my .NET framework install using the following tool:
    http://www.microsoft.com/en-us/download/details.aspx?id=30135
    I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
    While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
    Let me know if you have any additional questions.
    David
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    David Duncan Consultant I.B.I.S., Inc.

  • Object '43TH...' (ROUT) of type 'Routine' is not available in version 'A'

    Hello all,
    I having this situation, first let me tell you that we have transported the queries from dev to qa and then we had to open the qa system to modify our queries. There were a lot of modifications done to the queries in QA and so now I am trying to transport the queries back to Dev so that we can transport it again via normal route.
    When I am trying to collect the query in QA I am getting a lot of errors something like this:
    <b>Object '43TH...' (ROUT) of type 'Routine' is not available in version 'A'</b>
    You wanted to generate an object with the name '43TH...' (in transport request ROUT) of type 'Routine' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    <b>Object '43TH...' (RSFO) of type 'BW Formula' is not available in version 'A'</b>
    You wanted to generate an object with the name '43TH..' (in transport request RSFO) of type 'BW Formula' (TLOGO). This is, however, not available in the BW Repository database. It does not exist in the requested version A. If the version is 'D' then it is possible that an error arose during the delivery or installation. If the version is 'A' then the Object was either not created or not activated.
    Can someone tell me why is it erroring out and where can I look to fix it.
    Thanks,
    Raj

    Raj,  
        Can you please check the formula you mentioned in the Table RSZCALC Table, Provide ELTUID = "43TH...". check the Version whether it is 'A' or 'D'.
    If it is not available in 'A' Version, then check the Formula creation.
    Probably, it may help you.
    Regards,
    Nagesh Ganisetti.
    Assign points if it helps.

  • Formula Variable in Bex , Urgent

    Hi Experts,
                        I have created a formula variable on 0Material with replacement path as processing type. I am using this formula variable in a formula that i have created. The formula works fine.
    However , when i create another formula variable on 0Prod_hier ( which has a navigational technical name 0MATERIAL__0PROD_HIER ) with replacement path as processing type, The formula which i have created doesnt work.
    Ex:
    1) ('MAT_FORM' == 100010001)'NET_SALES'10  , This works fine
    2) ('HIER_FORM' == 10000010000001)'NET_SALES'10    . This fails.
    Iam using the same formula process but with different formula variables , i cant understand why the formula is failing
    I have checked the data, in the cube and the infoprovider (0Material has 0PROD_HIER data) , but i am stuck as to why the system is not recognizing the prod hier values,
    Kindly help me on this,

    Hi,
    Please read the following:
    BEx Query Designer: Creating formula variables
    You have loaded data into your InfoProvider. To be able to use sign reversal in reporting, you have to define a formula variable in the query definition:
           1.      You are in the Query Designer. Under Key Figures, use the context menu to choose New Formula. The Formula Builder opens.
           2.      Under Formula Variables, choose New Variable from the context menu. The variables wizard appears.
           3.      Enter a name and a short text for the variable. Choose Replacement Path as the processing type.
           4.      Choose your hierarchy basic characteristic.
           5.      Choose Hierarchy Attribute as the replacement. The attribute Sign Reversal is automatically displayed.
           6.      Save your formula variable. When defining the formula variable, you get the factor 1 or –1, with which you can multiply the required key figure.
    Regards,
    Subha
    If you find it useful, pleae grant me points

  • Using a formula that works in Excel

    Is there a way to create this type of formula that works in Excel but not in Numbers 09
    =SUMPRODUCT(--(Utilization!A10:A190="Jan"),--(Utilization!C10:C190="Personal"),- -(Utilization!D10:D190))
    This is referring to second page "Utilization" but doesn't have to in new numbers spreadsheet.
    Have 3 columns. 1st with month, 2nd describing type of work, 3rd with hours.
    New cell will have product of 1st two items.
    Can pm example if this sounds confusing. Thanks.

    You're right, it sounds confusing. It sounds like you want to create products of Months X Description of work X Hours and then sum them up.
    It's as amazing to me that it would work in Excel as that you think it would work in Pages or Numbers.
    Jerry

  • How do I selectively combine data in a formula?

    I come from the world of programming and MySQL, so I hope I'm able to do this in Numbers. I have a table with the following columns (data type is in parentheses): Date (Date), Item(Text), Category(Text), Amount(Currency), Note(Text), Balance(Currency).
    I want to do a number of different things to this table, but I'm finding it hard to do some of the simplest things. For example I want to get the total of all my spending [[Amount]] in a specific month [[Date]] for a particular Category [[Category]]. The farthest I got was:
    =SUMIF(Home :: Tracker :: Category, "=Medical", Home :: Tracker :: Amount)
    which means: give me the sum of all the amounts where the category is "Medical".
    I'd like some general tips on how to construct these types of formulas as I would like to do some more complicated things than this.
    Thanks!
    Avery

    Hi Avery,
    Welcome to the discussions. Numbers 09 has the Function SUMIFS that does multiple comparisons, which of course is what you are looking for. In Numbers 08, I find it easiest just to add a column to the main table that concatenates the Category and Date, then test on that new column, using a criteria that is also a concatenation of category and date.
    Jerry

  • Copying VLOOKUP formula now results in a reference error

    Hi all
    I am using VLOOKUP to calculate students' grades based on their marks which I have input into one table. The lookup cells are in a separate table on the same page. I can get the formula to work fine but when I try to copy it to the following cells in that column either by copy/paste or by dragging the yellow handle I now get a #REF error instead of the correct table. This means I now have to type the formula in every single cell.
    Surely this can't be the easiest way! It used to work fine in the old version of Numbers which I can't go back to as I have updated the spreadsheets to work in iCloud.
    I'm using Version 3.01 on a MBP running OS X Mavericks.
    Any thoughts much appreciated. Otherwise I will have to give up and head over to Excel where I know it works fine.
    Thanks
    Kevin

    Hi Wayne
    the formula I've been using is (for example)
    VLOOKUP(A4,Grade Lookup::A2:B10,2,1)
    Grade Lookup is the table name and the A2:B10 range is the cells where it should look for the number in the A column and return the answer from the B column.
    Thanks!!

Maybe you are looking for

  • CIF of master data

    Hi, My question is related to the CIF of master data. I built an integration model to transfer the materials from R/3 to APO, and then the delta modifications are CIF by a background process at night. I would like to transfer all the delta master dat

  • ITunes library synchronization across multiple users on one computer

    I've got a PC running MS XP/Home, with a separate user account for each family member. I also repointed all the iTunes library file pointers to the SAME file on the "D" hard drive (taking all that pressure off the "C" drive, which is filling up!)--so

  • Audio tracks missing when doing automate to sequence.

    Using PMW200 with 4 audio tracks. When dragging single file to timeline I get the 4 audio tracks. But when I do an automate to sequence, I only get 1 audio track, plus, the default audio transition is not going on. I have all the tracks highlighted a

  • How to assign a query retrived value to a user defined  object in a table

    how to assign a query retrived value to a user defined  object in a table

  • How can i duplicate records from a flat file to a cube

    Hi all, i got the next problem, i m loading a flat file, fur example: Material KF1 KF2 A 10 12 B 25 30 01 02 I Need duplicate the records for material A and B but with the values of Not assign, in other words the result in the cube would be like this