Formula variable in 2004s displays '?No/Value'

Hi,
I have created a formula variable to display characteristic value in a query. it works fine in 3.5 version but when i migrated this query in 2004s. It displays "?No/Value" in report. I tried to look at couple of settings but i didnt find anything. Is there any setting i missed out in 2004s?
Thanks
Abhijit

<FONT FACE = "Tahoma", Font Color = "Blue">
My Dear Friend<br>
<u>Please try the below code:</u><br><br>
Case vnam.<br>
When 'Z_OPT1'.<br>
check i_step = 2.<br>
<br>
read table I_T_VAR_RANGE INTO loc_var_range with key vnam = 'Z_OPTSEL'.<br>
<br>
if sy-subrc = 0.<br>
Clear l_s_range.<br>
if loc_var_range-low = '1'. <br>
l_s_range-low = '2'.<br>
endif.<br>
if loc_var_range-low = '2'.<br>
l_s_range-low = '0'.<br>
endif.<br>
endif.<br>
l_s_range--sign = 'I'.<br>
l_s_range-opt = 'EQ'.<br>
APPEND l_s_range TO e_t_range.<br>
endcase.<br>
<br><br>
Hope it helps.<br><br>
Cheers Abhijit<br>
</FONT><FONT FACE = "Verdana", Font Color = "Red">
Removed
</FONT>

