Formula Builder

hai
what is formula builder and formula collusion wt is the difference between them
plz give me the answer......
with regards...
Raghavendra

Hi,
Use
You can use the Formula Builder to implement methods for Business Add-Ins without writing a single line of ABAP code. The methods are implemented by means of socalled formulas.
This type of implementation does not require you to have programming knowledge. However, the functions it offers are more restricted than if you implement a method by writing ABAP code. If the range of functions provided by the Formula Builder is not sufficient, you can change the implementation type of the method at any time.
Features
A formula can consist of the following steps:
Condition
You define a Boolean formula expression whose result can be true or false. This formula expression is a logical condition based on the importing and changing parameters of the method. Depending on whether the condition is true or false, the system triggers different steps. If you do not specify a dependent step for one of these two possibilities, the system continues with the next superior step.
Substitution
The system replaces the value of a specific parameter with another value which you define as a constant value or by means of a mathematic formula. Substitution is only possible if the method contains changing, exporting or returning parameters.
Message
The system issues a message. All messages issued are collected in a log table. You define the message variables as constant values or by means of mathematic formulas. The system can only issue a message if you created a log table during method definition.
Exception
The system exits the method. No further steps are executed, and the application program continues in accordance with the exception defined. You can additionally display a message whose variables you define as constant values or by means of mathematic formulas. An exception can only be triggered if the method contains exceptions.
A formula editor is available which you can use to enter formula expressions. After starting the formula editor, you can display information on how to use it by choosing the pushbutton next to the status display (traffic light).
Activities
You implement the method using the BAdI Builder. For information on this topic, see Implementing Business Add-Ins. To implement a method as a formula, choose the Formula implementation type on the Interface tab. Double-clicking the method name takes to to the Formula Builder: BadI Implementation screen.
You can change the implementation type of the method on the Interface tab. You can implement a method both using a formula and using ABAP code. At the runtime of the application program, the system executes the implementation type currently chosen.
You create the necessary steps in the left section of the screen. To do this, choose and then select the appropriate step type from the dropdown list. Using the other icons available or the context menu (which you can call by clicking the right mouse button), you then determine the arrangement and the descriptions of the steps. You can also copy steps to use them as templates for other steps, or you can delete individual steps.
To specify the parameters for the individual steps, double-click the corresponding entry in the left section of the screen. You then enter the data required in the right section of the screen.
The formula builder has two modes: Standard and expert mode. In the standard mode, you can only enter the formulas using the pushbuttons and by double clicking on functions and fields. In the expert mode, however, you can enter formulas directly. You can also toggle between the tow modes when entering a formula.
The company code field (0COMP_CODE) is not included in your data target or InfoSource. However you can determine the company code from the first four character spaces of the cost center (0COSTCENTER).
You create the following formula for this purpose:
SUBSTRING( cost center, '0' , '4')
Syntax:
SUBSTRING( String, Offset , Länge )
Step-by-Step Procedure in Standard mode:
In the transformation library, on the right hand side under Show Me, choose the category Strings. From the list, select the Substring function by double-clicking on it. The syntax of the formula is displayed in the formula window: SUBSTRING( , , )
The cursor automatically appears over the first parameter that needs to be specified.
From the list on the left-hand side of the screen, choose the Cost Center field by double-clicking on it.
Place the cursor where you want to enter the next parameter.
Enter the number 0 using the Constant button (for the Offset parameter). The commas are added automatically.
Place the cursor where you want to enter the next parameter.
Enter the number 4 using the Constant button (for the Length parameter).
Choose Back. The formula is now checked and saved if it is correct. You receive a message if errors occurred during the check, and the system highlights the erroneous element in color.
____For Formula Collision see this link
http://help.sap.com/saphelp_bw32/helpdata/en/d2/02223c5f00612be10000000a11402f/frameset.htm
*********Asgin points if usefull*********
Cheers
Satya

