Fomula variable

Hi Gurus,
I'm unable to open query,as i did some changes to my fomula variable(In the default values i have assigned 'Y').I'm getting the following error when i opened in the analzyer
Exception condition "INPUT_NOT_LEGAL" raised.
I'm unable to open in query designer.
Is there anyway that i can go to fomula varibale table and edit the value that i have given.

Hi Jack,
Check table RSZGLOBV. It will be useful for you
Regards,
Saurabh

Similar Messages

  • Formula Variable with Replacement Path - drillup ref.char and still working

    Hi all,
    I have a requirement, where formula variable (with replacement path) shouldn't work when I remove the reference characteristic from the rows. But this is not the case at the moment
    I have 'Brand' and 'Material' in the rows and there is 'Material Indicator' in the columns. This 'Material Indicator' is a formula and there is formula variable in it with the type replacement path.
    Reference char is 'Material'; Replace with 'Attribute Value' is selected also. As attribute I am selecting one of the attributes of the 'Material'.
    In the report output, I am seeing relevant attribute values when Material is in the rows. But when I remove the Material from the report, I still see the values for this Material Indicator column. But I expect to see blank instead..
    Can you please share your comments?
    Thanks in advance.
    S.P.

    hi,
    Irrespective of the drilldown on Material, the fomula variable will be replaced by material value. This is how replacement variable should behave. You might have to change the design. For  more inputs, let me know your requirement exactly.

  • Formula variable in condition

    Hello gurus,
    I have a requirement where i need to provide the selection option in the variable screen for the key figure. for this i hav created the fomula variable of type user entry at the condition level. I am getting the variable  in the selection screen but when i pass the value its not filtering it on that value and i am getting the same whole result.
    Pls let me know i am missing any thing
    thanks in advance
    Regards

    Hi KK,
           If you would have followed the below procedure correctly, it should work for you.
            Go to Conditions-> Right click -> New Condition -> Edit -> New -> Select the Key figures from the drop down( the KFs that are used in the rows/columns) -> Select Less than from the operator drop down (less than is for you case) -> Values, there is an option to create a variable -> Select the variable -> transfer. It will appear on the top.
    Save & Execute, you will find it in your selection criteria.
    Re: How to create a variable for key figure (value will be entered by the user
    Regards
    Sunil

  • Decimal places for formula variable

    Hello,
    I have created a formula variable of type manual entry and type number. I'm multiplying it to an amount. The problem is that the user is unable to enter a decimal place value.
    eg:
    cannot enter 0.5 or 0.05. the query regards it as 5 (converts 0.5 or 0.05 to 5)
    when i enter 5.1, it converts it to 51
    when i enter 51.11, it converts it to 5.111
    when i enter 51.111, it keeps it the same and does not change it.
    Is there a setting that i need to change in the query or the fomula variable? I need the variable to accept decimal values with out changing the decimal places.
    Regards,
    Sameer

    This was an issue with the number format setting for the user.
    His setting was 1.000.000,00 and he was trying to enter it in this format: 1,000,000.00
    Hence I noticed the fictional change in decinal places.
    Should have caught it sooner.
    Regards,
    Sameer

  • Formula variable not working.

    Hi BI/BEX experts,
    I am creating an aging report in AP using 2 formula variables. One fomula variable is giving the right value that is on key date but the other formula variable which is on 0BLINE_DATE is not getting replaced. It is givinf X in color red. Thus calculation for number of days is coming as X in red.
    We are using 0BLINE_DATE as a free characteristics. If we use in row, it is working correctly. But we cannot use it in a row as users want a consolidated report on profit center.
    We are sing SAP BW 701, Level 008 SAPKW70108.
    Any help is appreciated.
    Thanks.
    Sheo

    I am having the same issue as Sheo.
    I have Clearing Date (CLEAR_DATE) as a characteristic.
    I have Clearing Date (CLEAR_DATE) in the Rows section
    Created a formula variable based on CLEAR_DATE
    Created a calculated key figure using the formula variable from Step 1
    Put CKF from Step 2 into Columns section
    Run report and everything works fine
    Remove Clearing Date from Rows and the CKF turns into red X
    Also, just like Sheo, if I just change the Clearing Date in the rows to "No Display", there are still extra lines because the Clearing Date is still there, but not displayed.
    Question: Is there a way to have a date (which a characteristic) used in formulas/CKF without it being in the Rows section of Analyzer. Thanks!

  • SUMCT on Formula Variable

    Hello Experts,
          RKFonM1  RKFonM2     RKFonM3  Qtr-Q1            CF1
    M1     140           0               0            421.92             140
    M2       0            130.15       0            421.92          130.15
    M3       0            0           270.15        421.92           151.77
    We have a requirement where we need to build RKFs using formula variable on Month1 (M1), Month 2(M2), Month 3(M3) as displayed in the table above.
    Once these RKFs are in place, For m1 and m2 month, users want to see directly these rkfs but for m3 they want to see a calculated key fig which is equal to Q1- m1-m2.
    Now we are not able to do this calculation for M3, we tried it using SUMCT but that doesn't work with formula variable. Can anyone pls help with any work arounds.
    Regards
    Dipali

    Hi Dipali,
    create a fomula variable on that particular CKF and double click on RKF. then select that CKF and drag drop on RKFs. if u still want make any restrictions u can do here.
    hope this will help u.
    all the best,
    kind regards,
    Praveen

  • Formula Variable for Current Time

    Friends,
    Is there any standard formula variable available to display Current Time in Report??..like we have 0F_ADAY to display current date..
    Thanks in advance..
    Regards,
    Yog

    I am not sure that standard fomula variable existed for the current time. But
    you can create a formula variable with customer exit processing type. Then write an exit with SY-UZEIT. you will get the current time.
    Hope it helps.
    Veerendra.

  • Report Painter GRR1 table CCSS cost centers actual/bud by period wise

    Hi,
    I have developed Cost Center Actual/Budget Report by period for 12 months (Jan to Dec in columns) in each columan I have hardcoded period e.g. for Jan (01) Feb (02) till Dec (12-12) for one of coulmns given as variable From Period to To Period as vairbale to choose user in selection criteria (1PERIV-1PERIB). while executivng the report system is givng results for whole (12)periods in the output, even my selection criteria from period 1 to 3.
    Please advise any body how can I restrict by period wise.. e.g. if I select from period 1-3 it should show for only 3perios.
    Thanks in advance!!
    VS Rao

    Hi Kumar,
    I have done below steps to my CC Report to show by period wise(individual columns Jan, Feb, so..on) cost center report:
    Step 1: used Library 1VK, Table CCSS in GRR1.
    Step 2: Created 12 individuals columns starting from Jan to Dec..
    Step 3: Created 12 formula variables(internal Variables) for 12 periods..(becoz if I hardcoded system is deriving all the  
                 periods)..
               a) created Internal value Variable ZVAR(defaualt 01),ZAR1(default 02),ZAR2 (default 03)...this is for to create fomula
                   variables.
               b) for period 1(jan) formula variable  "IF '&ZVAR'>= 1 THEN 1 ELSE 017" internal variable table:CCSS,field:PERBL
               c) for period 2(feb) IF '&ZVA1'>= 2 THEN 2 ELSE 017 like wise created 12 variables for 12 periods
    Step 4: above the formula variables I have selected check box as variable but not coming on selection screen, I need in
                selection screen from period to period for this I have created one more hide column and given period vairable "1PERIK"
               now its coming on the selection screen but values are not populating based on by selection criteria..
    Note: If I slect 1-4 periods it should show for only Jan,Feb, Mar & April  and individually..
    Please sugget above my formula is correct or not!!  appreciate your valuable suggesion!
    Thanks
    VS Rao

  • Fiscal year /Varient  problem

    Hi All,
    In my query level fiscal year /Varient  showing 002/2010 , i want to modify the result for 002 . my in report level i want to display only period values like(002) how can i do this
    Thanks
    Praveen

    add a field in data model and populate it in field routine like source_fields-fiscper+4(3). You can then add this IO in query.
    or try this
    you can try out with formula variable on date characteristic.
    lets take an example: lets consider 0FISCPER
    drag and drop it into rows of query designer.
    now create a fomula variable (from context menu of KF structure >new formula->right click on formula variable tree-->new variable).
    Properties of formula variable:
    Processing type as 'replacement path',Characteristic:0FISCPER,Replace variable with 'Key',Offset start :4 ,Offset lenght: 3, Dimension ID :Number.
    here assumed that 0FISCPER's internal format is 1999.600 so formula variable returns 600.
    if  format is different,then u have to change offset lenght and offset start accordingly.
    Now create a new formula with this formula variable and set decimal places to 0 in properties.
    Edited by: Ananda Theerthan on Apr 12, 2010 8:58 PM

  • Entering a matrix in a fomula knot results in "variable not defined" error

    if i enter a matrix in a formula code, the program keeps telling me i have a undefined variable.
    usually, matlab does work with code like "M=[123 456];" just fine.
    the manual states, that in a formula knot code just works like it works in matlab.
    what's my mistake?

    to use a matrix inside a formula node, you must declare a 2-dimensional array of the type you want to use. for example:
    int32 y[2][2];
    to assign values to the fields you can index them:
    y[0][1] = 1;
    you also could use a loop to put the values or pass a allready initialised array into the formula node.
    Maybe these links also give you some hints:
    problem regarding the formula node
    array formula node
    regards,
    Robert H.
    National Instruments

  • Variable consumption of a resource

    Hi,
    In PPM when we define modes, there is a field called Variable Duration.
    I want to know how this field is calculated if the data is transfered from R/3.
    What is the exact definition of this field.
    Eg. In master recipe, the machine time is 33 Min, Labor time is 7 Min.
    In PPM , the variable duration is 0.117 Hrs. (How??????)
    Base Qty : 1000 Kgs
    Thanks

    Dear asheesh,
    In R/3 work center, there is a processing fomula on scheduling tab page.
    For example, Procrssing Fomula(Processing Time) = Production time * Operation quantity / Base quantity / Operation splits with base quantity. And also, in routing, there are activities for each opearion and one of them is used as production time.
    In your case, variable duration 0.117 means that you defined the processing fimula with labor time. So if base quantity, operation quantity, operation split are 1000, 1000, 1 repectively then processing time based on processing fomula is 7 min.(7 * 1000 / 1000/ 1)
    In APO, the processing time is used as variable duration which is lot size dependent and converted to hr.
    Hope tobe helpful.
    Best regards,
    Lee, Seung Won

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Error while offsetting a variable

    Hello Experts
    I want to display the data for last 5 years in my query. So I tried using the SAP exit variable Current Calendar Year (0CYEAR) and the offset it by 5. However, I am getting the following error message for the query "System error in program SAPLRR12 and form REP_ASSIGN_INITIAL_OPT-01"
    Any Help on this is appreciated and points will be assigned.
    Thanks

    Thanks Chetan for your prompt reply. I have assigned points.
    But I would appreciate if you help me clear my understanding of offseting a variable.
    Say if the Current Calendar Year variable returns 2008, then will offseting that variable by 5 return me the data for years 2008, 2007, 2006, 2005 , 2004. Or, will it just return me the data for 2008 - 5 = 2004 only.
    Thanks
    Rishi

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Error message into a Variable.

    Dear users,
    I have a rather usual (unusual from the weekend beers for me though!!) query which I can't figure out a proper way to implement.
    My requirement is like this:
    I have a message class in which I want to define a text 'Employee number & not found'.
    I want to use this in the program, but not to raise this error. Instead, I want to move this error message with the Employee number into a Character(200) variable.
    So instead of using MESSAGE e0xx(messageclass) USING employee number, I would like to move the error text into a variable which looks like:
    lv_text = e0xx(messageclass) USING '1234'   which stores the text 'Employee number 1234 not found' in lv_text.
    How would I acheive it??
    Thanks, V!

    Try tis way
    message e999(00) with i_emp-empno into lv_text.
    press f1 in message will provide you more details