Similar Messages

  • Usage of formula variable with custom table for values

    Hi,
    I have the following scenario:
    a customer wants a report regarding payments of invoices with a formula in it to calculate interest results. In order to do so they want to be able to define a interest rate wich can be used to calculate te result by multiplying the rate by time and amount (for every line in the query the same rate should be used).
    As a solution I thought it would be easiest to give the key user access to a custom table via a custom transaction and then use the entered rate in the query by selecting it from this table using a formula variable (using an exit).
    I was wondering if anyone has ever used such a solution, or if one thinks this is possible.

    Hi Brock,
    Its possible, but I haven't tried as requirements didn't imply.
    More simpler idea is why don't you use a flat file loading through the IP to Info providers?
    Or even more better option is why don't you adapt to Virtual Info providers?
    For your suggested custom table using custom transaction, we can surely make it. Its possible in SE93. Try this transaction code. It must definitely help.
    Thanks,
    Arun Bala G
    Edited by: Arun Bala G on Jan 11, 2010 2:16 PM

  • Variable for 0FISCPER displays od values

    Hi
    I have created a query containing a interval variable for 0FISCPER. The Query is based on a multiprovider that is build on a single ODS containing WBS line items loaded through 0CO_OM_WBS_6. When the query is run and the variable box appears I press the selection button for 0FISCPER. It displays som od values for selection that does not exist in the ODS. fx. 001.0010. When i select such a value it is converted to 001.2010. The ODS only contain data for 2003-2006.
    Can you help me to understand what causes this, so i am able to fix it.
    Chris

    1.     On the Administrator Workbench: Modeling screen:
    a.     Choose Source Systems.
    b.     In the right hand window select the source system from which you would like to transfer the global settings.
    c.     From the context menu choose Transfer global settings.
    2.     On the Transfer global settings: Selection view in the frame Transfer global table contents select the checkboxes for the settings you want to use from your R/3 source system:
         Fiscal year variants to transfer fiscal year variants
    3.     In the frame Mode choose Update Tables.
    4.     Choose Execute.
    5.     Choose Back twice.
    Then try your reporting......

  • Decimal places in formula variable

    Hi all,
    I have a formula variable, for an integer (num of days), ready for input, that by default has 5 decimal places in the selection screen (g.e. 5,00000). It is possible, and if so, where can I change the number of decimal places to show in that variable?
    Please advice

    In my case the formula variable is properly displaying the value without any extra decimal places.
    I have done the following settings.
    Variable Entry - Mandatory
    Ready for Input
    Dimension indicator - Number
    Default value - 95.
    When i execute the report i can see just 95.
    Don't know why it is showing extra decimal places?

  • Default multiple values for formula variable on variable selection screen

    Hi All,
    Suppose 'A' is formula variable with customer exit as processing type then i want four default values for this variable eg: 3, 6,9, and 12 as selection options, when we will execute query user can able to pick any one of the default value.
    is it possible in BEx for formula variables?
    I also tried with ABAP code in 'cmod' t-code, but it is not working properly for 4 default values....but for single default value, code is working fine.
    I am using following code ::
    When 'ZCSIMCTB'. // variable name
    IF i_step = '1'.
    CLEAR : l_s_range.
    l_s_range-low = 3.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 6.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 9.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    CLEAR : l_s_range.
    l_s_range-low = 12.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDIF.
    Thanks in advance

    Hi Sankar,
    Thanks for reply...
    With single quotes also its not working.......
    Also as I am using Formula Variable so by default "Single Value" is coming on Variable Details....
    Regards,
    NIlesh

  • Formula variables based on conditions

    Hi,
    I am facing following problem with formula variables.I am explaining the result which I am trying to achieve in BEx Query Designer.
    For Example:
    I am having a result output with following columns
    Country          Customer      KeyFigure(Revenue)
    IND            A                1000
                  B                2000
                  C     
                  D                3000
                  E                4000
                  F     
    For C and F Cusotmer there are no Revenues available in BI system.So they are blank in the report.
    My 1st requirement here is to write a formula variable which will display below result in 'Formula Col1' for which I have used COUNT function in formula to achieve this.
    Country     Customer     KeyFigure(Revenue)     Formula Col1
    IND     A                1000                     0
         B                2000                     0
         C                                  2
         D                3000                     0
         E                4000                     0
         F                                  2
    So when data is available for a Customer in above table,  'Formula Col1' should display value 0 and when there is no data for a particular Customer, 'Formula Col1' should display value 2.
    My exact requirement here is to display a final report output as below, based on the above calculations of 'Formula Col1'
    Country     FormulaCol2
    IND            1
    If Formula Col1 consists of all 0's then FormulaCol2 should display value 0,
    If Formula Col1 consists of all 2's then FormulaCol2 should display value 2,
    If Formula Col1 consists of all 0's and 2's then FormulaCol2 should display value 1.
    I tried applying Exception Aggregation = Average, Red Char=Customer on Formula Col1but still could not achieve the required result in FormulaCol2.

    Create a Calculated Key Figure using Boolean Operators which will be your Formula Col1
    CKF1 = (Revenue <= 0 ) * 0 + (Revenue > 0 ) * 2
    Goto the properties of the CKF1 and set the exception aggregation as Average and refernce to the characteristic Country.
    Now create another Calculated Key Figure using Boolean Operators which will be your Formula Col 2.
    CKF2 = (CKF1 == 0) * 0 + (CKF1 == 2)*2 + (CKF1 > 0 AND CKF1 < 2) * 1

  • 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.

  • Formula variable for date calculations with date-characteristics (2004s)

    Hi SDN,
    I'd like to calculate the number of days between to date-characteristics. In 3.5, I was used to create 2 formula variables of the type 'replacement path', with 'date' as the dimension indicator. In my formula, I used the 'proces value as date' function for each variable, and I could perform calculations with them.
    I'm trying to do the same in 2004s. However, I can't create replacement path's with 'date' as a dimension indicator. So I use 'number' instead, but it doesn't work: my query shows 'x'.
    I can use the variables that I created using the 3.5 query designer as a workaround. But I hope there is a better solution.
    If other people experience the same problem, please respond. Then I know it's probably a bug.
    Kind regards,
    Daniel

    Daniel,
    Try to look at the formula variables defined before the upgrade and see what is different to the newly defined. I am guessing just the terminology used is different.
    If not the date value might be blank or something for one of the f-variables used. Try to display the formula variable values as KF in the query results and check what it is showing.
    I hope this helps.
    -Bala

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

  • Presentation Variable - Display 'All Values' in Report Title

    If I create a Dashboard Prompt and then set it equal to a Presentation Variable, I then display this Presentation variable in the report title. For the Dashboard Prompt I allow them the 'All Values' choice, in fact, this is the default.
    The issue is displaying this in the Report Title, when it is 'All Value' nothing is display in the title, when they select a value such as 'Region D' then it works and this value will dispaly.
    I looked at the documentation and it says you can use a default value, however, setting up that still does not work. It still is blank.
    Has anyone seen this issue or know of a workaround? I'd like to have something like 'All Vales' display or is there a condition I could write to set this.
    Thanks

    Hi Guys,
    I have did the following in order to achieve your requirement:
    As usual, create a request with a column prompted and a dashboard prompt containing that column and set the Presentation Variable (ex: varDept)... bla bla..
    Placed them on the Dashboard to generate your issue, discussed...
    Now, what I have did is:
    1. Created one more Request with the column used on Prompt and specified the Formula to it as:
    CASE WHEN '@{Dept}'||'A'='A' THEN 'All Departments' ELSE '@{Dept}' END
    Note: Take 2 same columns (and hide one) because we are using above formula which does not contains the Column from any table.
    2. Created Narrative View and referenced the above Column.. @2 (in my case).. and specify 1 in 'Rows to Display' field. Do the formatting as required viz., specifying Font size, family....
    3. Place this request in between the Prompt and First Request..
    Now, you can able to see 'All Departments' if 'All Choices' is selected.
    Hope this idea will helps you guys..
    Regards,
    -Vency

  • Formula variable not displayed in proper format

    Hai,
         I used a keyfigure formula variable, that gets current date, in a query (In columns, key figure structure to calculate no. of days). The no. of days are calculated peoperly and everything is just perfect.
    But after executing the query, when I display text element=> variables, the system is displaying the variable as 20,060,803 as opposed to date format like 8/3/2006.
    Question: Is it how the date formula variable is displayed or there is a system error?
    I remember seeing it in date format.
    Can somebody comment on this or suggest a solution.
    I couldn't find notes on this too!

    In the restricted key figure formula definition, use the Data function "Process Value as Date DATE" and enclose your restricted key figure calculation inside the date parenthesis.
    I have another related problem.  I am trying to use dates to calculate 30 days before a (date formula variable), 60 days after, etc.  Some of the dates are calculating correctly, but some are just returning an X.  All appear to be extracting with the same format.
    Anyone have a similar problem?

  • Display Formula Variable in Web Query or RRMX

    Hi, 
         I'm calculating a Formula Variable for Shipping Days in my query.  I would like this to display in my web page in the upper right of my screen.   I'm mostly interested in doing this for the web.  How would I access the value of this variable and display it on the web page outside of the table web item?
    Any ideas are greatly appreciated!...
    Thanks,

    Hi,
    use the web item Text elements
    and specify your variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/frameset.htm
    Heike

  • Value from a formula variable into text variable in BEx Query

    Hello,
    if anyone knows how I can do the following please let me know:
    I have a formula variable in a formula (ZUM_KVAL). The value will be entered before execution of the query.
    Now I would ALSO like to display the entered value (from ZUM_KVAL) as at text variable (ZUM_KTXT) in the name of the field in the query/report.
    If anyone could provide me with info about how to do that, I'd appreciate very much.
    Thanks in advance.
    Cu, Stefan

    Hi Shashank,
        You can achieve this by creating a customer exit variable for calendar month.
    Function module :
    READ TABLE i_t_var_range WITH KEY vnam = 'Date variable name ' INTO loc_var_range.
       IF sy-subrc = 0.
        year = loc_var_range-low(4).
        month = loc_var_range-low+4(2).
         CLEAR l_s_range.
         l_s_range-sign = 'I'.
         l_s_range-opt  = 'EQ'.
         CONCATENATE year month INTO l_s_range-low.
         APPEND l_s_range TO e_t_range.
       ENDIF.
    Hope this will help you. Let me know if you have any questions.
    Regards
    Suvarna

  • Display decimals in Formula variable

    Hello Experts,
    I have a CHAR field(Say A) which has only numbers coming in such as 10.85 , 12.78  etc . Now I have created a Formula variable (Say B) in Bex so that I could use this in some calculations . The formula variable is defined on this CHAR field with following properties : Replacement on A , Dimensions to Number.
    When I run the report , I get values rounded in B as 11 , 13 instead of 10.85 and 12.78 . I checked the display properties of formula variable ,made it to 3 decimals...but still the out put remains rounded values.
    Appreciate for any help,
    Jb

    Hi JB:
       I think you need to change the definition of InfoObject "A" to use "Key Figure" Type instead of "CHAR".
    Take a look at the document below, it might help.
    >"How to... Calculate with Attributes"
    >http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc?quicklink=index&overridelayout=true
    >Page 2.
    "...KHMAT2 has defined an attribute KHPRICE (u201CPriceu201D), of type Key Figure..."
    Regards,
    Francisco Milán.

  • Formula variable as reference value for condition

    Hi,
    I am trying to use a formula variable (user entry, Optional) for a condition. I use all characteristics in drill down independently while defining the condition. I have 2 issues here
    1. If I give a default value for the variable to display as 500, the report displays only 5 and even in the variable I see default value changed to 5.
    2. If I enter a two digit number for the variable even if there are records matching the condition, I am getting message "No data was found meeting the above conditions"
    Would appreciate any help on why this is happening. We are on BW 3.0B Support pack 20.
    Thanks

    Unni,
    this sounds like a program error. Please check SAP notes. If you can't find a solution, open an OSS message.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