Similar Messages

  • InfoObject not appearing in Formula Builder

    <b><i>I have an active set of ODS update rules, and am trying to use formula builder to "RIGHT 8" the values of one of the source fields. For example, my field is packed with 00000000CUSTNAME, and I want to trim right 8 to CUSTNAME.
    However, when I look at the available fields in the left-hand selection table, all I can see are system fields, and nothing from my transfer structure. How can I actually manipulate my source field if I can't input it into the expression? How do I get the source fields to appear as candidates for manipulation in the formula builder expression? I can find nothing on this issue from help.sap.com itself. Thanks, Doug</i></b>

    Hi Doug,
    Was the update rule created based on the Infosource then you should be able to find it in the formula section. Also if you want your Cust name to appear without the trailing zeroes then you dont need the formula as SAP would take care of it if you have the alpha conv routine checked for custname.
    Bye
    Dinesh

  • BAdi for Formula Builder (RSAR_CONNECTOR)

    Hi All,
    Has anyone implemented this BAdi? I couldn't find anything in previous posts.
    I understand this only useful for transformation (update & transfer rules) and not for formualas in query?
    Also I couldn't fully comprehend how I am supposed to pass the values to the customer defined function in a seperate class. I implemented the BAdi and a seperate class and expected it to see a User Defined function in transformation library, but couldn't see any.
    Any ideas?
    Thank you.
    Sridhar

    Hi Sridhar,
    I can give you some links, Go through this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/04/f3683c05ea4464e10000000a114084/frameset.htm
    Re: Redefining formulas for BEX queries.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    Regards
    Happy Tony

  • Substring Function in formula builder of transfer rule

    Hi Gurus
    I want to get the domain name from Email address.
    For eg: if the email address is [email protected], i want to display only "yahoo.com" in the report.
    For that, shall i use Substring function in transfer rule.
    If so, please advice me how i can do this.
    Thanks
    Sansen

    Instead try using a routine using the SPLIT function...
    For example if you want to split the value of the field TEST whose value is [email protected] then try writing a code like below in the transfer routine...
    DATA: TEST1(30), TEST2(30) TYPE C.
    SPLIT TRAN_STRUCTURE-ZEMAILID AT '@' into TEST1 and TEST2.
    RESULT = TEST2.
    (value of TEST2 would be yahoo.com)
    Hope this helps...

  • Why is my In design swatch panel creating swatches with different color builds than Pantone formulas

    I am working in ID CS5 now but I have seen this problem in older versions as well. After creating a swatch, either process or spot, and using any of the Pantone selection choices, I get a different formula build than what is in the Pantone books. For example; PMS 110 PC is 2/24/100/7 in the book, but in InDesign it formulates as 0/12/100/7. Doers anyone have info on this?
    S

    maybe just as well, we are getting CS6 this month
    CS6 includes Pantone+ Color Bridge libraries, which use CMYK Process definitions to simulate Pantone solid colors. The new solid library colors (i.e., Pantone+ Coated) are always defined as spot type with Lab definitions—you can no longer switch to CMYK definitions via Ink Manager for the those libraries.
    Pantone+ Color Bridge Coated defines 110 as process CMYK 2|22|100|8. It's not surprising Pantone is always changing the CMYK simulation builds because the appearance of CMYK depends on the printing conditions. Personally I would go for a color managed conversion, allowing that much black in a saturated yellow seems questionable.

  • Formula variable in structures

    Hi,
    My report displays material wise (With Hierachy) actual ,budget,LE Quantities in YTD, QTD.(  I used Structures.)
    I am using 2 formula variables  to derive no of working days in month, no of working days gone based on the given input selection variable date(sy-date). formula to find % month gone (i.e no of working days gone/no of working days in month *100)
    I used the variable exit code and derived properly ,It is coming fine.But  I have to display this values only once in the report.
    If I use one more structure actual selection variable is itself is not coming when i execute the report.
    Could you please suggest in this issue.
    Thanks ,
    Joseph

    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

  • 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

  • WAD: add new formula / structure element to report run by user

    Hi,
    I know that there is a possibility to add a formula or "structure element" to a WAD report that is being run by a user (user opens WAD report and can add a formula). We are using WAD 7. Unfortunately I don't know where this function is hidden in WAD (I am new to WAD....).
    Thanks!

    Hi Steve,
    Make sure you have the following web item and property enabled in your WAD template.
    ~ Context Menu Item >   Local Formula
    Once this is enabled, you can run the WAD report, right click and select Calculations and Translations > Formula > Create New formula
    This will populate teh formula builder.
    Hope this helps.
    Regards
    Snehith.

  • FI Substitution Routine (OBBH) - error in formula

    Hello FI Experts,
    I am an ABAPer.
    My requirement is to write a Subst routine(OBBH) using  call point 3 which
    checks for a given range of co codes (BUKRS) and reason codes(BSEG-RSTGR)  NOT equal to '   ' (space) at <b>document item level.</b>
    But i am unable  to create a formula in pre requisite  which checks for a range of co codes(BUKRS) and also Reason codes(BSEG-BUKRS as it is throwing an error.
    My pre requisite formula should be like :
    BKPF-BUKRS >=1000 AND BKPF-BUKRS <= 2000 AND BSEG-RSTGR <> ' '.
    when i use the formula builder its not allowing me to write a space for
    BSEG-RSTGR <> ' '. It only enables the commentary button
    How can i acheive this?  Please help.
    Thanks
    Dany

    Dan - If you use call point 2 (at document item level) & not global you  will  be able to assign and you can write a space for BSEG-RSTGR <> ' '.
    It  enables the both the commentary & constant buttons.
    Bye

  • How to add attribute in a formula ?

    Hi gurus,
    I am creating a query and face this problem. I need to use an attribute in the formula builder to create a new formula. Is there anyway we can bring attribute to the formula operands...Any help is greatly appreciated.
    Thanks
    uan

    Hi,
    Can you please tell me the procedure .I have one navigational attribute( amount) associted with company code. I want use this in formula to multiply it with other key figure.
    Thanks &Regards,
    JO

  • System change in BW for enabling Formula editor

    I have a basis related question in BW.
    While trying to add the process type 'Decision between Multiple Alternatives' to my process chain in quality and production systems, I get a 'system not modifiable message' when I try to create a formula in the subsequent screen . I know this is because the systems are disabled against any customising and repository changes. Which setting(s) do I change to get this to work ?
    I tried changing SCC4 to allow repository changes and some settings in tcode RSWBO004 'System change option' but they had no effect. Any ideas as to what namespace setting I need to enable to allow the formula editor screen to be displayed ?
    I work in BW and was trying my hands at SCC4/system change etc hence am asking it in this forum. This is more of a BW relevant question rather than a generic basis question.

    Hi Daya,
       The object changeability option does not seem to help in this case. The formula builder or process type 'Decision between Multiple Alternatives' is not to be seen. FYI, the technical name for the formula builder is 'RSFO'. So there might be some setting around this.
    Thanks..

  • Redefining formulas for BEX queries.

    Hello all,
    Going a little bit further, I realise now that it would be better to have some complex calculations stored in some formulas to be reusable in many queries.
    So, I think I can create and define new formulas by using BAdis. I have read something like this in SAP HELP. I'm doing this by creating a new implementation that redefines the interface method IF_EX_RSAR_CONNECTOR~GET.
    I have never done this before, so I would appreciate any help on this. Now I could create this redefinition of that interface method but, how can I "insert" the new formula in BEX to make it available. I think I should create the formula definition before but I don't know where, the only thing I know is that the formula should begin with "C_".
    Am I in the right path?

    Hello Roberto and everybody,
    this is what SAP Help says about this:
    BAdI: Customer-defined Functions in Formula Builder
    Use
    This Business Add-In (BAdI) is used in the formula builder transformation library. You use this BAdI to integrate user-defined functions into the transformation library of the formula builder. In this way, you can make special functions that are not contained in the transformation library available for regular use.
    Requirements
    <u>The technical name of a user-defined function
    Must be specified
    Must be unique
    Must begin with 'C_'
    Can contain only alphanumeric characters ( ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_) (lower-case letters, empty spaces and special characters are not allowed)
    Can be a maximum of 61 characters long.</u>
    Standard settings
    The BAdI can be used repeatedly. Is it not filter-dependent.
    Activities
    After you have called up the IMG activity, a dialog box appears in which you enter a name for implementation.
    If implementations have already been created for this BAdI, a dialog box appears in which the existing implementations are displayed. In this dialog box, choose Create and proceed as follows:
    1. In the Implementation field, enter a name for the implementation of the BAdIs and choose Create.
    2. The initial screen for creating BAdI implementations appears.
    3. In the initial screen, in the Short Text for Implementation field, enter a short text for the implementation.
    4. Choose  the Interface tab index.
    5. On the tab page, the field Name of Implemented Class is filled automatically, since the system assigns a class name based on the name of your implementation.
    6. Save your entries and assign the implementation to a development class.
    7. Position the cursor on the method and double-click on it to reach the method editing screen.
    8. Between the statements method <Interface Name>~<Name of Method>. and endmethod. the coding for your implementation.
    9. Save and activate your coding and return to the Change Implementation screen.
    10. Save your entries on the Change Implementation screen.
    Note: You can create an implementation for a BAdI and activate it later. If this is the case, close the editing screen now.
    11. Choose Activate.
    When you execute the application program, the coding you defined in the method is run through.
    See also:
    Method
    GET
    And what I can't find where to do is <u>underlined</u>.
    Don't know where to create the functions, because the BAdI is clear and also the method I have to redefine in my own Z_Implementation.

  • Enhancements formulas in APD

    Hi Experts,
    It is possible add or enhancement a functions or exit variable in the apd's formulas.
    I need the next scenary:
    I a previous step to the formula, i have a filter transformation based in a exit variable selecting the information from 001 until the actual fiscal period; in the formula I need take only the actual fiscal year and assign this value a variable fisper.  After I do aggregation function for year.  With I am obtaining a value acumulated to year fiscal, actual fiscal period.
    The problem is that; in the formula functions for transformation I havn´t for add the formula neccesary.
    My doubt is if is it possible add or do some enhancement.
    Thank you very much.
    Jeysi

    Sure, Frank.
    I have a user exit for obtain the valid month from a table Z.  In the query, I take this customer exit Ok but in the APD I need reference this exit for group the values for apply after a add data transformation.
    For apply this the value of the exit i am assigning to the variable in the formula transformation but i can´t reference any exit or routine personalize in the formula builder.
    For example:
    I have a query with values selection from 1 until customes exit month table Z.
    In the APD, I use this query for do acumulated values; for this I need to apply add data tansformation.
    The values that obtain of th query is month: 1, 2, 3 ,4 y month bases table (6). In the APD I need to group all data to month 6 and after apply transformations.  The problem is for determine the actual month I need to read the table Z newly because in the apd i don´t take the MAX values for month of the query selection.
    Regards,
    Jeysi

  • Simple formula using hierarchy ??

    Hi,
    I'm building a prototype cube to report salary payroll information. The cube is using a Wagetype Hierarchy that I've built. I would like to be able to do calculation <u><b>based on that hierarchy</b></u>. Ex: (non-productive hours) / (productive hours).
    Is there a way to do what I want ?
    Ps: I'm using BW version 3.1

    To build my hierarchy, I used an external characteristic and each node represent a group of wage type. When I then build my query, I don't know how to use those nodes in a formula, since I don't see them in the formula builder.
    Maybe my question is very simple, but please don't hesitate to give me lots of details, it may only be that I don't know the commands.
    Thanks

  • XL Reporter Report for comparison of last month and current month sales

    Hi,
    Our management requires an MIS report for comparison of sales in revenue and in terms of units for the last and the current month todate.
    Is there a way to view this data for both the months together, without any user input?
    Best Regards
    Jyoti

    Jyoti,
    I'll try and explain the XLR Report you'd need for this.  This is isn't the best way to explain something like this, but I'll give it a shot.
    -  Put an expansion on Row 8 and choose all Items (*), click Apply
    -  In A8, put ItemCode
    -  In B8, put Item Name
    -  In C8, put Sales - A/R Row Total
    -  In D8,put Sales - A/R Row Total again
    -  Setup a Parameter
        -  Call it Period
        -  Dimension
        -  Financial Period
    -  In Column D, put a column Summary and click into Financial Period
        -  click the button to open the selection window
        -  click to the parameter tab
        -  select your parameter and click OK and click Apply
    -  In Column C, put a column Summary and click into Financial Period
        -  click the button to open the selection window
        -  click to the parameter tab
        -  in the bottom right corner, add a "-1"   it should look like this @Period-1
        -  click OK and click Apply
    -  In C7 and D7 - choose Financial Period Code from formula builder
                 (so you can see the period code at the column header)
    This will show sales by item in the current Period (column D) and previous Period (column C)
    Hope that helps and at least gets you going.  I can't guarantee those are perfect instructions from memory.
    Brad Windecker
    [Omega Business Solutions|http://www.omegagroup.com]

Maybe you are looking for

  • Firefox on a Mac, and YouTube won't work

    I've looked through related posts here and have been unable to solve my problem. I'm running Yosemite on a new Mac Air. I have FlashBlock, Ad Block, and NoScript installed. I had all of those on Firefox on my previous Mac running Mavericks, with no p

  • Data recovery question

    Hi, I'll try to make this as clear as possible. A little while ago my powerbook suffered a fall on pavement. Not only did the hinges break but the battery adapter input module on the inside of the case broke as well. Now the internal battery can't ta

  • I have problem setting up a new wireless keyboard and my new Mac mini

    I have problem setting up a new wireless keyboard and my new Mac mini

  • Error in invoice due date

    Hi all, i need to fetch invoice due date data(FAEDT) using the FM 'DETERMINE_DUE_DATE'.i passed ZFBDT(base line date) and ZTERM(payment terms) and fetching the invoice due date. DATA : ZFBDT TYPE DATS,        ZTERM TYPE BSAK-ZTERM,        FAEDT TYPE

  • IPhone 3G Browser Crashes - it's getting ridiculous now...

    Hi all I've read the plethora of comments about the instability of the iPhone, and hoped that previous software updates would fix the problem.... but it's just getting worse and worse My iPhone is incapable of maintaining a browsing session for a pro