Maybe you are looking for

  • Photoshop CC doesn't recognize the right mouse button of my Wacom Intuos pen tablet, how do I solve this?

    For some reason photoshop CC doesn't respond to the right mouse button that is on my tablet pen. It's strange because it does work for illustrator CC, so why would photoshop CC not respond to it? Anyhow, help please! I have a wacom intuos pen tablet.

  • What is the best way to get PATHS from one Photoshop psd file to another?

    Hi! New on the site, and I signed up specifically to ask the best way to import one .psd file into another, including the paths on the paths palette. Almost all of my Photoshop drawings make heavy use of vector paths, which I then stroke using using

  • Forms with Electronic Signatures

    Hi, I have recently started working with Acrobat Pro X so please forgive the elementary question. I am trying to create a series of forms that allow the end user to enter information, electronically sign the document, save and email, and print for th

  • Quick aspect ratio question...

    I read this somewhere on this forum but I the search didn't seem to find it. Some of the videos I rip show up fullscreen while other show up with black bars on the sides (not the top but the sides). I have a feeling it's because I've ripped the video

  • Best way to proceed with adding fields to SAP Customer Master

    I want to add 4 new fields to tcodes VD01/VD02/VD03(Customer Master create/change/display). These fields will be stored in a separate Z table (not in KNA1). I see what I think is a possible answer in SPRO -> Logistics -> Business Partner -> Customers