Maybe you are looking for

  • BO XI 3.1 DeskI report Calculation mismatch in record values

    Hi , I have an Calculation issue in one report after migrated from BO 5.1.6 to BO XI 3.1. After refreshing two reports parallelly, BO XI 3.1 report 1st 3 records of two columns are not at all there in BO 5.1.6 report. in XI 3.1 i am getting 3 more re

  • Image on Customized Page

    I've just designed a Christmas card in Pages. It works reasonably well. However, since the card is a fold-over, I had to place the image on the bottom half of the page. I switched off all margins in Inspector. I manually nudged the image vertically t

  • External Hard Drives & Online Storage for Photographers

    I would like to purchase new external hard drives and am also looking into online storage websites. I am wondering if some external hard drives are better than others when it comes to storing photos. And would also like recommendation for online stor

  • Photoshop Elements 7 - format changes to temp file when saved

    When I open a file in the edit screen (quick edit) and then edit the file -- when I close it (and agree to replace the current image), it closes as a temp file and I lose the jpg file? It does state that the image "Could not save as ..... because the

  • MacBook Pro Retina - Images in PS look great, but when uploaded to web too big and distorted

    Part of the reason I hated using my Mac for graphic and web design is that when I create images in adobe photoshop everything looks amazing. However, when I upload them to the web, they are way too big and look distorted, this includes text. I'm tryi