Text variable and formula

Hi,
  Can any one give the scenario for text variable and formula variable?send the documents to mail id <removed>
Thanks in advance,
kumar.

Hi Chandu,
You can see details here:
Re: Dynamic population of Text Variables
/message/2969896#2969896 [original link is broken]
Hope this helps...

Similar Messages

  • Variable and Formulas Question

    Hi folks,
    I use BOXI r2 sp 4 and I have a general question re: variables and formulas in Webi reports.
    Billing Year Month and Cost of Service are standard time dimensions and measures that I use in my Webi reports and they were created at the semantic level.
    Normally, I create cross tab reports with the Billing Year Month along the horizontal axis and the Cost of Service in the Body (Business Unit or Department would be placed along the vertical axis).
    For some reason, when I use formulas/variables to modify the standard time dimensions (like changing Billing Year Month to Year), the values for the Cost of Service are returned incorrectly.
    Example.
    Semantic object: Billing Year Month = (yyyy-MM) returns correct values
    Report variable: Substr([Billing Year Month;1;4) returns incorrect values
    Can anyone please explain this problem?
    Thanks,
    Wannetta

    Hi John,
    The attribute of the Billing Year Month at the semantic level is a character type.
    After reading your response, I realize that I may not have been clear regarding the problem.
    The following formula does return the correct value in and of itself.
    >=Substr([Billing Year Month];1;4
    If I create a variable and then drag it onto my crosstab, it returns the correct value ONLY within the header.
    When I drag the cost of service measure onto the crosstab; the header values remain the same but values in the body either disappear or the change to reflect incorrect values.
    I thought one of the prime features of Webi was the ability of the Report Developer to create variables/formulas and use them in the headers to manipulate the semantic "measures" in the body (read: output) at the report level.
    Is this a matter of semantic design or does Webi not possess this capability?
    Or, is the issue entirely different?
    Thanks!
    W.

  • Using Text variables in Formula

    Hi all,
    I wanted to know if there is a known problem with using a text variable in a formula's title???
    Every time I try to use the text var. in formula with the same technique i do in the selction,  i recieve the message :
    'No Valye found for text variable zzz in "&zzz&" .'
    Anyone have a clue?
    I promise to return and reward the answers
    Yaniv.

    Hi,
      Pls give the properties of the variable you have used.
    It should of user entry variable right?

  • Get value of formula variable during query runtime into a text variable

    Hi all,
    I wanna get the value of the formula variables during the query runtime into a text variable.
    My scenario is like this: First I defined a formula variable Z_DATE_3 which is processing by replacement. It will get the day of a characteristcs(Startdate).
    Then I defined a text variable and in the function module related to this text variable, I used the parameter I_T_VAR_RANGE which can store the value of formula variable during the query runtime.So I can read the value from this table in my function module.
    But I have a issue, when I run the query which used the defined text variable, it seems that it doesn't call the corresponding function module. Because I set a breadpoint in hte code and it never reach this breakpoint.
    If I removed the parameter I_T_VAR_RANGE , it can enter the function module.
    So could you please give some advice?
    Is my solution correct or not?
    And what's wrong with the parameter I_T_VAR_RANGE? Did I use it correctly?
    And My code is:
    DATA:  l_s_range_v TYPE rrrangeexit,
                 l_day type sy-datum.
    if i_step <> 2.
    raise no_processing.
    endif.
      READ TABLE i_t_var_range INTO l_s_range_v
         WITH KEY  vnam = 'Z_DATE_3'.
    if sy-subrc = 0.
         l_day = l_s_range_v-low.
    endif.
    Thanks in advance!
    Best regards
    Fanchest

    Hi, Fanchest,
    I'm having just the same issue.  Did you find a solution?
    I wrote a short routine in CMOD to derive the value of a formula variable to a text variable, but it's not working (I don't get any value).  Can you share your solution?
    Thanks in advance,
    LL

  • Complex Sap text variable in WEBI with replacement path

    Hi Gurus,
    Variables in Bex
    Present Fiscal Qtr : 2012Q4
    Fiscal Qtr-8    :        2010Q4
    My Output header(TEXT)  in Bex as follows.
    2010Q4_ ACT     2011Q1_ ACT     2011Q2_ ACT     2011Q3_ ACT     2011Q4_ ACT     
    2012Q1_ ACT     2012Q2_ ACT     2012Q3_ ACT     2012Q4 BOQ     2012Q4CONS     
    2012Q4_ACT      2013Q1 BOQ     2013Q1CONS
    It's Completly working in Bex. I have used text variable and used replacement path to calculate the above texts.
    WEBI : Even though the document from SAP says that the variables will work when it's derived through replacement path,
    it's not working.
    Question1 :
    How can i achive this in webi . I saw some of the posts in SDN . They suggested to use 'USER RESPONSE' command.
    Question 2 :
    Assume we are using USER RESPONCE , when the current QTR = 2013Q1 . How can we  derive the previous 8 Qtr 's , because
    every Qtr the values are changing .

    Hi,
    In which way is it not working?  What's your SP and Patch level ?
    the webi pre-defined cell you are enquiring about is  either =PromptSummary()   or =UserResponse()
    Regards,
    H

  • Replacement path with text variable

    Hi experts,
    My client requirement is " when he enters the current year or current day then it should display the Description of that particular year r month r day."
    Can anyone explain me in detail how to create replacement path with text variable on FISCAL YEAR?
    Hope will solve my issue soon.
    Thanks in advance
    Jani Sk.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • Coloumn Headings replace with text variable

    Guys
    I have to display coloumn headings for my key figures to be able to match with the time period selection. Is it I need a text variable and if I do where do i create it and for what charachterstic.
    Also i need to ;pick a variable values  based on other variables in the same query. can i do it through replacement variable or any other ideas.
    thanks

    Hi,
    Yes, you are right you need a text variable in order to display the cloumn headings to match the time period selection.
    Text variables with the processing type Replacement Path are replaced by a corresponding characteristic value. The value of a text variable has to be a text.
    How to create & where to create a variable check here:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    The Reference Characteristic you can use should be a time characteristic like "cal. year/month". Choose according to your query requirement.
    Hope this helps...
    Cheers,
    Habeeb

  • Text variable creation Error.

    Hello gurus ,
    I am working in BI 7
    I have to design a Report in which i want follwoing key figures in column
    Net volume (User entry range of month)      Billing Product (same range of month)
    Now the trickiest part is that whatever user enters on Selection Screen i.e the range of month of year they wanted to see the output,
    they also want to see the same range entered in Report output.
    For e.g.
    user enters   Jan-March 2007
    Then in query output it shuld show
    Net volume (Jan-March 2007)      Billing Product (Jan-March 2007)
    Like wise.
    So if it aggregates the data for January to March , there is no worries.
    What i did?
    I restricted Net volume in Selection screen with Fiscal year/period.
    I restricted Fiscal year/period with Standard Interval range variable.(Because in its technical name the prefix was "0")
    Then i tried creating Text variable, and tried to include it in Description,
    BUT OVER THERE WHILE INCLUDING IT , I WAS UNABLE TO SEE THE INTERVAL RANGE VARIABLE.
    So i tried creating my own variable, and tried to use it.
    IF i use my own created variable everywhere i dont get output.
    But if i use Standard SAP provided variable everywhere, I am unable to include it while creating Text variable.
    Where did i go wrong ?
    For text variable i followed this procedure
    Message: Create Text Var - >Type of var - Text ->Processing type - Replca Path ->Time char on which u hav created the interval var ->Replcaement Path - > Replacement Tab : Replacement Variable -Variable - > Variable - Giv the Interval Variable
    - > Replace with key or text.
    Please advise

    Noviced,
    Best to create your own but you will need two. One to show you the From value and one to show you the To Value.
    When you are selecting the display type, you will see an option on that Dialogue box to show the From or To.
    Regards
    Gill

  • Text Variable for 0CALWEEK: On Structure with Calweek offset

    Good day
    Please assist? I have gone through numerous SDN threads relating to the following, but could not find a solution for my problem.
    1) User wants to see 16 weeks data in columns, each week in own column. I have created a structure for each week with offsets 0 to -16, 0 to -15 and so on to display data. User wants to '0' display even if no data was loaded for a certain week, thus the structure. The data is displayed for 16 weeks. Now I want to replace it with calendar week text. (I have used week 12 to test text variable. week 12 should be displayed as 'example' 2008/42)
    2) There are no calweek text variables available for selection, so I created a new one as 'replacement path', characteristic "Calendar year/week" and 'replace variable with "Name (Text)".
    2.1) The following is the result 12  &0DPM_WV1&. Not what I wanted.
    Where am I going wrong?
    Your assistance will as always, be appreciated.
    Thanks
    CJ

    You have to create 16 customer exit text variables and populate them in the RSR0001 Customer variable exit in i_step = 2.
    http://help.sap.com/saphelp_bw320/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_bw320/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm
    If you always run your query as of current system date and display 16 weeks data till current date, then u can use sy-datum in variable exit to populate these 16 text varaibles. If you are using a user entered calweek in the report varaible and displaying 16 weeks prior to that week in your report, then you need to read the user entered variable inside the customer exit and populate the texts for all 16 weeeks.
    Hope it helps!

  • Problem in displaying dates for replacement path with text variable

    Hi all,
    I have to display dates in sequence as descriptions for 15 columns based on the the date entered by the user in Bex Report.I managed to display date as description using text variable with replacement path for single column.I could not able to increment date for other descriptions.Could you please help me to solve this issue.Its urgent.
    Ex: User enters 03/09/2007 then in the out put desciptions for the columns should be  03/09   04/09  05/09 ............ 17/09.
    Thanks in advance.
    Regards,
    Mandadi.

    Hi,
       goto the properties of your KF and click on the variable button side to that of the description field and click on new/Create option.Enter the technical name description for the text variable and select Replacement path as the Processing type and in the nxt screen select Fiscal year as the replacement variable and in nxt screen  specify as Key and provide offset values if necessary and click on finish.now select the variable by clickin on the variable button next to the description field.it comes after the description of the KF.Now run the query.
    Thanks,
    Sandeep

  • About Replacement Path, Text Variables & Cusomer Exit?

    Hi
    Please explain along with examples youwhen we use Replacement Path
                                                   Text Variables and
                                                   Customer Exit
    Please search the forum before posting a thread
    Edited by: Pravender on Apr 18, 2011 3:48 PM

    Hi,
    1. Customer EXIT :
    Business Scenario:
    The business department wants to check if the orders from the customers for a  certain week (e.g. 6 weeks from now) are already transmitted into their system. Therefore they run a report with a variable, that is calculated automatically.
    Note: Of course this is not the only suitable solution, but it will show you how the exit works.
    Step by Step Solution:
    A.You should create a variable on the info object 0CALWEEK like this:
     1.Technical Name: WS_FWEEK
    2.Description: Workshop Future Week
    3 Interval
    5.Mandatory variable entry
    6.Processing: Customer Exit
    7.NOT ready for input
    B.Call transaction CMOD for the definition of the customer exit.  
    C.Create a new project, maintain the short text and assign a development class.  
    D.Go to Enhancement Assignments and assign RSR00001. Press the button components to continue.  
    E.Double-click on EXIT_SAPLRRS0_001.  
    F.For documentation place the cursor an RSR00001 and use the menu GoTo => Display documentation.   
    G.Then double-click on ZXRSRU01.  
    H. If the include does not exist, you have to create it; assign a development class and a transport request
    Enter this code:
    INCLUDE ZXRSRU01                                        *
      data: l_idx like sy-tabix,
            workdate(8) type d,
            futureweek(6) type c.
      DATA: L_S_RANGE TYPE RSR_S_RAGESID.
    case I_vnam.
    when u2018WS_FWEEKu2019.
    if i_step = 2          u201C after pop-up
    Calculate Current day plus 6 weeks:
      workdate = sy-datum  + 42 .
    Calculate the week of this day
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          DATE               = workdate
        IMPORTING
         WEEK               = futureweek
    EXCEPTIONS
      DATE_INVALID       = 1
      OTHERS             = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      l_s_range-low = futureweek.
    l_s_range-high =
      l_s_range-sign = 'I'.
      l_s_range-option = 'EQ'.
      append l_s_range to l_t_range.
      p_subrc = 0.
    ENDIF.
    ENDCASE.
    I.Save and activate the codie 
    J.Activate the project. (Very important!)
    K. Define a query using the above created variable.
    L.For displaying the variable values in the executed query you also may define two text variables. These should, if necessary, be able to show the lower and the upper value calculated by the customer exit.
    2 Replacement Path :
    Example for filling variable values depending on an other variable /
    Deriving one variable value from another variable
    Business scenario.
    A query should show in one column the value for one period. The period should be entered by the user. In the second column the accumulated vale from the beginning of the year to the period of the first column should be displayed. The InfoCube contains only the InfoObject 0CALMONTH (Month/Year) and not single InfoObjects for period and year.
    Solution:
    For this scenario we need four variables: two variables for the column text and two variables for the period values. One of these period variables is defined as a variable with a customer exit
    Step by Step Solution:
    Create an input variable u201CMONTHu201D (you need this specific information for the coding example below). The variable is based on the InfoObject 0CALMONTH. Set the following attributes:
    Single Value
    Ready for input
    Mandatory variable entry 
    Create a variable  u201CCUMMONTHu201D (you need this specific information for the coding example below) with a customer exit as a processing type. The variable is based on the InfoObject 0CALMONTH. Set the following attributes:
    Interval
    NOT ready for input!
    Mandatory variable entry
    Create two text variables. Both variables use the u201CReplacement Pathu201D as processing type. The first text variable is filled with the text from the u201Cfrom valueu201D. The second is filled with the text from the u201Cto valueu201D.
    Enter this code
    INCLUDE ZXRSRU01                                        *
    DATA: L_S_RANGE TYPE RSR_S_RAGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    case I_vnam.
    when u2018CUMMONTHu2019.
    if i_step = 2          u201C after pop-up
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
              WHERE VNAM = u2018MONTHu2019.
         CLEAR L_S_RANGE.
    l_t_range-low = loc_var_range(4).  u201Cgetting current year
    l_t_range-low+4(2) = u201801u2019 u201Csetting 1st period in cur. year
    l_t_range-high = loc_var_range-low u201Chigh value=input value
    l_t_range-sign = 'I'.
    l_t_range-option = 'BT'.
    append l_s_range to e_t_range.
    exit.
    endloop.
    endif.
    endcase.
    Save and activate the code.
    Activate the project.
    Define a query containing all the variables.
    Regards
    CSM Reddy

  • Name of column using text variable in Query Designer

    Hello!
    I have 3 columns with amounts, 1 characteristic value variable and 1 text variable.
    For example, names of this columns - 2005 year, 2006 year, 2005/2006.
    I fill names using only one text variable and I can call first 2 column. I use set offset of variables for second column.
    How can I call third column ''2005/2006"?

    Hi,
    u need a second Text varaible and u need to correct your existing text variable.
    Prerequisite: u need for your key figures the same KF-variable
    1. Edit your existing text variable  lets say its called &Text1&
    2. Select your Text variable and go to tab "replacement path"
    3. Choose a) InfoObject b) Choose key
    4. In section "use value range" choose from  value
    5. Create a new text variable lets call it &Text2&
    6. make exact the same settings as for your first text variable butchoose for "value range" to value
    Now u use this text variables for your KF:
    KF 1 -> &Text1&
    KF 2 -> &Text1&
    KF 3 -> &Text1& / &Text2&
    This should make it!!
    Regards
    Tobias

  • Iterate through all dynamic text variables

    Hello,
    I'd like to be able to iterate through all of the dynamic
    text variables in my flash movie, and I'd like it so that if I add
    new text to this movie, it will show up in the iteration.
    Essentially, I want to do something like this:
    for (i in _root) {
    trace(i);
    While this seems to print out all the variables in root, it
    prints more than just the dynamic text variables, and also doesn't
    iterate down through various objects to find the dynamic text
    variable.
    Is there any way I can accomplish this in action script?
    Thanks!

    Great! That code helps me a lot.
    There are still two weird issues.
    1) the test for tl[obj].text seems to always turn out to be
    false. However, if I trace the value of text, I'll see the text.
    Example:
    trace(tl[obj].text); // This will display the value in the
    text field
    if (tl[obj].text) // This is always returning false.
    Any ideas?
    The 2nd issue might be more difficult - some of my text
    objects don't appear until later in the movie (i.e. frame 10). It
    sort of looks like this looping doesn't see objects that appear in
    the future. Do I need to advance the frame 1 by 1 and repeat this
    looping process until the text appears? Maybe instead I can always
    have the text in the first frame, but have it be invisible or
    something?

  • CAN SOMEONE PLEASE HELP ME IN CREATING A TEXT VARIABLE???

    Hello Friends,
    I want to display the Key and Text for 0CALYEAR in a report. I searched the forum and it seems that for doing this I need to create a text variable. In the query designer I tried creating a text variable for 0CALYEAR, but in the variable wizard, the "Type of characteristic" drop-down is greyed out. Please guide me in creating a text variable and on a larger scale in getting the Key and Text for 0CALYEAR. Thanks!
    Regards,
    Prem.

    Hello Friends,
    Thanks a lot for your replies!!! I am really delighted to see the helping spirit of the forum. I have assigned points to all of you. Thanks again!
    Now coming to the issue. Let me reply individually. (Friends, reply may be a bit lengthy. Please read atleast your part fully).
    Venkat, you said that we can display the key and text for 0CALYEAR if the texts are mainted for it. However, in the display option for 0CALYEAR there is no option for text. Moreover, since 0CALYEAR is provided by SAP itself, I did not find any option for maintaining texts for it. Infact in 0CALYEAR, under the master data tab the "With texts" option is unchecked. Please share some info on this one.
    Srini, your suggessted solution was not possible as there was no option for displying text in the context menu for 0CALYEAR.
    Karthik, I tried your solution. In my KeyFigures structure I have only two key figures and the 0CALYEAR is in rows. What I did was I right-clicked on "Key Figures" and clicked on New Selection. In the popup screen there is a button for variables. Clicking on it and then clicking on the "New" opton in the subsequent window brought me to the variable creation wizard. Interestingly this is a text variable creation wizard. Happily I created a text variable with replacement path and selected 0CALYEAR as the characteristic. Then I selected "Name(text)" for "Replace variable with" option. Everything went fine. Under key figures, I got an icon which is having a green triangle with a matrix cube (Apologies for explaning the situation like this :-). This is essentially the icon for characteristics. The description reads "&ZTXTVAR& New Selection". Now when I try to run the report I get an error saying "Use a Key Figure everywhere in the structure 'Keyfigures' ". I think the text variable is not getting created, instead a New selection is getting created. Please assist. Thanks!
    Regards,
    Prem.

  • Can a Text Variable be shared across document in a Book?

    I'd like to define a single instance of a text variable and have it available to all documents in a Book (.indb). Can't figure out how. Is this possible?
    InDesign CS5.5 (both mac & pc versions)

    InDesign can't, automatically.
    But it is an option in the Book panel -- you can enable text variables to synchronize along with loads of other stuff. Then all it needs is a quick click on the Synchronize button.
    Just make sure you only enable the items you really want to sync.

Maybe you are looking for